vsn 0.1.123 → 0.1.124

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 (140) hide show
  1. package/demo/demo.html +4 -1
  2. package/demo/resources/xhr-animations.html +24 -0
  3. package/demo/resources/xhr-lazy.html +10 -1
  4. package/demo/silly-animations.html +12 -24
  5. package/demo/vsn.js +2 -2
  6. package/dist/AST/ArrayNode.js +70 -18
  7. package/dist/AST/ArrayNode.js.map +1 -1
  8. package/dist/AST/AssignmentNode.js +92 -35
  9. package/dist/AST/AssignmentNode.js.map +1 -1
  10. package/dist/AST/BlockNode.js +17 -1
  11. package/dist/AST/BlockNode.js.map +1 -1
  12. package/dist/AST/ClassNode.js +225 -87
  13. package/dist/AST/ClassNode.js.map +1 -1
  14. package/dist/AST/ElementAttributeNode.js +55 -29
  15. package/dist/AST/ElementAttributeNode.js.map +1 -1
  16. package/dist/AST/ElementStyleNode.js +48 -22
  17. package/dist/AST/ElementStyleNode.js.map +1 -1
  18. package/dist/AST/FunctionArgumentNode.js +57 -15
  19. package/dist/AST/FunctionArgumentNode.js.map +1 -1
  20. package/dist/AST/FunctionCallNode.js +120 -52
  21. package/dist/AST/FunctionCallNode.js.map +1 -1
  22. package/dist/AST/FunctionNode.js +57 -14
  23. package/dist/AST/FunctionNode.js.map +1 -1
  24. package/dist/AST/IfStatementNode.js +52 -12
  25. package/dist/AST/IfStatementNode.js.map +1 -1
  26. package/dist/AST/IndexNode.js +24 -3
  27. package/dist/AST/IndexNode.js.map +1 -1
  28. package/dist/AST/ModifierNode.js +1 -1
  29. package/dist/AST/ModifierNode.js.map +1 -1
  30. package/dist/AST/Node.d.ts +3 -2
  31. package/dist/AST/Node.js +132 -39
  32. package/dist/AST/Node.js.map +1 -1
  33. package/dist/AST/ObjectNode.js +17 -1
  34. package/dist/AST/ObjectNode.js.map +1 -1
  35. package/dist/AST/OnNode.js +23 -2
  36. package/dist/AST/OnNode.js.map +1 -1
  37. package/dist/AST/ScopeMemberNode.js +40 -16
  38. package/dist/AST/ScopeMemberNode.js.map +1 -1
  39. package/dist/AST/ScopeNodeAbstract.js +29 -8
  40. package/dist/AST/ScopeNodeAbstract.js.map +1 -1
  41. package/dist/AST/StringFormatNode.js +42 -5
  42. package/dist/AST/StringFormatNode.js.map +1 -1
  43. package/dist/AST/WASM/Function.js +20 -4
  44. package/dist/AST/WASM/Function.js.map +1 -1
  45. package/dist/AST/WASM.js +26 -10
  46. package/dist/AST/WASM.js.map +1 -1
  47. package/dist/AST/WithNode.js +81 -41
  48. package/dist/AST/WithNode.js.map +1 -1
  49. package/dist/AST.js +91 -37
  50. package/dist/AST.js.map +1 -1
  51. package/dist/Attribute.d.ts +3 -0
  52. package/dist/Attribute.js +43 -19
  53. package/dist/Attribute.js.map +1 -1
  54. package/dist/Bencmark.js +77 -20
  55. package/dist/Bencmark.js.map +1 -1
  56. package/dist/Component.js +49 -15
  57. package/dist/Component.js.map +1 -1
  58. package/dist/DOM/DOMObject.d.ts +6 -1
  59. package/dist/DOM/DOMObject.js +22 -1
  60. package/dist/DOM/DOMObject.js.map +1 -1
  61. package/dist/DOM.js +450 -193
  62. package/dist/DOM.js.map +1 -1
  63. package/dist/EventDispatcher.js +153 -39
  64. package/dist/EventDispatcher.js.map +1 -1
  65. package/dist/MessageList.js +37 -6
  66. package/dist/MessageList.js.map +1 -1
  67. package/dist/Model.js +27 -6
  68. package/dist/Model.js.map +1 -1
  69. package/dist/Modifiers.d.ts +17 -0
  70. package/dist/Modifiers.js +100 -0
  71. package/dist/Modifiers.js.map +1 -0
  72. package/dist/Scope/DynamicScopeData.js +38 -7
  73. package/dist/Scope/DynamicScopeData.js.map +1 -1
  74. package/dist/Scope/ScopeData.js +29 -8
  75. package/dist/Scope/ScopeData.js.map +1 -1
  76. package/dist/Scope/ScopeDataAbstract.js +103 -27
  77. package/dist/Scope/ScopeDataAbstract.js.map +1 -1
  78. package/dist/Scope/WrappedArray.js +112 -26
  79. package/dist/Scope/WrappedArray.js.map +1 -1
  80. package/dist/Scope/properties/ArrayProperty.js +17 -1
  81. package/dist/Scope/properties/ArrayProperty.js.map +1 -1
  82. package/dist/Scope/properties/Property.js +38 -7
  83. package/dist/Scope/properties/Property.js.map +1 -1
  84. package/dist/Scope.js +70 -13
  85. package/dist/Scope.js.map +1 -1
  86. package/dist/SimplePromise.js +71 -30
  87. package/dist/SimplePromise.js.map +1 -1
  88. package/dist/Tag/TagList.js +22 -1
  89. package/dist/Tag/TagList.js.map +1 -1
  90. package/dist/Tag.d.ts +5 -9
  91. package/dist/Tag.js +512 -195
  92. package/dist/Tag.js.map +1 -1
  93. package/dist/attributes/KeyAbstract.js +1 -1
  94. package/dist/attributes/KeyAbstract.js.map +1 -1
  95. package/dist/attributes/KeyDown.js +1 -1
  96. package/dist/attributes/KeyDown.js.map +1 -1
  97. package/dist/attributes/KeyUp.js +1 -1
  98. package/dist/attributes/KeyUp.js.map +1 -1
  99. package/dist/attributes/LazyAttribute.js +4 -2
  100. package/dist/attributes/LazyAttribute.js.map +1 -1
  101. package/dist/attributes/List.js +77 -30
  102. package/dist/attributes/List.js.map +1 -1
  103. package/dist/attributes/On.d.ts +1 -1
  104. package/dist/attributes/On.js +10 -10
  105. package/dist/attributes/On.js.map +1 -1
  106. package/dist/attributes/RootAttribute.js +29 -8
  107. package/dist/attributes/RootAttribute.js.map +1 -1
  108. package/dist/attributes/ScopeAttribute.js +30 -9
  109. package/dist/attributes/ScopeAttribute.js.map +1 -1
  110. package/dist/attributes/SetAttribute.js +32 -11
  111. package/dist/attributes/SetAttribute.js.map +1 -1
  112. package/dist/attributes/StyleAttribute.js +27 -6
  113. package/dist/attributes/StyleAttribute.js.map +1 -1
  114. package/dist/attributes/XHRAttribute.js +28 -7
  115. package/dist/attributes/XHRAttribute.js.map +1 -1
  116. package/dist/helpers/ElementHelper.js +25 -4
  117. package/dist/helpers/ElementHelper.js.map +1 -1
  118. package/dist/helpers/decorators.js +22 -1
  119. package/dist/helpers/decorators.js.map +1 -1
  120. package/dist/version.d.ts +1 -1
  121. package/dist/version.js +1 -1
  122. package/package.json +1 -1
  123. package/src/AST/FunctionNode.ts +2 -0
  124. package/src/AST/ModifierNode.ts +1 -1
  125. package/src/AST/Node.ts +10 -5
  126. package/src/AST/OnNode.ts +1 -1
  127. package/src/AST/ScopeNodeAbstract.ts +3 -3
  128. package/src/AST.ts +1 -1
  129. package/src/Attribute.ts +19 -8
  130. package/src/DOM/DOMObject.ts +4 -1
  131. package/src/Modifiers.ts +54 -0
  132. package/src/Tag.ts +66 -37
  133. package/src/attributes/KeyAbstract.ts +1 -1
  134. package/src/attributes/KeyDown.ts +1 -1
  135. package/src/attributes/KeyUp.ts +1 -1
  136. package/src/attributes/LazyAttribute.ts +6 -2
  137. package/src/attributes/On.ts +10 -9
  138. package/src/attributes/XHRAttribute.ts +2 -2
  139. package/src/version.ts +1 -1
  140. package/tsconfig.base.json +2 -1
package/demo/vsn.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see demo.min.js.LICENSE.txt */
2
- /* Copyright 2022, VSNjs. vsn 0.1.122 (Wed, 02 Nov 2022 01:03:53 GMT) */if (window) window['VSN_VERSION']='0.1.122';
3
- (()=>{var t={7754:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Tree=e.AttributableNodes=e.TokenType=e.BlockType=void 0;var i,a,s=n(4123),u=n(7549),c=n(6094),l=n(8130),p=n(8052),f=n(329),h=n(3187),y=n(1185),d=n(3770),b=n(2020),v=n(6006),_=n(9446),g=n(2999),w=n(5728),m=n(3203),O=n(8673),T=n(1560),S=n(6357),A=n(9475),E=n(2751),P=n(9826),x=n(2321),j=n(4789),k=n(5155),N=n(3484),R=n(2947),C=n(1096),L=n(2393),M=n(6756),D=n(575),I=n(7893),F=n(8161);!function(t){t[t.BRACE=0]="BRACE",t[t.BRACKET=1]="BRACKET",t[t.PAREN=2]="PAREN",t[t.STATEMENT=3]="STATEMENT"}(i=e.BlockType||(e.BlockType={})),function(t){t[t.NULL=0]="NULL",t[t.WHITESPACE=1]="WHITESPACE",t[t.TYPE_INT=2]="TYPE_INT",t[t.TYPE_UINT=3]="TYPE_UINT",t[t.TYPE_FLOAT=4]="TYPE_FLOAT",t[t.TYPE_STRING=5]="TYPE_STRING",t[t.RETURN=6]="RETURN",t[t.NOT=7]="NOT",t[t.OF=8]="OF",t[t.AS=9]="AS",t[t.IN=10]="IN",t[t.WITH=11]="WITH",t[t.NAMED_STACK=12]="NAMED_STACK",t[t.FOR=13]="FOR",t[t.IF=14]="IF",t[t.ELSE_IF=15]="ELSE_IF",t[t.ELSE=16]="ELSE",t[t.FUNC=17]="FUNC",t[t.ON=18]="ON",t[t.CLASS=19]="CLASS",t[t.NAME=20]="NAME",t[t.L_BRACE=21]="L_BRACE",t[t.R_BRACE=22]="R_BRACE",t[t.L_BRACKET=23]="L_BRACKET",t[t.R_BRACKET=24]="R_BRACKET",t[t.L_PAREN=25]="L_PAREN",t[t.R_PAREN=26]="R_PAREN",t[t.TILDE=27]="TILDE",t[t.PERIOD=28]="PERIOD",t[t.COMMA=29]="COMMA",t[t.COLON=30]="COLON",t[t.SEMICOLON=31]="SEMICOLON",t[t.STRING_FORMAT=32]="STRING_FORMAT",t[t.STRING_LITERAL=33]="STRING_LITERAL",t[t.NUMBER_LITERAL=34]="NUMBER_LITERAL",t[t.BOOLEAN_LITERAL=35]="BOOLEAN_LITERAL",t[t.NULL_LITERAL=36]="NULL_LITERAL",t[t.STRICT_EQUALS=37]="STRICT_EQUALS",t[t.STRICT_NOT_EQUALS=38]="STRICT_NOT_EQUALS",t[t.EQUALS=39]="EQUALS",t[t.NOT_EQUALS=40]="NOT_EQUALS",t[t.GREATER_THAN_EQUAL=41]="GREATER_THAN_EQUAL",t[t.LESS_THAN_EQUAL=42]="LESS_THAN_EQUAL",t[t.GREATER_THAN=43]="GREATER_THAN",t[t.LESS_THAN=44]="LESS_THAN",t[t.ASSIGN=45]="ASSIGN",t[t.AND=46]="AND",t[t.OR=47]="OR",t[t.ADD=48]="ADD",t[t.SUBTRACT=49]="SUBTRACT",t[t.MULTIPLY=50]="MULTIPLY",t[t.DIVIDE=51]="DIVIDE",t[t.ADD_ASSIGN=52]="ADD_ASSIGN",t[t.SUBTRACT_ASSIGN=53]="SUBTRACT_ASSIGN",t[t.MULTIPLY_ASSIGN=54]="MULTIPLY_ASSIGN",t[t.DIVIDE_ASSIGN=55]="DIVIDE_ASSIGN",t[t.EXCLAMATION_POINT=56]="EXCLAMATION_POINT",t[t.ELEMENT_REFERENCE=57]="ELEMENT_REFERENCE",t[t.ELEMENT_ATTRIBUTE=58]="ELEMENT_ATTRIBUTE",t[t.ELEMENT_STYLE=59]="ELEMENT_STYLE",t[t.ELEMENT_QUERY=60]="ELEMENT_QUERY",t[t.UNIT=61]="UNIT",t[t.XHR_GET=62]="XHR_GET",t[t.XHR_POST=63]="XHR_POST",t[t.XHR_PUT=64]="XHR_PUT",t[t.XHR_DELETE=65]="XHR_DELETE",t[t.MODIFIER=66]="MODIFIER",t[t.DISPATCH_EVENT=67]="DISPATCH_EVENT"}(a=e.TokenType||(e.TokenType={}));var G=[{type:a.WHITESPACE,pattern:/^[\s\n\r]+/},{type:a.XHR_POST,pattern:/^>>/},{type:a.XHR_PUT,pattern:/^<>/},{type:a.XHR_GET,pattern:/^<</},{type:a.XHR_DELETE,pattern:/^></},{type:a.DISPATCH_EVENT,pattern:/^!!!?([_a-zA-Z][-_a-zA-Z0-9]+)/},{type:a.TYPE_INT,pattern:/^int+/},{type:a.TYPE_UINT,pattern:/^uint+/},{type:a.TYPE_FLOAT,pattern:/^float+/},{type:a.UNIT,pattern:/^\d+\.?\d?(?:cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)/},{type:a.TYPE_STRING,pattern:/^string+/},{type:a.BOOLEAN_LITERAL,pattern:/^(true|false)/},{type:a.NULL_LITERAL,pattern:/^null/},{type:a.RETURN,pattern:/^return\s/},{type:a.NOT,pattern:/^not\s/},{type:a.OF,pattern:/^of\s/},{type:a.IN,pattern:/^in\s/},{type:a.AS,pattern:/^as\s/},{type:a.WITH,pattern:/^with(?=\||\s)?/},{type:a.NAMED_STACK,pattern:/^stack(?=\||\s)?/},{type:a.FOR,pattern:/^for\s?(?=\()/},{type:a.IF,pattern:/^if\s?(?=\()/},{type:a.ELSE_IF,pattern:/^else if\s?(?=\()/},{type:a.ELSE,pattern:/^else\s?(?=\{)/},{type:a.FUNC,pattern:/^func\s/},{type:a.ON,pattern:/^on\s/},{type:a.CLASS,pattern:/^class\s/},{type:a.ELEMENT_ATTRIBUTE,pattern:/^\.?@[-_a-zA-Z0-9]*/},{type:a.ELEMENT_STYLE,pattern:/^\.?\$[-a-zA-Z0-9]*/},{type:a.ELEMENT_REFERENCE,pattern:/^#[-_a-zA-Z0-9]*/},{type:a.ELEMENT_QUERY,pattern:/^\?[>|<]?\(([#.\[\]:,=\-_a-zA-Z0-9*\s]*[\]_a-zA-Z0-9*])\)/},{type:a.NAME,pattern:/^[_a-zA-Z][_a-zA-Z0-9]*/},{type:a.NUMBER_LITERAL,pattern:/^-?\d+(?:\.\d+)?(?:e[+\-]?\d+)?/i},{type:a.L_BRACE,pattern:/^{/},{type:a.R_BRACE,pattern:/^}/},{type:a.L_BRACKET,pattern:/^\[/},{type:a.R_BRACKET,pattern:/^]/},{type:a.L_PAREN,pattern:/^\(/},{type:a.R_PAREN,pattern:/^\)/},{type:a.TILDE,pattern:/^~/},{type:a.PERIOD,pattern:/^\./},{type:a.COMMA,pattern:/^,/},{type:a.EQUALS,pattern:/^==/},{type:a.NOT_EQUALS,pattern:/^!=/},{type:a.GREATER_THAN_EQUAL,pattern:/^>=/},{type:a.LESS_THAN_EQUAL,pattern:/^<=/},{type:a.GREATER_THAN,pattern:/^>/},{type:a.LESS_THAN,pattern:/^</},{type:a.COLON,pattern:/^:/},{type:a.SEMICOLON,pattern:/^;/},{type:a.STRING_FORMAT,pattern:/^`([^`]*)`/},{type:a.STRING_LITERAL,pattern:/^"([^"]*)"/},{type:a.STRING_LITERAL,pattern:/^'([^']*)'/},{type:a.AND,pattern:/^&&/},{type:a.OR,pattern:/^\|\|/},{type:a.ADD_ASSIGN,pattern:/^\+=/},{type:a.SUBTRACT_ASSIGN,pattern:/^-=/},{type:a.MULTIPLY_ASSIGN,pattern:/^\*=/},{type:a.DIVIDE_ASSIGN,pattern:/^\/=/},{type:a.ADD,pattern:/^\+/},{type:a.SUBTRACT,pattern:/^-/},{type:a.MULTIPLY,pattern:/^\*/},{type:a.DIVIDE,pattern:/^\//},{type:a.ASSIGN,pattern:/^=/},{type:a.EXCLAMATION_POINT,pattern:/^!/},{type:a.MODIFIER,pattern:/^\|\S+/}];e.AttributableNodes=[s.RootScopeMemberNode,u.ScopeMemberNode,c.ElementAttributeNode];var B=function(){function t(e){this.code=e,t.cache[e]?this._root=t.cache[e]:(this.parse(),t.cache[e]=this._root)}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root},enumerable:!1,configurable:!0}),t.prototype.parse=function(){var e=t.tokenize(this.code);this._root=t.processTokens(e)},t.prototype.evaluate=function(e,n,i){return void 0===i&&(i=null),r(this,void 0,void 0,(function(){var r,a;return o(this,(function(o){switch(o.label){case 0:return r={scope:e,dom:n,tag:i,tree:this},t.executing.add(r),[4,this._root.evaluate(e,n,i)];case 1:return a=o.sent(),t.executing.delete(r),[2,a]}}))}))},t.prototype.prepare=function(t,e,n){return void 0===n&&(n=null),r(this,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return this._root.isPreparationRequired()?[4,this._root.prepare(t,e,n,{initial:!0})]:[2];case 1:return[2,r.sent()]}}))}))},t.prototype.bindToScopeChanges=function(t,e,n,i){return void 0===i&&(i=null),r(this,void 0,void 0,(function(){var r,a,l,p,f;return o(this,(function(o){switch(o.label){case 0:r=0,a=this._root.findChildrenByTypes([s.RootScopeMemberNode,u.ScopeMemberNode,c.ElementAttributeNode],"ScopeMemberNodes"),o.label=1;case 1:return r<a.length?(l=a[r],p=t,l instanceof u.ScopeMemberNode?[4,l.scope.evaluate(t,n)]:[3,3]):[3,8];case 2:return p=o.sent(),[3,5];case 3:return l instanceof c.ElementAttributeNode&&l.elementRef?[4,l.elementRef.evaluate(t,n,i)]:[3,5];case 4:p=o.sent()[0].scope,o.label=5;case 5:return[4,l.name.evaluate(t,n,i)];case 6:f=o.sent(),p.on("change:"+f,e),o.label=7;case 7:return r++,[3,1];case 8:return[2]}}))}))},t.reprepareExecutingTrees=function(){var e=this;t.executing.forEach((function(t){return r(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,t.tree.prepare(t.scope,t.dom,t.tag)];case 1:return e.sent(),[2]}}))}))}))},t.tokenize=function(t){var e,n=[];if(!t||0===t.length)return n;do{e=!1;for(var r=0,o=G;r<o.length;r++){var i=o[r],a=i.pattern.exec(t);if(a){n.push({type:i.type,value:a[a.length-1],full:a[0],groups:a}),t=t.substring(a[0].length),e=!0;break}}}while(t.length>0&&e);return n},t.stripWhiteSpace=function(t){for(var e=0;e<t.length;e++)t[e].type===a.WHITESPACE&&(t.splice(e,1),e--);return t},t.processTokens=function(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=[],i=r,G=n,B=0;for(t.stripWhiteSpace(e);e.length>0&&!(++B>1e3);){e[0].type===a.RETURN&&e.shift();var U=e[0];if(U.type===a.NAME)G=new s.RootScopeMemberNode(new p.LiteralNode(U.value)),e.shift();else if(j.XHRNode.match(e))G=j.XHRNode.parse(G,e[0],e);else if(U.type===a.DISPATCH_EVENT)G=M.DispatchEventNode.parse(G,e[0],e);else if(U.type===a.WITH)i=G=D.WithNode.parse(G,e[0],e),o.push(G),G=null;else if(U.type===a.NAMED_STACK)i=G=F.NamedStackNode.parse(G,e[0],e),o.push(G),G=null;else if(U.type===a.AS)G=I.AsNode.parse(G,e[0],e);else if(U.type===a.IF)i=G=f.IfStatementNode.parse(G,U,e),o.push(G),G=null;else if(U.type===a.FOR)i=G=h.ForStatementNode.parse(G,U,e),o.push(G),G=null;else if(U.type===a.FUNC)i=G=N.FunctionNode.parse(G,U,e),o.push(G),G=null;else if(U.type===a.ON)i=G=C.OnNode.parse(G,U,e),o.push(G),G=null;else if(U.type===a.CLASS)i=G=R.ClassNode.parse(G,U,e),o.push(G),G=null;else if(k.StringFormatNode.match(e))G=k.StringFormatNode.parse(G,e[0],e);else if(U.type===a.STRING_LITERAL)G=new p.LiteralNode(U.value),e.shift();else if(U.type===a.NUMBER_LITERAL)G=new y.NumberLiteralNode(U.value),e.shift();else if(e[0].type===a.ELEMENT_REFERENCE)G=new d.ElementQueryNode(e[0].value,!0),e.shift();else if(e[0].type===a.ELEMENT_QUERY)G=d.ElementQueryNode.parse(G,e[0],e);else if(e[0].type===a.L_BRACKET)G=G?b.IndexNode.parse(G,U,e):v.ArrayNode.parse(G,U,e);else if(e[0].type===a.L_BRACE)G=_.ObjectNode.parse(G,U,e);else if(e[0].type===a.ELEMENT_ATTRIBUTE)G=new c.ElementAttributeNode(G,e[0].value),e.shift();else if(e[0].type===a.ELEMENT_STYLE)G=new g.ElementStyleNode(G,e[0].value),e.shift();else if(null!==G&&U.type===a.PERIOD&&e[1].type===a.NAME)G=new u.ScopeMemberNode(G,new p.LiteralNode(e[1].value)),e.splice(0,2);else if(e[0].type===a.L_PAREN){for(var H=[],V=0,q=t.getBlockTokens(e);V<q.length;V++){var W=q[V];H.push(t.processTokens(W))}G=G?new w.FunctionCallNode(G,new m.FunctionArgumentNode(H)):new l.BlockNode(H)}else if(e[0].type===a.SEMICOLON)G&&o.push(G),G=null,e.shift();else if(O.InNode.match(e))G=O.InNode.parse(G,U,e);else if(T.ComparisonNode.match(e))G=T.ComparisonNode.parse(G,U,e);else if(S.ArithmeticNode.match(e))G=S.ArithmeticNode.parse(G,U,e);else if(A.AssignmentNode.match(e))G=A.AssignmentNode.parse(G,U,e);else if(e[0].type===a.WHITESPACE)e.shift();else if(e[0].type===a.UNIT)G=new E.UnitLiteralNode(e[0].value),e.shift();else if(e[0].type===a.BOOLEAN_LITERAL)G=new P.BooleanLiteralNode(e[0].value),e.shift();else if(e[0].type===a.NULL_LITERAL)G=new p.LiteralNode(null),e.shift();else if(e[0].type===a.EXCLAMATION_POINT)G=x.NotNode.parse(G,e[0],e);else{if(e[0].type!==a.MODIFIER){var K=t.toCode(e,10);throw Error("Syntax Error. Near "+K)}L.ModifierNode.parse(G||i,e[0],e)}}return G&&o.push(G),new l.BlockNode(o)},t.toCode=function(t,e){var n="";e=e||t.length;for(var r=0;r<e&&t[r];r++)n+=t[r].value;return n},t.getBlockInfo=function(t){var e,n,r,o,s,u=t[0];switch(e=u.type===a.L_PAREN?i.PAREN:u.type===a.L_BRACE?i.BRACE:u.type===a.L_BRACKET?i.BRACKET:i.STATEMENT){case i.PAREN:n=a.L_PAREN,r=a.R_PAREN,o="(",s=")";break;case i.BRACE:n=a.L_BRACE,r=a.R_BRACE,o="{",s="}";break;case i.BRACKET:n=a.L_BRACKET,r=a.R_BRACKET,o="[",s="]";break;default:n=null,r=a.SEMICOLON,o=null,s=";"}return{type:e,open:n,close:r,openCharacter:o,closeCharacter:s}},t.getNextStatementTokens=function(e,n,r,o){void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===o&&(o=!1);var i=t.getBlockInfo(e);return r&&e[0].type===i.open&&e.shift(),t.getTokensUntil(e,i.close,n,o)},t.getBlockTokens=function(e,n){void 0===n&&(n=a.COMMA);for(var r=t.getBlockInfo(e),o=0,i=[],s=[],u=0;u<e.length;u++){var c=e[u];if(c.type===r.open?(o+=1)>1&&s.push(c):c.type===r.close?(o-=1)>0&&s.push(c):null!==n&&c.type===n&&1==o?(i.push(s),s=[]):c.type!==a.WHITESPACE&&s.push(c),e.shift(),u--,0===o)return s.length>0&&i.push(s),i}throw Error("Invalid Syntax, missing "+r.closeCharacter)},t.getTokensUntil=function(e,n,r,o,i,s){void 0===n&&(n=a.SEMICOLON),void 0===r&&(r=!0),void 0===o&&(o=!1),void 0===i&&(i=!1),void 0===s&&(s=null);var u=[];s=s||t.getBlockInfo(e);for(var c=0,l=0,p=0,f=0;f<e.length;f++){var h=e[f];if(h.type===s.open&&0===f||(h.type===a.L_PAREN&&n!==a.L_PAREN&&(c+=1),h.type===a.L_BRACE&&n!==a.L_BRACE&&(l+=1),h.type===a.L_BRACKET&&n!==a.L_BRACKET&&(p+=1)),[n,a.R_BRACKET,a.R_BRACE,a.R_PAREN].indexOf(h.type)>-1)if(c>0&&h.type===a.R_PAREN)c-=1;else if(l>0&&h.type===a.R_BRACE)l-=1;else if(p>0&&h.type===a.R_BRACKET)p-=1;else{if(h.type===n&&0===c&&0===l&&0===p){o&&u.push(h),(o||r)&&h.type!==a.SEMICOLON&&e.shift();break}if(h.type!==n||!(c>0||l>0||p>0)){if(i)break;throw Error("Invalid syntax, expecting "+n+".")}}u.push(h),e.shift(),f--}return u},t.consumeTypes=function(t,e){for(var n=[],r=0,o=t;r<o.length;r++){var i=o[r];if(!(e.indexOf(i.type)>-1))break;n.push(i)}return t.splice(0,n.length),n},t.apply=function(e,n,i,a){return r(this,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return[4,new t(e).evaluate(n,i,a)];case 1:return[2,r.sent()]}}))}))},t.executing=new Set,t.cache={},t}();e.Tree=B},6357:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ArithmeticNode=void 0;var s=n(7754),u=function(t){function e(e,n,r){var o=t.call(this)||this;return o.left=e,o.right=n,o.type=r,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.left,this.right]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o;return a(this,(function(i){switch(i.label){case 0:return[4,this.left.evaluate(t,e,n)];case 1:return r=i.sent(),[4,this.right.evaluate(t,e,n)];case 2:switch(o=i.sent(),this.type){case s.TokenType.ADD:return[2,r+o];case s.TokenType.SUBTRACT:return[2,r-o];case s.TokenType.MULTIPLY:return[2,r*o];case s.TokenType.DIVIDE:return[2,r/o]}return[2]}}))}))},e.match=function(t){return[s.TokenType.ADD,s.TokenType.SUBTRACT,s.TokenType.MULTIPLY,s.TokenType.DIVIDE].indexOf(t[0].type)>-1},e.parse=function(t,n,r){return r.splice(0,1),new e(t,s.Tree.processTokens(s.Tree.getNextStatementTokens(r)),n.type)},e}(n(8403).Node);e.ArithmeticNode=u},6006:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNode=void 0;var u=n(8572),c=n(7754),l=function(t){function e(e){var n=t.call(this)||this;return n.values=e,n}return o(e,t),e.prototype._getChildNodes=function(){return new(Array.bind.apply(Array,s([void 0],this.values)))},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,s,c,l;return a(this,(function(a){switch(a.label){case 0:r=new u.WrappedArray,o=0,i=this.values,a.label=1;case 1:return o<i.length?(s=i[o],l=(c=r).push,[4,s.evaluate(t,e,n)]):[3,4];case 2:l.apply(c,[a.sent()]),a.label=3;case 3:return o++,[3,1];case 4:return[2,r]}}))}))},e.match=function(t){return t[0].type===c.TokenType.L_BRACKET},e.parse=function(t,n,r){for(var o=[],i=0,a=c.Tree.getBlockTokens(r);i<a.length;i++){var s=a[i];o.push(c.Tree.processTokens(s))}return new e(o)},e}(n(8403).Node);e.ArrayNode=l},7893:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.AsNode=void 0;var s=function(t){function e(e,n){var r=t.call(this)||this;return r.context=e,r.name=n,r}return o(e,t),e.prototype._getChildNodes=function(){return[this.context]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r;return a(this,(function(o){switch(o.label){case 0:return[4,this.context.evaluate(t,e,n)];case 1:return r=o.sent(),t.set(this.name,r),[2,r]}}))}))},e.parse=function(t,n,r){return r.shift(),new e(t,r.shift().value)},e}(n(8403).Node);e.AsNode=s},9475:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.AssignmentNode=void 0;var s=n(4843),u=n(3276),c=n(7754),l=n(8403),p=n(4123),f=n(7549),h=n(3770),y=n(6094),d=n(2999),b=n(2751),v=n(2018),_=function(t){function e(e,n,r){var o=t.call(this)||this;return o.left=e,o.right=n,o.type=r,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.left,this.right]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,c,l,p,b,_,g,w;return a(this,(function(a){switch(a.label){case 0:return r=[],[4,this.left.name.evaluate(t,e,n)];case 1:return o=a.sent(),this.left instanceof f.ScopeMemberNode?[4,this.left.scope.evaluate(t,e,n)]:[3,3];case 2:return i=a.sent(),this.left.scope instanceof h.ElementQueryNode?this.left.scope.first?r.push(i):r.push.apply(r,i):i instanceof s.Scope?r.push(i):i instanceof v.ScopeObject?r.push(i.scope):r.push(t),[3,6];case 3:return(this.left instanceof y.ElementAttributeNode||this.left instanceof d.ElementStyleNode)&&this.left.elementRef?[4,this.left.elementRef.evaluate(t,e,n)]:[3,5];case 4:return c=a.sent(),this.left.elementRef.first||c instanceof u.DOMObject?r.push(c):r=c,[3,6];case 5:r.push(t),a.label=6;case 6:l=[],p=0,b=r,a.label=7;case 7:return p<b.length?(_=b[p])?_ instanceof u.DOMObject?[4,this.handleDOMObject(o,e,t,_,n)]:[3,9]:(console.log("bad scope",o,this.left,r),[3,12]):[3,13];case 8:return a.sent(),[3,12];case 9:return _.$wrapped&&_.$scope&&(_=_.$scope),[4,this.left.evaluate(t,e,n)];case 10:return g=a.sent(),[4,this.right.evaluate(t,e,n)];case 11:w=a.sent(),g=this.handle(o,g,w,_),l.push(g),a.label=12;case 12:return p++,[3,7];case 13:return[2,l.length>1?l:l[0]]}}))}))},e.prototype.handle=function(t,e,n,r){return e=e instanceof Array?this.handleArray(t,e,n,r):e instanceof b.UnitLiteral||n instanceof b.UnitLiteral?this.handleUnit(t,e,n,r):Number.isFinite(e)?this.handleNumber(t,e,n,r):this.handleString(t,e,n,r)},e.prototype.handleNumber=function(t,e,n,r){switch(null===n||Number.isFinite(n)||(n=parseFloat(""+n)),e=e,n=n,this.type){case c.TokenType.ASSIGN:e=n;break;case c.TokenType.ADD_ASSIGN:e+=n;break;case c.TokenType.SUBTRACT_ASSIGN:e-=n;break;case c.TokenType.MULTIPLY_ASSIGN:e*=n;break;case c.TokenType.DIVIDE_ASSIGN:e/=n}return r.set(t,e),e},e.prototype.handleString=function(t,e,n,r){switch(this.type){case c.TokenType.ASSIGN:e=n;break;case c.TokenType.ADD_ASSIGN:e=""+e+n;break;case c.TokenType.SUBTRACT_ASSIGN:e.replace(n,"");break;case c.TokenType.MULTIPLY_ASSIGN:e*=n;break;case c.TokenType.DIVIDE_ASSIGN:e/=n}return r.set(t,e),e},e.prototype.handleUnit=function(t,e,n,r){e instanceof b.UnitLiteral||(e=new b.UnitLiteral(e)),n instanceof b.UnitLiteral||(n=new b.UnitLiteral(n));var o=e.unit||n.unit||"px";switch(this.type){case c.TokenType.ASSIGN:e=n;break;case c.TokenType.ADD_ASSIGN:e=new b.UnitLiteral(""+(e.amount+n.amount)+o);break;case c.TokenType.SUBTRACT_ASSIGN:e=new b.UnitLiteral(""+(e.amount-n.amount)+o);break;case c.TokenType.MULTIPLY_ASSIGN:e=new b.UnitLiteral(""+e.amount*n.amount+o);break;case c.TokenType.DIVIDE_ASSIGN:e=new b.UnitLiteral(""+e.amount/n.amount+o)}return r.set(t,e),e},e.prototype.handleDOMObject=function(t,e,n,r,o){return i(this,void 0,void 0,(function(){var i,s;return a(this,(function(a){switch(a.label){case 0:return i=r.scope.get(t),[4,this.right.evaluate(n,e,o)];case 1:return s=a.sent(),[2,this.handle(t,i,s,r.scope)]}}))}))},e.prototype.handleArray=function(t,e,n,r){switch(n instanceof Array||(n=[n]),this.type){case c.TokenType.ASSIGN:e.splice(0,e.length),e.push.apply(e,n);break;case c.TokenType.ADD_ASSIGN:e.push.apply(e,n);break;case c.TokenType.SUBTRACT_ASSIGN:for(var o=e.length-1;o>=0;o--)n.indexOf(e[o])>-1&&(e.splice(o,1),o++);break;case c.TokenType.TILDE:for(var i=0,a=n;i<a.length;i++){var s=a[i],u=e.indexOf(s);u>-1?e.splice(u,1):e.push(s)}}return r.dispatch("change:"+t),e},e.match=function(t){return[c.TokenType.ASSIGN,c.TokenType.ADD_ASSIGN,c.TokenType.SUBTRACT_ASSIGN,c.TokenType.MULTIPLY_ASSIGN,c.TokenType.DIVIDE_ASSIGN,c.TokenType.TILDE].indexOf(t[0].type)>-1},e.parse=function(t,n,r){if(!(t instanceof p.RootScopeMemberNode||t instanceof f.ScopeMemberNode||t instanceof y.ElementAttributeNode||t instanceof d.ElementStyleNode))throw SyntaxError("Invalid assignment syntax near "+c.Tree.toCode(r.splice(0,10)));r.splice(0,1);var o=c.Tree.getTokensUntil(r,c.TokenType.SEMICOLON,!1,!0,!0,{type:c.BlockType.STATEMENT,open:c.TokenType.NULL,close:c.TokenType.SEMICOLON,openCharacter:"",closeCharacter:";"});return new e(t,c.Tree.processTokens(o),n.type)},e}(l.Node);e.AssignmentNode=_},8130:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.BlockNode=void 0;var u=function(t){function e(e){var n=t.call(this)||this;return n.statements=e,n}return o(e,t),e.prototype._getChildNodes=function(){return s([],this.statements)},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o;return a(this,(function(i){switch(i.label){case 0:r=null,o=0,i.label=1;case 1:return o<this.statements.length?[4,this.statements[o].evaluate(t,e,n)]:[3,4];case 2:r=i.sent(),i.label=3;case 3:return o++,[3,1];case 4:return[2,r]}}))}))},e}(n(8403).Node);e.BlockNode=u},9826:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanLiteralNode=void 0;var i=function(t){function e(e){var n=t.call(this,e)||this;return n.value=e,n.value="true"===e,n}return o(e,t),e}(n(8052).LiteralNode);e.BooleanLiteralNode=i},2947:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.ClassNode=void 0;var u=n(4843),c=n(712),l=n(7754),p=n(8403),f=n(1371),h=n(1096),y=function(t){function e(e,n){var r=t.call(this)||this;return r.selector=e,r.block=n,r.requiresPrep=!0,r.classScope=new u.Scope,r}return o(e,t),Object.defineProperty(e.prototype,"fullSelector",{get:function(){return this._fullSelector},enumerable:!1,configurable:!0}),e.prototype.updateMeta=function(t){return(t=t||{}).ClassNode=this,t},e.prototype.prepare=function(t,n,r,o){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var t,i,s=this;return a(this,(function(a){switch(a.label){case 0:return o=Object.assign({},o)||{},t=!!o.initial,i=!1,o.ClassNodePrepare=t,t?(o.ClassNodeSelector?(this._parentSelector=o.ClassNodeSelector,e.classChildren[o.ClassNodeSelector].push(this.selector),o.ClassNodeSelector=o.ClassNodeSelector+" "+this.selector):(i=!0,o.ClassNodeSelector=this.selector),this._fullSelector=o.ClassNodeSelector,e.classes[this._fullSelector]?[2]:(e.classes[this._fullSelector]=this,e.classChildren[this._fullSelector]=[],e.preppedTags[this._fullSelector]=[],void 0===e.classParents[this.selector]&&(e.classParents[this.selector]=[]),e.classParents[this.selector].push(this._fullSelector),[4,this.block.prepare(this.classScope,n,r,o)])):[3,5];case 1:return a.sent(),f.Registry.class(this),i?n.built?[4,this.findClassElements(n)]:[3,3]:[3,4];case 2:return a.sent(),[3,4];case 3:n.once("builtRoot",(function(){return s.findClassElements(n)})),a.label=4;case 4:return[3,7];case 5:return o.PrepForSelector!==this.fullSelector?[3,7]:[4,this.block.prepare(r.scope,n,r,o)];case 6:a.sent(),a.label=7;case 7:return[2]}}))}))},e.prototype.findClassElements=function(t,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,s,u,l,p,f,h,y,d,b,v;return a(this,(function(a){switch(a.label){case 0:r=[],o=0,i=Array.from(t.querySelectorAll(this.selector,n)),a.label=1;case 1:return o<i.length?(s=i[o],l=(u=r).push,[4,e.addElementClass(this._fullSelector,s,t,s[c.Tag.TaggedVariable]||null)]):[3,4];case 2:l.apply(u,[a.sent()]),a.label=3;case 3:return o++,[3,1];case 4:p=0,f=e.classChildren[this._fullSelector],a.label=5;case 5:if(!(p<f.length))return[3,10];if(h=f[p],!(y=e.classes[this._fullSelector+" "+h]))return[3,9];d=0,b=r,a.label=6;case 6:return d<b.length?(v=b[d],[4,y.findClassElements(t,v)]):[3,9];case 7:a.sent(),a.label=8;case 8:return d++,[3,6];case 9:return p++,[3,5];case 10:return[2]}}))}))},e.prototype.constructTag=function(t,n,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var o;return a(this,(function(i){switch(i.label){case 0:return null===r&&(r=this.classScope.has("construct")),t.createScope(!0),(o=this.updateMeta()).PrepForSelector=this.fullSelector,[4,this.block.prepare(t.scope,n,t,o)];case 1:return i.sent(),r?[4,this.classScope.get("construct").getFunction(t.scope,n,t,!1)]:[3,4];case 2:return[4,i.sent()()];case 3:i.sent(),i.label=4;case 4:return t.dispatch(this.fullSelector+".construct",t.element.id),e.preppedTags[this.fullSelector].push(t),e.addPreparedClassToElement(t.element,this.fullSelector),[2]}}))}))},e.prototype.deconstructTag=function(t,n,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var o,i,s,u;return a(this,(function(a){switch(a.label){case 0:return null===r&&(r=this.classScope.has("deconstruct")),r?[4,this.classScope.get("deconstruct").getFunction(t.scope,n,t,!1)]:[3,3];case 1:return[4,a.sent()()];case 2:a.sent(),a.label=3;case 3:for(o=0,i=this.classScope.keys;o<i.length;o++)s=i[o],this.classScope.get(s)instanceof h.OnNode&&(u=this.classScope.get(s),t.removeContextEventHandlers(u));return t.dispatch(this.fullSelector+".deconstruct"),e.preppedTags[this.fullSelector].splice(e.preppedTags[this.fullSelector].indexOf(t),1),[4,e.removePreparedClassFromElement(t.element,this.fullSelector)];case 4:return a.sent(),[2]}}))}))},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){return a(this,(function(t){return[2,null]}))}))},e.parse=function(t,n,r){r.shift();for(var o=[],i=0,a=r;i<a.length;i++){var s=a[i];if(s.type===l.TokenType.L_BRACE)break;o.push(s.value)}var u=o.join("").trim();return u.startsWith(">")&&(u=":scope "+u),r.splice(0,o.length),new e(u,l.Tree.processTokens(l.Tree.getNextStatementTokens(r,!0,!0)))},e.prototype.getSelectorPath=function(){for(var t=[this.selector],n=this._parentSelector;n;)t.push(e.classes[n].selector),n=e.classes[n]._parentSelector;return t.reverse()},e.checkForClassChanges=function(t,n,r){var o;return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var i,u,l,p,f,h,y,d,b,v,_,g,w,m,O,T,S,A,E;return a(this,(function(a){switch(a.label){case 0:for(i=s([t.tagName.toLowerCase()],Array.from(t.classList).map((function(t){return"."+t}))),u=s([],e.getClassesForElement(t)),t.id&&i.push("#"+t.id),l=0,p=i;l<p.length;l++)d=p[l],(f=e.classParents[d])&&u.push.apply(u,f.filter((function(t){return!u.includes(t)})));return r?[3,2]:[4,n.getTagForElement(t,!0)];case 1:r=a.sent(),a.label=2;case 2:h=0,y=u,a.label=3;case 3:return h<y.length?(d=y[h],b=e.getClassesForElement(t).includes(d),v=null===(o=e.classes[d])||void 0===o?void 0:o.getSelectorPath(),_=n.querySelectPath(v),g=_.includes(t),w=!1,!g||b?[3,5]:[4,e.addElementClass(d,t,n,r)]):[3,14];case 4:return a.sent(),w=!0,[3,7];case 5:return g||!b?[3,7]:[4,e.removeElementClass(d,t,n,r)];case 6:a.sent(),w=!0,a.label=7;case 7:if(!(w&&e.classChildren[d].length>0))return[3,13];m=0,O=e.classChildren[d],a.label=8;case 8:if(!(m<O.length))return[3,13];T=O[m],S=0,A=Array.from(n.querySelectorAll(T,r)),a.label=9;case 9:return S<A.length?(E=A[S],[4,e.checkForClassChanges(E,n,E[c.Tag.TaggedVariable]||null)]):[3,12];case 10:a.sent(),a.label=11;case 11:return S++,[3,9];case 12:return m++,[3,8];case 13:return h++,[3,3];case 14:return[2]}}))}))},e.getClassesForElement=function(t){return t[e.ClassesVariable]||(t[e.ClassesVariable]=[]),t[e.ClassesVariable]},e.addPreparedClassToElement=function(t,n){e.getClassesForElement(t).push(n)},e.removePreparedClassFromElement=function(t,n){var r=e.getClassesForElement(t);r.splice(r.indexOf(n),1)},e.addElementClass=function(t,n,r,o){return void 0===o&&(o=null),i(this,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return e.getClassesForElement(n).includes(t)?[2]:o?[3,2]:[4,r.getTagForElement(n,!0)];case 1:o=a.sent(),a.label=2;case 2:return o?(i=f.Registry.instance.classes.getSynchronous(t))?[4,i.constructTag(o,r)]:[3,4]:(console.error("no tag found for element",n),[2]);case 3:a.sent(),a.label=4;case 4:return[2,o]}}))}))},e.removeElementClass=function(t,n,r,o){return void 0===o&&(o=null),i(this,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return e.getClassesForElement(n).includes(t)?o?[3,2]:[4,r.getTagForElement(n,!0)]:[2];case 1:o=a.sent(),a.label=2;case 2:return(i=f.Registry.instance.classes.getSynchronous(t))?[4,i.deconstructTag(o,r)]:[3,4];case 3:a.sent(),a.label=4;case 4:return[2]}}))}))},e.isClass=function(t){return!!this.classes[t]},e.ClassesVariable="_vsn_classes",e.classes={},e.classParents={},e.classChildren={},e.preppedTags={},e}(p.Node);e.ClassNode=y},1560:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ComparisonNode=void 0;var s=n(7754),u=function(t){function e(e,n,r){var o=t.call(this)||this;return o.left=e,o.right=n,o.type=r,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.left,this.right]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o;return a(this,(function(i){switch(i.label){case 0:return[4,this.left.evaluate(t,e,n)];case 1:return r=i.sent(),[4,this.right.evaluate(t,e,n)];case 2:switch(o=i.sent(),this.type){case s.TokenType.EQUALS:return[2,r===o];case s.TokenType.NOT_EQUALS:return[2,r!==o];case s.TokenType.GREATER_THAN:return[2,r>o];case s.TokenType.LESS_THAN:return[2,r<o];case s.TokenType.GREATER_THAN_EQUAL:return[2,r>=o];case s.TokenType.LESS_THAN_EQUAL:return[2,r<=o]}return[2]}}))}))},e.match=function(t){return[s.TokenType.EQUALS,s.TokenType.NOT_EQUALS,s.TokenType.GREATER_THAN,s.TokenType.LESS_THAN,s.TokenType.GREATER_THAN_EQUAL,s.TokenType.LESS_THAN_EQUAL].indexOf(t[0].type)>-1},e.parse=function(t,n,r){return r.splice(0,1),new e(t,s.Tree.processTokens(s.Tree.getNextStatementTokens(r)),n.type)},e}(n(8403).Node);e.ComparisonNode=u},6765:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConditionalNode=void 0;var s=n(8572),u=function(t){function e(e,n){var r=t.call(this)||this;return r.condition=e,r.block=n,r}return o(e,t),e.prototype._getChildNodes=function(){return[this.condition,this.block]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r;return a(this,(function(o){switch(o.label){case 0:return[4,this.condition.evaluate(t,e,n)];case 1:return r=o.sent(),!1,[2,r instanceof s.WrappedArray?r.length>0:!!r]}}))}))},e}(n(8403).Node);e.ConditionalNode=u},6756:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.DispatchEventNode=void 0;var s=n(4843),u=n(7754),c=n(8403),l=n(1525),p=function(t){function e(e,n,r){void 0===r&&(r=!1);var o=t.call(this)||this;return o.name=e,o.data=n,o.bubbles=r,o}return o(e,t),e.prototype._getChildNodes=function(){var t=[];return this.data&&t.push(this.data),t},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o;return a(this,(function(i){switch(i.label){case 0:return this.data?[4,this.data.evaluate(t,e,n)]:[3,2];case 1:return o=i.sent(),[3,3];case 2:o={},i.label=3;case 3:return(r=o)instanceof s.Scope?r=r.data.getData():r instanceof l.ScopeData&&(r=r.getData()),r.source=n.element,n.element.dispatchEvent(new CustomEvent(this.name,{bubbles:this.bubbles,detail:r})),[2]}}))}))},e.parse=function(t,n,r){var o=r.shift(),i=null;if(r.length&&r[0].type===u.TokenType.L_PAREN){var a=u.Tree.getNextStatementTokens(r,!0,!0,!1);i=u.Tree.processTokens(a).statements[0]}return new e(o.value,i,o.full.startsWith("!!!"))},e}(c.Node);e.DispatchEventNode=p},6094:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ElementAttributeNode=void 0;var s=n(1341),u=n(8403),c=n(3770),l=n(8052),p=n(3276),f=n(2020),h=function(t){function e(e,n){var r=t.call(this)||this;return r.elementRef=e,r.attr=n,r.requiresPrep=!0,r}return o(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return new l.LiteralNode("@"+this.attributeName)},enumerable:!1,configurable:!0}),e.prototype._getChildNodes=function(){var t=[];return this.elementRef&&t.push(this.elementRef),t},Object.defineProperty(e.prototype,"attributeName",{get:function(){return this.attr.startsWith(".")?this.attr.substring(2):this.attr.substring(1)},enumerable:!1,configurable:!0}),e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i=this;return a(this,(function(a){switch(a.label){case 0:return this.elementRef instanceof c.ElementQueryNode?[4,this.elementRef.evaluate(t,e,n,!0)]:[3,2];case 1:return r=a.sent(),[3,5];case 2:return this.elementRef instanceof f.IndexNode?[4,this.elementRef.evaluate(t,e,n,!0)]:[3,4];case 3:return o=a.sent(),r=o instanceof s.TagList?o:new s.TagList(o),[3,5];case 4:if(!n)return[2];r=new s.TagList(n),a.label=5;case 5:return 1===r.length?[2,r[0].scope.get("@"+this.attributeName)]:[2,r.map((function(t){return t.scope.get("@"+i.attributeName)}))]}}))}))},e.prototype.prepare=function(t,e,n,r){return void 0===n&&(n=null),void 0===r&&(r=null),i(this,void 0,void 0,(function(){var o,i,u,c;return a(this,(function(a){switch(a.label){case 0:return this.elementRef?[4,this.elementRef.prepare(t,e,n,r)]:[3,10];case 1:return a.sent(),[4,this.elementRef.evaluate(t,e,n,!0)];case 2:if(!((o=a.sent())instanceof s.TagList))return[3,7];i=0,u=o,a.label=3;case 3:return i<u.length?[4,null==(c=u[i])?void 0:c.watchAttribute(this.attributeName)]:[3,6];case 4:a.sent(),a.label=5;case 5:return i++,[3,3];case 6:return[3,9];case 7:return o instanceof p.DOMObject?[4,o.watchAttribute(this.attributeName)]:[3,9];case 8:a.sent(),a.label=9;case 9:return[3,12];case 10:return n?[4,n.watchAttribute(this.attributeName)]:[3,12];case 11:a.sent(),a.label=12;case 12:return[2]}}))}))},e}(u.Node);e.ElementAttributeNode=h},3770:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ElementQueryNode=void 0;var s=n(9033),u=function(t){function e(e,n,r){void 0===n&&(n=!1),void 0===r&&(r=s.EQuerySelectDirection.ALL);var o=t.call(this)||this;return o.query=e,o.first=n,o.direction=r,o.requiresPrep=!0,o}return o(e,t),e.prototype.evaluate=function(t,e,n,r){return void 0===n&&(n=null),void 0===r&&(r=!1),i(this,void 0,void 0,(function(){var o,i;return a(this,(function(a){switch(a.label){case 0:return(o=n)?[3,2]:[4,e.getTagForScope(t)];case 1:o=a.sent(),a.label=2;case 2:return n=o,[4,e.get(this.query,!0,n,this.direction)];case 3:return i=a.sent(),[2,this.first&&!r?i[0]:i]}}))}))},e.prototype.prepare=function(t,e,n,r){return void 0===n&&(n=null),void 0===r&&(r=null),i(this,void 0,void 0,(function(){var r;return a(this,(function(o){switch(o.label){case 0:return(r=n)?[3,2]:[4,e.getTagForScope(t)];case 1:r=o.sent(),o.label=2;case 2:return n=r,[4,e.get(this.query,!0,n)];case 3:return o.sent(),[2]}}))}))},e.parse=function(t,n,r){r.shift();var o=!1,i=s.EQuerySelectDirection.ALL;return n.full.startsWith("?>")?i=s.EQuerySelectDirection.DOWN:n.full.startsWith("?<")&&(i=s.EQuerySelectDirection.UP,o=!0),new e(n.value,o,i)},e}(n(8403).Node);e.ElementQueryNode=u},2999:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ElementStyleNode=void 0;var s=n(1341),u=n(8403),c=n(8052),l=function(t){function e(e,n){var r=t.call(this)||this;return r.elementRef=e,r.attr=n,r.requiresPrep=!0,r}return o(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return new c.LiteralNode("$"+this.attributeName)},enumerable:!1,configurable:!0}),e.prototype._getChildNodes=function(){var t=[];return this.elementRef&&t.push(this.elementRef),t},Object.defineProperty(e.prototype,"attributeName",{get:function(){return this.attr.startsWith(".")?this.attr.substring(2):this.attr.substring(1)},enumerable:!1,configurable:!0}),e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o=this;return a(this,(function(i){switch(i.label){case 0:return this.elementRef?[4,this.elementRef.evaluate(t,e,n,!0)]:[3,2];case 1:return r=i.sent(),[3,3];case 2:if(!n)return[2];r=new s.TagList(n),i.label=3;case 3:return 1===r.length?[2,r[0].scope.get("$"+this.attributeName)]:[2,r.map((function(t){return t.scope.get("$"+o.attributeName)}))]}}))}))},e.prototype.prepare=function(t,e,n,r){return void 0===n&&(n=null),void 0===r&&(r=null),i(this,void 0,void 0,(function(){var o,i,s;return a(this,(function(a){switch(a.label){case 0:return this.elementRef?[4,this.elementRef.prepare(t,e,n,r)]:[3,7];case 1:return a.sent(),[4,this.elementRef.evaluate(t,e,n,!0)];case 2:o=a.sent(),i=0,s=o,a.label=3;case 3:return i<s.length?[4,s[i].watchStyle(this.attributeName)]:[3,6];case 4:a.sent(),a.label=5;case 5:return i++,[3,3];case 6:return[3,9];case 7:return n?[4,n.watchStyle(this.attributeName)]:[3,9];case 8:a.sent(),a.label=9;case 9:return[2]}}))}))},e}(u.Node);e.ElementStyleNode=l},3187:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ForStatementNode=void 0;var s=n(7754),u=n(8403),c=n(8052),l=function(t){function e(e,n,r){var o=t.call(this)||this;return o.variable=e,o.list=n,o.block=r,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.variable,this.list,this.block]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.variable.evaluate(t,e,n)];case 1:return r=a.sent(),[4,this.list.evaluate(t,e,n)];case 2:o=a.sent(),i=0,a.label=3;case 3:return i<o.length?(t.set(r,o[i]),[4,this.block.evaluate(t,e,n)]):[3,6];case 4:a.sent(),a.label=5;case 5:return i++,[3,3];case 6:return[2,null]}}))}))},e.parse=function(t,n,r){if(r[1].type!==s.TokenType.L_PAREN)throw SyntaxError("Syntax error: Missing (");if(r[3].type!==s.TokenType.OF)throw SyntaxError("Syntax error: Missing of");r.splice(0,1);var o=s.Tree.getNextStatementTokens(r),i=o.splice(0,1)[0];o.splice(0,1);var a=s.Tree.processTokens(o),u=s.Tree.processTokens(s.Tree.getBlockTokens(r,null)[0]);return new e(new c.LiteralNode(i.value),a,u)},e}(u.Node);e.ForStatementNode=l},3203:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionArgumentNode=void 0;var u=function(t){function e(e){var n=t.call(this)||this;return n.args=e,n}return o(e,t),e.prototype._getChildNodes=function(){return s([],this.args)},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,s,u,c;return a(this,(function(a){switch(a.label){case 0:r=[],o=0,i=this.args,a.label=1;case 1:return o<i.length?(s=i[o],c=(u=r).push,[4,s.evaluate(t,e,n)]):[3,4];case 2:c.apply(u,[a.sent()]),a.label=3;case 3:return o++,[3,1];case 4:return[2,r]}}))}))},e}(n(8403).Node);e.FunctionArgumentNode=u},5728:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionCallNode=void 0;var u=n(712),c=n(8403),l=n(7549),p=n(3484),f=n(1371),h=n(3770),y=n(2947),d=function(t){function e(e,n){var r=t.call(this)||this;return r.fnc=e,r.args=n,r}return o(e,t),e.prototype._getChildNodes=function(){return[this.fnc,this.args]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,c,d,b,v,_,g,w,m,O,T,S,A,E,P,x,j,k,N,R;return a(this,(function(a){switch(a.label){case 0:return r=[],o=t,"",!1,this.fnc instanceof l.ScopeMemberNode?(!0,[4,this.fnc.scope.evaluate(t,e,n)]):[3,5];case 1:return o=a.sent(),[4,this.fnc.name.evaluate(t,e,n)];case 2:return a.sent(),this.fnc.scope instanceof h.ElementQueryNode?[4,this.fnc.scope.evaluate(t,e,n)]:[3,4];case 3:if((i=a.sent())instanceof Array)r=i;else{if(!(i instanceof u.Tag))throw new Error("Invalid element query result");r=[i]}return[3,5];case 4:r=[n],a.label=5;case 5:return[4,this.args.evaluate(t,e,n)];case 6:return c=a.sent(),[4,this.fnc.evaluate(t,e,n)];case 7:return!(d=a.sent())||d instanceof Array?[4,this.fnc.name.evaluate(t,e,n)]:[3,20];case 8:b=a.sent(),v=[],_=[],g=0,w=0,m=r,a.label=9;case 9:if(!(w<m.length))return[3,15];O=m[w],0,T=0,S=O.element[y.ClassNode.ClassesVariable]||[],a.label=10;case 10:return T<S.length?(A=S[T],(E=f.Registry.instance.classes.getSynchronous(A))&&E.classScope.has(b)?(N=E.classScope.get(b),_.push(N),x=(P=v).push,[4,N.evaluate(O.scope,e,O)]):[3,13]):[3,14];case 11:return[4,a.sent().apply(void 0,c)];case 12:x.apply(P,[a.sent()]),g++,a.label=13;case 13:return T++,[3,10];case 14:return w++,[3,9];case 15:j=0,k=_,a.label=16;case 16:return j<k.length?[4,(N=k[j]).collectGarbage()]:[3,19];case 17:a.sent(),a.label=18;case 18:return j++,[3,16];case 19:if(1===g)return[2,v[0]];if(0===g)throw new Error("Function "+b+" not found");return[2,v];case 20:return d instanceof p.FunctionNode?[4,d.evaluate(o,e,n)]:[3,24];case 21:return[4,a.sent().apply(void 0,c)];case 22:return R=a.sent(),[4,d.collectGarbage()];case 23:return a.sent(),[2,R];case 24:return[2,d.call.apply(d,s([o.wrapped||o],c))];case 25:return[2]}}))}))},e}(c.Node);e.FunctionCallNode=d},3484:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionNode=void 0;var s=n(4843),u=n(7754),c=function(t){function e(e,n,r){var o=t.call(this)||this;return o.name=e,o.args=n,o.block=r,o.requiresPrep=!0,o.garbage=[],o}return o(e,t),e.prototype._getChildNodes=function(){return[this.block]},e.prototype.prepare=function(e,n,r,o){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return(null==o?void 0:o.ClassNode)||e.set(this.name,this),[4,t.prototype.prepare.call(this,e,n,r,o)];case 1:return i.sent(),[2]}}))}))},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){return a(this,(function(r){switch(r.label){case 0:return[4,this.getFunction(t,e,n)];case 1:return[2,r.sent()]}}))}))},e.prototype.collectGarbage=function(){return i(this,void 0,void 0,(function(){var t,e;return a(this,(function(n){for(t=0,e=this.garbage;t<e.length;t++)e[t].collectGarbage();return this.garbage=[],[2]}))}))},e.prototype.getFunction=function(t,e,n,r){return void 0===n&&(n=null),void 0===r&&(r=!0),i(this,void 0,void 0,(function(){var o,u=this;return a(this,(function(c){return o=this,[2,function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return i(u,void 0,void 0,(function(){var i,u,l,p;return a(this,(function(a){switch(a.label){case 0:for(!r||t instanceof s.FunctionScope?i=t:(i=new s.FunctionScope(t),o.garbage.push(i)),u=0,l=this.args;u<l.length;u++)p=l[u],i.set(p,c.shift());return[4,this.block.evaluate(i,e,n)];case 1:return[2,a.sent()]}}))}))}]}))}))},e.parse=function(t,n,r,o){void 0===o&&(o=e),r.shift();for(var i=r.shift(),a=[],s=0,c=u.Tree.getBlockTokens(r);s<c.length;s++){var l=c[s];a.push(l[0].value)}var p=u.Tree.processTokens(u.Tree.getNextStatementTokens(r,!0,!0));return new o(i.value,a,p)},e}(n(8403).Node);e.FunctionNode=c},329:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.IfStatementNode=void 0;var u=n(7754),c=n(8403),l=n(6765),p=n(8052),f=function(t){function e(e){var n=t.call(this)||this;return n.nodes=e,n}return o(e,t),e.prototype._getChildNodes=function(){return s([],this.nodes)},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i;return a(this,(function(a){switch(a.label){case 0:r=0,o=this.nodes,a.label=1;case 1:return r<o.length?[4,(i=o[r]).evaluate(t,e,n)]:[3,5];case 2:return a.sent()?[4,i.block.evaluate(t,e,n)]:[3,4];case 3:return[2,a.sent()];case 4:return r++,[3,1];case 5:return[2]}}))}))},e.parseConditional=function(t){if(-1===[u.TokenType.IF,u.TokenType.ELSE_IF].indexOf(t[0].type))throw SyntaxError("Invalid Syntax");return t.splice(0,1),new l.ConditionalNode(u.Tree.processTokens(u.Tree.getBlockTokens(t,null)[0]),u.Tree.processTokens(u.Tree.getBlockTokens(t,null)[0]))},e.parse=function(t,n,r){if(r[1].type!==u.TokenType.L_PAREN)throw SyntaxError("If statement needs to be followed by a condition encased in parenthesis.");var o=[];for(o.push(e.parseConditional(r));r.length>0&&u.TokenType.ELSE_IF===r[0].type;)o.push(e.parseConditional(r));return r.length>0&&u.TokenType.ELSE===r[0].type&&(r.splice(0,1),o.push(new l.ConditionalNode(new p.LiteralNode(!0),u.Tree.processTokens(u.Tree.getBlockTokens(r,null)[0])))),new e(o)},e}(c.Node);e.IfStatementNode=f},8673:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.InNode=void 0;var s=n(7754),u=function(t){function e(e,n,r){void 0===r&&(r=!1);var o=t.call(this)||this;return o.left=e,o.right=n,o.flip=r,o}return o(e,t),e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.left.evaluate(t,e,n)];case 1:return r=a.sent(),[4,this.right.evaluate(t,e,n)];case 2:return o=a.sent(),i=o.indexOf(r)>-1,this.flip&&(i=!i),[2,i]}}))}))},e.prototype._getChildNodes=function(){return[this.left,this.right]},e.match=function(t){return t[0].type===s.TokenType.IN||t[0].type===s.TokenType.NOT&&t[1].type===s.TokenType.IN},e.parse=function(t,n,r){var o=r[0].type===s.TokenType.NOT;o&&r.splice(0,1),r.splice(0,1);var i=s.Tree.getNextStatementTokens(r,!1,!1,!0);return new e(t,s.Tree.processTokens(i),o)},e}(n(8403).Node);e.InNode=u},2020:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndexNode=void 0;var s=n(7754),u=function(t){function e(e,n,r){void 0===r&&(r=null);var o=t.call(this)||this;return o.object=e,o.index=n,o.indexTwo=r,o}return o(e,t),e.prototype._getChildNodes=function(){var t=[this.object,this.index];return this.indexTwo&&t.push(this.indexTwo),t},e.prototype.negativeIndex=function(t,e){return Number.isFinite(e)&&e<0?t.length+e:e},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,s,u,c,l,p,f;return a(this,(function(a){switch(a.label){case 0:return[4,this.object.evaluate(t,e,n)];case 1:return r=a.sent(),i=this.negativeIndex,s=[r],[4,this.index.evaluate(t,e,n)];case 2:return o=i.apply(this,s.concat([a.sent()])),Number.isFinite(o)&&this.indexTwo?(c=this.negativeIndex,l=[r],[4,this.indexTwo.evaluate(t,e,n)]):[3,4];case 3:for(u=c.apply(this,l.concat([a.sent()])),p=[],f=o;f<=u;f++)p.push(r[f]);return[2,p];case 4:return[2,r[o]]}}))}))},e.match=function(t){return t[0].type===s.TokenType.L_BRACKET},e.parse=function(t,n,r){for(var o=[],i=0,a=s.Tree.getBlockTokens(r,s.TokenType.COLON);i<a.length;i++){var u=a[i];o.push(s.Tree.processTokens(u))}return new e(t,o[0],o.length>1&&o[1])},e}(n(8403).Node);e.IndexNode=u},8052:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteralNode=void 0;var s=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return o(e,t),e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){return a(this,(function(t){return[2,this.value]}))}))},e}(n(8403).Node);e.LiteralNode=s},2393:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ModifierNode=void 0;var s=function(t){function e(e,n){var r=t.call(this)||this;return r.name=e,r.block=n,r}return o(e,t),e.prototype.prepare=function(t,e,n,r){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){return a(this,(function(t){return[2,null]}))}))},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){return a(this,(function(t){return[2,null]}))}))},e.parse=function(t,e,n){var r=n.shift().value.substr(1);return t&&t.modifiers.push(r),t},e}(n(8403).Node);e.ModifierNode=s},8161:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.NamedStackNode=void 0;var s=n(4843),u=n(7754),c=n(8403),l=n(8052),p=function(t){function e(e,n){var r=t.call(this)||this;return r.stackName=e,r.statements=n,r.requiresPrep=!0,r}return o(e,t),e.prototype._getChildNodes=function(){return[this.stackName,this.statements]},e.prototype.evaluate=function(t,n,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var o,i;return a(this,(function(a){switch(a.label){case 0:return t instanceof s.FunctionScope&&(t=t.parentScope),[4,this.stackName.evaluate(t,n,r)];case 1:return o=a.sent(),i=!1,e.stacks[o]||(e.stacks[o]=[]),-1===e.executions.indexOf(o)&&(i=!0),e.stacks[o].push({block:this.statements,scope:t,dom:n,tag:r}),i&&e.execute(o),[2]}}))}))},e.execute=function(t){return i(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return e.stacks[t].length>0?(n=e.stacks[t].shift(),-1===e.executions.indexOf(t)&&e.executions.push(t),[4,n.block.evaluate(n.scope,n.dom,n.tag)]):[3,3];case 1:return r.sent(),[4,e.execute(t)];case 2:return r.sent()||e.executions.splice(e.executions.indexOf(t),1),[2,!0];case 3:return[2,!1]}}))}))},e.parse=function(t,n,r){r.shift();var o=r.shift(),i=u.Tree.getNextStatementTokens(r);return new e(new l.LiteralNode(o.value),u.Tree.processTokens(i))},e.stacks={},e.executions=[],e}(c.Node);e.NamedStackNode=p},8403:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Node=void 0;var i=n(7754),a=function(){function t(){this.requiresPrep=!1,this.nodeCache={},this.modifiers=[]}return t.prototype.isPreparationRequired=function(){if(this.requiresPrep)return!0;if(void 0!==this._isPreparationRequired)return this._isPreparationRequired;for(var t=0,e=this.getChildNodes();t<e.length;t++){if(e[t].isPreparationRequired())return this._isPreparationRequired=!0,!0}return!1},t.prototype.prepare=function(t,e,n,i){return void 0===n&&(n=null),void 0===i&&(i=null),r(this,void 0,void 0,(function(){var r,a;return o(this,(function(o){switch(o.label){case 0:r=0,a=this.getChildNodes(),o.label=1;case 1:return r<a.length?[4,a[r].prepare(t,e,n,i)]:[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},t.prototype.cleanup=function(t,e,n){return r(this,void 0,void 0,(function(){var r,i;return o(this,(function(o){switch(o.label){case 0:r=0,i=this.getChildNodes(),o.label=1;case 1:return r<i.length?[4,i[r].cleanup(t,e,n)]:[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},t.prototype._getChildNodes=function(){return[]},t.prototype.getChildNodes=function(){return void 0===this.childNodes&&(this.childNodes=this._getChildNodes()),this.childNodes},t.prototype.findChildrenByType=function(t){return this.findChildrenByTypes([t])},t.prototype.findChildrenByTypes=function(t,e){if(void 0===e&&(e=null),null!==e&&this.nodeCache[e])return this.nodeCache[e];for(var n=[],r=0,o=this.getChildNodes();r<o.length;r++)for(var i=o[r],a=0,s=t;a<s.length;a++){var u=s[a];i instanceof u&&n.push(i);var c=i.findChildrenByType(u);n.push.apply(n,c)}return null!==e&&(this.nodeCache[e]=n),n},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t.moveModifiers=function(t,e){for(;t[0].type==i.TokenType.MODIFIER;)e.unshift(t.shift())},t}();e.Node=a},2321:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.NotNode=void 0;var s=n(7754),u=function(t){function e(e){var n=t.call(this)||this;return n.toFlip=e,n}return o(e,t),e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){return a(this,(function(r){switch(r.label){case 0:return[4,this.toFlip.evaluate(t,e,n)];case 1:return[2,!r.sent()]}}))}))},e.prototype._getChildNodes=function(){return[this.toFlip]},e.parse=function(t,n,r){var o;return r.splice(0,1),o=r[0].type===s.TokenType.L_PAREN?s.Tree.getNextStatementTokens(r):s.Tree.consumeTypes(r,[s.TokenType.BOOLEAN_LITERAL,s.TokenType.NUMBER_LITERAL,s.TokenType.STRING_LITERAL,s.TokenType.NAME,s.TokenType.PERIOD]),new e(s.Tree.processTokens(o))},e}(n(8403).Node);e.NotNode=u},1185:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.NumberLiteralNode=void 0;var i=function(t){function e(e){var n=t.call(this,e)||this;return n.value=e,n.value.indexOf(".")>-1?n.value=parseFloat(n.value):n.value=parseInt(n.value),n}return o(e,t),e}(n(8052).LiteralNode);e.NumberLiteralNode=i},9446:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectNode=void 0;var u=n(4843),c=n(7754),l=function(t){function e(e,n){var r=t.call(this)||this;return r.keys=e,r.values=n,r}return o(e,t),e.prototype._getChildNodes=function(){return new(Array.bind.apply(Array,s([void 0],this.values)))},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,s,c,l,p;return a(this,(function(a){switch(a.label){case 0:r=new u.Scope,o=0,a.label=1;case 1:return o<this.values.length?(i=this.keys[o],s=this.values[o],l=(c=r).set,[4,i.evaluate(t,e,n)]):[3,5];case 2:return p=[a.sent()],[4,s.evaluate(t,e,n)];case 3:l.apply(c,p.concat([a.sent(),!0])),a.label=4;case 4:return o++,[3,1];case 5:return[2,r]}}))}))},e.match=function(t){return t[0].type===c.TokenType.L_BRACE},e.parse=function(t,n,r){for(var o=c.Tree.getNextStatementTokens(r),i=[],a=[];o.length>0;){var s=c.Tree.getTokensUntil(o,c.TokenType.COLON,!1);if(o[0].type!==c.TokenType.COLON)throw Error("Invalid object literal syntax. Expecting :");o.splice(0,1);var u=c.Tree.getTokensUntil(o,c.TokenType.COMMA,!0,!1,!0,{type:c.BlockType.STATEMENT,open:null,close:null,openCharacter:null,closeCharacter:null});i.push(c.Tree.processTokens(s)),a.push(c.Tree.processTokens(u))}return new e(i,a)},e}(n(8403).Node);e.ObjectNode=l},1096:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.OnNode=void 0;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.prepare=function(e,n,r,o){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var s,u,c=this;return a(this,(function(l){switch(l.label){case 0:return s=null==o?void 0:o.ClassNodePrepare,!r||s?[3,2]:[4,this.getFunction(e,n,r)];case 1:u=l.sent(),r.addEventHandler(this.name,[],(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i(c,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,u.apply(void 0,t)];case 1:return e.sent(),[4,this.collectGarbage()];case 2:return e.sent(),[2]}}))}))}),this),l.label=2;case 2:return[4,t.prototype.prepare.call(this,e,n,r,o)];case 3:return l.sent(),[2]}}))}))},e.parse=function(n,r,o){return t.parse.call(this,n,r,o,e)},e}(n(3484).FunctionNode);e.OnNode=s},4123:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.RootScopeMemberNode=void 0;var s=n(4843),u=function(t){function e(e){var n=t.call(this)||this;return n.name=e,n}return o(e,t),e.prototype._getChildNodes=function(){return[this.name]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o;return a(this,(function(i){switch(i.label){case 0:return[4,this.name.evaluate(t,e,n)];case 1:return r=i.sent(),[4,this.applyModifiers(r,t,e,n)];case 2:return i.sent(),[2,(o=t.get(r))instanceof s.Scope&&o.wrapped||o]}}))}))},e}(n(4829).ScopeNodeAbstract);e.RootScopeMemberNode=u},7549:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeMemberNode=void 0;var s=n(4843),u=n(1341),c=n(3276),l=n(3770),p=function(t){function e(e,n){var r=t.call(this)||this;return r.scope=e,r.name=n,r}return o(e,t),e.prototype._getChildNodes=function(){return[this.scope,this.name]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,p,f,h,y,d,b,v,_;return a(this,(function(a){switch(a.label){case 0:return r=[],o=[],this.scope instanceof l.ElementQueryNode?[4,this.scope.evaluate(t,e,n)]:[3,2];case 1:return i=a.sent(),this.scope.first?r.push(i):r=i,[3,4];case 2:return[4,this.scope.evaluate(t,e,n)];case 3:(p=a.sent())instanceof u.TagList?r=p:r.push(p),a.label=4;case 4:f=0,h=r,a.label=5;case 5:return f<h.length?((y=h[f])instanceof c.DOMObject&&(y=y.scope),y?[3,7]:(d=Error,b='Cannot access "',[4,this.name.evaluate(t,e,n)])):[3,11];case 6:throw d.apply(void 0,[b+a.sent()+'" of undefined.']);case 7:return[4,this.name.evaluate(t,e,n)];case 8:return v=a.sent(),[4,this.applyModifiers(v,y,e,n)];case 9:a.sent(),_=y.get(v,!1),o.push(_ instanceof s.Scope&&_.wrapped||_),a.label=10;case 10:return f++,[3,5];case 11:return[2,1===o.length?o[0]:o]}}))}))},e}(n(4829).ScopeNodeAbstract);e.ScopeMemberNode=p},4829:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeNodeAbstract=void 0;var s=n(8403),u=n(4843),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.applyModifiers=function(t,e,n,r){return i(this,void 0,void 0,(function(){var n,r,o,i;return a(this,(function(a){for(r=0,o=this.modifiers;r<o.length;r++)if(i=o[r],c.Registry.instance.types.has(i)){n=i;break}return n&&e instanceof u.Scope&&e.setType(t,n),[2]}))}))},e}(s.Node);e.ScopeNodeAbstract=l},5155:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.StringFormatNode=void 0;var s=n(8403),u=n(7754),c=function(t){function e(e,n){var r=t.call(this)||this;return r.segments=e,r.value=n,r}return o(e,t),e.prototype.getChildNodes=function(){return this.segments&&Object.values(this.segments)||[]},e.prototype.evaluate=function(t,e,n){return i(this,void 0,void 0,(function(){var r,o,i,s,u,c;return a(this,(function(a){switch(a.label){case 0:for(i in r=this.value,o=[],this.segments)o.push(i);s=0,a.label=1;case 1:return s<o.length?(u=o[s],[4,this.segments[u].evaluate(t,e,n)]):[3,4];case 2:c=a.sent(),r=r.replace("${"+u+"}",c),a.label=3;case 3:return s++,[3,1];case 4:return[2,r]}}))}))},e.parse=function(t,n,r){for(var o={},i=0,a=Array.from(new Set(n.value.match(/\$\{([^}]+)}/g)));i<a.length;i++){var s=a[i].split(/\$\{|}/)[1],c=new u.Tree(s);o[s]=c.root}return r.shift(),new e(o,n.value)},e.match=function(t){return t[0].type===u.TokenType.STRING_FORMAT},e}(s.Node);e.StringFormatNode=c},2751:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.UnitLiteralNode=e.UnitLiteral=void 0;var i=n(8052),a=function(){function t(t){this._value=t,this.value=this._value}return Object.defineProperty(t.prototype,"amount",{get:function(){return this._amount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unit",{get:function(){return this._unit},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return""+this._amount+this._unit},set:function(t){t.indexOf(".")>-1?this._amount=parseFloat(t):this._amount=parseInt(t),isNaN(this._amount)&&(this._amount=0);var e=/[^\d.]+$/.exec(t);this._unit=e&&e[0]||""},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this.value},t}();e.UnitLiteral=a;var s=function(t){function e(e){return t.call(this,new a(e))||this}return o(e,t),e}(i.LiteralNode);e.UnitLiteralNode=s},575:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.WithNode=void 0;var s=n(4843),u=n(712),c=n(7754),l=n(8403),p=n(1341),f=function(t){function e(e,n){var r=t.call(this)||this;return r.context=e,r.statements=n,r.requiresPrep=!0,r}return o(e,t),e.prototype._getChildNodes=function(){return[this.context,this.statements]},e.prototype.evaluate=function(t,e,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var r,o,i,c,l,f,h,y,d,b,v,_,g,w;return a(this,(function(a){switch(a.label){case 0:return[4,this.context.evaluate(t,e,n)];case 1:if(r=a.sent(),o=[],r instanceof p.TagList?o=r:r instanceof u.Tag&&(o=[r]),i=[],!o.length)return[3,14];if(!this.hasModifier("sequential"))return[3,7];c=0,l=o,a.label=2;case 2:return c<l.length?(v=l[c],[4,this.statements.prepare(v.scope,e,v)]):[3,6];case 3:return a.sent(),h=(f=i).push,[4,this.statements.evaluate(v.scope,e,v)];case 4:h.apply(f,[a.sent()]),a.label=5;case 5:return c++,[3,2];case 6:return[3,13];case 7:y=[],d=0,b=o,a.label=8;case 8:return d<b.length?(v=b[d],[4,this.statements.prepare(v.scope,e,v)]):[3,11];case 9:a.sent(),y.push(this.statements.evaluate(v.scope,e,v)),a.label=10;case 10:return d++,[3,8];case 11:return[4,Promise.all(y)];case 12:i=a.sent(),a.label=13;case 13:return[3,16];case 14:return _=void 0,r instanceof s.Scope&&(_=r),_?(w=(g=i).push,[4,this.statements.evaluate(_,e,n)]):[3,16];case 15:w.apply(g,[a.sent()]),a.label=16;case 16:return[2,1===i.length?i[0]:i]}}))}))},e.parse=function(t,n,r){r.shift();var o=c.Tree.getTokensUntil(r,c.TokenType.L_BRACE,!1,!1,!0),i=c.Tree.getNextStatementTokens(r);return this.moveModifiers(o,r),new e(c.Tree.processTokens(o),c.Tree.processTokens(i))},e}(l.Node);e.WithNode=f},4789:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.XHRNode=void 0;var s=n(8403),u=n(7754),c=n(4843),l=n(6966),p=n(4264),f=function(t){function e(e,n,r){var o=t.call(this)||this;return o.left=e,o.requestType=n,o.url=r,o}return o(e,t),e.prototype.getChildNodes=function(){var t=[this.url];return this.left&&t.push(this.left),t},e.prototype.evaluate=function(t,e,n){return i(this,void 0,void 0,(function(){var r,o,i,s,f,h,y;return a(this,(function(a){switch(a.label){case 0:return[4,this.url.evaluate(t,e,n)];case 1:return r=a.sent(),this.left?[4,this.left.evaluate(t,e,n)]:[3,3];case 2:return s=a.sent(),[3,4];case 3:s={},a.label=4;case 4:switch((i=s)instanceof c.Scope&&(i=i.data),i instanceof l.ScopeDataAbstract&&(i=i.getData()),this.requestType){case u.TokenType.XHR_POST:o="POST";break;case u.TokenType.XHR_PUT:o="PUT";break;case u.TokenType.XHR_DELETE:o="DELETE";break;default:o="GET"}return"GET"===(f={method:o,headers:{"X-Requested-With":"XMLHttpRequest"}}).method?r=p.VisionHelper.getUriWithParams(r,i):f.body="string"==typeof i?i:JSON.stringify(i),[4,fetch(r,f)];case 5:return h=a.sent(),(y=h.headers.get("content-type"))&&y.includes("application/json")?[4,h.json()]:[3,7];case 6:return[2,a.sent()];case 7:return[4,h.text()];case 8:return[2,a.sent()]}}))}))},e.parse=function(t,n,r){r.splice(0,1);var o=u.Tree.processTokens(u.Tree.getNextStatementTokens(r,!1,!1,!1));return new e(t,n.type,o)},e.match=function(t){return[u.TokenType.XHR_POST,u.TokenType.XHR_PUT,u.TokenType.XHR_GET,u.TokenType.XHR_DELETE].indexOf(t[0].type)>-1},e}(s.Node);e.XHRNode=f},5092:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=e.AttributeState=void 0;var s,u=n(5559);!function(t){t[t.Instantiated=0]="Instantiated",t[t.Deferred=1]="Deferred",t[t.Compiled=2]="Compiled",t[t.Setup=3]="Setup",t[t.Extracted=4]="Extracted",t[t.Connected=5]="Connected",t[t.Built=6]="Built"}(s=e.AttributeState||(e.AttributeState={}));var c=function(t){function e(e,n,r){var o=t.call(this)||this;return o.tag=e,o.attributeName=n,o.slot=r,o.configure(),o}return o(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.slot||this.tag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.defer=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(s.Deferred),[2]}))}))},e.prototype.configure=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(s.Instantiated),[2]}))}))},e.prototype.compile=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(s.Compiled),[2]}))}))},e.prototype.setup=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(s.Setup),[2]}))}))},e.prototype.extract=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(s.Extracted),[2]}))}))},e.prototype.connect=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(s.Connected),[2]}))}))},e.prototype.evaluate=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(s.Built),[2]}))}))},e.prototype.getAttributeValue=function(t){return void 0===t&&(t=null),this.origin.getRawAttributeValue(this.attributeName,t)},e.prototype.getAttributeBinding=function(t){return void 0===t&&(t=null),this.origin.getAttributeBinding(this.attributeName)||t},e.prototype.getAttributeModifiers=function(t){void 0===t&&(t=[]);var e=this.origin.getAttributeModifiers(this.attributeName);return e.length&&e||t},e.prototype.hasModifier=function(t){return this.getAttributeModifiers().indexOf(t)>-1},e.prototype.mutate=function(t){},Object.defineProperty(e.prototype,"value",{get:function(){return this.origin.element.getAttribute(this.attributeName)||""},set:function(t){this.origin.element.setAttribute(this.attributeName,t)},enumerable:!1,configurable:!0}),e.prototype.apply=function(t){return i(this,void 0,void 0,(function(){var e,n,r;return a(this,(function(o){switch(o.label){case 0:e=0,n=this.origin.delegates,o.label=1;case 1:return e<n.length?(r=n[e],[4,t(r)]):[3,4];case 2:o.sent(),o.label=3;case 3:return e++,[3,1];case 4:return[2]}}))}))},e.prototype.setState=function(t){var e=this._state;this._state=t,this.dispatch("state",{state:t,previousState:e,attribute:this})},e.create=function(t,e,n,r){return new n(t,e,r)},e.scoped=!1,e.canDefer=!0,e}(u.EventDispatcher);e.Attribute=c},2918:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0;var s=n(1371),u=n(9033),c=n(6453),l=n(3423),p=function(t){function e(){var n=t.call(this)||this;Object.setPrototypeOf(n,e.prototype),n.shadow=n.attachShadow({mode:"open"});var r,o=n.getAttribute("template");r=o?document.getElementById(o):s.Registry.instance.templates.getSynchronous(n.tagName.toLowerCase()),n.setAttribute("vsn-scope",""),n.shadow.appendChild(r.content.cloneNode(!0));for(var p=0,f=Array.from(n.shadow.children);p<f.length;p++){f[p].shadowParent=n}var h=[],y=[];return n.shadow.querySelectorAll("slot").forEach((function(t){var e=u.DOM.instance.buildTag(t,!1,c.SlotTag),r=new Promise((function(r,o){t.addEventListener("slotchange",(function(o){e.then((function(e){return i(n,void 0,void 0,(function(){var n,o,i,s;return a(this,(function(a){switch(a.label){case 0:n=0,o=t.assignedNodes(),a.label=1;case 1:return n<o.length?(i=o[n],[4,u.DOM.instance.buildTag(i,!1,l.SlottedTag)]):[3,5];case 2:return[4,null==(s=a.sent())?void 0:s.slotted(e)];case 3:a.sent(),y.push(s),a.label=4;case 4:return n++,[3,1];case 5:return r(e),[2]}}))}))}))}))}));h.push(r)})),Promise.all(h).then((function(t){return i(n,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,u.DOM.instance.buildFrom(this,!1,!0)];case 1:return e.sent(),[4,u.DOM.instance.setupTags(t)];case 2:return e.sent(),[4,u.DOM.instance.setupTags(y)];case 3:return e.sent(),[2]}}))}))})),n}return o(e,t),e.prototype.connectedCallback=function(){return i(this,void 0,void 0,(function(){var t;return a(this,(function(e){switch(e.label){case 0:return[4,u.DOM.instance.buildTag(this,!0)];case 1:return(t=e.sent()).createScope(!0),[4,u.DOM.instance.buildFrom(this.shadow)];case 2:return e.sent(),[4,t.dom.resetBranch(t)];case 3:return e.sent(),[4,t.dom.setupTags([t])];case 4:return e.sent(),[2]}}))}))},e}(HTMLElement);e.Component=p},6417:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Configuration=void 0;var i=n(4264),a=function(t){function e(){var e=t.call(this)||this;return e.data=i.VisionHelper.window&&window.$configuration||{},e}return o(e,t),e.prototype.get=function(t,e){return void 0===e&&(e=null),void 0===this.data[t]?e:this.data[t]},e.prototype.set=function(t,e){var n=this.data[t];this.data[t]=e,this.dispatch("change:"+t,{value:e,previous:n}),this.dispatch("change",{key:t,value:e,previous:n})},e.set=function(t,n){e.instance.set(t,n)},e.get=function(t,n){return void 0===n&&(n=null),e.instance.get(t,n)},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e),e._instance},enumerable:!1,configurable:!0}),e}(n(5559).EventDispatcher);e.Configuration=a},126:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Controller=void 0;var i=function(t){function e(){var e=t.call(this)||this;for(var n in e)e[n]instanceof Function&&e.__properties__.push(n);return e}return o(e,t),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tag",{get:function(){return this._tag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),e.prototype.init=function(t,e,n){this._scope=t,this._tag=e,this._element=n},e}(n(2018).ScopeObject);e.Controller=i},9033:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.DOM=e.EQuerySelectDirection=void 0;var u,c=n(712),l=n(2712),p=n(6417),f=n(7754),h=n(1341),y=n(2144),d=n(7942),b=n(5559),v=n(2947),_=n(1371),g=n(6453),w=n(3423);!function(t){t[t.ALL=0]="ALL",t[t.UP=1]="UP",t[t.DOWN=2]="DOWN"}(u=e.EQuerySelectDirection||(e.EQuerySelectDirection={}));var m=function(t){function e(e,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var o=t.call(this)||this;return o.rootElement=e,o.debug=r,o.queued=[],o._built=!1,o._ready=new Promise((function(t){o.once("built",(function(){t(!0)}))})),o.observer=new MutationObserver(o.mutation.bind(o)),o.tags=[],o.window=new y.WrappedWindow(window),o.document=new d.WrappedDocument(window.document),n&&o.buildFrom(e,!0),o.evaluate(),p.Configuration.instance.on("change",o.evaluate.bind(o)),o}return o(e,t),Object.defineProperty(e.prototype,"built",{get:function(){return this._built},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._root},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return this.promise("builtRoot")},enumerable:!1,configurable:!0}),e.prototype.get=function(t,e,n,r){return void 0===e&&(e=!1),void 0===n&&(n=null),void 0===r&&(r=u.DOWN),i(this,void 0,void 0,(function(){var o;return a(this,(function(i){switch(i.label){case 0:switch(t){case"window":return[3,1];case"document":return[3,2];case"body":return[3,3]}return[3,4];case 1:return[2,new h.TagList(this.window)];case 2:return[2,new h.TagList(this.document)];case 3:return[2,new h.TagList(this.root)];case 4:return o=void 0,o=r===u.DOWN?this.querySelectorAll(t,n):r===u.UP?[this.querySelectorClosest(t,n)]:this.querySelectorAll(t),[4,this.getTagsForElements(Array.from(o),e)];case 5:return[2,i.sent()]}}))}))},e.prototype.getFromTag=function(t,e,n){return void 0===n&&(n=!1),i(this,void 0,void 0,(function(){var r;return a(this,(function(o){switch(o.label){case 0:return r=this.querySelectorElement(t.element,e),[4,this.getTagsForElements(Array.from(r),n)];case 1:return[2,o.sent()]}}))}))},e.prototype.registerElementInRoot=function(t){var e=t.element.getAttribute("id");e&&this.root.scope.set("#"+e,t.scope)},e.prototype.querySelectorClosest=function(t,e){return void 0===e&&(e=null),e.element.closest(t)},e.prototype.querySelectPath=function(t,e){void 0===e&&(e=null);var n=t.shift();if(!n)return[];var r=Array.from(e?this.querySelectorElement(e,n):this.querySelectorAll(n));if(t.length>0){for(var o=[],i=0,a=r;i<a.length;i++){var u=a[i];o.push.apply(o,this.querySelectPath(s([],t),u))}return o}return r},e.prototype.querySelectorAll=function(t,e){void 0===e&&(e=null);var n=e&&!t.startsWith("#")?e.element:this.rootElement;return this.querySelectorElement(n,t)},e.prototype.querySelectorElement=function(t,n){var r=n.indexOf(":parent");if(r>-1){var o=n.substring(0,r),i=n.substring(r+7);if(o.length>0){for(var a=[],s=0,u=Array.from(this.querySelectorElement(t,o));s<u.length;s++){var c=u[s];i.length>0?a.push.apply(a,Array.from(this.querySelectorElement(e.getParentElement(c),i))):a.push(e.getParentElement(c))}return a}return 0===i.length?[e.getParentElement(t)]:this.querySelectorElement(e.getParentElement(t),i)}var l=t.querySelectorAll(n);return 0===l.length&&t.shadowRoot&&(l=t.shadowRoot.querySelectorAll(n)),l},e.prototype.querySelector=function(t){return this.rootElement.querySelector(t)},e.prototype.exec=function(t){return i(this,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return[4,(e=new f.Tree(t)).prepare(this.root.scope,this)];case 1:return n.sent(),[4,e.evaluate(this.root.scope,this)];case 2:return[2,n.sent()]}}))}))},e.prototype.evaluate=function(){return i(this,void 0,void 0,(function(){var t,e;return a(this,(function(n){switch(n.label){case 0:clearTimeout(this.evaluateTimeout),t=0,e=this.tags,n.label=1;case 1:return t<e.length?[4,e[t].evaluate()]:[3,4];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},e.prototype.mutation=function(t){return i(this,void 0,void 0,(function(){var e,n,r,o,i,s,u,c;return a(this,(function(a){switch(a.label){case 0:e=0,n=t,a.label=1;case 1:return e<n.length?(r=n[e],[4,this.getTagForElement(r.target)]):[3,9];case 2:return(o=a.sent())&&o.mutate(r),"attributes"!==r.type||"class"!==r.attributeName?[3,4]:[4,v.ClassNode.checkForClassChanges(r.target,this,o)];case 3:a.sent(),a.label=4;case 4:i=0,s=Array.from(r.removedNodes),a.label=5;case 5:return i<s.length?(u=s[i],[4,this.getTagForElement(u)]):[3,8];case 6:(c=a.sent())&&c.deconstruct(),a.label=7;case 7:return i++,[3,5];case 8:return e++,[3,1];case 9:return[2]}}))}))},e.prototype.discover=function(t,e){return void 0===e&&(e=!1),i(this,void 0,void 0,(function(){var n,r,o,i=this;return a(this,(function(a){return n=[],o=function(t){for(var e=0,n=Array.from(t.children);e<n.length;e++){var i=n[e];r(i)&&("template"!==i.tagName.toLowerCase()&&o(i))}},(r=function(t){var r;if(_.Registry.instance.tags.has(null===(r=null==t?void 0:t.tagName)||void 0===r?void 0:r.toLowerCase()))return!1;if(l.ElementHelper.hasVisionAttribute(t)){if(!e&&t.hasAttribute("slot"))return!1;if(i.queued.indexOf(t)>-1)return!1;i.queued.push(t),n.push(t)}return!0})(t),o(t),[2,n]}))}))},e.prototype.buildTag=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=c.Tag),i(this,void 0,void 0,(function(){var r;return a(this,(function(o){return t[c.Tag.TaggedVariable]?[2,e?t[c.Tag.TaggedVariable]:null]:("slot"===t.tagName.toLowerCase()?n=g.SlotTag:t.hasAttribute("slot")&&(n=w.SlottedTag),r=new n(t,this),this.tags.push(r),[2,r])}))}))},e.prototype.setupTags=function(t){return i(this,void 0,void 0,(function(){var e,n,r,o,i,s,u,c,l,p,f,h,y,d,b;return a(this,(function(a){switch(a.label){case 0:e=0,n=t,a.label=1;case 1:return e<n.length?[4,(b=n[e]).buildAttributes()]:[3,4];case 2:a.sent(),a.label=3;case 3:return e++,[3,1];case 4:r=0,o=t,a.label=5;case 5:return r<o.length?[4,(b=o[r]).compileAttributes()]:[3,8];case 6:a.sent(),a.label=7;case 7:return r++,[3,5];case 8:i=0,s=t,a.label=9;case 9:return i<s.length?[4,(b=s[i]).setupAttributes()]:[3,12];case 10:a.sent(),a.label=11;case 11:return i++,[3,9];case 12:u=0,c=t,a.label=13;case 13:return u<c.length?[4,(b=c[u]).extractAttributes()]:[3,16];case 14:a.sent(),a.label=15;case 15:return u++,[3,13];case 16:l=0,p=t,a.label=17;case 17:return l<p.length?[4,(b=p[l]).connectAttributes()]:[3,20];case 18:a.sent(),a.label=19;case 19:return l++,[3,17];case 20:f=0,h=t,a.label=21;case 21:return f<h.length?[4,(b=h[f]).finalize()]:[3,24];case 22:a.sent(),this.queued.splice(this.queued.indexOf(b.element),1),a.label=23;case 23:return f++,[3,21];case 24:for(y=0,d=t;y<d.length;y++)b=d[y],this.observer.observe(b.element,{attributes:!0,characterData:!0,childList:!0,subtree:!0});return[2]}}))}))},e.prototype.buildFrom=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),i(this,void 0,void 0,(function(){var r,o,i,s,u,c,p,f,h,y,d,b;return a(this,(function(a){switch(a.label){case 0:return e?(document.body.setAttribute("vsn-root",""),document.ondragover=function(t){return t.cancelable&&t.preventDefault()},r=this,[4,this.buildTag(document.body,!0)]):[3,3];case 1:return r._root=a.sent(),this._root.createScope(!0),[4,this.setupTags([this._root])];case 2:a.sent(),a.label=3;case 3:o=this.querySelectorElement(t,"template"),i=[],s=0,u=Array.from(o),a.label=4;case 4:return s<u.length?(c=u[s],l.ElementHelper.hasVisionAttribute(c)?[4,this.buildTag(c)]:[3,6]):[3,7];case 5:(b=a.sent())&&i.push(b),a.label=6;case 6:return s++,[3,4];case 7:return i.length?[4,this.setupTags(i)]:[3,9];case 8:a.sent(),a.label=9;case 9:return p=[],[4,this.discover(t,n)];case 10:f=a.sent(),h=0,y=f,a.label=11;case 11:return h<y.length?(d=y[h],[4,this.buildTag(d)]):[3,14];case 12:(b=a.sent())&&p.push(b),a.label=13;case 13:return h++,[3,11];case 14:return[4,this.setupTags(p)];case 15:return a.sent(),e&&(this._built=!0,this.dispatch("builtRoot")),this.dispatch("built",p),[2,p]}}))}))},e.prototype.getTagsForElements=function(t,e){return void 0===e&&(e=!1),i(this,void 0,void 0,(function(){var n,r,o,i,u,l,p,f,y,d,b;return a(this,(function(a){switch(a.label){case 0:for(n=new h.TagList,r=[],o=0,i=t;o<i.length;o++)(y=i[o])&&y[c.Tag.TaggedVariable]&&(n.push(y[c.Tag.TaggedVariable]),r.push(y));if(!e)return[3,4];for(u=s([],t),l=u.length;l>=0;l--)y=u[l],r.indexOf(y)>-1&&u.splice(l,1);p=0,f=u,a.label=1;case 1:return p<f.length?(y=f[p],b=(d=n).push,[4,this.getTagForElement(y,e)]):[3,4];case 2:b.apply(d,[a.sent()]),a.label=3;case 3:return p++,[3,1];case 4:return[2,n]}}))}))},e.prototype.getTagForElement=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),i(this,void 0,void 0,(function(){return a(this,(function(r){switch(r.label){case 0:return t&&t[c.Tag.TaggedVariable]?[2,t[c.Tag.TaggedVariable]]:t&&e?(t instanceof HTMLElement&&t.setAttribute("vsn-ref",""),[4,this.buildFrom(t.parentElement||t,!1,n)]):[3,3];case 1:return r.sent(),[4,this.getTagForElement(t,!1)];case 2:return[2,r.sent()];case 3:return[2,null]}}))}))},e.prototype.getTagForScope=function(t){return i(this,void 0,void 0,(function(){var e,n,r;return a(this,(function(o){for(e=0,n=this.tags;e<n.length;e++)if((r=n[e]).uniqueScope&&r.scope===t)return[2,r];return[2,null]}))}))},e.prototype.resetBranch=function(t){return i(this,void 0,void 0,(function(){var e,n,r,o,i;return a(this,(function(a){switch(a.label){case 0:t instanceof c.Tag&&(t=t.element),(e=t[c.Tag.TaggedVariable])&&e.findParentTag(),n=Array.from(t.children),r=0,o=n,a.label=1;case 1:return r<o.length?(i=o[r],[4,this.resetBranch(i)]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e(document,!1,!1)),e._instance},enumerable:!1,configurable:!0}),e.getParentElement=function(t){return t.parentElement?t.parentElement:t.assignedSlot?t.assignedSlot.parentElement:t.shadowParent?t.shadowParent:null},e}(b.EventDispatcher);e.DOM=m},3276:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.DOMObject=void 0;var i=function(t){function e(e,n){var r,o=t.call(this)||this;return o.element=e,o._uniqueScope=!1,o.delegates=[],o.isSlot&&(r=o.delegates).push.apply(r,e.assignedNodes()),e.assignedSlot&&(o.slot=e.assignedSlot),o}return o(e,t),Object.defineProperty(e.prototype,"isSlot",{get:function(){return this.element instanceof HTMLSlotElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSlotted",{get:function(){return this.element.hasAttribute("slot")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope?this._scope:null},set:function(t){this._scope=t},enumerable:!1,configurable:!0}),e.prototype.watchAttribute=function(t){},e.prototype.watchStyle=function(t){},e.prototype.deconstruct=function(){var e;this._uniqueScope&&(null===(e=this.scope)||void 0===e||e.deconstruct()),t.prototype.deconstruct.call(this)},e}(n(5559).EventDispatcher);e.DOMObject=i},7942:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedDocument=void 0;var i=function(t){function e(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=t.call(this,e,n)||this;return o._document=e,o}return o(e,t),e}(n(3276).DOMObject);e.WrappedDocument=i},2144:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedWindow=void 0;var i=n(3276),a=n(4843),s=function(t){function e(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=t.call(this,e,n)||this;return o._window=e,o._scope=new a.Scope,o.scope.set("@scrollY",o._window.scrollY),o.scope.set("@scrollX",o._window.scrollX),e.addEventListener("scroll",o.onScroll.bind(o),{passive:!0}),o}return o(e,t),e.prototype.onScroll=function(t){this.scope.set("@scrollY",this._window.scrollY),this.scope.set("@scrollX",this._window.scrollX)},e}(i.DOMObject);e.WrappedWindow=s},5559:function(t,e){"use strict";var n=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.EventDispatcher=e.EventCallback=void 0;var r=function(){function t(t,e,n,r){this.fnc=t,this.key=e,this.once=n,this.context=r,this.calls=0}return t.prototype.call=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return!(this.once&&this.calls>0)&&((t=this.fnc).apply.apply(t,n([this.context],e)),this.calls+=1,!0)},t}();e.EventCallback=r;var o=function(){function t(){this._allListeners=[],this._relays=[],this._lastKey=0,this._listeners={},t.sources.push(this)}return t.prototype.deconstruct=function(){for(var e in this.dispatch("deconstruct",this),t.sources.splice(t.sources.indexOf(this),1),this._listeners)delete this._listeners[e]},t.prototype.addRelay=function(t){this._relays.push(t)},t.prototype.removeRelay=function(t){this._relays.indexOf(t)>-1&&this._relays.splice(this._relays.indexOf(t),1)},t.prototype.on=function(t,e,n,o){return o=o||!1,this._lastKey++,this._listeners[t]=this._listeners[t]||[],this._listeners[t].push(new r(e,this._lastKey,o,n)),this._lastKey},t.prototype.once=function(t,e,n){return this.on(t,e,n,!0)},t.prototype.promise=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return new Promise((function(n,r){e.once(t,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n(t)}),null)}))},t.prototype.off=function(t,e){if(!(t in this._listeners))return!1;if(!e)return this._listeners[t]=[],!0;for(var n=0,r=this._listeners[t];n<r.length;n++){var o=r[n];if(e==o.key)return this._listeners[t].splice(this._listeners[t].indexOf(o),1),!0}return!1},t.prototype.offWithContext=function(t,e){if(!(t in this._listeners))return 0;for(var n=[],r=0,o=0,i=this._listeners[t];o<i.length;o++){e==(u=i[o]).context&&n.push(u)}for(var a=0,s=n;a<s.length;a++){var u=s[a];this._listeners[t].splice(this._listeners[t].indexOf(u),1),r++}return r},t.prototype.getListener=function(t,e){for(var n=0,r=this._listeners[t];n<r.length;n++){var o=r[n];if(e==o.key)return o}},t.prototype.all=function(t,e,n){return n=n||!1,this._lastKey++,this._allListeners.push(new r(t,this._lastKey,n,e)),this._lastKey},t.prototype.none=function(t){for(var e=0,n=this._allListeners;e<n.length;e++){var r=n[e];if(t==r.key)return this._allListeners.splice(this._allListeners.indexOf(r),1),!0}return!1},t.prototype.noneWithContext=function(t){for(var e=[],n=0,r=0,o=this._allListeners;r<o.length;r++){t==(s=o[r]).context&&e.push(s)}for(var i=0,a=e;i<a.length;i++){var s=a[i];this._allListeners.splice(this._allListeners.indexOf(s),1),n++}return n},t.prototype.dispatch=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(t in this._listeners)for(var o=0;o<this._listeners[t].length;o++){(s=this._listeners[t][o]).once&&(this.off(t,s.key),o--),s.call(e)}for(var i=0,a=this._allListeners;i<a.length;i++){var s;(s=a[i]).once&&this.none(s.key),s.call(e)}for(var u=0,c=this._relays;u<c.length;u++){var l=c[u];l.dispatch.apply(l,n([t],e))}},t.sources=[],t}();e.EventDispatcher=o},8001:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.Formats=void 0;var o=n(1371),i=n(6417),a=function(){function t(){}return t.currency=function(e){if(!t.CurrencyFormatter){var n=function(){var e=i.Configuration.get("locale","en-US"),n=i.Configuration.get("currency","USD");t.CurrencyFormatter=new Intl.NumberFormat(e,{style:"currency",currency:n})};i.Configuration.instance.on("change:locale",n),i.Configuration.instance.on("change:currency",n),n()}return e=(""+e).replace(/[^0-9.]+/,""),e=parseFloat(e),isNaN(e)?"":t.CurrencyFormatter.format(e)},t.date=function(t){return t?t.toLocaleString():""},r([o.Registry.format("currency")],t,"currency",null),r([o.Registry.format("date")],t,"date",null),t}();e.Formats=a},9188:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageList=void 0;var n=function(){function t(t){this.reset(),t&&this.merge(t)}return t.prototype.reset=function(){var t=this.keys;if(this._cachedList=void 0,t.length>0)for(var e=0,n=t;e<n.length;e++){delete this[n[e]]}},t.prototype.add=function(t,e,n){var r;void 0===n&&(n=!1),this.merge(((r={})[t]="string"==typeof e?[e]:e,r),n)},t.prototype.merge=function(t,e){var n=this;if(void 0===e&&(e=!1),t){this._cachedList=void 0;var r=this.keys,o=function(o){if(!t.hasOwnProperty(o))return"continue";var a=t[o];a instanceof Array&&(!e&&r.indexOf(o)>-1?a.map((function(t){n[o].push(t)})):a.length>0&&(i[o]=a))},i=this;for(var a in t)o(a)}},Object.defineProperty(t.prototype,"list",{get:function(){if(this._cachedList)return this._cachedList;for(var t={},e=0,n=this.keys;e<n.length;e++){var r=n[e];t[r]=this[r]}return this._cachedList=t,t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keys",{get:function(){var t=Object.keys(this);return t.splice(t.indexOf("_cachedList"),1),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),t}();e.MessageList=n},5453:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.Model=void 0;var a=n(9188),s=n(1525),u=n(1371),c=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n._hasErrors=!1,e&&n.setData(e),n._lastData=n.getData(),n._constructor(),n}return o(e,t),e.prototype._constructor=function(){},e.prototype.validate=function(){this._hasErrors=!1,this._errors=new a.MessageList;for(var t=0,e=this.getProperties();t<e.length;t++){var n=e[t],r=this["__"+n].validate();r.length>0&&(this._errors.add(n,r,!0),this._hasErrors=!0)}return this._errors},e.prototype.hasErrors=function(){return this.validate(),this._hasErrors},Object.defineProperty(e.prototype,"errors",{get:function(){return this._errors},enumerable:!1,configurable:!0}),e=i([u.Registry.model("Model")],e)}(s.ScopeData);e.Model=c},7677:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;var i=n(1341),a=n(4264),s=n(9033),u=n(2144),c=n(7942);e.Query=function(t,e){return void 0===e&&(e=null),r(this,void 0,void 0,(function(){var n;return o(this,(function(r){switch(r.label){case 0:return a.VisionHelper.document?[4,(e=e||s.DOM.instance).get(t,!0)]:[3,2];case 1:return 1==(n=r.sent()).length||1==n.length&&(n[0]instanceof u.WrappedWindow||n[0]instanceof c.WrappedDocument)?[2,n[0]]:[2,n];case 2:return[2,new i.TagList]}}))}))}},1371:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Registry=e.RegistryStore=e.register=void 0;var i=n(5559),a=n(9045);function s(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),function(r,o){void 0===o&&(o=null),e=e||r.prototype.constructor.name,null!==o&&(r=r[o]),c.instance[t].register(e,r),n&&n()}}e.register=s;var u=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.timeouts={},n.store=e||{},n}return o(e,t),e.prototype.register=function(t,e){this.store[t]=e,this.dispatch("register",t,e),this.dispatch("registered:"+t,e)},e.prototype.get=function(t){var e=this,n=a.SimplePromise.defer();return this.store[t]?n.resolve(this.store[t]):(console.warn("Waiting for "+t+" to be registered."),this.timeouts[t]=setTimeout((function(){console.warn("RegistryStore.get timed out after 5 seconds trying to find "+t+". Make sure the item is registered.")}),5e3),this.once("registered:"+t,(function(r){clearTimeout(e.timeouts[t]),n.resolve(r)}))),n.promise},e.prototype.getSynchronous=function(t){return this.store[t]},e.prototype.has=function(t){return!!this.store[t]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.store)},enumerable:!1,configurable:!0}),e}(i.EventDispatcher);e.RegistryStore=u;var c=function(t){function e(){var e=t.call(this)||this;return e.tags=new u,e.components=new u,e.functions=new u,e.controllers=new u,e.classes=new u,e.models=new u,e.templates=new u,e.services=new u,e.types=new u,e.validators=new u,e.formats=new u,e.attributes=new u,e}return o(e,t),e.component=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("components",t,e)},e.function=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("functions",t,e)},e.class=function(t){e.instance.classes.register(t.fullSelector,t)},e.controller=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("controllers",t,e)},e.model=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("models",t,e)},e.template=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("templates",t,e)},e.service=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("services",t,e)},e.type=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("types",t,e)},e.validator=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("validators",t,e)},e.format=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("formats",t,e)},e.attribute=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("attributes",t,e)},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e),e._instance},enumerable:!1,configurable:!0}),e}(i.EventDispatcher);e.Registry=c},4843:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionScope=e.Scope=void 0;var a=n(5559),s=n(414),u=n(4880),c=n(8572),l=n(1525),p=n(1469),f=n(9033),h=function(t){function e(e){var n=t.call(this)||this;return n._isGarbage=!1,e&&(n.parentScope=e),n.children=[],n._data=new p.DynamicScopeData({}),n._data.addRelay(n),n}return o(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentScope",{get:function(){if(this._parentScope)return this._parentScope;var t=f.DOM.instance.root.scope;return this==t?null:t},set:function(t){this._parentScope&&this._parentScope!==t&&this._parentScope.removeChild(this),t?(this._parentScope=t,t.addChild(this)):this._parentScope&&(this._parentScope.removeChild(this),this._parentScope=null)},enumerable:!1,configurable:!0}),e.prototype.addChild=function(t){this.children.push(t)},e.prototype.removeChild=function(t){var e=this.children.indexOf(t);e>-1&&this.children.splice(e,1)},e.prototype.getReference=function(t,n){void 0===n&&(n=!0);var r=t.split("."),o=r[0],i=this,a=null,c=r.length;if(t.startsWith("?"))return new u.QueryReference(t,i);for(var l=0;l<c;l++){o=r[l],a=i.get(o,0===l);var p=[null,void 0].indexOf(a)>-1;if(n&&p&&l+1<c)a=new e(i),i.set(o,a);else if(!n&&p)return null;a&&a instanceof e&&(i=a)}return new s.ScopeReference(i,o,a)},e.prototype.get=function(t,e){void 0===e&&(e=!0);var n=this._data[t];return void 0===n?e&&this.parentScope?this.parentScope.get(t,e):"":n},e.prototype.set=function(t,e,n){if(void 0===n&&(n=!1),n){var r=typeof e;"number"===r?e%1==0?this.setType(t,"integer"):this.setType(t,"float"):"string"===r?this.setType(t,"string"):"boolean"===r&&this.setType(t,"boolean")}this._data.hasProperty(t)||this._data.createProperty(t),this._data[t]=e},Object.defineProperty(e.prototype,"keys",{get:function(){return this._data.keys},enumerable:!1,configurable:!0}),e.prototype.has=function(t){return this._data.hasProperty(t)},e.prototype.setType=function(t,e){this._data.getProperty(t,!0).type=e,this.has(t)&&this.set(t,this.get(t))},e.prototype.getType=function(t){var e=this._data.getProperty(t);return null==e?void 0:e.type},e.prototype.extend=function(t){for(var e=0,n=t;e<n.length;e++){var r=n[e];this.set(r,t[r])}},e.prototype.clear=function(){for(var t=0,e=this._data.keys;t<e.length;t++){var n=e[t];["function","object"].indexOf(typeof this.get(n))>-1||this.set(n,null)}},e.prototype.cleanup=function(){this.children.length=0,this.parentScope=null},Object.defineProperty(e.prototype,"isGarbage",{get:function(){return this._isGarbage},enumerable:!1,configurable:!0}),e.prototype.collectGarbage=function(t){void 0===t&&(t=!1),this._isGarbage=!0;for(var e=0,n=this.children;e<n.length;e++){n[e].collectGarbage(t)}t&&this.cleanup()},e.prototype.deconstruct=function(){t.prototype.deconstruct.call(this),this.collectGarbage(!0)},e.prototype.wrap=function(t,n,r){var o=this;if(void 0===n&&(n=!1),void 0===r&&(r=!0),t instanceof l.ScopeData)return this._data instanceof a.EventDispatcher&&(this._data.removeRelay(this),this._data.deconstruct()),this.wrapped=t,this._data=t,void this._data.addRelay(this);if(t instanceof e&&(t=t._data),-1===[null,void 0].indexOf(this.wrapped))throw Error("A scope can only wrap a single object");if(!t)throw Error("Can only wrap objects.");if(t.$wrapped)throw Error("An object should only be wrapped once.");this.wrapped=t,this.wrapped.$wrapped=!0;var s=function(a){if(["constructor"].indexOf(a)>-1||a.startsWith("$"))return"continue";if(u.wrapped[a]instanceof Function)return u.set(a,u.wrapped[a]),"continue";if(u.wrapped[a]instanceof Array&&(u.wrapped[a]instanceof c.WrappedArray||(u.wrapped[a]=new(c.WrappedArray.bind.apply(c.WrappedArray,i([void 0],t[a])))),u.wrapped[a].on("change",(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.dispatch.apply(o,i(["change:"+a],t))}))),"object"==typeof u.wrapped[a]&&u.wrapped[a]&&u.wrapped[a].constructor===Object){var s=new e(u);s.wrap(u.wrapped[a]),u.wrapped[a]=s}r&&-1===[null,void 0].indexOf(u.wrapped[a])&&u.set(a,u.wrapped[a]);Object.defineProperty(u.wrapped,a,{get:function(){return o.get(a)},set:function(t){o.set(a,t)},enumerable:!0,configurable:!0}),n&&u.dispatch("change:"+a)},u=this;for(var p in t)s(p);this.wrapped.get=this.get.bind(this),this.wrapped.set=this.set.bind(this),this.wrapped.on=this.on.bind(this),this.wrapped.once=this.once.bind(this),this.wrapped.off=this.off.bind(this)},e.prototype.unwrap=function(){if(this.wrapped){var t=this.wrapped;for(var e in this.wrapped=null,t.$wrapped=!1,t)delete t[e]}},e.fromObject=function(t,n){var r=new e(n);return r.wrap(t),r},e}(a.EventDispatcher);e.Scope=h;var y=function(t){function e(e){var n=t.call(this,e)||this;return n.addRelay(e),n}return o(e,t),e.prototype.set=function(e,n){this.parentScope&&(this.parentScope.has(e)||["$","@"].indexOf(e[0])>-1)?this.parentScope.set(e,n):t.prototype.set.call(this,e,n)},e.prototype.collectGarbage=function(e){void 0===e&&(e=!0),t.prototype.collectGarbage.call(this,!0)},e}(h);e.FunctionScope=y},1469:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicScopeData=void 0;var i=function(t){function e(e){var n=t.call(this)||this;if(e instanceof Array)for(var r=0,o=e;r<o.length;r++){var i=o[r];n.createProperty(i)}else n.setData(e);return n}return o(e,t),e.prototype.setData=function(e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];this.hasProperty(o)||this.createProperty(o)}t.prototype.setData.call(this,e)},e.prototype.on=function(e,n,r,o){return 0==e.indexOf("change:")&&this.createProperty(e.substr(7)),t.prototype.on.call(this,e,n,r,o)},e}(n(6966).ScopeDataAbstract);e.DynamicScopeData=i},4880:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.QueryReference=void 0;var s=n(9033),u=function(t){function e(e,n){var r=t.call(this)||this;return r.path=e,r.scope=n,r}return o(e,t),e.prototype.getScope=function(){return i(this,void 0,void 0,(function(){var t,e;return a(this,(function(n){switch(n.label){case 0:return t=(t=this.path.split(".")).splice(0,t.length-1),[4,s.DOM.instance.exec(t.join("."))];case 1:return[2,1===(e=n.sent()).length?e[0].scope:e.map((function(t){return t.scope}))]}}))}))},e.prototype.getKey=function(){return i(this,void 0,void 0,(function(){var t;return a(this,(function(e){return[2,(t=this.path.split("."))[t.length-1]]}))}))},e.prototype.getValue=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,s.DOM.instance.exec(this.path)];case 1:return[2,t.sent()]}}))}))},e}(n(414).ScopeReference);e.QueryReference=u},1525:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeData=void 0;var i=function(t){function e(){for(var e=t.call(this)||this,n=0,r=e.__properties__.splice(0,e.__properties__.length);n<r.length;n++){!function(t,e){if(t["__"+e+"__"]){var n=t["__"+e+"__"],r=n[0],o=n[1]||{};t.createProperty(e,r,o)}}(e,r[n])}return e}return o(e,t),e}(n(6966).ScopeDataAbstract);e.ScopeData=i},6966:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeDataAbstract=void 0;var a=n(9380),s=function(t){function e(){var e=t.call(this)||this;return e.__properties__||(e.__properties__=[]),e.__methods__||(e.__methods__=[]),e}return o(e,t),e.prototype.createMethod=function(t,e){},e.prototype.createProperty=function(t,e,n){var r=this;if(void 0===e&&(e=a.Property),this.hasProperty(t))return this.getProperty(t);var o=new e((n=n||{}).default,n),s=Object.getOwnPropertyDescriptor(this,t);this["__"+t]=o,this.__properties__.push(t);var u=s?s.get:function(){return o.value},c=s?s.set:function(t){o.value=t};return delete this[t],Object.defineProperty(this,t,{get:u,set:c,enumerable:!0,configurable:!0}),o.on("change",(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.dispatch.apply(r,i(["change",t],e)),r.dispatch.apply(r,i(["change:"+t],e))})),o},e.prototype.hasProperty=function(t){return-1!==this.__properties__.indexOf(t)},Object.defineProperty(e.prototype,"keys",{get:function(){return i([],this.__properties__)},enumerable:!1,configurable:!0}),e.prototype.getKeys=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[],r=0,o=this.keys;r<o.length;r++){var i=o[r],a=this.getProperty(i);a.hasLabels(t)&&n.push(i)}return n},e.prototype.setData=function(t){var e=this.getProperties();for(var n in t)e.indexOf(n)>-1&&(this[n]=t[n])},e.prototype.getData=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n={};t:for(var r=0,o=this.getProperties();r<o.length;r++){for(var i=o[r],a=this["__"+i],s=0,u=t;s<u.length;s++){var c=u[s];if(!a.hasLabel(c))continue t}null!=this[i]&&a&&(n[i]=a.clean())}return n},e.prototype.get=function(t){return this[t]},e.prototype.set=function(t,e){this[t]=e},e.prototype.getProperties=function(){return this.__properties__},e.prototype.getProperty=function(t,e){void 0===e&&(e=!1);var n=this["__"+t];return e&&!n&&(n=this.createProperty(t)),n},e.prototype.bindToProperties=function(t,e,n){for(var r=0,o=e;r<o.length;r++){var i=this["__"+o[r]];i&&i.on(t,n)}},e.prototype.setLastData=function(){this._lastData=this.getData()},e.prototype.revert=function(){this.setData(this._lastData)},e.prototype.isModified=function(){for(var t=this._lastData,e=this.getData(),n=0,r=this.getProperties();n<r.length;n++){var o=r[n];if(e[o]!=t[o])return!0}return!1},e}(n(5559).EventDispatcher);e.ScopeDataAbstract=s},2018:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeObject=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(n(1525).ScopeData);e.ScopeObject=i},414:function(t,e){"use strict";var n=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeReference=void 0;var o=function(){function t(t,e,n){void 0===t&&(t=null),void 0===e&&(e=null),void 0===n&&(n=null),this._scope=t,this._key=e,this._value=n}return t.prototype.getScope=function(){return n(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this._scope]}))}))},t.prototype.getKey=function(){return n(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this._key]}))}))},t.prototype.getValue=function(){return n(this,void 0,void 0,(function(){return r(this,(function(t){return[2,this._value]}))}))},t}();e.ScopeReference=o},8572:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedArray=void 0;var a=n(5559),s=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.apply(this,n)||this;return o.$wrapped=!0,Object.setPrototypeOf(o,e.prototype),o.dispatcher=new a.EventDispatcher,o}return o(e,t),e.prototype.dispatch=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(e=this.dispatcher).dispatch.apply(e,i([t],n))},e.prototype.on=function(t,e,n){this.dispatcher.on(t,e,n)},e.prototype.off=function(t,e){this.dispatcher.off(t,e)},e.prototype.once=function(t,e){this.dispatcher.once(t,e)},e.prototype.push=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.prototype.push.apply(this,e);this.dispatch.apply(this,i(["push"],e)),this.dispatch("change",{added:e});for(var o=0,a=e;o<a.length;o++){var s=a[o];this.dispatch("add",s)}return r},e.prototype.remove=function(t){var e=this.indexOf(t);return-1!==e&&(this.splice(e,1),!0)},e.prototype.pop=function(){var e=t.prototype.pop.call(this);return this.dispatch("pop",e),this.dispatch("change",{removed:[e]}),this.dispatch("remove",e),e},e.prototype.shift=function(){var e=t.prototype.shift.call(this);return this.dispatch("shift",e),this.dispatch("change",{removed:[e]}),this.dispatch("remove",e),e},e.prototype.splice=function(e,n){var r=t.prototype.splice.call(this,e,n);this.dispatch("change",{removed:r});for(var o=0,i=r;o<i.length;o++){var a=i[o];this.dispatch("remove",a)}return r},e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.prototype.concat.apply(this,e);this.dispatch("change",{added:r});for(var o=0,i=r;o<i.length;o++){var a=i[o];this.dispatch("add",a)}return r},e.prototype.filter=function(n,r){var o=t.prototype.filter.call(this,n,r);return new(e.bind.apply(e,i([void 0],o)))},e.prototype.get=function(t){return["length"].indexOf(t)>-1?this[t]:void 0},Object.defineProperty(e.prototype,"length",{get:function(){for(var t=0,e=0;e<this.length;e++){this[e];t+=1}return t},set:function(t){this.setLength(t)},enumerable:!1,configurable:!0}),e.prototype.setLength=function(t){for(var e=0,n=[],r=0;r<this.length;r++){var o=this[r];(e+=1)>=t&&n.push(o)}for(var i=0,a=n;i<a.length;i++){o=a[i];this.splice(this.indexOf(o),1)}},e}(Array);e.WrappedArray=s},6691:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayProperty=void 0;var a=n(9380),s=n(8572),u=function(t){function e(e,n){var r=t.call(this,new s.WrappedArray,n)||this;return r.allKey=r._value.dispatcher.all(r.relayEvent.bind(r),r),void 0!==e&&(r.value=e),r}return o(e,t),e.prototype.deconstruct=function(){this._value.dispatcher.none(this.allKey),t.prototype.deconstruct.call(this)},e.prototype.relayEvent=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.dispatch.apply(this,i(["change"],e))},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){if(t instanceof Array||(t=[t]),this._value instanceof s.WrappedArray){this._value.splice(0,this._value.length);for(var e=0;e<t.length;e++)this._value.push(t[e])}else t instanceof s.WrappedArray&&(this._value=t)},enumerable:!1,configurable:!0}),e.prototype.clean=function(){return Array.from(this._value)},e}(a.Property);e.ArrayProperty=u},1401:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.FloatProperty=void 0;var i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._type="float",e}return o(e,t),e}(n(9380).Property);e.FloatProperty=i},1677:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerProperty=void 0;var i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._type="integer",e}return o(e,t),e}(n(9380).Property);e.IntegerProperty=i},9380:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Property=e.method=e.property=void 0;var i=n(5559),a=n(1371);e.property=function(t,e){return void 0===t&&(t=s),void 0===e&&(e={}),function(n,r){null==n.__properties__&&(n.__properties__=[]),-1==n.__properties__.indexOf(r)&&n.__properties__.push(r);Object.defineProperty(n,"__"+r+"__",{get:function(){return[t,e]},set:function(t){},enumerable:!1,configurable:!0})}},e.method=function(t){return void 0===t&&(t={}),function(e,n){null==e.__methods__&&(e.__methods__=[]),-1==e.__methods__.indexOf(n)&&e.__methods__.push(n);Object.defineProperty(e,"__"+n+"__",{get:function(){return t},set:function(t){},enumerable:!1,configurable:!0})}};var s=function(t){function e(e,n){var r=t.call(this)||this;return r._type="any",r.config=n,r.config.labels||(r.config.labels=[]),r.config.validators||(r.config.validators=[]),r.type=n.type||"any",r.value=e,r}return o(e,t),e.prototype.castType=function(t){var e=a.Registry.instance.types.getSynchronous(this.type);return e?e(t):t},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){var e=this._value;this._value=this.castType(t),this._value!==e&&this.dispatch("change",{oldValue:e,value:t})},enumerable:!1,configurable:!0}),e.prototype.clean=function(){return this.value},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type!=t&&(this._type=t,this.value=this.value)},enumerable:!1,configurable:!0}),e.prototype.validate=function(){for(var t=[],e=0,n=this.config.validators||[];e<n.length;e++){var r=n[e];t.concat(r(this.value))}return t},e.prototype.getValidator=function(t){var e=a.Registry.instance.validators.getSynchronous(t);if(!e)throw new Error("Invalid validator "+t);return e},e.prototype.addValidator=function(t){"string"==typeof t&&(t=this.getValidator(t)),-1==this.config.validators.indexOf(t)&&this.config.validators.push(t)},e.prototype.addLabel=function(t){null==this.config.labels&&(this.config.labels=[]),-1==this.config.labels.indexOf(t)&&this.config.labels.push(t)},e.prototype.removeLabel=function(t){if(null!=this.config.labels){var e=this.config.labels.indexOf(t);-1!=e&&this.config.labels.splice(e,1)}},e.prototype.hasLabel=function(t){return-1!==this.config.labels.indexOf(t)},e.prototype.hasLabels=function(t){for(var e=0,n=t;e<n.length;e++){var r=n[e];if(!this.hasLabel(r))return!1}return!0},e}(i.EventDispatcher);e.Property=s},9618:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FloatProperty=e.IntegerProperty=e.ArrayProperty=e.property=e.Property=void 0;var r=n(9380);Object.defineProperty(e,"Property",{enumerable:!0,get:function(){return r.Property}}),Object.defineProperty(e,"property",{enumerable:!0,get:function(){return r.property}});var o=n(6691);Object.defineProperty(e,"ArrayProperty",{enumerable:!0,get:function(){return o.ArrayProperty}});var i=n(1677);Object.defineProperty(e,"IntegerProperty",{enumerable:!0,get:function(){return i.IntegerProperty}});var a=n(1401);Object.defineProperty(e,"FloatProperty",{enumerable:!0,get:function(){return a.FloatProperty}})},218:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Service=void 0;var i=n(4843),a=function(t){function e(){var e=t.call(this)||this;return e._scope=new i.Scope,e._scope.wrap(e),e}return o(e,t),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope},enumerable:!1,configurable:!0}),Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new this),this._instance},enumerable:!1,configurable:!0}),e}(n(2018).ScopeObject);e.Service=a},9045:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.SimplePromise=e.noop=e.EPromiseStates=void 0;var i,a=n(5559);!function(t){t[t.PENDING=0]="PENDING",t[t.FULFILLED=1]="FULFILLED",t[t.REJECTED=2]="REJECTED"}(i=e.EPromiseStates||(e.EPromiseStates={})),e.noop=function(t){return t};var s=function(t){function e(e){var n=t.call(this)||this;n._result=null,n._state=i.PENDING,n.promiseClass=Object.getPrototypeOf(n).constructor;try{e(n._resolve.bind(n),n._reject.bind(n))}catch(t){n._reject(t)}return n}return o(e,t),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e.defer=function(){var t=new e((function(t,e){}));return{promise:t,resolve:t._resolve.bind(t),reject:t._reject.bind(t)}},e.resolve=function(t){return new e((function(n){t instanceof e?t.then((function(t){n(t)})):n(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){for(var n=e.defer(),r=!0,o=0,a=t;o<a.length;o++){var s=a[o];if(s.state==i.PENDING)r=!1,s.once("fulfilled",(function(r){e.poolResults(t,n)})),s.once("rejected",(function(t){n.reject(t)}));else if(s.state==i.REJECTED){n.reject(s.result),r=!1;break}}return r&&e.poolResults(t,n),n.promise},e.poolResults=function(t,e){for(var n=!0,r=[],o=0,a=t;o<a.length;o++){var s=a[o];if(s.state===i.REJECTED){e.reject(s.result);break}s.state===i.PENDING&&(n=!1),r.push(s.result)}n&&e.resolve(r)},e.race=function(t){for(var n=e.defer(),r=0,o=t;r<o.length;r++){var i=o[r];i.once("fulfilled",(function(t){n.resolve(t)})),i.once("rejected",(function(t){n.reject(t)}))}return n.promise},e.prototype.then=function(t,e){var n=this;return new this.promiseClass((function(r,o){n.state===i.FULFILLED?t&&r(t(n.result)):n.state===i.REJECTED?e&&o(e(n.result)):(n.once("fulfilled",(function(e){t&&r(t(e))})),n.once("rejected",(function(t){e&&o(e(t))})))}))},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.finally=function(t){return this.then((function(e){return t(e)}),(function(e){return t(e)}))},e.prototype._resolve=function(t){this.state===i.PENDING&&(this._state=i.FULFILLED,this._result=t,this.dispatch("fulfilled",t))},e.prototype._reject=function(t){this.state===i.PENDING&&(this._state=i.REJECTED,this._result=t,this.dispatch("rejected",t))},e}(a.EventDispatcher);e.SimplePromise=s},712:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Tag=e.TagState=void 0;var u,c=n(4843),l=n(5092),p=n(9033),f=n(126),h=n(4264),y=n(6032),d=n(8447),b=n(1371),v=n(3276),_=n(7754),g=n(1857);!function(t){t[t.Instantiated=0]="Instantiated",t[t.AttributesBuilt=1]="AttributesBuilt",t[t.AttributesCompiled=2]="AttributesCompiled",t[t.AttributesSetup=3]="AttributesSetup",t[t.AttributesExtracted=4]="AttributesExtracted",t[t.AttributesConnected=5]="AttributesConnected",t[t.Built=6]="Built"}(u=e.TagState||(e.TagState={}));var w=function(t){function e(n,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var a=t.call(this,n,o)||this;return a.dom=r,a.deferredAttributes=[],a._nonDeferredAttributes=[],a._children=[],a.inputTags=["input","select","textarea"],n[e.TaggedVariable]=a,a.rawAttributes={},a.parsedAttributes={},a.attributes=[],a.attributeMap={},a.onEventHandlers={},a.analyzeElementAttributes(),a._state=u.Instantiated,a}return o(e,t),Object.defineProperty(e.prototype,"uniqueScope",{get:function(){return this._uniqueScope},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"meta",{get:function(){return this._meta||(this._meta={}),this._meta},enumerable:!1,configurable:!0}),e.prototype.onAttributeStateChange=function(t){t.previouseState===l.AttributeState.Deferred&&(this._nonDeferredAttributes.length=0)},e.prototype.getAttributesWithState=function(t){return this.attributes.filter((function(e){return e.state===t}))},Object.defineProperty(e.prototype,"nonDeferredAttributes",{get:function(){if(this._nonDeferredAttributes.length>0)return this._nonDeferredAttributes;var t=this.attributes.filter((function(t){return t.state!==l.AttributeState.Deferred}));return this._nonDeferredAttributes=t,t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.element.style},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"computedStyle",{get:function(){return h.VisionHelper.window&&window.getComputedStyle(this.element)||null},enumerable:!1,configurable:!0}),e.prototype.analyzeElementAttributes=function(){if(this.element.attributes&&!(this.element.attributes.length<=0))for(var t=0;t<this.element.attributes.length;t++){var e=this.element.attributes[t];if(this.rawAttributes[e.name]=e.value,e.name.indexOf(":")>-1){var n=e.name.split(":"),r=n.slice(1);r.push(e.value),this.parsedAttributes[n[0]]=r}else this.parsedAttributes[e.name]=[null,e.value]}},e.prototype.exec=function(t){return i(this,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return[4,(e=new _.Tree(t)).prepare(this.scope,this.dom,this)];case 1:return n.sent(),[4,e.evaluate(this.scope,this.dom,this)];case 2:return[2,n.sent()]}}))}))},e.prototype.evaluate=function(){return i(this,void 0,void 0,(function(){var t,e;return a(this,(function(n){switch(n.label){case 0:t=0,e=this.nonDeferredAttributes,n.label=1;case 1:return t<e.length?[4,e[t].evaluate()]:[3,4];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},e.prototype.mutate=function(t){this.attributes.map((function(e){return e.mutate(t)})),this.dispatch("mutate",t)},e.prototype.get=function(t){this.element.getAttribute(t)},e.prototype.set=function(t,e){this.element.setAttribute(t,e)},e.prototype.getAttributeClass=function(t){return i(this,void 0,void 0,(function(){return a(this,(function(e){return t.startsWith("vsn-")?(t=this.getAttributeName(t),[2,b.Registry.instance.attributes.get(t)]):[2,null]}))}))},e.prototype.getAttributeName=function(t){if((t=t.split("|")[0]).indexOf(":")>-1){var e=t.split(":");t=e[0]}return t},e.prototype.getAttributeBinding=function(t){return(t=t.split("|")[0]).indexOf(":")>-1?t.split(":")[1]:null},e.prototype.getAttributeModifiers=function(t){return t.split("|").splice(1)},Object.defineProperty(e.prototype,"isInput",{get:function(){return this.inputTags.indexOf(this.element.tagName.toLowerCase())>-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSelect",{get:function(){return"select"===this.element.tagName.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMultipleSelect",{get:function(){return this.isSelect&&this.element.hasAttribute("multiple")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.isInput?this.isMultipleSelect?Array.from(this.element.options).filter((function(t){return t.selected})).map((function(t){return t.value})):this.element.value:this.element.textContent},set:function(t){if(this.isInput)if(this.isMultipleSelect)for(var e=0,n=Array.from(this.element.options);e<n.length;e++){var r=n[e];r.selected=t.indexOf(r.value)>-1}else this.element.setAttribute("value",t),this.element.value=t;else this.element.innerText=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return!!this.isInput&&this.element.checked},set:function(t){this.isInput&&(t?(this.element.setAttribute("checked",""),this.element.checked=!0):(this.element.removeAttribute("checked"),this.element.checked=!1))},enumerable:!1,configurable:!0}),e.prototype.addChild=function(t){this._children.push(t)},e.prototype.removeChild=function(t){this._children.splice(this._children.indexOf(t),1)},Object.defineProperty(e.prototype,"children",{get:function(){return s([],this._children)},enumerable:!1,configurable:!0}),e.prototype.findParentTag=function(){for(var t=p.DOM.getParentElement(this.element),n=!1;t;){if(t[e.TaggedVariable]){n=!0,this.parentTag=t[e.TaggedVariable];break}t=p.DOM.getParentElement(t)}if(!n&&p.DOM.instance.root!==this)return p.DOM.instance.root},Object.defineProperty(e.prototype,"parentTag",{get:function(){return this._parentTag||this.findParentTag(),this._parentTag},set:function(t){this.element!==document.body&&(this._parentTag&&this._parentTag!==t&&(this._parentTag.removeChild(this),this.scope.parentScope=null),this._parentTag=t,t&&(t.addChild(this),this.scope!==t.scope&&(this.scope.parentScope=t.scope)))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope?this._scope:this.uniqueScope?this.createScope(!0):this.parentTag?this.parentTag.scope:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"controller",{get:function(){return this._controller},set:function(t){this._controller=t},enumerable:!1,configurable:!0}),e.prototype.wrap=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!0),h.VisionHelper.isConstructor(t)&&(t=new t),t instanceof f.Controller?(t.init(this.scope,this,this.element),this.controller=t):(t.$scope=this.scope,t.$tag=this,t.$el=this.element),this.scope.wrap(t,e,n),t},e.prototype.unwrap=function(){this.scope.unwrap()},e.prototype.removeFromDOM=function(){this.element.remove()},e.prototype.addToParentElement=function(){this.parentTag.element.appendChild(this.element)},e.prototype.hide=function(){this.element.hidden=!0},e.prototype.show=function(){this.element.hidden=!1},e.prototype.findAncestorByAttribute=function(t,e){return void 0===e&&(e=!1),e&&this.hasAttribute(t)?this:this.parentTag?this.parentTag.findAncestorByAttribute(t,!0):null},e.prototype.findDescendantsByAttribute=function(t,e){void 0===e&&(e=!1);var n=[];e&&this.hasAttribute(t)&&n.push(this);for(var r=0,o=this.children;r<o.length;r++){var i=o[r];n.concat(i.findDescendantsByAttribute(t,!0))}return n},e.prototype.findChildrenByAttribute=function(t){return this.children.filter((function(e){return e.hasAttribute(t)}))},e.prototype.hasAttribute=function(t){return!!this.parsedAttributes[t]},e.prototype.getAttribute=function(t){return i(this,void 0,void 0,(function(){var e,n,r,o;return a(this,(function(i){switch(i.label){case 0:return[4,b.Registry.instance.attributes.get(t)];case 1:if(!(e=i.sent()))return[2];for(n=0,r=this.attributes;n<r.length;n++)if((o=r[n])instanceof e)return[2,o];return[2]}}))}))},e.prototype.isMagicAttribute=function(t){return e.magicAttributes.indexOf(t)>-1},e.prototype.setElementAttribute=function(t,n){var r,o;if(this.isMagicAttribute(t)){if("@text"===t)this.element.innerText=n;else if("@html"===t)this.element.innerHTML=n,p.DOM.instance.buildFrom(this.element).then((function(t){_.Tree.reprepareExecutingTrees()}));else if("@value"===t)this.value=n;else if("@class"===t&&n){(r=this.element.classList).remove.apply(r,Array.from(this.element.classList));var i=n instanceof Array?n:[n];i.length&&(o=this.element.classList).add.apply(o,i)}else if(e.flagAttributes.indexOf(t)>-1){var a=t.replace("@","");n?this.element.setAttribute(a,""):this.element.removeAttribute(a)}}else this.element.setAttribute(t,n)},e.prototype.getElementAttribute=function(t){if(this.isMagicAttribute(t)){if("@text"===t)return this.element.innerText;if("@html"===t)return this.element.innerHTML;if("@value"===t)return this.value;if("@class"===t)return Array.from(this.element.classList);if(e.flagAttributes.indexOf(t)>-1){var n=t.replace("@","");return this.element.hasAttribute(n)}}return this.element.getAttribute(t)},e.prototype.getRawAttributeValue=function(t,e){return void 0===e&&(e=null),this.rawAttributes[t]?this.rawAttributes[t]:e},e.prototype.hasRawAttribute=function(t){return void 0!==this.getRawAttributeValue(t,void 0)},e.prototype.getParsedAttributeValue=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=null),this.parsedAttributes[t]&&this.parsedAttributes[t][e]||n},e.prototype.getTagsToBuild=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return this.isSlot?[4,p.DOM.instance.getTagsForElements(this.delegates,!0)]:[3,2];case 1:return[2,t.sent()];case 2:return[2,[this]]}}))}))},e.prototype.buildAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,o,i,s,c,l,p,f,y,d,b;return a(this,(function(a){switch(a.label){case 0:return t=!1,e=!1,n=h.VisionHelper.isMobile(),(null===this.element.offsetParent||this.hasAttribute("hidden")||this.hasAttribute("vsn-defer"))&&(e=!0),[4,this.getTagsToBuild()];case 1:r=a.sent(),o=this.isSlot?this:null,i=0,s=r,a.label=2;case 2:if(!(i<s.length))return[3,9];for(p in c=s[i],l=[],this.rawAttributes)l.push(p);f=0,a.label=3;case 3:return f<l.length?(y=l[f],c.attributeMap[y]||this.hasModifier(y,"mobile")&&!n||this.hasModifier(y,"desktop")&&n?[3,6]:[4,this.getAttributeClass(y)]):[3,7];case 4:return(d=a.sent())?(d.scoped&&(t=!0),b=d.create(c,y,d,o),c.attributes.push(b),c.attributeMap[y]=b,e&&d.canDefer?[4,b.defer()]:[3,6]):[3,6];case 5:a.sent(),c.deferredAttributes.push(b),b.on("state",c.onAttributeStateChange,c),a.label=6;case 6:return f++,[3,3];case 7:c.element.getAttribute("id")&&(t=!0),t&&!c.uniqueScope&&(c._uniqueScope=!0),a.label=8;case 8:return i++,[3,2];case 9:return this._state=u.AttributesBuilt,[2]}}))}))},e.prototype.compileAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.getTagsToBuild()];case 1:t=a.sent(),e=0,n=t,a.label=2;case 2:if(!(e<n.length))return[3,7];r=n[e],o=0,i=r.getAttributesWithState(l.AttributeState.Instantiated),a.label=3;case 3:return o<i.length?[4,i[o].compile()]:[3,6];case 4:a.sent(),a.label=5;case 5:return o++,[3,3];case 6:return e++,[3,2];case 7:return this._state=u.AttributesCompiled,[2]}}))}))},e.prototype.setupAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.getTagsToBuild()];case 1:t=a.sent(),e=0,n=t,a.label=2;case 2:if(!(e<n.length))return[3,7];r=n[e],o=0,i=r.getAttributesWithState(l.AttributeState.Compiled),a.label=3;case 3:return o<i.length?[4,i[o].setup()]:[3,6];case 4:a.sent(),a.label=5;case 5:return o++,[3,3];case 6:return e++,[3,2];case 7:return this.isSlot||this.dom.registerElementInRoot(this),this._state=u.AttributesSetup,this.callOnWrapped("$setup"),[2]}}))}))},e.prototype.extractAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.getTagsToBuild()];case 1:t=a.sent(),e=0,n=t,a.label=2;case 2:if(!(e<n.length))return[3,7];r=n[e],o=0,i=r.getAttributesWithState(l.AttributeState.Setup),a.label=3;case 3:return o<i.length?[4,i[o].extract()]:[3,6];case 4:a.sent(),a.label=5;case 5:return o++,[3,3];case 6:return e++,[3,2];case 7:return this._state=u.AttributesExtracted,this.callOnWrapped("$extracted"),[2]}}))}))},e.prototype.connectAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.getTagsToBuild()];case 1:t=a.sent(),e=0,n=t,a.label=2;case 2:if(!(e<n.length))return[3,7];(r=n[e]).isInput&&r.addEventHandler("input",[],r.inputMutation,r),o=0,i=r.getAttributesWithState(l.AttributeState.Extracted),a.label=3;case 3:return o<i.length?[4,i[o].connect()]:[3,6];case 4:a.sent(),a.label=5;case 5:return o++,[3,3];case 6:return e++,[3,2];case 7:return this._state=u.AttributesConnected,this.callOnWrapped("$bound"),[2]}}))}))},e.prototype.inputMutation=function(t){if(this.isSelect){for(var e=this.element.selectedOptions,n=[],r=0;r<e.length;r++)n.push(e[r].value);for(var o=0,i=Array.from(this.element.options);o<i.length;o++){var a=i[o];n.indexOf(a.value)>-1?a.setAttribute("selected",""):a.removeAttribute("selected")}this.value=n.join(",")}else this.value=t.target.value},e.prototype.finalize=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this._state=u.Built,this.callOnWrapped("$built",this,this.scope,this.element),this.dispatch("$built",this),h.VisionHelper.nice(this.setupDeferredAttributes.bind(this)),[2]}))}))},e.prototype.callOnWrapped=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return!!(this._uniqueScope&&this.scope&&this.scope.wrapped&&this.scope.wrapped[t])&&((e=this.scope.wrapped)[t].apply(e,n),!0)},e.prototype.handleEvent=function(t,e){if(e&&e.stopPropagation(),this.onEventHandlers[t]){this.scope.set("$event",e),this.scope.set("$value",this.value);for(var n=0,r=this.onEventHandlers[t];n<r.length;n++){var o=r[n];o.handler.call(o.context,e)}}},e.prototype.hasModifier=function(t,e){return t.indexOf("|"+e)>-1},e.prototype.stripModifier=function(t,e){return t.replace("|"+e,"")},e.prototype.addEventHandler=function(t,e,n,r){void 0===r&&(r=null);var o=null;if(e.indexOf("active")>-1?o=!1:e.indexOf("passive")>-1&&(o=!0),!this.onEventHandlers[t]){this.onEventHandlers[t]=[];var i=d.On.WindowEvents.indexOf(t)>-1&&window?window:this.element,a={};(t.indexOf("touch")>-1||null!==o)&&(a.passive=null===o||o),i.addEventListener(t,this.handleEvent.bind(this,t),a)}this.onEventHandlers[t].push({handler:n,event:t,context:r})},e.prototype.removeEventHandler=function(t,e,n){if(void 0===n&&(n=null),this.onEventHandlers[t]){var r=this.onEventHandlers[t].find((function(t){return t.handler===e&&t.context===n}));r&&(this.onEventHandlers[t].splice(this.onEventHandlers[t].indexOf(r),1),0===this.onEventHandlers[t].length&&this.element.removeEventListener(t,this.handleEvent.bind(this,t)))}},e.prototype.removeContextEventHandlers=function(t){for(var e=0,n=Object.keys(this.onEventHandlers);e<n.length;e++)for(var r=n[e],o=0,i=this.onEventHandlers[r];o<i.length;o++){var a=i[o];a.context===t&&this.removeEventHandler(r,a.handler,t)}},e.prototype.createScope=function(t){return void 0===t&&(t=!1),this._scope||!t&&!this.uniqueScope||(this._uniqueScope=!0,this._scope=new c.Scope,this.parentTag&&(this.scope.parentScope=this.parentTag.scope)),this._scope},e.prototype.watchAttribute=function(t){return i(this,void 0,void 0,(function(){var e,n,r,o;return a(this,(function(i){switch(i.label){case 0:for(e=0,n=this.attributes;e<n.length;e++)if((r=n[e])instanceof y.StandardAttribute&&r.attributeName==t)return[2,r];return this.createScope(!0),o=new y.StandardAttribute(this,t),this.attributes.push(o),[4,this.setupAttribute(o)];case 1:return i.sent(),[2,o]}}))}))},e.prototype.watchStyle=function(t){return i(this,void 0,void 0,(function(){var t,e,n,r;return a(this,(function(o){switch(o.label){case 0:for(t=0,e=this.attributes;t<e.length;t++)if((n=e[t])instanceof g.StyleAttribute)return[2,n];return this.createScope(!0),r=new g.StyleAttribute(this,"style"),this.attributes.push(r),[4,this.setupAttribute(r)];case 1:return o.sent(),[2,r]}}))}))},e.prototype.setupAttribute=function(t){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,t.compile()];case 1:return e.sent(),[4,t.setup()];case 2:return e.sent(),[4,t.extract()];case 3:return e.sent(),[4,t.connect()];case 4:return e.sent(),[2]}}))}))},e.prototype.setupDeferredAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,n;return a(this,(function(r){switch(r.label){case 0:t=0,e=this.deferredAttributes,r.label=1;case 1:return t<e.length?(n=e[t],[4,this.setupAttribute(n)]):[3,4];case 2:r.sent(),r.label=3;case 3:return t++,[3,1];case 4:return this.deferredAttributes.length=0,[2]}}))}))},e.prototype.deconstruct=function(){this.attributes.forEach((function(t){return t.deconstruct()})),this.attributes.length=0,this._children.forEach((function(t){return t.deconstruct()})),this._children.length=0,t.prototype.deconstruct.call(this)},e.TaggedVariable="_vsn_tag",e.magicAttributes=["@text","@html","@class","@value","@disabled","@hidden","@selected","@readonly","@multiple","@required","@autofocus"],e.flagAttributes=["@disabled","@hidden","@checked","@selected","@readonly","@multiple","@required","@autofocus"],e}(v.DOMObject);e.Tag=w},6453:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.SlotTag=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(n(712).Tag);e.SlotTag=i},3423:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.SlottedTag=void 0;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.slotted=function(t){return i(this,void 0,void 0,(function(){return a(this,(function(e){return this.slotTag=t,this.slot=t.element,this.findParentTag(),[2]}))}))},e.prototype.findParentTag=function(){return this.parentTag=this.slotTag,this._parentTag},e}(n(712).Tag);e.SlottedTag=s},1341:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.TagList=void 0;var i=n(4264),a=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.apply(this,n)||this;return Object.setPrototypeOf(o,e.prototype),o}return o(e,t),Object.defineProperty(e.prototype,"scope",{get:function(){return this[0].scope},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elements",{get:function(){return this.map((function(t){return t.element}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this[this.length-1]},enumerable:!1,configurable:!0}),e.prototype.all=function(t){var e=this.map((function(e){return e.promise(t)}));return Promise.all(e)},e.prototype.removeClass=function(t){return this.forEach((function(e){return e.element.classList.remove(t)})),this},e.prototype.addClass=function(t){return this.forEach((function(e){return e.element.classList.add(t)})),this},e.prototype.css=function(t,e){var n=t.replace(/(-[a-z])/,(function(t){return t.replace("-","").toUpperCase()}));return this.forEach((function(t){return t.element.style[n]=e})),this},e}(Array);e.TagList=a,i.VisionHelper.inDevelopment&&i.VisionHelper.window&&(window.TagList=a)},3398:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.Types=void 0;var o=n(1371),i=function(){function t(){}return t.any=function(t){return t},t.string=function(t){return""+t},t.integer=function(t){return parseInt(t)},t.float=function(t){return t=(""+t).replace(/[^\d.]+/,""),parseFloat(t)},t.boolean=function(t){return-1===[0,"0",!1,"false",""].indexOf(t)},t.date=function(t){return new Date(Date.parse(t))},r([o.Registry.type("any")],t,"any",null),r([o.Registry.type("string")],t,"string",null),r([o.Registry.type("integer")],t,"integer",null),r([o.Registry.type("float")],t,"float",null),r([o.Registry.type("boolean")],t,"boolean",null),r([o.Registry.type("date")],t,"date",null),t}();e.Types=i},3463:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.Validators=void 0;var o=n(1371),i=function(){function t(){}return t.email=function(t){var e=[];return null==t||this._emailRegex.test(t)||e.push("Please enter a valid email address"),e},t.required=function(t){var e=[];return null!=t&&0!=t.length||e.push("This field is required"),e},t.positive=function(t){var e=[];return null!=t&&t<0&&e.push("Please enter a positive number"),e},t.negative=function(t){var e=[];return null!=t&&t>0&&e.push("Please enter a negative number"),e},t._emailRegex=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,r([o.Registry.validator("email")],t,"email",null),r([o.Registry.validator("required")],t,"required",null),r([o.Registry.validator("positive")],t,"positive",null),r([o.Registry.validator("negative")],t,"negative",null),t}();e.Validators=i},8041:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.AddClassIf=void 0;var u=n(523),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onChange=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent()?this.tag.element.classList.add(this.getAttributeBinding()):this.tag.element.classList.remove(this.getAttributeBinding()),[2]}}))}))},e=i([c.Registry.attribute("vsn-add-class-if")],e)}(u.If);e.AddClassIf=l},8171:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Bind=void 0;var u=n(5092),c=n(7754),l=n(1371),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.direction="both",e.formatter=function(t){return t},e}return o(e,t),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,new c.Tree(this.getAttributeValue()).prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[4,t.prototype.compile.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return this.property=this.getAttributeBinding(this.property),(e=this.getAttributeModifiers()).length&&(e.indexOf("from")>-1?this.direction="from":e.indexOf("to")>-1&&(this.direction="to")),[4,t.prototype.setup.call(this)];case 1:return n.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){var e,n,r,o;return s(this,(function(i){switch(i.label){case 0:e=this.getAttributeValue();try{n=this.tag.scope.getReference(e)}catch(t){return console.error("error",t),[2]}return r=this,[4,n.getKey()];case 1:return r.key=i.sent(),o=this,[4,n.getScope()];case 2:return o.boundScope=i.sent(),this.valueFromElement&&this.updateFrom(),this.doUpdateTo&&(this.updateTo(),this.boundScope.on("change:"+this.key,this.updateTo,this)),[4,t.prototype.connect.call(this)];case 3:return i.sent(),[2]}}))}))},e.prototype.evaluate=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.valueFromElement&&this.updateFrom(),this.updateTo(),[4,t.prototype.evaluate.call(this)];case 1:return e.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"value",{get:function(){return this.boundScope?this.boundScope.get(this.key,!1):null},set:function(t){this.boundScope&&this.boundScope.set(this.key,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueFromElement",{get:function(){return this.property?this.tag.getElementAttribute(this.property):this.tag.value},enumerable:!1,configurable:!0}),e.prototype.mutate=function(e){t.prototype.mutate.call(this,e),this.doUpdateFrom&&(!this.property&&["characterData","childList"].indexOf(e.type)>-1?this.updateFrom():this.property||"attributes"!=e.type||"value"!==e.attributeName?"attributes"===e.type&&e.attributeName==this.property&&this.updateFrom():this.updateFrom())},Object.defineProperty(e.prototype,"doUpdateFrom",{get:function(){return["both","to"].indexOf(this.direction)>-1},enumerable:!1,configurable:!0}),e.prototype.updateFrom=function(){if(this.doUpdateFrom){var t=this.valueFromElement;t="string"==typeof t&&t.trim()||t;var e=this.value;e="string"==typeof e&&e.trim()||e,(e=this.formatter(e))&&t==e||(this.value=t)}},Object.defineProperty(e.prototype,"doUpdateTo",{get:function(){return["both","from"].indexOf(this.direction)>-1},enumerable:!1,configurable:!0}),e.prototype.updateTo=function(){if(this.doUpdateTo){var t=this.formatter(this.value);this.property?this.tag.setElementAttribute(this.property,t):this.tag.value=t}},e.prototype.setFormatter=function(t){this.formatter=t},e.canDefer=!1,e=i([l.Registry.attribute("vsn-bind")],e)}(u.Attribute);e.Bind=p},5514:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ComponentAttribute=void 0;var u=n(1371),c=n(4515),l=n(2918),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,n,r;return s(this,(function(i){switch(i.label){case 0:return e=this.getAttributeBinding(),u.Registry.instance.tags.has(e)?[3,4]:[4,t.prototype.extract.call(this)];case 1:return i.sent(),n=this.getAttributeValue(),r=void 0,n?[4,u.Registry.instance.components.get(n)]:[3,3];case 2:r=i.sent(),i.label=3;case 3:r||(r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(l.Component)),u.Registry.instance.tags.register(e,r),i.label=4;case 4:return[2]}}))}))},e.scoped=!0,e=i([u.Registry.attribute("vsn-component")],e)}(c.TemplateAttribute);e.ComponentAttribute=p},3650:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ControllerAttribute=void 0;var u=n(4843),c=n(5092),l=n(1371),p=n(126),f=n(218),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registryName="controllers",e}return o(e,t),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var e,n,r;return s(this,(function(o){switch(o.label){case 0:return this.attributeKey=this.getAttributeBinding(),this.className=this.getAttributeValue(this.defaultClassName),[4,l.Registry.instance[this.registryName].get(this.className)];case 1:return e=o.sent(),this.attributeKey?(n=void 0,e.instance instanceof e?(n=e.instance.scope,e.instance instanceof f.Service&&(this.tag.dom.root.scope.addChild(n),this.tag.dom.root.scope.set(this.attributeKey,n))):(n=new u.Scope(this.tag.scope),(r=new e)instanceof p.Controller&&r.init(this.tag.scope,this.tag,this.tag.element),n.wrap(r)),this.tag.scope.set(this.attributeKey,n)):this.instantiateClass(e),[4,t.prototype.setup.call(this)];case 2:return o.sent(),[2]}}))}))},e.prototype.instantiateClass=function(t){return this.tag.wrap(t),this.tag.scope},e.canDefer=!1,e.scoped=!0,e=i([l.Registry.attribute("vsn-controller")],e)}(c.Attribute);e.ControllerAttribute=h},4893:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.DisableIf=void 0;var u=n(523),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onChange=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent()?this.tag.element.setAttribute("disabled","disabled"):this.tag.element.removeAttribute("disabled"),[2]}}))}))},e.canDefer=!1,e=i([c.Registry.attribute("vsn-disable-if")],e)}(u.If);e.DisableIf=l},6813:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Exec=void 0;var u=n(5092),c=n(7754),l=n(1371),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"code",{get:function(){return this.getAttributeValue()},enumerable:!1,configurable:!0}),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.tree=new c.Tree(this.code),[4,this.tree.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[4,t.prototype.compile.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e=this;return s(this,(function(n){switch(n.label){case 0:return this.hasModifier("defer")?(this.tag.dom.once("built",(function(){return e.execute()})),[3,3]):[3,1];case 1:return[4,this.execute()];case 2:n.sent(),n.label=3;case 3:return[4,t.prototype.extract.call(this)];case 4:return n.sent(),[2]}}))}))},e.prototype.execute=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent(),[2]}}))}))},e.canDefer=!1,e=i([l.Registry.attribute("vsn-exec")],e)}(u.Attribute);e.Exec=p},8289:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Format=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,n,r,o;return s(this,(function(i){switch(i.label){case 0:return e=this.getAttributeValue(null),n=this.getAttributeBinding(null),[4,c.Registry.instance.formats.get(e)];case 1:return r=i.sent(),o=n?"vsn-bind:"+n:"vsn-bind",[4,this.tag.getAttribute(o)];case 2:return i.sent().setFormatter(r),[4,t.prototype.extract.call(this)];case 3:return i.sent(),[2]}}))}))},e.canDefer=!1,e=i([c.Registry.attribute("vsn-format")],e)}(u.Attribute);e.Format=l},523:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.If=void 0;var u=n(5092),c=n(7754),l=n(1371),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return e=this.getAttributeValue(),this.tree=new c.Tree(e),[4,this.tree.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return n.sent(),[4,t.prototype.compile.call(this)];case 2:return n.sent(),[2]}}))}))},e.prototype.extract=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.evaluate()];case 1:return e.sent(),[4,t.prototype.extract.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.tree.bindToScopeChanges(this.tag.scope,this.onChange.bind(this),this.tag.dom,this.tag)];case 1:return e.sent(),[4,t.prototype.connect.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.evaluate=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.onChange()];case 1:return e.sent(),[4,t.prototype.evaluate.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.onChange=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent()?this.tag.show():this.tag.hide(),[2]}}))}))},e.canDefer=!1,e=i([l.Registry.attribute("vsn-if")],e)}(u.Attribute);e.If=p},9979:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.JSONAttribute=void 0;var u=n(1371),c=n(5092),l=n(4843),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,n,r,o,i,a,u;return s(this,(function(s){switch(s.label){case 0:e=this.getAttributeBinding();try{n=this.tag.scope.getReference(e)}catch(t){return console.error("error",t),[2]}return[4,n.getKey()];case 1:return r=s.sent(),[4,n.getScope()];case 2:return o=s.sent(),i="script"===this.tag.element.tagName.toLowerCase()?this.tag.element.innerText:unescape(this.getAttributeValue()),(a=JSON.parse(i))&&"object"==typeof a&&a.constructor===Object?((u=new l.Scope(o)).wrap(a),o.set(r,u)):o.set(r,a),[4,t.prototype.extract.call(this)];case 3:return s.sent(),[2]}}))}))},e.canDefer=!1,e=i([u.Registry.attribute("vsn-json")],e)}(c.Attribute);e.JSONAttribute=p},9215:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.KeyAbstract=void 0;var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.specificKey=null,e}return o(e,t),e.prototype.compile=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.specificKey=this.getAttributeBinding(),[4,t.prototype.compile.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.connect=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.tag.addEventHandler("keydown",this.getAttributeModifiers(),this.handleEvent,this),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.handleEvent=function(e){return i(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return n=!1,-1===[void 0,null,""].indexOf(this.specificKey)&&e.key.toLowerCase()!==this.specificKey&&e.code.toLowerCase()!==this.specificKey||(n=!0),n?[4,t.prototype.handleEvent.call(this,e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},e}(n(8447).On);e.KeyAbstract=s},9459:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.KeyDown=void 0;var u=n(9215),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.tag.addEventHandler("keydown",this.getAttributeModifiers(),this.handleEvent,this),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e=i([c.Registry.attribute("vsn-key-down")],e)}(u.KeyAbstract);e.KeyDown=l},7459:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.KeyUp=void 0;var u=n(9215),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.tag.addEventHandler("keyup",this.getAttributeModifiers(),this.handleEvent,this),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e=i([c.Registry.attribute("vsn-key-up")],e)}(u.KeyAbstract);e.KeyUp=l},1898:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.LazyAttribute=void 0;var u=n(1371),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.loaded=!1,e}return o(e,t),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,t.prototype.setup.call(this)];case 1:return e.sent(),this.eleTop=this.tag.element.getBoundingClientRect().top,[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this.tag.addEventHandler("scroll",["passive"],this.handleEvent,this),[4,this.handleEvent()];case 1:return t.sent(),[2]}}))}))},e.prototype.handleEvent=function(t){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return!this.loaded&&window.scrollY+window.outerHeight>=this.eleTop?(this.loaded=!0,[4,this.handler.evaluate(this.tag.scope,this.tag.dom,this.tag)]):[3,2];case 1:t.sent(),this.tag.removeEventHandler("scroll",this.handleEvent,this),t.label=2;case 2:return[2]}}))}))},e=i([u.Registry.attribute("vsn-lazy")],e)}(n(8447).On);e.LazyAttribute=c},2496:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.List=void 0;var u=n(5092),c=n(712),l=n(8572),p=n(2712),f=n(1371),h=n(9033),y=n(4843),d=n(1525),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var n;return o(e,t),n=e,e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var e,n,r;return s(this,(function(o){switch(o.label){case 0:return this.tag.element.children.length>0?(e=this.tag.element.children[0],[4,this.tag.dom.getTagForElement(e)]):[3,2];case 1:return n=o.sent(),e&&(e.hasAttribute("vsn-template")?(n.parentTag=this.tag,e.removeAttribute("vsn-template"),this.tag.element.removeChild(e),this.template=e):this.template=e.cloneNode(!0)),[3,4];case 2:return this.tag.hasRawAttribute("template")?[4,h.DOM.instance.exec(this.tag.getRawAttributeValue("template"))]:[3,4];case 3:(r=o.sent())instanceof Array&&1===r.length&&(r=r[0]),this.template=r.element.content.cloneNode(!0),o.label=4;case 4:return[4,t.prototype.setup.call(this)];case 5:return o.sent(),[2]}}))}))},e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,n,r,o,i,a,u,c=this;return s(this,(function(s){switch(s.label){case 0:return e=this.getAttributeBinding("items"),[4,(n=this.tag.scope.getReference(e)).getScope()];case 1:return r=s.sent(),[4,n.getKey()];case 2:return o=s.sent(),i=r.get(o),[4,this.addExistingItems(i)];case 3:if(s.sent(),r.on("change:"+o,(function(t){(null==t?void 0:t.oldValue)&&(t.oldValue instanceof l.WrappedArray&&(t.oldValue.map((function(t){c.remove(t)})),t.oldValue.offWithContext("add",c),t.oldValue.offWithContext("remove",c)),c.addExistingItems(t.value))})),!this.tag.hasRawAttribute("initial-items"))return[3,7];a=parseInt(this.tag.getRawAttributeValue("initial-items")),u=0,s.label=4;case 4:return u<a?[4,this.add({})]:[3,7];case 5:s.sent(),s.label=6;case 6:return u++,[3,4];case 7:return[4,t.prototype.extract.call(this)];case 8:return s.sent(),[2]}}))}))},e.prototype.addExistingItems=function(t){var e;return a(this,void 0,void 0,(function(){var n,r,o,i,a,u,c,f,h,y;return s(this,(function(s){switch(s.label){case 0:if(this.items=t||new l.WrappedArray,(null===(e=this.tags)||void 0===e?void 0:e.length)>0)for(n=0,r=this.tags;n<r.length;n++)(h=r[n]).deconstruct(),h.removeFromDOM();if(this.tags=this.tags||[],this.tags.length=0,!t)return[3,4];o=0,i=t,s.label=1;case 1:return o<i.length?(a=i[o],[4,this.add(a)]):[3,4];case 2:s.sent(),s.label=3;case 3:return o++,[3,1];case 4:u=0,c=Array.from(this.tag.element.querySelectorAll("*")),s.label=5;case 5:return u<c.length?(f=c[u],p.ElementHelper.hasVisionAttribute(f,"vsn-list-item")?[4,this.tag.dom.getTagForElement(f)]:[3,7]):[3,8];case 6:(h=s.sent())&&(this.tags.push(h),y=h.scope.get(this.listItemName),this.items.push((null==y?void 0:y.wrapped)||y||h.scope.wrapped||h.scope)),s.label=7;case 7:return u++,[3,5];case 8:return this.items instanceof l.WrappedArray||(this.items=new l.WrappedArray(this.items)),this.items.on("add",this.add,this),this.items.on("remove",this.remove,this),this.tag.scope.set("add",this.add.bind(this)),this.tag.scope.set("remove",this.remove.bind(this)),[2]}}))}))},Object.defineProperty(e.prototype,"listItemName",{get:function(){return this.tag.getRawAttributeValue("list-item-name","item")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"listItemModel",{get:function(){return this.tag.getRawAttributeValue("list-item-model")},enumerable:!1,configurable:!0}),e.prototype.remove=function(t){for(var e=0;e<this.tags.length;e++){var n=this.tags[e],r=n.scope.get(this.listItemName);if([r,r.data,r.wrapped].indexOf(t)>-1)return n.deconstruct(),n.removeFromDOM(),void this.tags.splice(e,1)}},e.prototype.add=function(t){return a(this,void 0,void 0,(function(){var e,n,r,o,i;return s(this,(function(a){switch(a.label){case 0:return e=this.template.cloneNode(!0),delete(n=e instanceof DocumentFragment?e.children[0]:e)[c.Tag.TaggedVariable],r=t instanceof d.ScopeData?t.getData():Object.assign({},t),[4,this.tag.dom.buildTag(n,!0)];case 1:return o=a.sent(),[4,this.setupTagScope(o,t)];case 2:return a.sent(),this.tag.element.appendChild(n),[4,this.tag.dom.setupTags([o])];case 3:return a.sent(),[4,this.tag.dom.buildFrom(this.tag.element)];case 4:return a.sent(),(i=o.scope.get(this.listItemName))instanceof y.Scope&&r&&i.data.setData(r),this.tags.push(o),this.tag.dispatch("add",t),[2]}}))}))},e.prototype.setupTagScope=function(t,e){return a(this,void 0,void 0,(function(){var r,o,i,a=this;return s(this,(function(s){switch(s.label){case 0:return t.meta[n.MetaItemSetupFlag]?[2]:(t.createScope(!0),r=new y.Scope(t.scope),(o=this.listItemModel)?[4,f.Registry.instance.models.get(o)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return i&&(e&&e instanceof i||(e=new i(e),this.tag.once("$built",(function(){e.$built&&e.$built(a.tag,a.tag.scope,a.tag.element)})))),i&&(r.data instanceof i||r.wrapped instanceof i)||(r.wrapped&&r.unwrap(),r.wrap(e,!0,!0)),t.scope.set(this.listItemName,r),t.meta[n.MetaItemSetupFlag]=!0,[2]}}))}))},e.MetaItemSetupFlag="vsn-list-item-setup",e.canDefer=!1,e.scoped=!0,e=n=i([f.Registry.attribute("vsn-list")],e)}(u.Attribute);e.List=b},6846:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ListItem=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var n;return o(e,t),n=e,Object.defineProperty(e.prototype,"list",{get:function(){return this._list},enumerable:!1,configurable:!0}),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:if(this._list=this.tag.findAncestorByAttribute("vsn-list"),!this._list)throw Error(n.ERROR_NO_PARENT);return[4,this.getListAttribute()];case 1:return[4,e.sent().setupTagScope(this.tag,{})];case 2:return e.sent(),[4,t.prototype.setup.call(this)];case 3:return e.sent(),[2]}}))}))},e.prototype.getListAttribute=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this._list.getAttribute("vsn-list")];case 1:return[2,t.sent()]}}))}))},e.canDefer=!1,e.scoped=!0,e.ERROR_NO_PARENT="Cannot find list parent.",e=n=i([c.Registry.attribute("vsn-list-item")],e)}(u.Attribute);e.ListItem=l},274:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.ListItemModel=void 0;var a=n(1371),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.canDefer=!1,e=i([a.Registry.attribute("vsn-list-item-model")],e)}(n(5092).Attribute);e.ListItemModel=s},3329:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.ModelAttribute=void 0;var a=n(3650),s=n(1371),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registryName="models",e}return o(e,t),e.canDefer=!1,e=i([s.Registry.attribute("vsn-model")],e)}(a.ControllerAttribute);e.ModelAttribute=u},1576:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Name=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var t;return s(this,(function(e){return(t=this.tag.scope.parentScope)&&t.set(this.getAttributeValue(),this.tag.scope),[2]}))}))},e.canDefer=!1,e.scoped=!0,e=i([c.Registry.attribute("vsn-name")],e)}(u.Attribute);e.Name=l},8447:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.On=void 0;var u=n(5092),c=n(7754),l=n(1371),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return e=this.getAttributeValue(),this.handler=new c.Tree(e),[4,this.handler.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return n.sent(),[4,t.prototype.compile.call(this)];case 2:return n.sent(),[2]}}))}))},e.prototype.handleEvent=function(t){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.hasModifier("preventdefault")&&t.cancelable&&t.preventDefault(),[4,this.handler.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.tag.addEventHandler(this.getAttributeBinding(),this.getAttributeModifiers(),this.handleEvent,this),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e.WindowEvents=["abort","afterprint","beforeprint","error","hashchange","load","popstate","resize","scroll","unload"],e=i([l.Registry.attribute("vsn-on")],e)}(u.Attribute);e.On=p},6338:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.Referenced=void 0;var a=n(1371),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e=i([a.Registry.attribute("vsn-ref")],e)}(n(5092).Attribute);e.Referenced=s},6957:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.RootAttribute=void 0;var u=n(5092),c=n(4264),l=n(1371),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var e,n,r,o;return s(this,(function(i){switch(i.label){case 0:for(this.tag.scope.set("$mobile",c.VisionHelper.isMobile()),e=0,n=l.Registry.instance.functions.keys;e<n.length;e++)r=n[e],o=l.Registry.instance.functions.get(r),this.tag.scope.set(r,o);return l.Registry.instance.functions.on("register",this.registerFunction,this),[4,t.prototype.setup.call(this)];case 1:return i.sent(),[2]}}))}))},e.prototype.registerFunction=function(t,e){return a(this,void 0,void 0,(function(){return s(this,(function(n){return this.tag.scope.set(t,e),[2]}))}))},e.canDefer=!1,e.scoped=!0,e=i([l.Registry.attribute("vsn-root")],e)}(u.Attribute);e.RootAttribute=p},5930:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeAttribute=void 0;var u=n(5092),c=n(1371),l=n(7754),p=n(4843),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return(e=this.getAttributeValue())?(this.tree=new l.Tree(e),[4,this.tree.prepare(this.tag.scope,this.tag.dom,this.tag)]):[3,2];case 1:n.sent(),n.label=2;case 2:return[4,t.prototype.compile.call(this)];case 3:return n.sent(),[2]}}))}))},e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,n,r,o,i;return s(this,(function(a){switch(a.label){case 0:return this.tree?(e=this.getAttributeBinding(),[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)]):[3,2];case 1:if(!((n=a.sent())instanceof p.Scope))throw new Error("vsn-scope value must be an object, got "+typeof n);if(e)this.tag.scope.set(e,n);else for(r=0,o=n.data.keys;r<o.length;r++)i=o[r],this.tag.scope.set(i,n.data[i]);a.label=2;case 2:return[4,t.prototype.extract.call(this)];case 3:return a.sent(),[2]}}))}))},e.canDefer=!1,e.scoped=!0,e=i([c.Registry.attribute("vsn-scope")],e)}(u.Attribute);e.ScopeAttribute=f},1085:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeChange=void 0;var u=n(5092),c=n(7754),l=n(1371),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return e=this.getAttributeValue(),this.handler=new c.Tree(e),[4,this.handler.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return n.sent(),[4,t.prototype.compile.call(this)];case 2:return n.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){var e,n,r,o,i;return s(this,(function(a){switch(a.label){case 0:return e=this.getAttributeBinding(),[4,(n=this.tag.scope.getReference(e,!1)).getScope()];case 1:return o=(r=a.sent()).on,i="change:",[4,n.getKey()];case 2:return o.apply(r,[i+a.sent(),this.handleEvent.bind(this)]),[4,t.prototype.connect.call(this)];case 3:return a.sent(),[2]}}))}))},e.prototype.handleEvent=function(t){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.handler.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent(),[2]}}))}))},e.canDefer=!1,e=i([l.Registry.attribute("vsn-scope-change")],e)}(u.Attribute);e.ScopeChange=p},8616:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.ScriptAttribute=void 0;var a=n(1371),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"code",{get:function(){return this.tag.element.innerText},enumerable:!1,configurable:!0}),e=i([a.Registry.attribute("vsn-script")],e)}(n(6813).Exec);e.ScriptAttribute=s},199:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceAttribute=void 0;var a=n(3650),s=n(1371),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registryName="services",e.assignToParent=!1,e}return o(e,t),e.prototype.instantiateClass=function(t){return t.instance.scope},e.canDefer=!1,e=i([s.Registry.attribute("vsn-service")],e)}(a.ControllerAttribute);e.ServiceAttribute=u},3070:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.SetAttribute=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.boundScope?this.boundScope.get(this.key,!1):null},set:function(t){this.boundScope&&this.boundScope.set(this.key,t)},enumerable:!1,configurable:!0}),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var t,e,n,r,o,i,a;return s(this,(function(s){switch(s.label){case 0:this.property=this.getAttributeBinding();try{t=this.tag.scope.getReference(this.property)}catch(t){return[2]}return e=this,[4,t.getKey()];case 1:return e.key=s.sent(),n=this,[4,t.getScope()];case 2:for(n.boundScope=s.sent(),r=this.getAttributeValue(null),o=0,i=this.getAttributeModifiers();o<i.length;o++)if(a=i[o],c.Registry.instance.types.getSynchronous(a)){this.boundScope.setType(this.key,a);break}return this.boundScope.set(this.key,r),[2]}}))}))},e.canDefer=!1,e=i([c.Registry.attribute("vsn-set")],e)}(u.Attribute);e.SetAttribute=l},6032:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.StandardAttribute=void 0;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.tag.isMagicAttribute(this.key)||this.tag.element.hasAttribute(this.attributeName)||this.tag.element.setAttribute(this.attributeName,""),[4,t.prototype.setup.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.extract=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.updateFrom(),[4,t.prototype.extract.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.connect=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.tag.scope.on("change:"+this.key,this.updateTo.bind(this)),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.mutate=function(e){t.prototype.mutate.call(this,e),this.updateFrom()},Object.defineProperty(e.prototype,"needsToBeSynced",{get:function(){var t=this.tag.scope.get(this.key)||"",e=this.value;return t&&t.trim&&(t=t.trim()),e&&e.trim&&(e=e.trim()),t instanceof Array?!(e instanceof Array&&t.length===e.length)||t.map((function(t){return e.indexOf(t)>-1})).indexOf(!1)>-1:t!==e},enumerable:!1,configurable:!0}),e.prototype.updateTo=function(){this.needsToBeSynced&&(this.value=this.tag.scope.get(this.key))},e.prototype.updateFrom=function(){this.needsToBeSynced&&this.tag.scope.set(this.key,this.value)},Object.defineProperty(e.prototype,"key",{get:function(){return"@"+this.attributeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.tag.getElementAttribute(this.tag.isMagicAttribute(this.key)?this.key:this.attributeName)},set:function(t){this.tag.setElementAttribute(this.tag.isMagicAttribute(this.key)?this.key:this.attributeName,t)},enumerable:!1,configurable:!0}),e.canDefer=!1,e}(n(5092).Attribute);e.StandardAttribute=s},1857:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.StyleAttribute=void 0;var u=n(1371),c=n(5092),l=n(4843),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var e,n,r;return s(this,(function(o){switch(o.label){case 0:return(e=this.getAttributeValue()||null)?(this.scopeRef=this.tag.scope.getReference(e,!0),[4,this.scopeRef.getScope()]):[3,3];case 1:return n=o.sent(),[4,this.scopeRef.getKey()];case 2:return r=o.sent(),this.styleScope=n.get(r),this.styleScope||(this.styleScope=new l.Scope(n),n.set(r,this.styleScope)),[3,4];case 3:this.styleScope=this.tag.scope,o.label=4;case 4:return[4,t.prototype.setup.call(this)];case 5:return o.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.styleScope.on("change",this.handleEvent.bind(this)),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.extract=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.updateFrom(),this.updateTo(),[4,t.prototype.extract.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.updateFrom=function(){var t=["cssText","getPropertyPriority","getPropertyValue","removeProperty","setProperty","length"];for(var e in this.tag.style)if(!(t.indexOf(e)>-1||isFinite(e))){var n=this.tag.style[e],r="$"+e;n&&n!==this.styleScope.get(r)&&this.styleScope.set(r,n)}},e.prototype.updateTo=function(){for(var t=0,e=this.styleScope.keys;t<e.length;t++){var n=e[t],r=this.styleScope.get(n);if(n.startsWith("$")){var o=n.substr(1);this.tag.element.style[o]=r.value}}},e.prototype.mutate=function(e){t.prototype.mutate.call(this,e),this.updateFrom()},e.prototype.handleEvent=function(t,e){return a(this,void 0,void 0,(function(){var n;return s(this,(function(r){return t.startsWith("$")&&(n=t.substr(1),e.value!==e.previousValue&&(this.tag.element.style[n]=e.value)),[2]}))}))},e.canDefer=!1,e=i([u.Registry.attribute("vsn-styles")],e)}(c.Attribute);e.StyleAttribute=p},4515:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.TemplateAttribute=void 0;var u=n(1371),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return u.Registry.instance.templates.register(this.getAttributeBinding(),this.tag.element),[4,t.prototype.extract.call(this)];case 1:return e.sent(),[2]}}))}))},e.canDefer=!1,e=i([u.Registry.attribute("vsn-template")],e)}(n(5092).Attribute);e.TemplateAttribute=c},8696:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypeAttribute=void 0;var u=n(5092),c=n(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,n,r,o,i;return s(this,(function(a){switch(a.label){case 0:e=this.getAttributeBinding(),n=this.getAttributeValue();try{r=this.tag.scope.getReference(e)}catch(t){return console.error("error",t),[2]}return[4,r.getScope()];case 1:return i=(o=a.sent()).setType,[4,r.getKey()];case 2:return i.apply(o,[a.sent(),n]),[4,t.prototype.extract.call(this)];case 3:return a.sent(),[2]}}))}))},e.canDefer=!1,e=i([c.Registry.attribute("vsn-type")],e)}(u.Attribute);e.TypeAttribute=l},2103:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.XHRAttribute=void 0;var u=n(1371),c=n(5092),l=n(7754),p=n(4264),f=n(4296),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"code",{get:function(){return this.getAttributeValue()},enumerable:!1,configurable:!0}),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.tree=new l.Tree(this.code),[4,this.tree.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[4,t.prototype.compile.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.isForm?this.tag.addEventHandler("submit",this.getAttributeModifiers(),this.handleEvent,this):this.isAnchor&&this.tag.addEventHandler("click",this.getAttributeModifiers(),this.handleEvent,this),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"isForm",{get:function(){return"FORM"===this.tag.element.tagName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAnchor",{get:function(){return"A"===this.tag.element.tagName},enumerable:!1,configurable:!0}),e.prototype.handleEvent=function(t){return a(this,void 0,void 0,(function(){var e,n,r,o,i,a,u,c,l,h;return s(this,(function(s){if(t.preventDefault(),this.request)return[2];if(this.request=new XMLHttpRequest,this.isForm){if(n=this.tag.element.getAttribute("action"),e=(e=this.getAttributeBinding(this.tag.element.getAttribute("method"))).toUpperCase(),r=new FormData(this.tag.element),"GET"==e){for(o={},i=Array.from(r.keys()),a=0,u=i;a<u.length;a++)h=u[a],o[h]=r.get(h);n=p.VisionHelper.getUriWithParams(n,o),r=null}}else this.isAnchor&&(n=this.tag.element.getAttribute("href"),e=(e=this.getAttributeBinding("GET")).toUpperCase(),["POST","PUT"].indexOf(e)>-1&&(r=new FormData));for(h in this.request.addEventListener("loadend",this.handleXHREvent.bind(this)),this.request.addEventListener("error",this.handleXHREvent.bind(this)),this.request.open(e,n),this.request.setRequestHeader("X-Requested-With","XMLHttpRequest"),c=f.XHR.instance.getHeaders())this.request.setRequestHeader(h,c[h]);if(r instanceof FormData&&(l=f.XHR.instance.getFormData()))for(h in l)r.append(h,l[h]);return this.request.send(r),[2]}))}))},e.prototype.handleXHREvent=function(t){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this.tag.scope.set("status",this.request.status),this.tag.scope.set("response",this.request.response),this.request.status>=200&&this.request.status<300?[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)]:[3,2];case 1:return t.sent(),this.tag.element.dispatchEvent(new Event("xhr-success")),[3,3];case 2:this.request.status>=300&&this.request.status<400?this.tag.element.dispatchEvent(new Event("xhr-redirect")):this.request.status>=400&&this.request.status<500?(this.tag.element.dispatchEvent(new Event("xhr-client-error")),this.tag.element.dispatchEvent(new Event("xhr-error"))):(this.tag.element.dispatchEvent(new Event("xhr-server-error")),this.tag.element.dispatchEvent(new Event("xhr-error"))),t.label=3;case 3:return this.request=null,[2]}}))}))},e.canDefer=!1,e=i([u.Registry.attribute("vsn-xhr")],e)}(c.Attribute);e.XHRAttribute=h},2132:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XHRAttribute=e.TypeAttribute=e.TemplateAttribute=e.StyleAttribute=e.StandardAttribute=e.SetAttribute=e.ServiceAttribute=e.ScriptAttribute=e.ScopeChange=e.ScopeAttribute=e.RootAttribute=e.Referenced=e.On=e.Name=e.ModelAttribute=e.ListItemModel=e.ListItem=e.List=e.LazyAttribute=e.KeyUp=e.KeyDown=e.JSONAttribute=e.If=e.Format=e.Exec=e.DisableIf=e.ControllerAttribute=e.ComponentAttribute=e.Bind=e.AddClassIf=void 0;var r=n(8041);Object.defineProperty(e,"AddClassIf",{enumerable:!0,get:function(){return r.AddClassIf}});var o=n(8171);Object.defineProperty(e,"Bind",{enumerable:!0,get:function(){return o.Bind}});var i=n(5514);Object.defineProperty(e,"ComponentAttribute",{enumerable:!0,get:function(){return i.ComponentAttribute}});var a=n(3650);Object.defineProperty(e,"ControllerAttribute",{enumerable:!0,get:function(){return a.ControllerAttribute}});var s=n(4893);Object.defineProperty(e,"DisableIf",{enumerable:!0,get:function(){return s.DisableIf}});var u=n(6813);Object.defineProperty(e,"Exec",{enumerable:!0,get:function(){return u.Exec}});var c=n(8289);Object.defineProperty(e,"Format",{enumerable:!0,get:function(){return c.Format}});var l=n(523);Object.defineProperty(e,"If",{enumerable:!0,get:function(){return l.If}});var p=n(9979);Object.defineProperty(e,"JSONAttribute",{enumerable:!0,get:function(){return p.JSONAttribute}});var f=n(9459);Object.defineProperty(e,"KeyDown",{enumerable:!0,get:function(){return f.KeyDown}});var h=n(7459);Object.defineProperty(e,"KeyUp",{enumerable:!0,get:function(){return h.KeyUp}});var y=n(1898);Object.defineProperty(e,"LazyAttribute",{enumerable:!0,get:function(){return y.LazyAttribute}});var d=n(2496);Object.defineProperty(e,"List",{enumerable:!0,get:function(){return d.List}});var b=n(6846);Object.defineProperty(e,"ListItem",{enumerable:!0,get:function(){return b.ListItem}});var v=n(274);Object.defineProperty(e,"ListItemModel",{enumerable:!0,get:function(){return v.ListItemModel}});var _=n(3329);Object.defineProperty(e,"ModelAttribute",{enumerable:!0,get:function(){return _.ModelAttribute}});var g=n(1576);Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return g.Name}});var w=n(8447);Object.defineProperty(e,"On",{enumerable:!0,get:function(){return w.On}});var m=n(6338);Object.defineProperty(e,"Referenced",{enumerable:!0,get:function(){return m.Referenced}});var O=n(6957);Object.defineProperty(e,"RootAttribute",{enumerable:!0,get:function(){return O.RootAttribute}});var T=n(5930);Object.defineProperty(e,"ScopeAttribute",{enumerable:!0,get:function(){return T.ScopeAttribute}});var S=n(1085);Object.defineProperty(e,"ScopeChange",{enumerable:!0,get:function(){return S.ScopeChange}});var A=n(8616);Object.defineProperty(e,"ScriptAttribute",{enumerable:!0,get:function(){return A.ScriptAttribute}});var E=n(199);Object.defineProperty(e,"ServiceAttribute",{enumerable:!0,get:function(){return E.ServiceAttribute}});var P=n(3070);Object.defineProperty(e,"SetAttribute",{enumerable:!0,get:function(){return P.SetAttribute}});var x=n(6032);Object.defineProperty(e,"StandardAttribute",{enumerable:!0,get:function(){return x.StandardAttribute}});var j=n(1857);Object.defineProperty(e,"StyleAttribute",{enumerable:!0,get:function(){return j.StyleAttribute}});var k=n(4515);Object.defineProperty(e,"TemplateAttribute",{enumerable:!0,get:function(){return k.TemplateAttribute}});var N=n(8696);Object.defineProperty(e,"TypeAttribute",{enumerable:!0,get:function(){return N.TypeAttribute}});var R=n(2103);Object.defineProperty(e,"XHRAttribute",{enumerable:!0,get:function(){return R.XHRAttribute}})},4296:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.XHR=void 0;var a=n(1371),s=n(218),u=n(9380),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.siteHeaders={},e.siteFormData={},e}return o(e,t),e.prototype.addHeader=function(t,e,n){void 0===n&&(n=null),null===n&&(n=window.location.hostname),this.siteHeaders[n]||(this.siteHeaders[n]={}),this.siteHeaders[n][t]=e},e.prototype.addFormData=function(t,e,n){void 0===n&&(n=null),null===n&&(n=window.location.hostname),this.siteFormData[n]||(this.siteFormData[n]={}),this.siteFormData[n][t]=e},e.prototype.getHeaders=function(t){return void 0===t&&(t=null),null===t&&(t=window.location.hostname),this.siteHeaders[t]},e.prototype.getFormData=function(t){return void 0===t&&(t=null),null===t&&(t=window.location.hostname),this.siteFormData[t]},i([u.property()],e.prototype,"siteHeaders",void 0),i([u.property()],e.prototype,"siteFormData",void 0),e=i([a.Registry.service("XHR")],e)}(s.Service);e.XHR=c},7389:()=>{!function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var t=HTMLElement,e=function(){return Reflect.construct(t,[],this.constructor)};window.HTMLElement=e,HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}()},6099:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceDemo=void 0,o(n(3145),e);var i=n(3365);Object.defineProperty(e,"ServiceDemo",{enumerable:!0,get:function(){return i.ServiceDemo}})},3365:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceDemo=void 0;var u=n(3145),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.count=0,e}return o(e,t),e.prototype.add=function(t){return void 0===t&&(t=1),a(this,void 0,void 0,(function(){return s(this,(function(e){return[2,this.count+=t]}))}))},i([u.property(u.IntegerProperty)],e.prototype,"count",void 0),e=i([u.Registry.service("ServiceDemo")],e)}(u.Service);e.ServiceDemo=c},2712:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ElementHelper=void 0;var r=n(2947),o=function(){function t(){}return t.hasVisionAttribute=function(t,e){if(void 0===e&&(e="vsn-"),!t.attributes||t.attributes.length<=0)return!1;for(var n=0;n<t.attributes.length;n++){if(t.attributes[n].name.startsWith(e))return!0}for(var o=0,i=Array.from(t.classList);o<i.length;o++){var a=i[o];if(r.ClassNode.isClass(a))return!0}return!1},t.normalizeElementID=function(t){return t?t.replace(/-([a-zA-Z0-9])/g,(function(t){return t[1].toUpperCase()})):null},t}();e.ElementHelper=o},4264:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VisionHelper=void 0;var n=function(){function t(){}return t.isConstructor=function(t){return t&&t.hasOwnProperty("prototype")&&!!t.prototype&&!!t.prototype.constructor&&!!t.prototype.constructor.name},Object.defineProperty(t,"document",{get:function(){return"object"==typeof document?document:null},enumerable:!1,configurable:!0}),Object.defineProperty(t,"window",{get:function(){return"object"==typeof window?window:null},enumerable:!1,configurable:!0}),t.isMobile=function(){var e,n=!1;return navigator&&t.window&&(e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(n=!0)),n},Object.defineProperty(t,"inDevelopment",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t,"doBenchmark",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t,"inLegacy",{get:function(){return"es5"===process.env.BUILD_TARGET},enumerable:!1,configurable:!0}),t.getUriWithParams=function(t,e){var n=window.location.origin;!t.startsWith(".")&&t.startsWith("/")||(n+=window.location.pathname);var r=new URL(t,n),o=new URLSearchParams(r.search);for(var i in e)void 0!==e[i]&&o.set(i,e[i]);return r.search=o.toString(),r.toString()},t.nice=function(e,n){void 0===n&&(n=100),t.window&&window.requestIdleCallback?window.requestIdleCallback(e):setTimeout(e,n)},Object.defineProperty(t,"wasmSupport",{get:function(){try{if("object"==typeof WebAssembly&&"function"==typeof WebAssembly.instantiate){var t=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(t instanceof WebAssembly.Module)return new WebAssembly.Instance(t)instanceof WebAssembly.Instance}}catch(t){}return!1},enumerable:!1,configurable:!0}),t}();e.VisionHelper=n},8412:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="0.1.122"},3145:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},u=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.vision=e.Tag=e.SimplePromise=e.MessageList=e.EventDispatcher=e.Service=e.Model=e.Controller=e.WrappedArray=e.ScopeReference=e.Scope=e.DOM=e.Validators=e.Types=e.Formats=e.Vision=void 0;var c=n(9033),l=n(8572),p=n(1371),f=n(6417),h=n(4264),y=n(7754),d=n(7677),b=n(5559),v=n(1469),_=n(8412);n(7389);var g=function(t){function e(){var n=t.call(this)||this;return n.registry=p.Registry.instance,n.config=f.Configuration.instance,p.Registry.instance.tags.on("register",n.defineComponent,n),h.VisionHelper.document?document.addEventListener("DOMContentLoaded",n.setup.bind(n)):console.warn("No dom, running in CLI mode."),n.registry.functions.register("log",console.log),n.registry.functions.register("warn",console.warn),n.registry.functions.register("error",console.error),n.registry.functions.register("info",console.info),n.registry.functions.register("wait",(function(t){return s(n,void 0,void 0,(function(){return u(this,(function(e){return[2,new Promise((function(e){setTimeout(e,1e3*t)}))]}))}))})),n.registry.models.register("Object",Object),n.registry.controllers.register("WrappedArray",l.WrappedArray),n.registry.controllers.register("Data",v.DynamicScopeData),h.VisionHelper.window&&(window.Vision=e,window.Registry=p.Registry,window.vision=window.vsn=n,window.Tree=y.Tree,window.$=d.Query,h.VisionHelper.window.dispatchEvent(new Event("vsn"))),n}return o(e,t),e.prototype.defineComponent=function(t,e){c.DOM.instance.built?customElements.define(t,e):c.DOM.instance.once("built",(function(){customElements.define(t,e)}))},Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),e.prototype.exec=function(t){return s(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,this._dom.exec(t)];case 1:return[2,e.sent()]}}))}))},e.prototype.setup=function(){return s(this,void 0,void 0,(function(){var t,e,n;return u(this,(function(r){switch(r.label){case 0:return document.body.setAttribute("vsn-root",""),this._dom=c.DOM.instance,t=(new Date).getTime(),[4,this._dom.buildFrom(document,!0)];case 1:return r.sent(),e=(new Date).getTime(),n=e-t,console.info("Took "+n+"ms to start up VisionJS. https://www.vsnjs.com/","v"+_.VERSION),[2]}}))}))},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e),e._instance},enumerable:!1,configurable:!0}),e}(b.EventDispatcher);e.Vision=g,a(n(1371),e),a(n(2132),e),a(n(9618),e),a(n(5092),e),a(n(7754),e);var w=n(8001);Object.defineProperty(e,"Formats",{enumerable:!0,get:function(){return w.Formats}});var m=n(3398);Object.defineProperty(e,"Types",{enumerable:!0,get:function(){return m.Types}});var O=n(3463);Object.defineProperty(e,"Validators",{enumerable:!0,get:function(){return O.Validators}});var T=n(9033);Object.defineProperty(e,"DOM",{enumerable:!0,get:function(){return T.DOM}});var S=n(4843);Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return S.Scope}});var A=n(414);Object.defineProperty(e,"ScopeReference",{enumerable:!0,get:function(){return A.ScopeReference}});var E=n(8572);Object.defineProperty(e,"WrappedArray",{enumerable:!0,get:function(){return E.WrappedArray}});var P=n(126);Object.defineProperty(e,"Controller",{enumerable:!0,get:function(){return P.Controller}});var x=n(5453);Object.defineProperty(e,"Model",{enumerable:!0,get:function(){return x.Model}});var j=n(218);Object.defineProperty(e,"Service",{enumerable:!0,get:function(){return j.Service}});var k=n(5559);Object.defineProperty(e,"EventDispatcher",{enumerable:!0,get:function(){return k.EventDispatcher}});var N=n(9188);Object.defineProperty(e,"MessageList",{enumerable:!0,get:function(){return N.MessageList}});var R=n(9045);Object.defineProperty(e,"SimplePromise",{enumerable:!0,get:function(){return R.SimplePromise}});var C=n(712);Object.defineProperty(e,"Tag",{enumerable:!0,get:function(){return C.Tag}}),e.vision=g.instance}},e={};(function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports})(6099)})();
2
+ /* Copyright 2022, VSNjs. vsn 0.1.124 (Wed, 02 Nov 2022 20:19:20 GMT) */if (window) window['VSN_VERSION']='0.1.124';
3
+ (()=>{var t={7754:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Tree=e.AttributableNodes=e.TokenType=e.BlockType=void 0;var a,s,u=r(4123),c=r(7549),l=r(6094),f=r(8130),p=r(8052),h=r(329),y=r(3187),d=r(1185),v=r(3770),b=r(2020),_=r(6006),g=r(9446),w=r(2999),m=r(5728),O=r(3203),x=r(8673),S=r(1560),T=r(6357),E=r(9475),A=r(2751),P=r(9826),j=r(2321),k=r(4789),N=r(5155),R=r(3484),C=r(2947),L=r(1096),M=r(2393),D=r(6756),I=r(575),F=r(7893),G=r(8161);!function(t){t[t.BRACE=0]="BRACE",t[t.BRACKET=1]="BRACKET",t[t.PAREN=2]="PAREN",t[t.STATEMENT=3]="STATEMENT"}(a=e.BlockType||(e.BlockType={})),function(t){t[t.NULL=0]="NULL",t[t.WHITESPACE=1]="WHITESPACE",t[t.TYPE_INT=2]="TYPE_INT",t[t.TYPE_UINT=3]="TYPE_UINT",t[t.TYPE_FLOAT=4]="TYPE_FLOAT",t[t.TYPE_STRING=5]="TYPE_STRING",t[t.RETURN=6]="RETURN",t[t.NOT=7]="NOT",t[t.OF=8]="OF",t[t.AS=9]="AS",t[t.IN=10]="IN",t[t.WITH=11]="WITH",t[t.NAMED_STACK=12]="NAMED_STACK",t[t.FOR=13]="FOR",t[t.IF=14]="IF",t[t.ELSE_IF=15]="ELSE_IF",t[t.ELSE=16]="ELSE",t[t.FUNC=17]="FUNC",t[t.ON=18]="ON",t[t.CLASS=19]="CLASS",t[t.NAME=20]="NAME",t[t.L_BRACE=21]="L_BRACE",t[t.R_BRACE=22]="R_BRACE",t[t.L_BRACKET=23]="L_BRACKET",t[t.R_BRACKET=24]="R_BRACKET",t[t.L_PAREN=25]="L_PAREN",t[t.R_PAREN=26]="R_PAREN",t[t.TILDE=27]="TILDE",t[t.PERIOD=28]="PERIOD",t[t.COMMA=29]="COMMA",t[t.COLON=30]="COLON",t[t.SEMICOLON=31]="SEMICOLON",t[t.STRING_FORMAT=32]="STRING_FORMAT",t[t.STRING_LITERAL=33]="STRING_LITERAL",t[t.NUMBER_LITERAL=34]="NUMBER_LITERAL",t[t.BOOLEAN_LITERAL=35]="BOOLEAN_LITERAL",t[t.NULL_LITERAL=36]="NULL_LITERAL",t[t.STRICT_EQUALS=37]="STRICT_EQUALS",t[t.STRICT_NOT_EQUALS=38]="STRICT_NOT_EQUALS",t[t.EQUALS=39]="EQUALS",t[t.NOT_EQUALS=40]="NOT_EQUALS",t[t.GREATER_THAN_EQUAL=41]="GREATER_THAN_EQUAL",t[t.LESS_THAN_EQUAL=42]="LESS_THAN_EQUAL",t[t.GREATER_THAN=43]="GREATER_THAN",t[t.LESS_THAN=44]="LESS_THAN",t[t.ASSIGN=45]="ASSIGN",t[t.AND=46]="AND",t[t.OR=47]="OR",t[t.ADD=48]="ADD",t[t.SUBTRACT=49]="SUBTRACT",t[t.MULTIPLY=50]="MULTIPLY",t[t.DIVIDE=51]="DIVIDE",t[t.ADD_ASSIGN=52]="ADD_ASSIGN",t[t.SUBTRACT_ASSIGN=53]="SUBTRACT_ASSIGN",t[t.MULTIPLY_ASSIGN=54]="MULTIPLY_ASSIGN",t[t.DIVIDE_ASSIGN=55]="DIVIDE_ASSIGN",t[t.EXCLAMATION_POINT=56]="EXCLAMATION_POINT",t[t.ELEMENT_REFERENCE=57]="ELEMENT_REFERENCE",t[t.ELEMENT_ATTRIBUTE=58]="ELEMENT_ATTRIBUTE",t[t.ELEMENT_STYLE=59]="ELEMENT_STYLE",t[t.ELEMENT_QUERY=60]="ELEMENT_QUERY",t[t.UNIT=61]="UNIT",t[t.XHR_GET=62]="XHR_GET",t[t.XHR_POST=63]="XHR_POST",t[t.XHR_PUT=64]="XHR_PUT",t[t.XHR_DELETE=65]="XHR_DELETE",t[t.MODIFIER=66]="MODIFIER",t[t.DISPATCH_EVENT=67]="DISPATCH_EVENT"}(s=e.TokenType||(e.TokenType={}));var B=[{type:s.WHITESPACE,pattern:/^[\s\n\r]+/},{type:s.XHR_POST,pattern:/^>>/},{type:s.XHR_PUT,pattern:/^<>/},{type:s.XHR_GET,pattern:/^<</},{type:s.XHR_DELETE,pattern:/^></},{type:s.DISPATCH_EVENT,pattern:/^!!!?([_a-zA-Z][-_a-zA-Z0-9]+)/},{type:s.TYPE_INT,pattern:/^int+/},{type:s.TYPE_UINT,pattern:/^uint+/},{type:s.TYPE_FLOAT,pattern:/^float+/},{type:s.UNIT,pattern:/^\d+\.?\d?(?:cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)/},{type:s.TYPE_STRING,pattern:/^string+/},{type:s.BOOLEAN_LITERAL,pattern:/^(true|false)/},{type:s.NULL_LITERAL,pattern:/^null/},{type:s.RETURN,pattern:/^return\s/},{type:s.NOT,pattern:/^not\s/},{type:s.OF,pattern:/^of\s/},{type:s.IN,pattern:/^in\s/},{type:s.AS,pattern:/^as\s/},{type:s.WITH,pattern:/^with(?=\||\s)?/},{type:s.NAMED_STACK,pattern:/^stack(?=\||\s)?/},{type:s.FOR,pattern:/^for\s?(?=\()/},{type:s.IF,pattern:/^if\s?(?=\()/},{type:s.ELSE_IF,pattern:/^else if\s?(?=\()/},{type:s.ELSE,pattern:/^else\s?(?=\{)/},{type:s.FUNC,pattern:/^func\s/},{type:s.ON,pattern:/^on\s/},{type:s.CLASS,pattern:/^class\s/},{type:s.ELEMENT_ATTRIBUTE,pattern:/^\.?@[-_a-zA-Z0-9]*/},{type:s.ELEMENT_STYLE,pattern:/^\.?\$[-a-zA-Z0-9]*/},{type:s.ELEMENT_REFERENCE,pattern:/^#[-_a-zA-Z0-9]*/},{type:s.ELEMENT_QUERY,pattern:/^\?[>|<]?\(([#.\[\]:,=\-_a-zA-Z0-9*\s]*[\]_a-zA-Z0-9*])\)/},{type:s.NAME,pattern:/^[_a-zA-Z][_a-zA-Z0-9]*/},{type:s.NUMBER_LITERAL,pattern:/^-?\d+(?:\.\d+)?(?:e[+\-]?\d+)?/i},{type:s.L_BRACE,pattern:/^{/},{type:s.R_BRACE,pattern:/^}/},{type:s.L_BRACKET,pattern:/^\[/},{type:s.R_BRACKET,pattern:/^]/},{type:s.L_PAREN,pattern:/^\(/},{type:s.R_PAREN,pattern:/^\)/},{type:s.TILDE,pattern:/^~/},{type:s.PERIOD,pattern:/^\./},{type:s.COMMA,pattern:/^,/},{type:s.EQUALS,pattern:/^==/},{type:s.NOT_EQUALS,pattern:/^!=/},{type:s.GREATER_THAN_EQUAL,pattern:/^>=/},{type:s.LESS_THAN_EQUAL,pattern:/^<=/},{type:s.GREATER_THAN,pattern:/^>/},{type:s.LESS_THAN,pattern:/^</},{type:s.COLON,pattern:/^:/},{type:s.SEMICOLON,pattern:/^;/},{type:s.STRING_FORMAT,pattern:/^`([^`]*)`/},{type:s.STRING_LITERAL,pattern:/^"([^"]*)"/},{type:s.STRING_LITERAL,pattern:/^'([^']*)'/},{type:s.AND,pattern:/^&&/},{type:s.OR,pattern:/^\|\|/},{type:s.ADD_ASSIGN,pattern:/^\+=/},{type:s.SUBTRACT_ASSIGN,pattern:/^-=/},{type:s.MULTIPLY_ASSIGN,pattern:/^\*=/},{type:s.DIVIDE_ASSIGN,pattern:/^\/=/},{type:s.ADD,pattern:/^\+/},{type:s.SUBTRACT,pattern:/^-/},{type:s.MULTIPLY,pattern:/^\*/},{type:s.DIVIDE,pattern:/^\//},{type:s.ASSIGN,pattern:/^=/},{type:s.EXCLAMATION_POINT,pattern:/^!/},{type:s.MODIFIER,pattern:/^\|[a-zA-Z0-9,]+/}];e.AttributableNodes=[u.RootScopeMemberNode,c.ScopeMemberNode,l.ElementAttributeNode];var H=function(){function t(e){this.code=e,t.cache[e]?this._root=t.cache[e]:(this.parse(),t.cache[e]=this._root)}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root},enumerable:!1,configurable:!0}),t.prototype.parse=function(){var e=t.tokenize(this.code);this._root=t.processTokens(e)},t.prototype.evaluate=function(e,r,i){return void 0===i&&(i=null),n(this,void 0,void 0,(function(){var n,a;return o(this,(function(o){switch(o.label){case 0:return n={scope:e,dom:r,tag:i,tree:this},t.executing.add(n),[4,this._root.evaluate(e,r,i)];case 1:return a=o.sent(),t.executing.delete(n),[2,a]}}))}))},t.prototype.prepare=function(t,e,r){return void 0===r&&(r=null),n(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return this._root.isPreparationRequired()?[4,this._root.prepare(t,e,r,{initial:!0})]:[2];case 1:return[2,n.sent()]}}))}))},t.prototype.bindToScopeChanges=function(t,e,r,a){return void 0===a&&(a=null),n(this,void 0,void 0,(function(){var n,s,f,p,h,y,d,v;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,9,10,11]),n=i(this._root.findChildrenByTypes([u.RootScopeMemberNode,c.ScopeMemberNode,l.ElementAttributeNode],"ScopeMemberNodes")),s=n.next(),o.label=1;case 1:return s.done?[3,8]:(f=s.value,p=t,f instanceof c.ScopeMemberNode?[4,f.scope.evaluate(t,r)]:[3,3]);case 2:return p=o.sent(),[3,5];case 3:return f instanceof l.ElementAttributeNode&&f.elementRef?[4,f.elementRef.evaluate(t,r,a)]:[3,5];case 4:p=o.sent()[0].scope,o.label=5;case 5:return[4,f.name.evaluate(t,r,a)];case 6:h=o.sent(),p.on("change:"+h,e),o.label=7;case 7:return s=n.next(),[3,1];case 8:return[3,11];case 9:return y=o.sent(),d={error:y},[3,11];case 10:try{s&&!s.done&&(v=n.return)&&v.call(n)}finally{if(d)throw d.error}return[7];case 11:return[2]}}))}))},t.reprepareExecutingTrees=function(){var e=this;t.executing.forEach((function(t){return n(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,t.tree.prepare(t.scope,t.dom,t.tag)];case 1:return e.sent(),[2]}}))}))}))},t.tokenize=function(t){var e,r,n,o=[];if(!t||0===t.length)return o;do{n=!1;try{for(var a=(e=void 0,i(B)),s=a.next();!s.done;s=a.next()){var u=s.value,c=u.pattern.exec(t);if(c){o.push({type:u.type,value:c[c.length-1],full:c[0],groups:c}),t=t.substring(c[0].length),n=!0;break}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}while(t.length>0&&n);return o},t.stripWhiteSpace=function(t){for(var e=0;e<t.length;e++)t[e].type===s.WHITESPACE&&(t.splice(e,1),e--);return t},t.processTokens=function(e,r,n){var o,a;void 0===r&&(r=null),void 0===n&&(n=null);var B=[],H=n,U=r,V=0;for(t.stripWhiteSpace(e);e.length>0&&!(++V>1e3);){e[0].type===s.RETURN&&e.shift();var q=e[0];if(q.type===s.NAME)U=new u.RootScopeMemberNode(new p.LiteralNode(q.value)),e.shift();else if(k.XHRNode.match(e))U=k.XHRNode.parse(U,e[0],e);else if(q.type===s.DISPATCH_EVENT)U=D.DispatchEventNode.parse(U,e[0],e);else if(q.type===s.WITH)H=U=I.WithNode.parse(U,e[0],e),B.push(U),U=null;else if(q.type===s.NAMED_STACK)H=U=G.NamedStackNode.parse(U,e[0],e),B.push(U),U=null;else if(q.type===s.AS)U=F.AsNode.parse(U,e[0],e);else if(q.type===s.IF)H=U=h.IfStatementNode.parse(U,q,e),B.push(U),U=null;else if(q.type===s.FOR)H=U=y.ForStatementNode.parse(U,q,e),B.push(U),U=null;else if(q.type===s.FUNC)H=U=R.FunctionNode.parse(U,q,e),B.push(U),U=null;else if(q.type===s.ON)H=U=L.OnNode.parse(U,q,e),B.push(U),U=null;else if(q.type===s.CLASS)H=U=C.ClassNode.parse(U,q,e),B.push(U),U=null;else if(N.StringFormatNode.match(e))U=N.StringFormatNode.parse(U,e[0],e);else if(q.type===s.STRING_LITERAL)U=new p.LiteralNode(q.value),e.shift();else if(q.type===s.NUMBER_LITERAL)U=new d.NumberLiteralNode(q.value),e.shift();else if(e[0].type===s.ELEMENT_REFERENCE)U=new v.ElementQueryNode(e[0].value,!0),e.shift();else if(e[0].type===s.ELEMENT_QUERY)U=v.ElementQueryNode.parse(U,e[0],e);else if(e[0].type===s.L_BRACKET)U=U?b.IndexNode.parse(U,q,e):_.ArrayNode.parse(U,q,e);else if(e[0].type===s.L_BRACE)U=g.ObjectNode.parse(U,q,e);else if(e[0].type===s.ELEMENT_ATTRIBUTE)U=new l.ElementAttributeNode(U,e[0].value),e.shift();else if(e[0].type===s.ELEMENT_STYLE)U=new w.ElementStyleNode(U,e[0].value),e.shift();else if(null!==U&&q.type===s.PERIOD&&e[1].type===s.NAME)U=new c.ScopeMemberNode(U,new p.LiteralNode(e[1].value)),e.splice(0,2);else if(e[0].type===s.L_PAREN){var W=t.getBlockTokens(e),K=[];try{for(var Q=(o=void 0,i(W)),X=Q.next();!X.done;X=Q.next()){var z=X.value;K.push(t.processTokens(z))}}catch(t){o={error:t}}finally{try{X&&!X.done&&(a=Q.return)&&a.call(Q)}finally{if(o)throw o.error}}U=U?new m.FunctionCallNode(U,new O.FunctionArgumentNode(K)):new f.BlockNode(K)}else if(e[0].type===s.SEMICOLON)U&&B.push(U),U=null,e.shift();else if(x.InNode.match(e))U=x.InNode.parse(U,q,e);else if(S.ComparisonNode.match(e))U=S.ComparisonNode.parse(U,q,e);else if(T.ArithmeticNode.match(e))U=T.ArithmeticNode.parse(U,q,e);else if(E.AssignmentNode.match(e))U=E.AssignmentNode.parse(U,q,e);else if(e[0].type===s.WHITESPACE)e.shift();else if(e[0].type===s.UNIT)U=new A.UnitLiteralNode(e[0].value),e.shift();else if(e[0].type===s.BOOLEAN_LITERAL)U=new P.BooleanLiteralNode(e[0].value),e.shift();else if(e[0].type===s.NULL_LITERAL)U=new p.LiteralNode(null),e.shift();else if(e[0].type===s.EXCLAMATION_POINT)U=j.NotNode.parse(U,e[0],e);else{if(e[0].type!==s.MODIFIER){var Y=t.toCode(e,10);throw Error("Syntax Error. Near "+Y)}M.ModifierNode.parse(U||H,e[0],e)}}return U&&B.push(U),new f.BlockNode(B)},t.toCode=function(t,e){var r="";e=e||t.length;for(var n=0;n<e&&t[n];n++)r+=t[n].value;return r},t.getBlockInfo=function(t){var e,r,n,o,i,u=t[0];switch(e=u.type===s.L_PAREN?a.PAREN:u.type===s.L_BRACE?a.BRACE:u.type===s.L_BRACKET?a.BRACKET:a.STATEMENT){case a.PAREN:r=s.L_PAREN,n=s.R_PAREN,o="(",i=")";break;case a.BRACE:r=s.L_BRACE,n=s.R_BRACE,o="{",i="}";break;case a.BRACKET:r=s.L_BRACKET,n=s.R_BRACKET,o="[",i="]";break;default:r=null,n=s.SEMICOLON,o=null,i=";"}return{type:e,open:r,close:n,openCharacter:o,closeCharacter:i}},t.getNextStatementTokens=function(e,r,n,o){void 0===r&&(r=!0),void 0===n&&(n=!0),void 0===o&&(o=!1);var i=t.getBlockInfo(e);return n&&e[0].type===i.open&&e.shift(),t.getTokensUntil(e,i.close,r,o)},t.getBlockTokens=function(e,r){void 0===r&&(r=s.COMMA);for(var n=t.getBlockInfo(e),o=0,i=[],a=[],u=0;u<e.length;u++){var c=e[u];if(c.type===n.open?(o+=1)>1&&a.push(c):c.type===n.close?(o-=1)>0&&a.push(c):null!==r&&c.type===r&&1==o?(i.push(a),a=[]):c.type!==s.WHITESPACE&&a.push(c),e.shift(),u--,0===o)return a.length>0&&i.push(a),i}throw Error("Invalid Syntax, missing "+n.closeCharacter)},t.getTokensUntil=function(e,r,n,o,i,a){void 0===r&&(r=s.SEMICOLON),void 0===n&&(n=!0),void 0===o&&(o=!1),void 0===i&&(i=!1),void 0===a&&(a=null);var u=[];a=a||t.getBlockInfo(e);for(var c=0,l=0,f=0,p=0;p<e.length;p++){var h=e[p];if(h.type===a.open&&0===p||(h.type===s.L_PAREN&&r!==s.L_PAREN&&(c+=1),h.type===s.L_BRACE&&r!==s.L_BRACE&&(l+=1),h.type===s.L_BRACKET&&r!==s.L_BRACKET&&(f+=1)),[r,s.R_BRACKET,s.R_BRACE,s.R_PAREN].indexOf(h.type)>-1)if(c>0&&h.type===s.R_PAREN)c-=1;else if(l>0&&h.type===s.R_BRACE)l-=1;else if(f>0&&h.type===s.R_BRACKET)f-=1;else{if(h.type===r&&0===c&&0===l&&0===f){o&&u.push(h),(o||n)&&h.type!==s.SEMICOLON&&e.shift();break}if(h.type!==r||!(c>0||l>0||f>0)){if(i)break;throw Error("Invalid syntax, expecting "+r+".")}}u.push(h),e.shift(),p--}return u},t.consumeTypes=function(t,e){var r,n,o=[];try{for(var a=i(t),s=a.next();!s.done;s=a.next()){var u=s.value;if(!(e.indexOf(u.type)>-1))break;o.push(u)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return t.splice(0,o.length),o},t.apply=function(e,r,i,a){return n(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,new t(e).evaluate(r,i,a)];case 1:return[2,n.sent()]}}))}))},t.executing=new Set,t.cache={},t}();e.Tree=H},6357:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ArithmeticNode=void 0;var s=r(7754),u=function(t){function e(e,r,n){var o=t.call(this)||this;return o.left=e,o.right=r,o.type=n,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.left,this.right]},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o;return a(this,(function(i){switch(i.label){case 0:return[4,this.left.evaluate(t,e,r)];case 1:return n=i.sent(),[4,this.right.evaluate(t,e,r)];case 2:switch(o=i.sent(),this.type){case s.TokenType.ADD:return[2,n+o];case s.TokenType.SUBTRACT:return[2,n-o];case s.TokenType.MULTIPLY:return[2,n*o];case s.TokenType.DIVIDE:return[2,n/o]}return[2]}}))}))},e.match=function(t){return[s.TokenType.ADD,s.TokenType.SUBTRACT,s.TokenType.MULTIPLY,s.TokenType.DIVIDE].indexOf(t[0].type)>-1},e.parse=function(t,r,n){return n.splice(0,1),new e(t,s.Tree.processTokens(s.Tree.getNextStatementTokens(n)),r.type)},e}(r(8403).Node);e.ArithmeticNode=u},6006:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNode=void 0;var l=r(8572),f=r(7754),p=function(t){function e(e){var r=t.call(this)||this;return r.values=e,r}return o(e,t),e.prototype._getChildNodes=function(){return new(Array.bind.apply(Array,u([void 0],s(this.values))))},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i,s,u,f,p,h,y;return a(this,(function(a){switch(a.label){case 0:n=new l.WrappedArray,a.label=1;case 1:a.trys.push([1,6,7,8]),o=c(this.values),i=o.next(),a.label=2;case 2:return i.done?[3,5]:(s=i.value,f=(u=n).push,[4,s.evaluate(t,e,r)]);case 3:f.apply(u,[a.sent()]),a.label=4;case 4:return i=o.next(),[3,2];case 5:return[3,8];case 6:return p=a.sent(),h={error:p},[3,8];case 7:try{i&&!i.done&&(y=o.return)&&y.call(o)}finally{if(h)throw h.error}return[7];case 8:return[2,n]}}))}))},e.match=function(t){return t[0].type===f.TokenType.L_BRACKET},e.parse=function(t,r,n){var o,i,a=f.Tree.getBlockTokens(n),s=[];try{for(var u=c(a),l=u.next();!l.done;l=u.next()){var p=l.value;s.push(f.Tree.processTokens(p))}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return new e(s)},e}(r(8403).Node);e.ArrayNode=p},7893:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.AsNode=void 0;var s=function(t){function e(e,r){var n=t.call(this)||this;return n.context=e,n.name=r,n}return o(e,t),e.prototype._getChildNodes=function(){return[this.context]},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n;return a(this,(function(o){switch(o.label){case 0:return[4,this.context.evaluate(t,e,r)];case 1:return n=o.sent(),t.set(this.name,n),[2,n]}}))}))},e.parse=function(t,r,n){return n.shift(),new e(t,n.shift().value)},e}(r(8403).Node);e.AsNode=s},9475:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AssignmentNode=void 0;var l=r(4843),f=r(3276),p=r(7754),h=r(8403),y=r(4123),d=r(7549),v=r(3770),b=r(6094),_=r(2999),g=r(2751),w=r(2018),m=function(t){function e(e,r,n){var o=t.call(this)||this;return o.left=e,o.right=r,o.type=n,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.left,this.right]},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i,p,h,y,g,m,O,x,S,T,E;return a(this,(function(a){switch(a.label){case 0:return n=[],[4,this.left.name.evaluate(t,e,r)];case 1:return o=a.sent(),this.left instanceof d.ScopeMemberNode?[4,this.left.scope.evaluate(t,e,r)]:[3,3];case 2:return i=a.sent(),this.left.scope instanceof v.ElementQueryNode?this.left.scope.first?n.push(i):n.push.apply(n,u([],s(i))):i instanceof l.Scope?n.push(i):i instanceof w.ScopeObject?n.push(i.scope):n.push(t),[3,6];case 3:return(this.left instanceof b.ElementAttributeNode||this.left instanceof _.ElementStyleNode)&&this.left.elementRef?[4,this.left.elementRef.evaluate(t,e,r)]:[3,5];case 4:return p=a.sent(),this.left.elementRef.first||p instanceof f.DOMObject?n.push(p):n=p,[3,6];case 5:n.push(t),a.label=6;case 6:h=[],a.label=7;case 7:a.trys.push([7,15,16,17]),y=c(n),g=y.next(),a.label=8;case 8:return g.done?[3,14]:(m=g.value)?m instanceof f.DOMObject?[4,this.handleDOMObject(o,e,t,m,r)]:[3,10]:[3,13];case 9:return a.sent(),[3,13];case 10:return m.$wrapped&&m.$scope&&(m=m.$scope),[4,this.left.evaluate(t,e,r)];case 11:return O=a.sent(),[4,this.right.evaluate(t,e,r)];case 12:x=a.sent(),O=this.handle(o,O,x,m),h.push(O),a.label=13;case 13:return g=y.next(),[3,8];case 14:return[3,17];case 15:return S=a.sent(),T={error:S},[3,17];case 16:try{g&&!g.done&&(E=y.return)&&E.call(y)}finally{if(T)throw T.error}return[7];case 17:return[2,h.length>1?h:h[0]]}}))}))},e.prototype.handle=function(t,e,r,n){return e=e instanceof Array?this.handleArray(t,e,r,n):e instanceof g.UnitLiteral||r instanceof g.UnitLiteral?this.handleUnit(t,e,r,n):Number.isFinite(e)?this.handleNumber(t,e,r,n):this.handleString(t,e,r,n)},e.prototype.handleNumber=function(t,e,r,n){switch(null===r||Number.isFinite(r)||(r=parseFloat(""+r)),e=e,r=r,this.type){case p.TokenType.ASSIGN:e=r;break;case p.TokenType.ADD_ASSIGN:e+=r;break;case p.TokenType.SUBTRACT_ASSIGN:e-=r;break;case p.TokenType.MULTIPLY_ASSIGN:e*=r;break;case p.TokenType.DIVIDE_ASSIGN:e/=r}return n.set(t,e),e},e.prototype.handleString=function(t,e,r,n){switch(this.type){case p.TokenType.ASSIGN:e=r;break;case p.TokenType.ADD_ASSIGN:e=""+e+r;break;case p.TokenType.SUBTRACT_ASSIGN:e.replace(r,"");break;case p.TokenType.MULTIPLY_ASSIGN:e*=r;break;case p.TokenType.DIVIDE_ASSIGN:e/=r}return n.set(t,e),e},e.prototype.handleUnit=function(t,e,r,n){e instanceof g.UnitLiteral||(e=new g.UnitLiteral(e)),r instanceof g.UnitLiteral||(r=new g.UnitLiteral(r));var o=e.unit||r.unit||"px";switch(this.type){case p.TokenType.ASSIGN:e=r;break;case p.TokenType.ADD_ASSIGN:e=new g.UnitLiteral(""+(e.amount+r.amount)+o);break;case p.TokenType.SUBTRACT_ASSIGN:e=new g.UnitLiteral(""+(e.amount-r.amount)+o);break;case p.TokenType.MULTIPLY_ASSIGN:e=new g.UnitLiteral(""+e.amount*r.amount+o);break;case p.TokenType.DIVIDE_ASSIGN:e=new g.UnitLiteral(""+e.amount/r.amount+o)}return n.set(t,e),e},e.prototype.handleDOMObject=function(t,e,r,n,o){return i(this,void 0,void 0,(function(){var i,s;return a(this,(function(a){switch(a.label){case 0:return i=n.scope.get(t),[4,this.right.evaluate(r,e,o)];case 1:return s=a.sent(),[2,this.handle(t,i,s,n.scope)]}}))}))},e.prototype.handleArray=function(t,e,r,n){var o,i;switch(r instanceof Array||(r=[r]),this.type){case p.TokenType.ASSIGN:e.splice(0,e.length),e.push.apply(e,u([],s(r)));break;case p.TokenType.ADD_ASSIGN:e.push.apply(e,u([],s(r)));break;case p.TokenType.SUBTRACT_ASSIGN:for(var a=e.length-1;a>=0;a--)r.indexOf(e[a])>-1&&(e.splice(a,1),a++);break;case p.TokenType.TILDE:try{for(var l=c(r),f=l.next();!f.done;f=l.next()){var h=f.value,y=e.indexOf(h);y>-1?e.splice(y,1):e.push(h)}}catch(t){o={error:t}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}}return n.dispatch("change:"+t),e},e.match=function(t){return[p.TokenType.ASSIGN,p.TokenType.ADD_ASSIGN,p.TokenType.SUBTRACT_ASSIGN,p.TokenType.MULTIPLY_ASSIGN,p.TokenType.DIVIDE_ASSIGN,p.TokenType.TILDE].indexOf(t[0].type)>-1},e.parse=function(t,r,n){if(!(t instanceof y.RootScopeMemberNode||t instanceof d.ScopeMemberNode||t instanceof b.ElementAttributeNode||t instanceof _.ElementStyleNode))throw SyntaxError("Invalid assignment syntax near "+p.Tree.toCode(n.splice(0,10)));n.splice(0,1);var o=p.Tree.getTokensUntil(n,p.TokenType.SEMICOLON,!1,!0,!0,{type:p.BlockType.STATEMENT,open:p.TokenType.NULL,close:p.TokenType.SEMICOLON,openCharacter:"",closeCharacter:";"});return new e(t,p.Tree.processTokens(o),r.type)},e}(h.Node);e.AssignmentNode=m},8130:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.BlockNode=void 0;var c=function(t){function e(e){var r=t.call(this)||this;return r.statements=e,r}return o(e,t),e.prototype._getChildNodes=function(){return u([],s(this.statements))},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o;return a(this,(function(i){switch(i.label){case 0:n=null,o=0,i.label=1;case 1:return o<this.statements.length?[4,this.statements[o].evaluate(t,e,r)]:[3,4];case 2:n=i.sent(),i.label=3;case 3:return o++,[3,1];case 4:return[2,n]}}))}))},e}(r(8403).Node);e.BlockNode=c},9826:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanLiteralNode=void 0;var i=function(t){function e(e){var r=t.call(this,e)||this;return r.value=e,r.value="true"===e,r}return o(e,t),e}(r(8052).LiteralNode);e.BooleanLiteralNode=i},2947:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.ClassNode=void 0;var l=r(4843),f=r(712),p=r(7754),h=r(8403),y=r(1371),d=r(1096),v=function(t){function e(e,r){var n=t.call(this)||this;return n.selector=e,n.block=r,n.requiresPrep=!0,n.classScope=new l.Scope,n}return o(e,t),Object.defineProperty(e.prototype,"fullSelector",{get:function(){return this._fullSelector},enumerable:!1,configurable:!0}),e.prototype.updateMeta=function(t){return(t=t||{}).ClassNode=this,t},e.prototype.prepare=function(t,r,n,o){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var t,i,s=this;return a(this,(function(a){switch(a.label){case 0:return o=Object.assign({},o)||{},t=!!o.initial,i=!1,o.ClassNodePrepare=t,t?(o.ClassNodeSelector?(this._parentSelector=o.ClassNodeSelector,e.classChildren[o.ClassNodeSelector].push(this.selector),o.ClassNodeSelector=o.ClassNodeSelector+" "+this.selector):(i=!0,o.ClassNodeSelector=this.selector),this._fullSelector=o.ClassNodeSelector,e.classes[this._fullSelector]?[2]:(e.classes[this._fullSelector]=this,e.classChildren[this._fullSelector]=[],e.preppedTags[this._fullSelector]=[],void 0===e.classParents[this.selector]&&(e.classParents[this.selector]=[]),e.classParents[this.selector].push(this._fullSelector),[4,this.block.prepare(this.classScope,r,n,o)])):[3,5];case 1:return a.sent(),y.Registry.class(this),i?r.built?[4,this.findClassElements(r)]:[3,3]:[3,4];case 2:return a.sent(),[3,4];case 3:r.once("builtRoot",(function(){return s.findClassElements(r)})),a.label=4;case 4:return[3,7];case 5:return o.PrepForSelector!==this.fullSelector?[3,7]:[4,this.block.prepare(n.scope,r,n,o)];case 6:a.sent(),a.label=7;case 7:return[2]}}))}))},e.prototype.findClassElements=function(t,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i,u,c,l,p,h,y,d,v,b,_,g,w,m,O,x,S,T,E,A;return a(this,(function(a){switch(a.label){case 0:n=[],a.label=1;case 1:a.trys.push([1,6,7,8]),o=s(Array.from(t.querySelectorAll(this.selector,r))),i=o.next(),a.label=2;case 2:return i.done?[3,5]:(u=i.value,l=(c=n).push,[4,e.addElementClass(this._fullSelector,u,t,u[f.Tag.TaggedVariable]||null)]);case 3:l.apply(c,[a.sent()]),a.label=4;case 4:return i=o.next(),[3,2];case 5:return[3,8];case 6:return p=a.sent(),O={error:p},[3,8];case 7:try{i&&!i.done&&(x=o.return)&&x.call(o)}finally{if(O)throw O.error}return[7];case 8:a.trys.push([8,19,20,21]),h=s(e.classChildren[this._fullSelector]),y=h.next(),a.label=9;case 9:if(y.done)return[3,18];if(d=y.value,!(v=e.classes[this._fullSelector+" "+d]))return[3,17];a.label=10;case 10:a.trys.push([10,15,16,17]),E=void 0,b=s(n),_=b.next(),a.label=11;case 11:return _.done?[3,14]:(g=_.value,[4,v.findClassElements(t,g)]);case 12:a.sent(),a.label=13;case 13:return _=b.next(),[3,11];case 14:return[3,17];case 15:return w=a.sent(),E={error:w},[3,17];case 16:try{_&&!_.done&&(A=b.return)&&A.call(b)}finally{if(E)throw E.error}return[7];case 17:return y=h.next(),[3,9];case 18:return[3,21];case 19:return m=a.sent(),S={error:m},[3,21];case 20:try{y&&!y.done&&(T=h.return)&&T.call(h)}finally{if(S)throw S.error}return[7];case 21:return[2]}}))}))},e.prototype.constructTag=function(t,r,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var o;return a(this,(function(i){switch(i.label){case 0:return null===n&&(n=this.classScope.has("construct")),t.createScope(!0),(o=this.updateMeta()).PrepForSelector=this.fullSelector,[4,this.block.prepare(t.scope,r,t,o)];case 1:return i.sent(),n?[4,this.classScope.get("construct").getFunction(t.scope,r,t,!1)]:[3,4];case 2:return[4,i.sent()()];case 3:i.sent(),i.label=4;case 4:return t.dispatch(this.fullSelector+".construct",t.element.id),e.preppedTags[this.fullSelector].push(t),e.addPreparedClassToElement(t.element,this.fullSelector),[2]}}))}))},e.prototype.deconstructTag=function(t,r,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var o,i,u,c,l,f;return a(this,(function(a){switch(a.label){case 0:return null===n&&(n=this.classScope.has("deconstruct")),n?[4,this.classScope.get("deconstruct").getFunction(t.scope,r,t,!1)]:[3,3];case 1:return[4,a.sent()()];case 2:a.sent(),a.label=3;case 3:try{for(o=s(this.classScope.keys),i=o.next();!i.done;i=o.next())u=i.value,this.classScope.get(u)instanceof d.OnNode&&(c=this.classScope.get(u),t.removeContextEventHandlers(c))}catch(t){l={error:t}}finally{try{i&&!i.done&&(f=o.return)&&f.call(o)}finally{if(l)throw l.error}}return t.dispatch(this.fullSelector+".deconstruct"),e.preppedTags[this.fullSelector].splice(e.preppedTags[this.fullSelector].indexOf(t),1),[4,e.removePreparedClassFromElement(t.element,this.fullSelector)];case 4:return a.sent(),[2]}}))}))},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){return a(this,(function(t){return[2,null]}))}))},e.parse=function(t,r,n){var o,i;n.shift();var a=[];try{for(var u=s(n),c=u.next();!c.done;c=u.next()){var l=c.value;if(l.type===p.TokenType.L_BRACE)break;a.push(l.value)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}var f=a.join("").trim();return f.startsWith(">")&&(f=":scope "+f),n.splice(0,a.length),new e(f,p.Tree.processTokens(p.Tree.getNextStatementTokens(n,!0,!0)))},e.prototype.getSelectorPath=function(){for(var t=[this.selector],r=this._parentSelector;r;)t.push(e.classes[r].selector),r=e.classes[r]._parentSelector;return t.reverse()},e.checkForClassChanges=function(t,r,n){var o;return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var i,l,p,h,y,d,v,b,_,g,w,m,O,x,S,T,E,A,P,j,k,N,R,C,L,M,D,I,F,G;return a(this,(function(a){switch(a.label){case 0:i=c([t.tagName.toLowerCase()],u(Array.from(t.classList).map((function(t){return"."+t})))),l=c([],u(e.getClassesForElement(t))),t.id&&i.push("#"+t.id);try{for(p=s(i),h=p.next();!h.done;h=p.next())b=h.value,(y=e.classParents[b])&&l.push.apply(l,c([],u(y.filter((function(t){return!l.includes(t)})))))}catch(t){R={error:t}}finally{try{h&&!h.done&&(C=p.return)&&C.call(p)}finally{if(R)throw R.error}}return n?[3,2]:[4,r.getTagForElement(t,!0)];case 1:n=a.sent(),a.label=2;case 2:a.trys.push([2,23,24,25]),d=s(l),v=d.next(),a.label=3;case 3:return v.done?[3,22]:(b=v.value,_=e.getClassesForElement(t).includes(b),g=null===(o=e.classes[b])||void 0===o?void 0:o.getSelectorPath(),w=r.querySelectPath(g),m=w.includes(t),O=!1,!m||_?[3,5]:[4,e.addElementClass(b,t,r,n)]);case 4:return a.sent(),O=!0,[3,7];case 5:return m||!_?[3,7]:[4,e.removeElementClass(b,t,r,n)];case 6:a.sent(),O=!0,a.label=7;case 7:if(!(O&&e.classChildren[b].length>0))return[3,21];a.label=8;case 8:a.trys.push([8,19,20,21]),D=void 0,x=s(e.classChildren[b]),S=x.next(),a.label=9;case 9:if(S.done)return[3,18];T=S.value,a.label=10;case 10:a.trys.push([10,15,16,17]),F=void 0,E=s(Array.from(r.querySelectorAll(T,n))),A=E.next(),a.label=11;case 11:return A.done?[3,14]:(P=A.value,[4,e.checkForClassChanges(P,r,P[f.Tag.TaggedVariable]||null)]);case 12:a.sent(),a.label=13;case 13:return A=E.next(),[3,11];case 14:return[3,17];case 15:return j=a.sent(),F={error:j},[3,17];case 16:try{A&&!A.done&&(G=E.return)&&G.call(E)}finally{if(F)throw F.error}return[7];case 17:return S=x.next(),[3,9];case 18:return[3,21];case 19:return k=a.sent(),D={error:k},[3,21];case 20:try{S&&!S.done&&(I=x.return)&&I.call(x)}finally{if(D)throw D.error}return[7];case 21:return v=d.next(),[3,3];case 22:return[3,25];case 23:return N=a.sent(),L={error:N},[3,25];case 24:try{v&&!v.done&&(M=d.return)&&M.call(d)}finally{if(L)throw L.error}return[7];case 25:return[2]}}))}))},e.getClassesForElement=function(t){return t[e.ClassesVariable]||(t[e.ClassesVariable]=[]),t[e.ClassesVariable]},e.addPreparedClassToElement=function(t,r){e.getClassesForElement(t).push(r)},e.removePreparedClassFromElement=function(t,r){var n=e.getClassesForElement(t);n.splice(n.indexOf(r),1)},e.addElementClass=function(t,r,n,o){return void 0===o&&(o=null),i(this,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return e.getClassesForElement(r).includes(t)?[2]:o?[3,2]:[4,n.getTagForElement(r,!0)];case 1:o=a.sent(),a.label=2;case 2:return o?(i=y.Registry.instance.classes.getSynchronous(t))?[4,i.constructTag(o,n)]:[3,4]:(console.error("no tag found for element",r),[2]);case 3:a.sent(),a.label=4;case 4:return[2,o]}}))}))},e.removeElementClass=function(t,r,n,o){return void 0===o&&(o=null),i(this,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return e.getClassesForElement(r).includes(t)?o?[3,2]:[4,n.getTagForElement(r,!0)]:[2];case 1:o=a.sent(),a.label=2;case 2:return(i=y.Registry.instance.classes.getSynchronous(t))?[4,i.deconstructTag(o,n)]:[3,4];case 3:a.sent(),a.label=4;case 4:return[2]}}))}))},e.isClass=function(t){return!!this.classes[t]},e.ClassesVariable="_vsn_classes",e.classes={},e.classParents={},e.classChildren={},e.preppedTags={},e}(h.Node);e.ClassNode=v},1560:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ComparisonNode=void 0;var s=r(7754),u=function(t){function e(e,r,n){var o=t.call(this)||this;return o.left=e,o.right=r,o.type=n,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.left,this.right]},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o;return a(this,(function(i){switch(i.label){case 0:return[4,this.left.evaluate(t,e,r)];case 1:return n=i.sent(),[4,this.right.evaluate(t,e,r)];case 2:switch(o=i.sent(),this.type){case s.TokenType.EQUALS:return[2,n===o];case s.TokenType.NOT_EQUALS:return[2,n!==o];case s.TokenType.GREATER_THAN:return[2,n>o];case s.TokenType.LESS_THAN:return[2,n<o];case s.TokenType.GREATER_THAN_EQUAL:return[2,n>=o];case s.TokenType.LESS_THAN_EQUAL:return[2,n<=o]}return[2]}}))}))},e.match=function(t){return[s.TokenType.EQUALS,s.TokenType.NOT_EQUALS,s.TokenType.GREATER_THAN,s.TokenType.LESS_THAN,s.TokenType.GREATER_THAN_EQUAL,s.TokenType.LESS_THAN_EQUAL].indexOf(t[0].type)>-1},e.parse=function(t,r,n){return n.splice(0,1),new e(t,s.Tree.processTokens(s.Tree.getNextStatementTokens(n)),r.type)},e}(r(8403).Node);e.ComparisonNode=u},6765:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConditionalNode=void 0;var s=r(8572),u=function(t){function e(e,r){var n=t.call(this)||this;return n.condition=e,n.block=r,n}return o(e,t),e.prototype._getChildNodes=function(){return[this.condition,this.block]},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n;return a(this,(function(o){switch(o.label){case 0:return[4,this.condition.evaluate(t,e,r)];case 1:return n=o.sent(),!1,[2,n instanceof s.WrappedArray?n.length>0:!!n]}}))}))},e}(r(8403).Node);e.ConditionalNode=u},6756:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.DispatchEventNode=void 0;var s=r(4843),u=r(7754),c=r(8403),l=r(1525),f=function(t){function e(e,r,n){void 0===n&&(n=!1);var o=t.call(this)||this;return o.name=e,o.data=r,o.bubbles=n,o}return o(e,t),e.prototype._getChildNodes=function(){var t=[];return this.data&&t.push(this.data),t},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o;return a(this,(function(i){switch(i.label){case 0:return this.data?[4,this.data.evaluate(t,e,r)]:[3,2];case 1:return o=i.sent(),[3,3];case 2:o={},i.label=3;case 3:return(n=o)instanceof s.Scope?n=n.data.getData():n instanceof l.ScopeData&&(n=n.getData()),n.source=r.element,r.element.dispatchEvent(new CustomEvent(this.name,{bubbles:this.bubbles,detail:n})),[2]}}))}))},e.parse=function(t,r,n){var o=n.shift(),i=null;if(n.length&&n[0].type===u.TokenType.L_PAREN){var a=u.Tree.getNextStatementTokens(n,!0,!0,!1);i=u.Tree.processTokens(a).statements[0]}return new e(o.value,i,o.full.startsWith("!!!"))},e}(c.Node);e.DispatchEventNode=f},6094:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ElementAttributeNode=void 0;var u=r(1341),c=r(8403),l=r(3770),f=r(8052),p=r(3276),h=r(2020),y=function(t){function e(e,r){var n=t.call(this)||this;return n.elementRef=e,n.attr=r,n.requiresPrep=!0,n}return o(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return new f.LiteralNode("@"+this.attributeName)},enumerable:!1,configurable:!0}),e.prototype._getChildNodes=function(){var t=[];return this.elementRef&&t.push(this.elementRef),t},Object.defineProperty(e.prototype,"attributeName",{get:function(){return this.attr.startsWith(".")?this.attr.substring(2):this.attr.substring(1)},enumerable:!1,configurable:!0}),e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i=this;return a(this,(function(a){switch(a.label){case 0:return this.elementRef instanceof l.ElementQueryNode?[4,this.elementRef.evaluate(t,e,r,!0)]:[3,2];case 1:return n=a.sent(),[3,5];case 2:return this.elementRef instanceof h.IndexNode?[4,this.elementRef.evaluate(t,e,r,!0)]:[3,4];case 3:return o=a.sent(),n=o instanceof u.TagList?o:new u.TagList(o),[3,5];case 4:if(!r)return[2];n=new u.TagList(r),a.label=5;case 5:return 1===n.length?[2,n[0].scope.get("@"+this.attributeName)]:[2,n.map((function(t){return t.scope.get("@"+i.attributeName)}))]}}))}))},e.prototype.prepare=function(t,e,r,n){return void 0===r&&(r=null),void 0===n&&(n=null),i(this,void 0,void 0,(function(){var o,i,c,l,f,h,y;return a(this,(function(a){switch(a.label){case 0:return this.elementRef?[4,this.elementRef.prepare(t,e,r,n)]:[3,14];case 1:return a.sent(),[4,this.elementRef.evaluate(t,e,r,!0)];case 2:if(!((o=a.sent())instanceof u.TagList))return[3,11];a.label=3;case 3:a.trys.push([3,8,9,10]),i=s(o),c=i.next(),a.label=4;case 4:return c.done?[3,7]:[4,null==(l=c.value)?void 0:l.watchAttribute(this.attributeName)];case 5:a.sent(),a.label=6;case 6:return c=i.next(),[3,4];case 7:return[3,10];case 8:return f=a.sent(),h={error:f},[3,10];case 9:try{c&&!c.done&&(y=i.return)&&y.call(i)}finally{if(h)throw h.error}return[7];case 10:return[3,13];case 11:return o instanceof p.DOMObject?[4,o.watchAttribute(this.attributeName)]:[3,13];case 12:a.sent(),a.label=13;case 13:return[3,16];case 14:return r?[4,r.watchAttribute(this.attributeName)]:[3,16];case 15:a.sent(),a.label=16;case 16:return[2]}}))}))},e}(c.Node);e.ElementAttributeNode=y},3770:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ElementQueryNode=void 0;var s=r(9033),u=function(t){function e(e,r,n){void 0===r&&(r=!1),void 0===n&&(n=s.EQuerySelectDirection.ALL);var o=t.call(this)||this;return o.query=e,o.first=r,o.direction=n,o.requiresPrep=!0,o}return o(e,t),e.prototype.evaluate=function(t,e,r,n){return void 0===r&&(r=null),void 0===n&&(n=!1),i(this,void 0,void 0,(function(){var o,i;return a(this,(function(a){switch(a.label){case 0:return(o=r)?[3,2]:[4,e.getTagForScope(t)];case 1:o=a.sent(),a.label=2;case 2:return r=o,[4,e.get(this.query,!0,r,this.direction)];case 3:return i=a.sent(),[2,this.first&&!n?i[0]:i]}}))}))},e.prototype.prepare=function(t,e,r,n){return void 0===r&&(r=null),void 0===n&&(n=null),i(this,void 0,void 0,(function(){var n;return a(this,(function(o){switch(o.label){case 0:return(n=r)?[3,2]:[4,e.getTagForScope(t)];case 1:n=o.sent(),o.label=2;case 2:return r=n,[4,e.get(this.query,!0,r)];case 3:return o.sent(),[2]}}))}))},e.parse=function(t,r,n){n.shift();var o=!1,i=s.EQuerySelectDirection.ALL;return r.full.startsWith("?>")?i=s.EQuerySelectDirection.DOWN:r.full.startsWith("?<")&&(i=s.EQuerySelectDirection.UP,o=!0),new e(r.value,o,i)},e}(r(8403).Node);e.ElementQueryNode=u},2999:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ElementStyleNode=void 0;var u=r(1341),c=r(8403),l=r(8052),f=function(t){function e(e,r){var n=t.call(this)||this;return n.elementRef=e,n.attr=r,n.requiresPrep=!0,n}return o(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return new l.LiteralNode("$"+this.attributeName)},enumerable:!1,configurable:!0}),e.prototype._getChildNodes=function(){var t=[];return this.elementRef&&t.push(this.elementRef),t},Object.defineProperty(e.prototype,"attributeName",{get:function(){return this.attr.startsWith(".")?this.attr.substring(2):this.attr.substring(1)},enumerable:!1,configurable:!0}),e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o=this;return a(this,(function(i){switch(i.label){case 0:return this.elementRef?[4,this.elementRef.evaluate(t,e,r,!0)]:[3,2];case 1:return n=i.sent(),[3,3];case 2:if(!r)return[2];n=new u.TagList(r),i.label=3;case 3:return 1===n.length?[2,n[0].scope.get("$"+this.attributeName)]:[2,n.map((function(t){return t.scope.get("$"+o.attributeName)}))]}}))}))},e.prototype.prepare=function(t,e,r,n){return void 0===r&&(r=null),void 0===n&&(n=null),i(this,void 0,void 0,(function(){var o,i,u,c,l,f;return a(this,(function(a){switch(a.label){case 0:return this.elementRef?[4,this.elementRef.prepare(t,e,r,n)]:[3,11];case 1:return a.sent(),[4,this.elementRef.evaluate(t,e,r,!0)];case 2:o=a.sent(),a.label=3;case 3:a.trys.push([3,8,9,10]),i=s(o),u=i.next(),a.label=4;case 4:return u.done?[3,7]:[4,u.value.watchStyle(this.attributeName)];case 5:a.sent(),a.label=6;case 6:return u=i.next(),[3,4];case 7:return[3,10];case 8:return c=a.sent(),l={error:c},[3,10];case 9:try{u&&!u.done&&(f=i.return)&&f.call(i)}finally{if(l)throw l.error}return[7];case 10:return[3,13];case 11:return r?[4,r.watchStyle(this.attributeName)]:[3,13];case 12:a.sent(),a.label=13;case 13:return[2]}}))}))},e}(c.Node);e.ElementStyleNode=f},3187:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ForStatementNode=void 0;var s=r(7754),u=r(8403),c=r(8052),l=function(t){function e(e,r,n){var o=t.call(this)||this;return o.variable=e,o.list=r,o.block=n,o}return o(e,t),e.prototype._getChildNodes=function(){return[this.variable,this.list,this.block]},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.variable.evaluate(t,e,r)];case 1:return n=a.sent(),[4,this.list.evaluate(t,e,r)];case 2:o=a.sent(),i=0,a.label=3;case 3:return i<o.length?(t.set(n,o[i]),[4,this.block.evaluate(t,e,r)]):[3,6];case 4:a.sent(),a.label=5;case 5:return i++,[3,3];case 6:return[2,null]}}))}))},e.parse=function(t,r,n){if(n[1].type!==s.TokenType.L_PAREN)throw SyntaxError("Syntax error: Missing (");if(n[3].type!==s.TokenType.OF)throw SyntaxError("Syntax error: Missing of");n.splice(0,1);var o=s.Tree.getNextStatementTokens(n),i=o.splice(0,1)[0];o.splice(0,1);var a=s.Tree.processTokens(o),u=s.Tree.processTokens(s.Tree.getBlockTokens(n,null)[0]);return new e(new c.LiteralNode(i.value),a,u)},e}(u.Node);e.ForStatementNode=l},3203:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionArgumentNode=void 0;var l=function(t){function e(e){var r=t.call(this)||this;return r.args=e,r}return o(e,t),e.prototype._getChildNodes=function(){return u([],s(this.args))},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i,s,u,l,f,p,h;return a(this,(function(a){switch(a.label){case 0:n=[],a.label=1;case 1:a.trys.push([1,6,7,8]),o=c(this.args),i=o.next(),a.label=2;case 2:return i.done?[3,5]:(s=i.value,l=(u=n).push,[4,s.evaluate(t,e,r)]);case 3:l.apply(u,[a.sent()]),a.label=4;case 4:return i=o.next(),[3,2];case 5:return[3,8];case 6:return f=a.sent(),p={error:f},[3,8];case 7:try{i&&!i.done&&(h=o.return)&&h.call(o)}finally{if(p)throw p.error}return[7];case 8:return[2,n]}}))}))},e}(r(8403).Node);e.FunctionArgumentNode=l},5728:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionCallNode=void 0;var l=r(712),f=r(8403),p=r(7549),h=r(3484),y=r(1371),d=r(3770),v=r(2947),b=function(t){function e(e,r){var n=t.call(this)||this;return n.fnc=e,n.args=r,n}return o(e,t),e.prototype._getChildNodes=function(){return[this.fnc,this.args]},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i,f,b,_,g,w,m,O,x,S,T,E,A,P,j,k,N,R,C,L,M,D,I,F,G,B,H,U,V;return a(this,(function(a){switch(a.label){case 0:return n=[],o=t,"",!1,this.fnc instanceof p.ScopeMemberNode?(!0,[4,this.fnc.scope.evaluate(t,e,r)]):[3,5];case 1:return o=a.sent(),[4,this.fnc.name.evaluate(t,e,r)];case 2:return a.sent(),this.fnc.scope instanceof d.ElementQueryNode?[4,this.fnc.scope.evaluate(t,e,r)]:[3,4];case 3:if((i=a.sent())instanceof Array)n=i;else{if(!(i instanceof l.Tag))throw new Error("Invalid element query result");n=[i]}return[3,5];case 4:n=[r],a.label=5;case 5:return[4,this.args.evaluate(t,e,r)];case 6:return f=a.sent(),[4,this.fnc.evaluate(t,e,r)];case 7:return!(b=a.sent())||b instanceof Array?[4,this.fnc.name.evaluate(t,e,r)]:[3,31];case 8:_=a.sent(),g=[],w=[],m=0,a.label=9;case 9:a.trys.push([9,21,22,23]),O=s(n),x=O.next(),a.label=10;case 10:if(x.done)return[3,20];S=x.value,0,a.label=11;case 11:a.trys.push([11,17,18,19]),B=void 0,T=s(S.element[v.ClassNode.ClassesVariable]||[]),E=T.next(),a.label=12;case 12:return E.done?[3,16]:(A=E.value,(P=y.Registry.instance.classes.getSynchronous(A))&&P.classScope.has(_)?(M=P.classScope.get(_),w.push(M),k=(j=g).push,[4,M.evaluate(S.scope,e,S)]):[3,15]);case 13:return[4,a.sent().apply(void 0,c([],u(f)))];case 14:k.apply(j,[a.sent()]),m++,a.label=15;case 15:return E=T.next(),[3,12];case 16:return[3,19];case 17:return N=a.sent(),B={error:N},[3,19];case 18:try{E&&!E.done&&(H=T.return)&&H.call(T)}finally{if(B)throw B.error}return[7];case 19:return x=O.next(),[3,10];case 20:return[3,23];case 21:return R=a.sent(),F={error:R},[3,23];case 22:try{x&&!x.done&&(G=O.return)&&G.call(O)}finally{if(F)throw F.error}return[7];case 23:a.trys.push([23,28,29,30]),C=s(w),L=C.next(),a.label=24;case 24:return L.done?[3,27]:[4,(M=L.value).collectGarbage()];case 25:a.sent(),a.label=26;case 26:return L=C.next(),[3,24];case 27:return[3,30];case 28:return D=a.sent(),U={error:D},[3,30];case 29:try{L&&!L.done&&(V=C.return)&&V.call(C)}finally{if(U)throw U.error}return[7];case 30:if(1===m)return[2,g[0]];if(0===m)throw new Error("Function "+_+" not found");return[2,g];case 31:return b instanceof h.FunctionNode?[4,b.evaluate(o,e,r)]:[3,35];case 32:return[4,a.sent().apply(void 0,c([],u(f)))];case 33:return I=a.sent(),[4,b.collectGarbage()];case 34:return a.sent(),[2,I];case 35:return[2,b.call.apply(b,c([o.wrapped||o],u(f)))];case 36:return[2]}}))}))},e}(f.Node);e.FunctionCallNode=b},3484:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionNode=void 0;var u=r(4843),c=r(7754),l=function(t){function e(e,r,n){var o=t.call(this)||this;return o.name=e,o.args=r,o.block=n,o.requiresPrep=!0,o.garbage=[],o}return o(e,t),e.prototype._getChildNodes=function(){return[this.block]},e.prototype.prepare=function(e,r,n,o){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return(null==o?void 0:o.ClassNode)||e.set(this.name,this),[4,t.prototype.prepare.call(this,e,r,n,o)];case 1:return i.sent(),[2]}}))}))},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return[4,this.getFunction(t,e,r)];case 1:return[2,n.sent()]}}))}))},e.prototype.collectGarbage=function(){return i(this,void 0,void 0,(function(){var t,e,r,n;return a(this,(function(o){try{for(t=s(this.garbage),e=t.next();!e.done;e=t.next())e.value.collectGarbage()}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=t.return)&&n.call(t)}finally{if(r)throw r.error}}return this.garbage=[],[2]}))}))},e.prototype.getFunction=function(t,e,r,n){return void 0===r&&(r=null),void 0===n&&(n=!0),i(this,void 0,void 0,(function(){var o,c=this;return a(this,(function(l){return o=this,[2,function(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return i(c,void 0,void 0,(function(){var i,c,f,p,h,y;return a(this,(function(a){switch(a.label){case 0:!n||t instanceof u.FunctionScope?i=t:(i=new u.FunctionScope(t),o.garbage.push(i));try{for(c=s(this.args),f=c.next();!f.done;f=c.next())p=f.value,i.set(p,l.shift())}catch(t){h={error:t}}finally{try{f&&!f.done&&(y=c.return)&&y.call(c)}finally{if(h)throw h.error}}return[4,this.block.evaluate(i,e,r)];case 1:return[2,a.sent()]}}))}))}]}))}))},e.parse=function(t,r,n,o){var i,a;void 0===o&&(o=e),n.shift();var u=n.shift(),l=this.moveModifiers(n),f=c.Tree.getBlockTokens(n),p=[];try{for(var h=s(f),y=h.next();!y.done;y=h.next()){var d=y.value;p.push(d[0].value)}}catch(t){i={error:t}}finally{try{y&&!y.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}var v=c.Tree.processTokens(c.Tree.getNextStatementTokens(n,!0,!0));return this.moveModifiers(l,n),new o(u.value,p,v)},e}(r(8403).Node);e.FunctionNode=l},329:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.IfStatementNode=void 0;var l=r(7754),f=r(8403),p=r(6765),h=r(8052),y=function(t){function e(e){var r=t.call(this)||this;return r.nodes=e,r}return o(e,t),e.prototype._getChildNodes=function(){return u([],s(this.nodes))},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i,s,u,l;return a(this,(function(a){switch(a.label){case 0:a.trys.push([0,6,7,8]),n=c(this.nodes),o=n.next(),a.label=1;case 1:return o.done?[3,5]:[4,(i=o.value).evaluate(t,e,r)];case 2:return a.sent()?[4,i.block.evaluate(t,e,r)]:[3,4];case 3:return[2,a.sent()];case 4:return o=n.next(),[3,1];case 5:return[3,8];case 6:return s=a.sent(),u={error:s},[3,8];case 7:try{o&&!o.done&&(l=n.return)&&l.call(n)}finally{if(u)throw u.error}return[7];case 8:return[2]}}))}))},e.parseConditional=function(t){if(-1===[l.TokenType.IF,l.TokenType.ELSE_IF].indexOf(t[0].type))throw SyntaxError("Invalid Syntax");return t.splice(0,1),new p.ConditionalNode(l.Tree.processTokens(l.Tree.getBlockTokens(t,null)[0]),l.Tree.processTokens(l.Tree.getBlockTokens(t,null)[0]))},e.parse=function(t,r,n){if(n[1].type!==l.TokenType.L_PAREN)throw SyntaxError("If statement needs to be followed by a condition encased in parenthesis.");var o=[];for(o.push(e.parseConditional(n));n.length>0&&l.TokenType.ELSE_IF===n[0].type;)o.push(e.parseConditional(n));return n.length>0&&l.TokenType.ELSE===n[0].type&&(n.splice(0,1),o.push(new p.ConditionalNode(new h.LiteralNode(!0),l.Tree.processTokens(l.Tree.getBlockTokens(n,null)[0])))),new e(o)},e}(f.Node);e.IfStatementNode=y},8673:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.InNode=void 0;var s=r(7754),u=function(t){function e(e,r,n){void 0===n&&(n=!1);var o=t.call(this)||this;return o.left=e,o.right=r,o.flip=n,o}return o(e,t),e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.left.evaluate(t,e,r)];case 1:return n=a.sent(),[4,this.right.evaluate(t,e,r)];case 2:return o=a.sent(),i=o.indexOf(n)>-1,this.flip&&(i=!i),[2,i]}}))}))},e.prototype._getChildNodes=function(){return[this.left,this.right]},e.match=function(t){return t[0].type===s.TokenType.IN||t[0].type===s.TokenType.NOT&&t[1].type===s.TokenType.IN},e.parse=function(t,r,n){var o=n[0].type===s.TokenType.NOT;o&&n.splice(0,1),n.splice(0,1);var i=s.Tree.getNextStatementTokens(n,!1,!1,!0);return new e(t,s.Tree.processTokens(i),o)},e}(r(8403).Node);e.InNode=u},2020:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.IndexNode=void 0;var u=r(7754),c=function(t){function e(e,r,n){void 0===n&&(n=null);var o=t.call(this)||this;return o.object=e,o.index=r,o.indexTwo=n,o}return o(e,t),e.prototype._getChildNodes=function(){var t=[this.object,this.index];return this.indexTwo&&t.push(this.indexTwo),t},e.prototype.negativeIndex=function(t,e){return Number.isFinite(e)&&e<0?t.length+e:e},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i,s,u,c,l,f,p;return a(this,(function(a){switch(a.label){case 0:return[4,this.object.evaluate(t,e,r)];case 1:return n=a.sent(),i=this.negativeIndex,s=[n],[4,this.index.evaluate(t,e,r)];case 2:return o=i.apply(this,s.concat([a.sent()])),Number.isFinite(o)&&this.indexTwo?(c=this.negativeIndex,l=[n],[4,this.indexTwo.evaluate(t,e,r)]):[3,4];case 3:for(u=c.apply(this,l.concat([a.sent()])),f=[],p=o;p<=u;p++)f.push(n[p]);return[2,f];case 4:return[2,n[o]]}}))}))},e.match=function(t){return t[0].type===u.TokenType.L_BRACKET},e.parse=function(t,r,n){var o,i,a=u.Tree.getBlockTokens(n,u.TokenType.COLON),c=[];try{for(var l=s(a),f=l.next();!f.done;f=l.next()){var p=f.value;c.push(u.Tree.processTokens(p))}}catch(t){o={error:t}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return new e(t,c[0],c.length>1&&c[1])},e}(r(8403).Node);e.IndexNode=c},8052:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteralNode=void 0;var s=function(t){function e(e){var r=t.call(this)||this;return r.value=e,r}return o(e,t),e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){return a(this,(function(t){return[2,this.value]}))}))},e}(r(8403).Node);e.LiteralNode=s},2393:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ModifierNode=void 0;var s=function(t){function e(e,r){var n=t.call(this)||this;return n.name=e,n.block=r,n}return o(e,t),e.prototype.prepare=function(t,e,r,n){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){return a(this,(function(t){return[2,null]}))}))},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){return a(this,(function(t){return[2,null]}))}))},e.parse=function(t,e,r){var n=r.shift().value.substr(1);return t&&t.modifiers.add(n),t},e}(r(8403).Node);e.ModifierNode=s},8161:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.NamedStackNode=void 0;var s=r(4843),u=r(7754),c=r(8403),l=r(8052),f=function(t){function e(e,r){var n=t.call(this)||this;return n.stackName=e,n.statements=r,n.requiresPrep=!0,n}return o(e,t),e.prototype._getChildNodes=function(){return[this.stackName,this.statements]},e.prototype.evaluate=function(t,r,n){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var o,i;return a(this,(function(a){switch(a.label){case 0:return t instanceof s.FunctionScope&&(t=t.parentScope),[4,this.stackName.evaluate(t,r,n)];case 1:return o=a.sent(),i=!1,e.stacks[o]||(e.stacks[o]=[]),-1===e.executions.indexOf(o)&&(i=!0),e.stacks[o].push({block:this.statements,scope:t,dom:r,tag:n}),i&&e.execute(o),[2]}}))}))},e.execute=function(t){return i(this,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return e.stacks[t].length>0?(r=e.stacks[t].shift(),-1===e.executions.indexOf(t)&&e.executions.push(t),[4,r.block.evaluate(r.scope,r.dom,r.tag)]):[3,3];case 1:return n.sent(),[4,e.execute(t)];case 2:return n.sent()||e.executions.splice(e.executions.indexOf(t),1),[2,!0];case 3:return[2,!1]}}))}))},e.parse=function(t,r,n){n.shift();var o=n.shift(),i=u.Tree.getNextStatementTokens(n);return new e(new l.LiteralNode(o.value),u.Tree.processTokens(i))},e.stacks={},e.executions=[],e}(c.Node);e.NamedStackNode=f},8403:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Node=void 0;var u=r(7754),c=r(7719),l=function(){function t(){this.requiresPrep=!1,this.nodeCache={},this.modifiers=new c.Modifiers}return t.prototype.isPreparationRequired=function(){var t,e;if(this.requiresPrep)return!0;if(void 0!==this._isPreparationRequired)return this._isPreparationRequired;try{for(var r=i(this.getChildNodes()),n=r.next();!n.done;n=r.next()){if(n.value.isPreparationRequired())return this._isPreparationRequired=!0,!0}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return!1},t.prototype.prepare=function(t,e,r,a){return void 0===r&&(r=null),void 0===a&&(a=null),n(this,void 0,void 0,(function(){var n,s,u,c,l;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,6,7]),n=i(this.getChildNodes()),s=n.next(),o.label=1;case 1:return s.done?[3,4]:[4,s.value.prepare(t,e,r,a)];case 2:o.sent(),o.label=3;case 3:return s=n.next(),[3,1];case 4:return[3,7];case 5:return u=o.sent(),c={error:u},[3,7];case 6:try{s&&!s.done&&(l=n.return)&&l.call(n)}finally{if(c)throw c.error}return[7];case 7:return[2]}}))}))},t.prototype.cleanup=function(t,e,r){return n(this,void 0,void 0,(function(){var n,a,s,u,c;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,6,7]),n=i(this.getChildNodes()),a=n.next(),o.label=1;case 1:return a.done?[3,4]:[4,a.value.cleanup(t,e,r)];case 2:o.sent(),o.label=3;case 3:return a=n.next(),[3,1];case 4:return[3,7];case 5:return s=o.sent(),u={error:s},[3,7];case 6:try{a&&!a.done&&(c=n.return)&&c.call(n)}finally{if(u)throw u.error}return[7];case 7:return[2]}}))}))},t.prototype._getChildNodes=function(){return[]},t.prototype.getChildNodes=function(){return void 0===this.childNodes&&(this.childNodes=this._getChildNodes()),this.childNodes},t.prototype.findChildrenByType=function(t){return this.findChildrenByTypes([t])},t.prototype.findChildrenByTypes=function(t,e){var r,n,o,u;if(void 0===e&&(e=null),null!==e&&this.nodeCache[e])return this.nodeCache[e];var c=[];try{for(var l=i(this.getChildNodes()),f=l.next();!f.done;f=l.next()){var p=f.value;try{for(var h=(o=void 0,i(t)),y=h.next();!y.done;y=h.next()){var d=y.value;p instanceof d&&c.push(p);var v=p.findChildrenByType(d);c.push.apply(c,s([],a(v)))}}catch(t){o={error:t}}finally{try{y&&!y.done&&(u=h.return)&&u.call(h)}finally{if(o)throw o.error}}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}return null!==e&&(this.nodeCache[e]=c),c},t.prototype.hasModifier=function(t){return this.modifiers.has(t)},t.moveModifiers=function(t,e){if(void 0===e&&(e=null),e=e||[],t&&t.length)for(;t[0]&&t[0].type==u.TokenType.MODIFIER;)e.unshift(t.shift());return e},t}();e.Node=l},2321:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.NotNode=void 0;var s=r(7754),u=function(t){function e(e){var r=t.call(this)||this;return r.toFlip=e,r}return o(e,t),e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return[4,this.toFlip.evaluate(t,e,r)];case 1:return[2,!n.sent()]}}))}))},e.prototype._getChildNodes=function(){return[this.toFlip]},e.parse=function(t,r,n){var o;return n.splice(0,1),o=n[0].type===s.TokenType.L_PAREN?s.Tree.getNextStatementTokens(n):s.Tree.consumeTypes(n,[s.TokenType.BOOLEAN_LITERAL,s.TokenType.NUMBER_LITERAL,s.TokenType.STRING_LITERAL,s.TokenType.NAME,s.TokenType.PERIOD]),new e(s.Tree.processTokens(o))},e}(r(8403).Node);e.NotNode=u},1185:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.NumberLiteralNode=void 0;var i=function(t){function e(e){var r=t.call(this,e)||this;return r.value=e,r.value.indexOf(".")>-1?r.value=parseFloat(r.value):r.value=parseInt(r.value),r}return o(e,t),e}(r(8052).LiteralNode);e.NumberLiteralNode=i},9446:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectNode=void 0;var c=r(4843),l=r(7754),f=function(t){function e(e,r){var n=t.call(this)||this;return n.keys=e,n.values=r,n}return o(e,t),e.prototype._getChildNodes=function(){return new(Array.bind.apply(Array,u([void 0],s(this.values))))},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i,s,u,l,f;return a(this,(function(a){switch(a.label){case 0:n=new c.Scope,o=0,a.label=1;case 1:return o<this.values.length?(i=this.keys[o],s=this.values[o],l=(u=n).set,[4,i.evaluate(t,e,r)]):[3,5];case 2:return f=[a.sent()],[4,s.evaluate(t,e,r)];case 3:l.apply(u,f.concat([a.sent(),!0])),a.label=4;case 4:return o++,[3,1];case 5:return[2,n]}}))}))},e.match=function(t){return t[0].type===l.TokenType.L_BRACE},e.parse=function(t,r,n){for(var o=l.Tree.getNextStatementTokens(n),i=[],a=[];o.length>0;){var s=l.Tree.getTokensUntil(o,l.TokenType.COLON,!1);if(o[0].type!==l.TokenType.COLON)throw Error("Invalid object literal syntax. Expecting :");o.splice(0,1);var u=l.Tree.getTokensUntil(o,l.TokenType.COMMA,!0,!1,!0,{type:l.BlockType.STATEMENT,open:null,close:null,openCharacter:null,closeCharacter:null});i.push(l.Tree.processTokens(s)),a.push(l.Tree.processTokens(u))}return new e(i,a)},e}(r(8403).Node);e.ObjectNode=f},1096:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.OnNode=void 0;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.prepare=function(e,r,n,o){return void 0===n&&(n=null),i(this,void 0,void 0,(function(){var c,l,f=this;return a(this,(function(p){switch(p.label){case 0:return c=null==o?void 0:o.ClassNodePrepare,!n||c?[3,2]:[4,this.getFunction(e,r,n)];case 1:l=p.sent(),n.addEventHandler(this.name,this.modifiers,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i(f,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,l.apply(void 0,u([],s(t)))];case 1:return e.sent(),[4,this.collectGarbage()];case 2:return e.sent(),[2]}}))}))}),this),p.label=2;case 2:return[4,t.prototype.prepare.call(this,e,r,n,o)];case 3:return p.sent(),[2]}}))}))},e.parse=function(r,n,o){return t.parse.call(this,r,n,o,e)},e}(r(3484).FunctionNode);e.OnNode=c},4123:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.RootScopeMemberNode=void 0;var s=r(4843),u=function(t){function e(e){var r=t.call(this)||this;return r.name=e,r}return o(e,t),e.prototype._getChildNodes=function(){return[this.name]},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o;return a(this,(function(i){switch(i.label){case 0:return[4,this.name.evaluate(t,e,r)];case 1:return n=i.sent(),[4,this.applyModifiers(n,t,e,r)];case 2:return i.sent(),[2,(o=t.get(n))instanceof s.Scope&&o.wrapped||o]}}))}))},e}(r(4829).ScopeNodeAbstract);e.RootScopeMemberNode=u},7549:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeMemberNode=void 0;var u=r(4843),c=r(1341),l=r(3276),f=r(3770),p=function(t){function e(e,r){var n=t.call(this)||this;return n.scope=e,n.name=r,n}return o(e,t),e.prototype._getChildNodes=function(){return[this.scope,this.name]},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i,p,h,y,d,v,b,_,g,w,m,O;return a(this,(function(a){switch(a.label){case 0:return n=[],o=[],this.scope instanceof f.ElementQueryNode?[4,this.scope.evaluate(t,e,r)]:[3,2];case 1:return i=a.sent(),this.scope.first?n.push(i):n=i,[3,4];case 2:return[4,this.scope.evaluate(t,e,r)];case 3:(p=a.sent())instanceof c.TagList?n=p:n.push(p),a.label=4;case 4:a.trys.push([4,12,13,14]),h=s(n),y=h.next(),a.label=5;case 5:return y.done?[3,11]:((d=y.value)instanceof l.DOMObject&&(d=d.scope),d?[3,7]:(v=Error,b='Cannot access "',[4,this.name.evaluate(t,e,r)]));case 6:throw v.apply(void 0,[b+a.sent()+'" of undefined.']);case 7:return[4,this.name.evaluate(t,e,r)];case 8:return _=a.sent(),[4,this.applyModifiers(_,d,e,r)];case 9:a.sent(),g=d.get(_,!1),o.push(g instanceof u.Scope&&g.wrapped||g),a.label=10;case 10:return y=h.next(),[3,5];case 11:return[3,14];case 12:return w=a.sent(),m={error:w},[3,14];case 13:try{y&&!y.done&&(O=h.return)&&O.call(h)}finally{if(m)throw m.error}return[7];case 14:return[2,1===o.length?o[0]:o]}}))}))},e}(r(4829).ScopeNodeAbstract);e.ScopeMemberNode=p},4829:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeNodeAbstract=void 0;var u=r(8403),c=r(4843),l=r(1371),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.applyModifiers=function(t,e,r,n){return i(this,void 0,void 0,(function(){var r,n,o,i,u,f;return a(this,(function(a){try{for(n=s(this.modifiers.iter),o=n.next();!o.done;o=n.next())if(i=o.value,l.Registry.instance.types.has(i.name)){r=i.name;break}}catch(t){u={error:t}}finally{try{o&&!o.done&&(f=n.return)&&f.call(n)}finally{if(u)throw u.error}}return r&&e instanceof c.Scope&&e.setType(t,r),[2]}))}))},e}(u.Node);e.ScopeNodeAbstract=f},5155:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.StringFormatNode=void 0;var c=r(8403),l=r(7754),f=function(t){function e(e,r){var n=t.call(this)||this;return n.segments=e,n.value=r,n}return o(e,t),e.prototype.getChildNodes=function(){return this.segments&&Object.values(this.segments)||[]},e.prototype.evaluate=function(t,e,r){return i(this,void 0,void 0,(function(){var n,o,i,s,u,c;return a(this,(function(a){switch(a.label){case 0:for(i in n=this.value,o=[],this.segments)o.push(i);s=0,a.label=1;case 1:return s<o.length?(u=o[s],[4,this.segments[u].evaluate(t,e,r)]):[3,4];case 2:c=a.sent(),n=n.replace("${"+u+"}",c),a.label=3;case 3:return s++,[3,1];case 4:return[2,n]}}))}))},e.parse=function(t,r,n){var o,i,a={};try{for(var c=s(Array.from(new Set(r.value.match(/\$\{([^}]+)}/g)))),f=c.next();!f.done;f=c.next()){var p=f.value,h=u(p.split(/\$\{|}/),2)[1],y=new l.Tree(h);a[h]=y.root}}catch(t){o={error:t}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return n.shift(),new e(a,r.value)},e.match=function(t){return t[0].type===l.TokenType.STRING_FORMAT},e}(c.Node);e.StringFormatNode=f},2751:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.UnitLiteralNode=e.UnitLiteral=void 0;var i=r(8052),a=function(){function t(t){this._value=t,this.value=this._value}return Object.defineProperty(t.prototype,"amount",{get:function(){return this._amount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unit",{get:function(){return this._unit},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return""+this._amount+this._unit},set:function(t){t.indexOf(".")>-1?this._amount=parseFloat(t):this._amount=parseInt(t),isNaN(this._amount)&&(this._amount=0);var e=/[^\d.]+$/.exec(t);this._unit=e&&e[0]||""},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this.value},t}();e.UnitLiteral=a;var s=function(t){function e(e){return t.call(this,new a(e))||this}return o(e,t),e}(i.LiteralNode);e.UnitLiteralNode=s},575:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.WithNode=void 0;var u=r(4843),c=r(712),l=r(7754),f=r(8403),p=r(1341),h=function(t){function e(e,r){var n=t.call(this)||this;return n.context=e,n.statements=r,n.requiresPrep=!0,n}return o(e,t),e.prototype._getChildNodes=function(){return[this.context,this.statements]},e.prototype.evaluate=function(t,e,r){return void 0===r&&(r=null),i(this,void 0,void 0,(function(){var n,o,i,l,f,h,y,d,v,b,_,g,w,m,O,x,S,T,E,A;return a(this,(function(a){switch(a.label){case 0:return[4,this.context.evaluate(t,e,r)];case 1:if(n=a.sent(),o=[],n instanceof p.TagList?o=n:n instanceof c.Tag&&(o=[n]),i=[],!o.length)return[3,22];if(!this.hasModifier("sequential"))return[3,11];a.label=2;case 2:a.trys.push([2,8,9,10]),l=s(o),f=l.next(),a.label=3;case 3:return f.done?[3,7]:(g=f.value,[4,this.statements.prepare(g.scope,e,g)]);case 4:return a.sent(),y=(h=i).push,[4,this.statements.evaluate(g.scope,e,g)];case 5:y.apply(h,[a.sent()]),a.label=6;case 6:return f=l.next(),[3,3];case 7:return[3,10];case 8:return d=a.sent(),S={error:d},[3,10];case 9:try{f&&!f.done&&(T=l.return)&&T.call(l)}finally{if(S)throw S.error}return[7];case 10:return[3,21];case 11:v=[],a.label=12;case 12:a.trys.push([12,17,18,19]),b=s(o),_=b.next(),a.label=13;case 13:return _.done?[3,16]:(g=_.value,[4,this.statements.prepare(g.scope,e,g)]);case 14:a.sent(),v.push(this.statements.evaluate(g.scope,e,g)),a.label=15;case 15:return _=b.next(),[3,13];case 16:return[3,19];case 17:return w=a.sent(),E={error:w},[3,19];case 18:try{_&&!_.done&&(A=b.return)&&A.call(b)}finally{if(E)throw E.error}return[7];case 19:return[4,Promise.all(v)];case 20:i=a.sent(),a.label=21;case 21:return[3,24];case 22:return m=void 0,n instanceof u.Scope&&(m=n),m?(x=(O=i).push,[4,this.statements.evaluate(m,e,r)]):[3,24];case 23:x.apply(O,[a.sent()]),a.label=24;case 24:return[2,1===i.length?i[0]:i]}}))}))},e.parse=function(t,r,n){n.shift();var o=l.Tree.getTokensUntil(n,l.TokenType.L_BRACE,!1,!1,!0),i=l.Tree.getNextStatementTokens(n);return this.moveModifiers(o,n),new e(l.Tree.processTokens(o),l.Tree.processTokens(i))},e}(f.Node);e.WithNode=h},4789:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.XHRNode=void 0;var s=r(8403),u=r(7754),c=r(4843),l=r(6966),f=r(4264),p=function(t){function e(e,r,n){var o=t.call(this)||this;return o.left=e,o.requestType=r,o.url=n,o}return o(e,t),e.prototype.getChildNodes=function(){var t=[this.url];return this.left&&t.push(this.left),t},e.prototype.evaluate=function(t,e,r){return i(this,void 0,void 0,(function(){var n,o,i,s,p,h,y;return a(this,(function(a){switch(a.label){case 0:return[4,this.url.evaluate(t,e,r)];case 1:return n=a.sent(),this.left?[4,this.left.evaluate(t,e,r)]:[3,3];case 2:return s=a.sent(),[3,4];case 3:s={},a.label=4;case 4:switch((i=s)instanceof c.Scope&&(i=i.data),i instanceof l.ScopeDataAbstract&&(i=i.getData()),this.requestType){case u.TokenType.XHR_POST:o="POST";break;case u.TokenType.XHR_PUT:o="PUT";break;case u.TokenType.XHR_DELETE:o="DELETE";break;default:o="GET"}return"GET"===(p={method:o,headers:{"X-Requested-With":"XMLHttpRequest"}}).method?n=f.VisionHelper.getUriWithParams(n,i):p.body="string"==typeof i?i:JSON.stringify(i),[4,fetch(n,p)];case 5:return h=a.sent(),(y=h.headers.get("content-type"))&&y.includes("application/json")?[4,h.json()]:[3,7];case 6:return[2,a.sent()];case 7:return[4,h.text()];case 8:return[2,a.sent()]}}))}))},e.parse=function(t,r,n){n.splice(0,1);var o=u.Tree.processTokens(u.Tree.getNextStatementTokens(n,!1,!1,!1));return new e(t,r.type,o)},e.match=function(t){return[u.TokenType.XHR_POST,u.TokenType.XHR_PUT,u.TokenType.XHR_GET,u.TokenType.XHR_DELETE].indexOf(t[0].type)>-1},e}(s.Node);e.XHRNode=p},5092:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=e.AttributeState=void 0;var u,c=r(5559),l=r(7719);!function(t){t[t.Instantiated=0]="Instantiated",t[t.Deferred=1]="Deferred",t[t.Compiled=2]="Compiled",t[t.Setup=3]="Setup",t[t.Extracted=4]="Extracted",t[t.Connected=5]="Connected",t[t.Built=6]="Built"}(u=e.AttributeState||(e.AttributeState={}));var f=function(t){function e(e,r,n){var o=t.call(this)||this;return o.tag=e,o.attributeName=r,o.slot=n,o.modifiers=l.Modifiers.fromAttribute(r),o.configure(),o}return o(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.slot||this.tag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.defer=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(u.Deferred),[2]}))}))},e.prototype.configure=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(u.Instantiated),[2]}))}))},e.prototype.compile=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(u.Compiled),[2]}))}))},e.prototype.setup=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(u.Setup),[2]}))}))},e.prototype.extract=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(u.Extracted),[2]}))}))},e.prototype.connect=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(u.Connected),[2]}))}))},e.prototype.evaluate=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this.setState(u.Built),[2]}))}))},e.prototype.getAttributeValue=function(t){return void 0===t&&(t=null),this.origin.getRawAttributeValue(this.attributeName,t)},e.prototype.getAttributeBinding=function(t){return void 0===t&&(t=null),this.origin.getAttributeBinding(this.attributeName)||t},e.prototype.getAttributeModifiers=function(t){return void 0===t&&(t=[]),this.modifiers.length&&this.modifiers.names||t},e.prototype.getAttributeModifierArguments=function(t,e){return void 0===e&&(e=[]),this.modifiers.has(t)?this.modifiers.get(t).arguments:e},e.prototype.hasModifier=function(t){return this.modifiers.has(t)},e.prototype.mutate=function(t){},Object.defineProperty(e.prototype,"value",{get:function(){return this.origin.element.getAttribute(this.attributeName)||""},set:function(t){this.origin.element.setAttribute(this.attributeName,t)},enumerable:!1,configurable:!0}),e.prototype.apply=function(t){return i(this,void 0,void 0,(function(){var e,r,n,o,i,u;return a(this,(function(a){switch(a.label){case 0:a.trys.push([0,5,6,7]),e=s(this.origin.delegates),r=e.next(),a.label=1;case 1:return r.done?[3,4]:(n=r.value,[4,t(n)]);case 2:a.sent(),a.label=3;case 3:return r=e.next(),[3,1];case 4:return[3,7];case 5:return o=a.sent(),i={error:o},[3,7];case 6:try{r&&!r.done&&(u=e.return)&&u.call(e)}finally{if(i)throw i.error}return[7];case 7:return[2]}}))}))},e.prototype.setState=function(t){var e=this._state;this._state=t,this.dispatch("state",{state:t,previousState:e,attribute:this})},e.create=function(t,e,r,n){return new r(t,e,n)},e.scoped=!1,e.canDefer=!0,e}(c.EventDispatcher);e.Attribute=f},2918:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0;var u=r(1371),c=r(9033),l=r(6453),f=r(3423),p=function(t){function e(){var r,n,o=t.call(this)||this;Object.setPrototypeOf(o,e.prototype),o.shadow=o.attachShadow({mode:"open"});var p,h=o.getAttribute("template");p=h?document.getElementById(h):u.Registry.instance.templates.getSynchronous(o.tagName.toLowerCase()),o.setAttribute("vsn-scope",""),o.shadow.appendChild(p.content.cloneNode(!0));try{for(var y=s(Array.from(o.shadow.children)),d=y.next();!d.done;d=y.next()){d.value.shadowParent=o}}catch(t){r={error:t}}finally{try{d&&!d.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}var v=[],b=[];return o.shadow.querySelectorAll("slot").forEach((function(t){var e=c.DOM.instance.buildTag(t,!1,l.SlotTag),r=new Promise((function(r,n){t.addEventListener("slotchange",(function(n){e.then((function(e){return i(o,void 0,void 0,(function(){var n,o,i,u,l,p,h;return a(this,(function(a){switch(a.label){case 0:a.trys.push([0,6,7,8]),n=s(t.assignedNodes()),o=n.next(),a.label=1;case 1:return o.done?[3,5]:(i=o.value,[4,c.DOM.instance.buildTag(i,!1,f.SlottedTag)]);case 2:return[4,null==(u=a.sent())?void 0:u.slotted(e)];case 3:a.sent(),b.push(u),a.label=4;case 4:return o=n.next(),[3,1];case 5:return[3,8];case 6:return l=a.sent(),p={error:l},[3,8];case 7:try{o&&!o.done&&(h=n.return)&&h.call(n)}finally{if(p)throw p.error}return[7];case 8:return r(e),[2]}}))}))}))}))}));v.push(r)})),Promise.all(v).then((function(t){return i(o,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,c.DOM.instance.buildFrom(this,!1,!0)];case 1:return e.sent(),[4,c.DOM.instance.setupTags(t)];case 2:return e.sent(),[4,c.DOM.instance.setupTags(b)];case 3:return e.sent(),[2]}}))}))})),o}return o(e,t),e.prototype.connectedCallback=function(){return i(this,void 0,void 0,(function(){var t;return a(this,(function(e){switch(e.label){case 0:return[4,c.DOM.instance.buildTag(this,!0)];case 1:return(t=e.sent()).createScope(!0),[4,c.DOM.instance.buildFrom(this.shadow)];case 2:return e.sent(),[4,t.dom.resetBranch(t)];case 3:return e.sent(),[4,t.dom.setupTags([t])];case 4:return e.sent(),[2]}}))}))},e}(HTMLElement);e.Component=p},6417:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.Configuration=void 0;var i=r(4264),a=function(t){function e(){var e=t.call(this)||this;return e.data=i.VisionHelper.window&&window.$configuration||{},e}return o(e,t),e.prototype.get=function(t,e){return void 0===e&&(e=null),void 0===this.data[t]?e:this.data[t]},e.prototype.set=function(t,e){var r=this.data[t];this.data[t]=e,this.dispatch("change:"+t,{value:e,previous:r}),this.dispatch("change",{key:t,value:e,previous:r})},e.set=function(t,r){e.instance.set(t,r)},e.get=function(t,r){return void 0===r&&(r=null),e.instance.get(t,r)},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e),e._instance},enumerable:!1,configurable:!0}),e}(r(5559).EventDispatcher);e.Configuration=a},126:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.Controller=void 0;var i=function(t){function e(){var e=t.call(this)||this;for(var r in e)e[r]instanceof Function&&e.__properties__.push(r);return e}return o(e,t),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tag",{get:function(){return this._tag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),e.prototype.init=function(t,e,r){this._scope=t,this._tag=e,this._element=r},e}(r(2018).ScopeObject);e.Controller=i},9033:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.DOM=e.EQuerySelectDirection=void 0;var l,f=r(712),p=r(2712),h=r(6417),y=r(7754),d=r(1341),v=r(2144),b=r(7942),_=r(5559),g=r(2947),w=r(1371),m=r(6453),O=r(3423);!function(t){t[t.ALL=0]="ALL",t[t.UP=1]="UP",t[t.DOWN=2]="DOWN"}(l=e.EQuerySelectDirection||(e.EQuerySelectDirection={}));var x=function(t){function e(e,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var o=t.call(this)||this;return o.rootElement=e,o.debug=n,o.queued=[],o._built=!1,o._ready=new Promise((function(t){o.once("built",(function(){t(!0)}))})),o.observer=new MutationObserver(o.mutation.bind(o)),o.tags=[],o.window=new v.WrappedWindow(window),o.document=new b.WrappedDocument(window.document),r&&o.buildFrom(e,!0),o.evaluate(),h.Configuration.instance.on("change",o.evaluate.bind(o)),o}return o(e,t),Object.defineProperty(e.prototype,"built",{get:function(){return this._built},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._root},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return this.promise("builtRoot")},enumerable:!1,configurable:!0}),e.prototype.get=function(t,e,r,n){return void 0===e&&(e=!1),void 0===r&&(r=null),void 0===n&&(n=l.DOWN),i(this,void 0,void 0,(function(){var o;return a(this,(function(i){switch(i.label){case 0:switch(t){case"window":return[3,1];case"document":return[3,2];case"body":return[3,3]}return[3,4];case 1:return[2,new d.TagList(this.window)];case 2:return[2,new d.TagList(this.document)];case 3:return[2,new d.TagList(this.root)];case 4:return o=void 0,o=n===l.DOWN?this.querySelectorAll(t,r):n===l.UP?[this.querySelectorClosest(t,r)]:this.querySelectorAll(t),[4,this.getTagsForElements(Array.from(o),e)];case 5:return[2,i.sent()]}}))}))},e.prototype.getFromTag=function(t,e,r){return void 0===r&&(r=!1),i(this,void 0,void 0,(function(){var n;return a(this,(function(o){switch(o.label){case 0:return n=this.querySelectorElement(t.element,e),[4,this.getTagsForElements(Array.from(n),r)];case 1:return[2,o.sent()]}}))}))},e.prototype.registerElementInRoot=function(t){var e=t.element.getAttribute("id");e&&this.root.scope.set("#"+e,t.scope)},e.prototype.querySelectorClosest=function(t,e){return void 0===e&&(e=null),e.element.closest(t)},e.prototype.querySelectPath=function(t,e){var r,n;void 0===e&&(e=null);var o=t.shift();if(!o)return[];var i=Array.from(e?this.querySelectorElement(e,o):this.querySelectorAll(o));if(t.length>0){var a=[];try{for(var l=s(i),f=l.next();!f.done;f=l.next()){var p=f.value;a.push.apply(a,c([],u(this.querySelectPath(c([],u(t)),p))))}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}return a}return i},e.prototype.querySelectorAll=function(t,e){void 0===e&&(e=null);var r=e&&!t.startsWith("#")?e.element:this.rootElement;return this.querySelectorElement(r,t)},e.prototype.querySelectorElement=function(t,r){var n,o,i=r.indexOf(":parent");if(i>-1){var a=r.substring(0,i),l=r.substring(i+7);if(a.length>0){var f=[];try{for(var p=s(Array.from(this.querySelectorElement(t,a))),h=p.next();!h.done;h=p.next()){var y=h.value;l.length>0?f.push.apply(f,c([],u(Array.from(this.querySelectorElement(e.getParentElement(y),l))))):f.push(e.getParentElement(y))}}catch(t){n={error:t}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}return f}return 0===l.length?[e.getParentElement(t)]:this.querySelectorElement(e.getParentElement(t),l)}var d=t.querySelectorAll(r);return 0===d.length&&t.shadowRoot&&(d=t.shadowRoot.querySelectorAll(r)),d},e.prototype.querySelector=function(t){return this.rootElement.querySelector(t)},e.prototype.exec=function(t){return i(this,void 0,void 0,(function(){var e;return a(this,(function(r){switch(r.label){case 0:return[4,(e=new y.Tree(t)).prepare(this.root.scope,this)];case 1:return r.sent(),[4,e.evaluate(this.root.scope,this)];case 2:return[2,r.sent()]}}))}))},e.prototype.evaluate=function(){return i(this,void 0,void 0,(function(){var t,e,r,n,o;return a(this,(function(i){switch(i.label){case 0:clearTimeout(this.evaluateTimeout),i.label=1;case 1:i.trys.push([1,6,7,8]),t=s(this.tags),e=t.next(),i.label=2;case 2:return e.done?[3,5]:[4,e.value.evaluate()];case 3:i.sent(),i.label=4;case 4:return e=t.next(),[3,2];case 5:return[3,8];case 6:return r=i.sent(),n={error:r},[3,8];case 7:try{e&&!e.done&&(o=t.return)&&o.call(t)}finally{if(n)throw n.error}return[7];case 8:return[2]}}))}))},e.prototype.mutation=function(t){return i(this,void 0,void 0,(function(){var e,r,n,o,i,u,c,l,f,p,h,y,d,v;return a(this,(function(a){switch(a.label){case 0:a.trys.push([0,13,14,15]),e=s(t),r=e.next(),a.label=1;case 1:return r.done?[3,12]:(n=r.value,[4,this.getTagForElement(n.target)]);case 2:return(o=a.sent())&&o.mutate(n),"attributes"!==n.type||"class"!==n.attributeName?[3,4]:[4,g.ClassNode.checkForClassChanges(n.target,this,o)];case 3:a.sent(),a.label=4;case 4:a.trys.push([4,9,10,11]),d=void 0,i=s(Array.from(n.removedNodes)),u=i.next(),a.label=5;case 5:return u.done?[3,8]:(c=u.value,[4,this.getTagForElement(c)]);case 6:(l=a.sent())&&l.deconstruct(),a.label=7;case 7:return u=i.next(),[3,5];case 8:return[3,11];case 9:return f=a.sent(),d={error:f},[3,11];case 10:try{u&&!u.done&&(v=i.return)&&v.call(i)}finally{if(d)throw d.error}return[7];case 11:return r=e.next(),[3,1];case 12:return[3,15];case 13:return p=a.sent(),h={error:p},[3,15];case 14:try{r&&!r.done&&(y=e.return)&&y.call(e)}finally{if(h)throw h.error}return[7];case 15:return[2]}}))}))},e.prototype.discover=function(t,e){return void 0===e&&(e=!1),i(this,void 0,void 0,(function(){var r,n,o,i=this;return a(this,(function(a){return r=[],o=function(t){var e,r;try{for(var i=s(Array.from(t.children)),a=i.next();!a.done;a=i.next()){var u=a.value;n(u)&&("template"!==u.tagName.toLowerCase()&&o(u))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},(n=function(t){var n;if(w.Registry.instance.tags.has(null===(n=null==t?void 0:t.tagName)||void 0===n?void 0:n.toLowerCase()))return!1;if(p.ElementHelper.hasVisionAttribute(t)){if(!e&&t.hasAttribute("slot"))return!1;if(i.queued.indexOf(t)>-1)return!1;i.queued.push(t),r.push(t)}return!0})(t),o(t),[2,r]}))}))},e.prototype.buildTag=function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=f.Tag),i(this,void 0,void 0,(function(){var n;return a(this,(function(o){return t[f.Tag.TaggedVariable]?[2,e?t[f.Tag.TaggedVariable]:null]:("slot"===t.tagName.toLowerCase()?r=m.SlotTag:t.hasAttribute("slot")&&(r=O.SlottedTag),n=new r(t,this),this.tags.push(n),[2,n])}))}))},e.prototype.setupTags=function(t){return i(this,void 0,void 0,(function(){var e,r,n,o,i,u,c,l,f,p,h,y,d,v,b,_,g,w,m,O,x,S,T,E,A,P,j,k,N,R,C,L,M,D,I;return a(this,(function(a){switch(a.label){case 0:a.trys.push([0,5,6,7]),e=s(t),r=e.next(),a.label=1;case 1:return r.done?[3,4]:[4,(x=r.value).buildAttributes()];case 2:a.sent(),a.label=3;case 3:return r=e.next(),[3,1];case 4:return[3,7];case 5:return n=a.sent(),S={error:n},[3,7];case 6:try{r&&!r.done&&(T=e.return)&&T.call(e)}finally{if(S)throw S.error}return[7];case 7:a.trys.push([7,12,13,14]),o=s(t),i=o.next(),a.label=8;case 8:return i.done?[3,11]:[4,(x=i.value).compileAttributes()];case 9:a.sent(),a.label=10;case 10:return i=o.next(),[3,8];case 11:return[3,14];case 12:return u=a.sent(),E={error:u},[3,14];case 13:try{i&&!i.done&&(A=o.return)&&A.call(o)}finally{if(E)throw E.error}return[7];case 14:a.trys.push([14,19,20,21]),c=s(t),l=c.next(),a.label=15;case 15:return l.done?[3,18]:[4,(x=l.value).setupAttributes()];case 16:a.sent(),a.label=17;case 17:return l=c.next(),[3,15];case 18:return[3,21];case 19:return f=a.sent(),P={error:f},[3,21];case 20:try{l&&!l.done&&(j=c.return)&&j.call(c)}finally{if(P)throw P.error}return[7];case 21:a.trys.push([21,26,27,28]),p=s(t),h=p.next(),a.label=22;case 22:return h.done?[3,25]:[4,(x=h.value).extractAttributes()];case 23:a.sent(),a.label=24;case 24:return h=p.next(),[3,22];case 25:return[3,28];case 26:return y=a.sent(),k={error:y},[3,28];case 27:try{h&&!h.done&&(N=p.return)&&N.call(p)}finally{if(k)throw k.error}return[7];case 28:a.trys.push([28,33,34,35]),d=s(t),v=d.next(),a.label=29;case 29:return v.done?[3,32]:[4,(x=v.value).connectAttributes()];case 30:a.sent(),a.label=31;case 31:return v=d.next(),[3,29];case 32:return[3,35];case 33:return b=a.sent(),R={error:b},[3,35];case 34:try{v&&!v.done&&(C=d.return)&&C.call(d)}finally{if(R)throw R.error}return[7];case 35:a.trys.push([35,40,41,42]),_=s(t),g=_.next(),a.label=36;case 36:return g.done?[3,39]:[4,(x=g.value).finalize()];case 37:a.sent(),this.queued.splice(this.queued.indexOf(x.element),1),a.label=38;case 38:return g=_.next(),[3,36];case 39:return[3,42];case 40:return w=a.sent(),L={error:w},[3,42];case 41:try{g&&!g.done&&(M=_.return)&&M.call(_)}finally{if(L)throw L.error}return[7];case 42:try{for(m=s(t),O=m.next();!O.done;O=m.next())x=O.value,this.observer.observe(x.element,{attributes:!0,characterData:!0,childList:!0,subtree:!0})}catch(t){D={error:t}}finally{try{O&&!O.done&&(I=m.return)&&I.call(m)}finally{if(D)throw D.error}}return[2]}}))}))},e.prototype.buildFrom=function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!1),i(this,void 0,void 0,(function(){var n,o,i,u,c,l,f,h,y,d,v,b,_,g,w,m,O,x;return a(this,(function(a){switch(a.label){case 0:return e?(document.body.setAttribute("vsn-root",""),document.ondragover=function(t){return t.cancelable&&t.preventDefault()},n=this,[4,this.buildTag(document.body,!0)]):[3,3];case 1:return n._root=a.sent(),this._root.createScope(!0),[4,this.setupTags([this._root])];case 2:a.sent(),a.label=3;case 3:o=this.querySelectorElement(t,"template"),i=[],a.label=4;case 4:a.trys.push([4,9,10,11]),u=s(Array.from(o)),c=u.next(),a.label=5;case 5:return c.done?[3,8]:(l=c.value,p.ElementHelper.hasVisionAttribute(l)?[4,this.buildTag(l)]:[3,7]);case 6:(_=a.sent())&&i.push(_),a.label=7;case 7:return c=u.next(),[3,5];case 8:return[3,11];case 9:return f=a.sent(),w={error:f},[3,11];case 10:try{c&&!c.done&&(m=u.return)&&m.call(u)}finally{if(w)throw w.error}return[7];case 11:return i.length?[4,this.setupTags(i)]:[3,13];case 12:a.sent(),a.label=13;case 13:return h=[],[4,this.discover(t,r)];case 14:y=a.sent(),a.label=15;case 15:a.trys.push([15,20,21,22]),d=s(y),v=d.next(),a.label=16;case 16:return v.done?[3,19]:(b=v.value,[4,this.buildTag(b)]);case 17:(_=a.sent())&&h.push(_),a.label=18;case 18:return v=d.next(),[3,16];case 19:return[3,22];case 20:return g=a.sent(),O={error:g},[3,22];case 21:try{v&&!v.done&&(x=d.return)&&x.call(d)}finally{if(O)throw O.error}return[7];case 22:return[4,this.setupTags(h)];case 23:return a.sent(),e&&(this._built=!0,this.dispatch("builtRoot")),this.dispatch("built",h),[2,h]}}))}))},e.prototype.getTagsForElements=function(t,e){return void 0===e&&(e=!1),i(this,void 0,void 0,(function(){var r,n,o,i,l,p,h,y,v,b,_,g,w,m,O,x;return a(this,(function(a){switch(a.label){case 0:r=new d.TagList,n=[];try{for(o=s(t),i=o.next();!i.done;i=o.next())(v=i.value)&&v[f.Tag.TaggedVariable]&&(r.push(v[f.Tag.TaggedVariable]),n.push(v))}catch(t){w={error:t}}finally{try{i&&!i.done&&(m=o.return)&&m.call(o)}finally{if(w)throw w.error}}if(!e)return[3,8];for(l=c([],u(t)),p=l.length;p>=0;p--)v=l[p],n.indexOf(v)>-1&&l.splice(p,1);a.label=1;case 1:a.trys.push([1,6,7,8]),h=s(l),y=h.next(),a.label=2;case 2:return y.done?[3,5]:(v=y.value,_=(b=r).push,[4,this.getTagForElement(v,e)]);case 3:_.apply(b,[a.sent()]),a.label=4;case 4:return y=h.next(),[3,2];case 5:return[3,8];case 6:return g=a.sent(),O={error:g},[3,8];case 7:try{y&&!y.done&&(x=h.return)&&x.call(h)}finally{if(O)throw O.error}return[7];case 8:return[2,r]}}))}))},e.prototype.getTagForElement=function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!1),i(this,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return t&&t[f.Tag.TaggedVariable]?[2,t[f.Tag.TaggedVariable]]:t&&e?(t instanceof HTMLElement&&t.setAttribute("vsn-ref",""),[4,this.buildFrom(t.parentElement||t,!1,r)]):[3,3];case 1:return n.sent(),[4,this.getTagForElement(t,!1)];case 2:return[2,n.sent()];case 3:return[2,null]}}))}))},e.prototype.getTagForScope=function(t){return i(this,void 0,void 0,(function(){var e,r,n,o,i;return a(this,(function(a){try{for(e=s(this.tags),r=e.next();!r.done;r=e.next())if((n=r.value).uniqueScope&&n.scope===t)return[2,n]}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&i.call(e)}finally{if(o)throw o.error}}return[2,null]}))}))},e.prototype.resetBranch=function(t){return i(this,void 0,void 0,(function(){var e,r,n,o,i,u,c,l;return a(this,(function(a){switch(a.label){case 0:t instanceof f.Tag&&(t=t.element),(e=t[f.Tag.TaggedVariable])&&e.findParentTag(),r=Array.from(t.children),a.label=1;case 1:a.trys.push([1,6,7,8]),n=s(r),o=n.next(),a.label=2;case 2:return o.done?[3,5]:(i=o.value,[4,this.resetBranch(i)]);case 3:a.sent(),a.label=4;case 4:return o=n.next(),[3,2];case 5:return[3,8];case 6:return u=a.sent(),c={error:u},[3,8];case 7:try{o&&!o.done&&(l=n.return)&&l.call(n)}finally{if(c)throw c.error}return[7];case 8:return[2]}}))}))},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e(document,!1,!1)),e._instance},enumerable:!1,configurable:!0}),e.getParentElement=function(t){return t.parentElement?t.parentElement:t.assignedSlot?t.assignedSlot.parentElement:t.shadowParent?t.shadowParent:null},e}(_.EventDispatcher);e.DOM=x},3276:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.DOMObject=void 0;var s=function(t){function e(e,r){var n,o=t.call(this)||this;return o.element=e,o._uniqueScope=!1,o.delegates=[],o.isSlot&&(n=o.delegates).push.apply(n,a([],i(e.assignedNodes()))),e.assignedSlot&&(o.slot=e.assignedSlot),o}return o(e,t),Object.defineProperty(e.prototype,"isSlot",{get:function(){return this.element instanceof HTMLSlotElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSlotted",{get:function(){return this.element.hasAttribute("slot")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope?this._scope:null},set:function(t){this._scope=t},enumerable:!1,configurable:!0}),e.prototype.watchAttribute=function(t){},e.prototype.watchStyle=function(t){},e.prototype.deconstruct=function(){var e;this._uniqueScope&&(null===(e=this.scope)||void 0===e||e.deconstruct()),t.prototype.deconstruct.call(this)},e}(r(5559).EventDispatcher);e.DOMObject=s},7942:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedDocument=void 0;var i=function(t){function e(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=t.call(this,e,r)||this;return o._document=e,o}return o(e,t),e}(r(3276).DOMObject);e.WrappedDocument=i},2144:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedWindow=void 0;var i=r(3276),a=r(4843),s=function(t){function e(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=t.call(this,e,r)||this;return o._window=e,o._scope=new a.Scope,o.scope.set("@scrollY",o._window.scrollY),o.scope.set("@scrollX",o._window.scrollX),e.addEventListener("scroll",o.onScroll.bind(o),{passive:!0}),o}return o(e,t),e.prototype.onScroll=function(t){this.scope.set("@scrollY",this._window.scrollY),this.scope.set("@scrollX",this._window.scrollX)},e}(i.DOMObject);e.WrappedWindow=s},5559:function(t,e){"use strict";var r=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t},o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.EventDispatcher=e.EventCallback=void 0;var i=function(){function t(t,e,r,n){this.fnc=t,this.key=e,this.once=r,this.context=n,this.calls=0}return t.prototype.call=function(){for(var t,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return!(this.once&&this.calls>0)&&((t=this.fnc).apply.apply(t,n([this.context],r(e))),this.calls+=1,!0)},t}();e.EventCallback=i;var a=function(){function t(){this._allListeners=[],this._relays=[],this._lastKey=0,this._listeners={},t.sources.push(this)}return t.prototype.deconstruct=function(){for(var e in this.dispatch("deconstruct",this),t.sources.splice(t.sources.indexOf(this),1),this._listeners)delete this._listeners[e]},t.prototype.addRelay=function(t){this._relays.push(t)},t.prototype.removeRelay=function(t){this._relays.indexOf(t)>-1&&this._relays.splice(this._relays.indexOf(t),1)},t.prototype.on=function(t,e,r,n){return n=n||!1,this._lastKey++,this._listeners[t]=this._listeners[t]||[],this._listeners[t].push(new i(e,this._lastKey,n,r)),this._lastKey},t.prototype.once=function(t,e,r){return this.on(t,e,r,!0)},t.prototype.promise=function(t){for(var e=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(r,n){e.once(t,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];r(t)}),null)}))},t.prototype.off=function(t,e){var r,n;if(!(t in this._listeners))return!1;if(!e)return this._listeners[t]=[],!0;try{for(var i=o(this._listeners[t]),a=i.next();!a.done;a=i.next()){var s=a.value;if(e==s.key)return this._listeners[t].splice(this._listeners[t].indexOf(s),1),!0}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1},t.prototype.offWithContext=function(t,e){var r,n,i,a;if(!(t in this._listeners))return 0;var s=[],u=0;try{for(var c=o(this._listeners[t]),l=c.next();!l.done;l=c.next()){e==(h=l.value).context&&s.push(h)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}try{for(var f=o(s),p=f.next();!p.done;p=f.next()){var h=p.value;this._listeners[t].splice(this._listeners[t].indexOf(h),1),u++}}catch(t){i={error:t}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return u},t.prototype.getListener=function(t,e){var r,n;try{for(var i=o(this._listeners[t]),a=i.next();!a.done;a=i.next()){var s=a.value;if(e==s.key)return s}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},t.prototype.all=function(t,e,r){return r=r||!1,this._lastKey++,this._allListeners.push(new i(t,this._lastKey,r,e)),this._lastKey},t.prototype.none=function(t){var e,r;try{for(var n=o(this._allListeners),i=n.next();!i.done;i=n.next()){var a=i.value;if(t==a.key)return this._allListeners.splice(this._allListeners.indexOf(a),1),!0}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return!1},t.prototype.noneWithContext=function(t){var e,r,n,i,a=[],s=0;try{for(var u=o(this._allListeners),c=u.next();!c.done;c=u.next()){t==(p=c.value).context&&a.push(p)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}try{for(var l=o(a),f=l.next();!f.done;f=l.next()){var p=f.value;this._allListeners.splice(this._allListeners.indexOf(p),1),s++}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return s},t.prototype.dispatch=function(t){for(var e,i,a,s,u=[],c=1;c<arguments.length;c++)u[c-1]=arguments[c];if(t in this._listeners)for(var l=0;l<this._listeners[t].length;l++){(h=this._listeners[t][l]).once&&(this.off(t,h.key),l--),h.call(u)}try{for(var f=o(this._allListeners),p=f.next();!p.done;p=f.next()){var h;(h=p.value).once&&this.none(h.key),h.call(u)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(e)throw e.error}}try{for(var y=o(this._relays),d=y.next();!d.done;d=y.next()){var v=d.value;v.dispatch.apply(v,n([t],r(u)))}}catch(t){a={error:t}}finally{try{d&&!d.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}},t.sources=[],t}();e.EventDispatcher=a},8001:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.Formats=void 0;var o=r(1371),i=r(6417),a=function(){function t(){}return t.currency=function(e){if(!t.CurrencyFormatter){var r=function(){var e=i.Configuration.get("locale","en-US"),r=i.Configuration.get("currency","USD");t.CurrencyFormatter=new Intl.NumberFormat(e,{style:"currency",currency:r})};i.Configuration.instance.on("change:locale",r),i.Configuration.instance.on("change:currency",r),r()}return e=(""+e).replace(/[^0-9.]+/,""),e=parseFloat(e),isNaN(e)?"":t.CurrencyFormatter.format(e)},t.date=function(t){return t?t.toLocaleString():""},n([o.Registry.format("currency")],t,"currency",null),n([o.Registry.format("date")],t,"date",null),t}();e.Formats=a},9188:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MessageList=void 0;var n=function(){function t(t){this.reset(),t&&this.merge(t)}return t.prototype.reset=function(){var t,e,n=this.keys;if(this._cachedList=void 0,n.length>0)try{for(var o=r(n),i=o.next();!i.done;i=o.next()){delete this[i.value]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.add=function(t,e,r){var n;void 0===r&&(r=!1),this.merge(((n={})[t]="string"==typeof e?[e]:e,n),r)},t.prototype.merge=function(t,e){var r=this;if(void 0===e&&(e=!1),t){this._cachedList=void 0;var n=this.keys,o=function(o){if(!t.hasOwnProperty(o))return"continue";var a=t[o];a instanceof Array&&(!e&&n.indexOf(o)>-1?a.map((function(t){r[o].push(t)})):a.length>0&&(i[o]=a))},i=this;for(var a in t)o(a)}},Object.defineProperty(t.prototype,"list",{get:function(){var t,e;if(this._cachedList)return this._cachedList;var n={},o=this.keys;try{for(var i=r(o),a=i.next();!a.done;a=i.next()){var s=a.value;n[s]=this[s]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return this._cachedList=n,n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keys",{get:function(){var t=Object.keys(this);return t.splice(t.indexOf("_cachedList"),1),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),t}();e.MessageList=n},5453:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Model=void 0;var s=r(9188),u=r(1525),c=r(1371),l=function(t){function e(e){void 0===e&&(e=null);var r=t.call(this)||this;return r._hasErrors=!1,e&&r.setData(e),r._lastData=r.getData(),r._constructor(),r}return o(e,t),e.prototype._constructor=function(){},e.prototype.validate=function(){var t,e;this._hasErrors=!1,this._errors=new s.MessageList;try{for(var r=a(this.getProperties()),n=r.next();!n.done;n=r.next()){var o=n.value,i=this["__"+o].validate();i.length>0&&(this._errors.add(o,i,!0),this._hasErrors=!0)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return this._errors},e.prototype.hasErrors=function(){return this.validate(),this._hasErrors},Object.defineProperty(e.prototype,"errors",{get:function(){return this._errors},enumerable:!1,configurable:!0}),e=i([c.Registry.model("Model")],e)}(u.ScopeData);e.Model=l},7719:function(t,e){"use strict";var r=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Modifiers=e.Modifier=void 0;var o=function(){function t(t){var e=r(t.split(",")),n=e[0],o=e.slice(1);this.name=n,this.arguments=o}return t.prototype.getArguments=function(t){return void 0===t&&(t=[]),this.arguments.length?this.arguments:t},t}();e.Modifier=o;var i=function(){function t(t){var e,r;void 0===t&&(t=[]),this.modifiers=new Map;try{for(var o=n(t),i=o.next();!i.done;i=o.next()){var a=i.value;this.add(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}return t.prototype.add=function(t){var e=new o(t);this.modifiers.set(e.name,e)},t.prototype.has=function(t){return this.modifiers.has(t)},t.prototype.get=function(t){return this.modifiers.get(t)},Object.defineProperty(t.prototype,"iter",{get:function(){return Array.from(this.modifiers.values())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"names",{get:function(){return this.iter.map((function(t){return t.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.modifiers.size},enumerable:!1,configurable:!0}),t.fromAttribute=function(e){return new t(e.split("|").splice(1))},t}();e.Modifiers=i},7677:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;var i=r(1341),a=r(4264),s=r(9033),u=r(2144),c=r(7942);e.Query=function(t,e){return void 0===e&&(e=null),n(this,void 0,void 0,(function(){var r;return o(this,(function(n){switch(n.label){case 0:return a.VisionHelper.document?[4,(e=e||s.DOM.instance).get(t,!0)]:[3,2];case 1:return 1==(r=n.sent()).length||1==r.length&&(r[0]instanceof u.WrappedWindow||r[0]instanceof c.WrappedDocument)?[2,r[0]]:[2,r];case 2:return[2,new i.TagList]}}))}))}},1371:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.Registry=e.RegistryStore=e.register=void 0;var i=r(5559),a=r(9045);function s(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),function(n,o){void 0===o&&(o=null),e=e||n.prototype.constructor.name,null!==o&&(n=n[o]),c.instance[t].register(e,n),r&&r()}}e.register=s;var u=function(t){function e(e){void 0===e&&(e=null);var r=t.call(this)||this;return r.timeouts={},r.store=e||{},r}return o(e,t),e.prototype.register=function(t,e){this.store[t]=e,this.dispatch("register",t,e),this.dispatch("registered:"+t,e)},e.prototype.get=function(t){var e=this,r=a.SimplePromise.defer();return this.store[t]?r.resolve(this.store[t]):(console.warn("Waiting for "+t+" to be registered."),this.timeouts[t]=setTimeout((function(){console.warn("RegistryStore.get timed out after 5 seconds trying to find "+t+". Make sure the item is registered.")}),5e3),this.once("registered:"+t,(function(n){clearTimeout(e.timeouts[t]),r.resolve(n)}))),r.promise},e.prototype.getSynchronous=function(t){return this.store[t]},e.prototype.has=function(t){return!!this.store[t]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.store)},enumerable:!1,configurable:!0}),e}(i.EventDispatcher);e.RegistryStore=u;var c=function(t){function e(){var e=t.call(this)||this;return e.tags=new u,e.components=new u,e.functions=new u,e.controllers=new u,e.classes=new u,e.models=new u,e.templates=new u,e.services=new u,e.types=new u,e.validators=new u,e.formats=new u,e.attributes=new u,e}return o(e,t),e.component=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("components",t,e)},e.function=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("functions",t,e)},e.class=function(t){e.instance.classes.register(t.fullSelector,t)},e.controller=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("controllers",t,e)},e.model=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("models",t,e)},e.template=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("templates",t,e)},e.service=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("services",t,e)},e.type=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("types",t,e)},e.validator=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("validators",t,e)},e.format=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("formats",t,e)},e.attribute=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),s("attributes",t,e)},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e),e._instance},enumerable:!1,configurable:!0}),e}(i.EventDispatcher);e.Registry=c},4843:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionScope=e.Scope=void 0;var u=r(5559),c=r(414),l=r(4880),f=r(8572),p=r(1525),h=r(1469),y=r(9033),d=function(t){function e(e){var r=t.call(this)||this;return r._isGarbage=!1,e&&(r.parentScope=e),r.children=[],r._data=new h.DynamicScopeData({}),r._data.addRelay(r),r}return o(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentScope",{get:function(){if(this._parentScope)return this._parentScope;var t=y.DOM.instance.root.scope;return this==t?null:t},set:function(t){this._parentScope&&this._parentScope!==t&&this._parentScope.removeChild(this),t?(this._parentScope=t,t.addChild(this)):this._parentScope&&(this._parentScope.removeChild(this),this._parentScope=null)},enumerable:!1,configurable:!0}),e.prototype.addChild=function(t){this.children.push(t)},e.prototype.removeChild=function(t){var e=this.children.indexOf(t);e>-1&&this.children.splice(e,1)},e.prototype.getReference=function(t,r){void 0===r&&(r=!0);var n=t.split("."),o=n[0],i=this,a=null,s=n.length;if(t.startsWith("?"))return new l.QueryReference(t,i);for(var u=0;u<s;u++){o=n[u],a=i.get(o,0===u);var f=[null,void 0].indexOf(a)>-1;if(r&&f&&u+1<s)a=new e(i),i.set(o,a);else if(!r&&f)return null;a&&a instanceof e&&(i=a)}return new c.ScopeReference(i,o,a)},e.prototype.get=function(t,e){void 0===e&&(e=!0);var r=this._data[t];return void 0===r?e&&this.parentScope?this.parentScope.get(t,e):"":r},e.prototype.set=function(t,e,r){if(void 0===r&&(r=!1),r){var n=typeof e;"number"===n?e%1==0?this.setType(t,"integer"):this.setType(t,"float"):"string"===n?this.setType(t,"string"):"boolean"===n&&this.setType(t,"boolean")}this._data.hasProperty(t)||this._data.createProperty(t),this._data[t]=e},Object.defineProperty(e.prototype,"keys",{get:function(){return this._data.keys},enumerable:!1,configurable:!0}),e.prototype.has=function(t){return this._data.hasProperty(t)},e.prototype.setType=function(t,e){this._data.getProperty(t,!0).type=e,this.has(t)&&this.set(t,this.get(t))},e.prototype.getType=function(t){var e=this._data.getProperty(t);return null==e?void 0:e.type},e.prototype.extend=function(t){var e,r;try{for(var n=i(t),o=n.next();!o.done;o=n.next()){var a=o.value;this.set(a,t[a])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},e.prototype.clear=function(){var t,e;try{for(var r=i(this._data.keys),n=r.next();!n.done;n=r.next()){var o=n.value;["function","object"].indexOf(typeof this.get(o))>-1||this.set(o,null)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e.prototype.cleanup=function(){this.children.length=0,this.parentScope=null},Object.defineProperty(e.prototype,"isGarbage",{get:function(){return this._isGarbage},enumerable:!1,configurable:!0}),e.prototype.collectGarbage=function(t){var e,r;void 0===t&&(t=!1),this._isGarbage=!0;try{for(var n=i(this.children),o=n.next();!o.done;o=n.next()){o.value.collectGarbage(t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}t&&this.cleanup()},e.prototype.deconstruct=function(){t.prototype.deconstruct.call(this),this.collectGarbage(!0)},e.prototype.wrap=function(t,r,n){var o=this;if(void 0===r&&(r=!1),void 0===n&&(n=!0),t instanceof p.ScopeData)return this._data instanceof u.EventDispatcher&&(this._data.removeRelay(this),this._data.deconstruct()),this.wrapped=t,this._data=t,void this._data.addRelay(this);if(t instanceof e&&(t=t._data),-1===[null,void 0].indexOf(this.wrapped))throw Error("A scope can only wrap a single object");if(!t)throw Error("Can only wrap objects.");if(t.$wrapped)throw Error("An object should only be wrapped once.");this.wrapped=t,this.wrapped.$wrapped=!0;var i=function(i){if(["constructor"].indexOf(i)>-1||i.startsWith("$"))return"continue";if(c.wrapped[i]instanceof Function)return c.set(i,c.wrapped[i]),"continue";if(c.wrapped[i]instanceof Array&&(c.wrapped[i]instanceof f.WrappedArray||(c.wrapped[i]=new(f.WrappedArray.bind.apply(f.WrappedArray,s([void 0],a(t[i]))))),c.wrapped[i].on("change",(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.dispatch.apply(o,s(["change:"+i],a(t)))}))),"object"==typeof c.wrapped[i]&&c.wrapped[i]&&c.wrapped[i].constructor===Object){var u=new e(c);u.wrap(c.wrapped[i]),c.wrapped[i]=u}n&&-1===[null,void 0].indexOf(c.wrapped[i])&&c.set(i,c.wrapped[i]);Object.defineProperty(c.wrapped,i,{get:function(){return o.get(i)},set:function(t){o.set(i,t)},enumerable:!0,configurable:!0}),r&&c.dispatch("change:"+i)},c=this;for(var l in t)i(l);this.wrapped.get=this.get.bind(this),this.wrapped.set=this.set.bind(this),this.wrapped.on=this.on.bind(this),this.wrapped.once=this.once.bind(this),this.wrapped.off=this.off.bind(this)},e.prototype.unwrap=function(){if(this.wrapped){var t=this.wrapped;for(var e in this.wrapped=null,t.$wrapped=!1,t)delete t[e]}},e.fromObject=function(t,r){var n=new e(r);return n.wrap(t),n},e}(u.EventDispatcher);e.Scope=d;var v=function(t){function e(e){var r=t.call(this,e)||this;return r.addRelay(e),r}return o(e,t),e.prototype.set=function(e,r){this.parentScope&&(this.parentScope.has(e)||["$","@"].indexOf(e[0])>-1)?this.parentScope.set(e,r):t.prototype.set.call(this,e,r)},e.prototype.collectGarbage=function(e){void 0===e&&(e=!0),t.prototype.collectGarbage.call(this,!0)},e}(d);e.FunctionScope=v},1469:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicScopeData=void 0;var a=function(t){function e(e){var r,n,o=t.call(this)||this;if(e instanceof Array)try{for(var a=i(e),s=a.next();!s.done;s=a.next()){var u=s.value;o.createProperty(u)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}else o.setData(e);return o}return o(e,t),e.prototype.setData=function(e){var r,n;try{for(var o=i(Object.keys(e)),a=o.next();!a.done;a=o.next()){var s=a.value;this.hasProperty(s)||this.createProperty(s)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.prototype.setData.call(this,e)},e.prototype.on=function(e,r,n,o){return 0==e.indexOf("change:")&&this.createProperty(e.substr(7)),t.prototype.on.call(this,e,r,n,o)},e}(r(6966).ScopeDataAbstract);e.DynamicScopeData=a},4880:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.QueryReference=void 0;var s=r(9033),u=function(t){function e(e,r){var n=t.call(this)||this;return n.path=e,n.scope=r,n}return o(e,t),e.prototype.getScope=function(){return i(this,void 0,void 0,(function(){var t,e;return a(this,(function(r){switch(r.label){case 0:return t=(t=this.path.split(".")).splice(0,t.length-1),[4,s.DOM.instance.exec(t.join("."))];case 1:return[2,1===(e=r.sent()).length?e[0].scope:e.map((function(t){return t.scope}))]}}))}))},e.prototype.getKey=function(){return i(this,void 0,void 0,(function(){var t;return a(this,(function(e){return[2,(t=this.path.split("."))[t.length-1]]}))}))},e.prototype.getValue=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,s.DOM.instance.exec(this.path)];case 1:return[2,t.sent()]}}))}))},e}(r(414).ScopeReference);e.QueryReference=u},1525:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeData=void 0;var a=function(t){function e(){var e,r,n=t.call(this)||this,o=n.__properties__.splice(0,n.__properties__.length);try{for(var a=i(o),s=a.next();!s.done;s=a.next()){!function(t,e){if(t["__"+e+"__"]){var r=t["__"+e+"__"],n=r[0],o=r[1]||{};t.createProperty(e,n,o)}}(n,s.value)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return n}return o(e,t),e}(r(6966).ScopeDataAbstract);e.ScopeData=a},6966:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeDataAbstract=void 0;var u=r(9380),c=function(t){function e(){var e=t.call(this)||this;return e.__properties__||(e.__properties__=[]),e.__methods__||(e.__methods__=[]),e}return o(e,t),e.prototype.createMethod=function(t,e){},e.prototype.createProperty=function(t,e,r){var n=this;if(void 0===e&&(e=u.Property),this.hasProperty(t))return this.getProperty(t);var o=new e((r=r||{}).default,r),s=Object.getOwnPropertyDescriptor(this,t);this["__"+t]=o,this.__properties__.push(t);var c=s?s.get:function(){return o.value},l=s?s.set:function(t){o.value=t};return delete this[t],Object.defineProperty(this,t,{get:c,set:l,enumerable:!0,configurable:!0}),o.on("change",(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.dispatch.apply(n,a(["change",t],i(e))),n.dispatch.apply(n,a(["change:"+t],i(e)))})),o},e.prototype.hasProperty=function(t){return-1!==this.__properties__.indexOf(t)},Object.defineProperty(e.prototype,"keys",{get:function(){return a([],i(this.__properties__))},enumerable:!1,configurable:!0}),e.prototype.getKeys=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=[];try{for(var i=s(this.keys),a=i.next();!a.done;a=i.next()){var u=a.value,c=this.getProperty(u);c.hasLabels(r)&&o.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return o},e.prototype.setData=function(t){var e=this.getProperties();for(var r in t)e.indexOf(r)>-1&&(this[r]=t[r])},e.prototype.getData=function(){for(var t,e,r,n,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a={};try{t:for(var u=s(this.getProperties()),c=u.next();!c.done;c=u.next()){var l=c.value,f=this["__"+l];try{for(var p=(r=void 0,s(o)),h=p.next();!h.done;h=p.next()){var y=h.value;if(!f.hasLabel(y))continue t}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}null!=this[l]&&f&&(a[l]=f.clean())}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}return a},e.prototype.get=function(t){return this[t]},e.prototype.set=function(t,e){this[t]=e},e.prototype.getProperties=function(){return this.__properties__},e.prototype.getProperty=function(t,e){void 0===e&&(e=!1);var r=this["__"+t];return e&&!r&&(r=this.createProperty(t)),r},e.prototype.bindToProperties=function(t,e,r){var n,o;try{for(var i=s(e),a=i.next();!a.done;a=i.next()){var u=this["__"+a.value];u&&u.on(t,r)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},e.prototype.setLastData=function(){this._lastData=this.getData()},e.prototype.revert=function(){this.setData(this._lastData)},e.prototype.isModified=function(){var t,e,r=this._lastData,n=this.getData();try{for(var o=s(this.getProperties()),i=o.next();!i.done;i=o.next()){var a=i.value;if(n[a]!=r[a])return!0}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return!1},e}(r(5559).EventDispatcher);e.ScopeDataAbstract=c},2018:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeObject=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(r(1525).ScopeData);e.ScopeObject=i},414:function(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeReference=void 0;var o=function(){function t(t,e,r){void 0===t&&(t=null),void 0===e&&(e=null),void 0===r&&(r=null),this._scope=t,this._key=e,this._value=r}return t.prototype.getScope=function(){return r(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this._scope]}))}))},t.prototype.getKey=function(){return r(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this._key]}))}))},t.prototype.getValue=function(){return r(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this._value]}))}))},t}();e.ScopeReference=o},8572:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedArray=void 0;var u=r(5559),c=function(t){function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=t.apply(this,a([],i(r)))||this;return o.$wrapped=!0,Object.setPrototypeOf(o,e.prototype),o.dispatcher=new u.EventDispatcher,o}return o(e,t),e.prototype.dispatch=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(e=this.dispatcher).dispatch.apply(e,a([t],i(r)))},e.prototype.on=function(t,e,r){this.dispatcher.on(t,e,r)},e.prototype.off=function(t,e){this.dispatcher.off(t,e)},e.prototype.once=function(t,e){this.dispatcher.once(t,e)},e.prototype.push=function(){for(var e,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var u=t.prototype.push.apply(this,a([],i(n)));this.dispatch.apply(this,a(["push"],i(n))),this.dispatch("change",{added:n});try{for(var c=s(n),l=c.next();!l.done;l=c.next()){var f=l.value;this.dispatch("add",f)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}return u},e.prototype.remove=function(t){var e=this.indexOf(t);return-1!==e&&(this.splice(e,1),!0)},e.prototype.pop=function(){var e=t.prototype.pop.call(this);return this.dispatch("pop",e),this.dispatch("change",{removed:[e]}),this.dispatch("remove",e),e},e.prototype.shift=function(){var e=t.prototype.shift.call(this);return this.dispatch("shift",e),this.dispatch("change",{removed:[e]}),this.dispatch("remove",e),e},e.prototype.splice=function(e,r){var n,o,i=t.prototype.splice.call(this,e,r);this.dispatch("change",{removed:i});try{for(var a=s(i),u=a.next();!u.done;u=a.next()){var c=u.value;this.dispatch("remove",c)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},e.prototype.concat=function(){for(var e,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var u=t.prototype.concat.apply(this,a([],i(n)));this.dispatch("change",{added:u});try{for(var c=s(u),l=c.next();!l.done;l=c.next()){var f=l.value;this.dispatch("add",f)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}return u},e.prototype.filter=function(r,n){var o=t.prototype.filter.call(this,r,n);return new(e.bind.apply(e,a([void 0],i(o))))},e.prototype.get=function(t){return["length"].indexOf(t)>-1?this[t]:void 0},Object.defineProperty(e.prototype,"length",{get:function(){var t,e,r=0;try{for(var n=s(this),o=n.next();!o.done;o=n.next()){o.value;r+=1}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},set:function(t){this.setLength(t)},enumerable:!1,configurable:!0}),e.prototype.setLength=function(t){var e,r,n,o,i=0,a=[];try{for(var u=s(this),c=u.next();!c.done;c=u.next()){var l=c.value;(i+=1)>=t&&a.push(l)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}try{for(var f=s(a),p=f.next();!p.done;p=f.next()){l=p.value;this.splice(this.indexOf(l),1)}}catch(t){n={error:t}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},e}(Array);e.WrappedArray=c},6691:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayProperty=void 0;var s=r(9380),u=r(8572),c=function(t){function e(e,r){var n=t.call(this,new u.WrappedArray,r)||this;return n.allKey=n._value.dispatcher.all(n.relayEvent.bind(n),n),void 0!==e&&(n.value=e),n}return o(e,t),e.prototype.deconstruct=function(){this._value.dispatcher.none(this.allKey),t.prototype.deconstruct.call(this)},e.prototype.relayEvent=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];this.dispatch.apply(this,a(["change"],i(e)))},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){if(t instanceof Array||(t=[t]),this._value instanceof u.WrappedArray){this._value.splice(0,this._value.length);for(var e=0;e<t.length;e++)this._value.push(t[e])}else t instanceof u.WrappedArray&&(this._value=t)},enumerable:!1,configurable:!0}),e.prototype.clean=function(){return Array.from(this._value)},e}(s.Property);e.ArrayProperty=c},1401:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.FloatProperty=void 0;var i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._type="float",e}return o(e,t),e}(r(9380).Property);e.FloatProperty=i},1677:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerProperty=void 0;var i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._type="integer",e}return o(e,t),e}(r(9380).Property);e.IntegerProperty=i},9380:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Property=e.method=e.property=void 0;var a=r(5559),s=r(1371);e.property=function(t,e){return void 0===t&&(t=u),void 0===e&&(e={}),function(r,n){null==r.__properties__&&(r.__properties__=[]),-1==r.__properties__.indexOf(n)&&r.__properties__.push(n);Object.defineProperty(r,"__"+n+"__",{get:function(){return[t,e]},set:function(t){},enumerable:!1,configurable:!0})}},e.method=function(t){return void 0===t&&(t={}),function(e,r){null==e.__methods__&&(e.__methods__=[]),-1==e.__methods__.indexOf(r)&&e.__methods__.push(r);Object.defineProperty(e,"__"+r+"__",{get:function(){return t},set:function(t){},enumerable:!1,configurable:!0})}};var u=function(t){function e(e,r){var n=t.call(this)||this;return n._type="any",n.config=r,n.config.labels||(n.config.labels=[]),n.config.validators||(n.config.validators=[]),n.type=r.type||"any",n.value=e,n}return o(e,t),e.prototype.castType=function(t){var e=s.Registry.instance.types.getSynchronous(this.type);return e?e(t):t},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){var e=this._value;this._value=this.castType(t),this._value!==e&&this.dispatch("change",{oldValue:e,value:t})},enumerable:!1,configurable:!0}),e.prototype.clean=function(){return this.value},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type!=t&&(this._type=t,this.value=this.value)},enumerable:!1,configurable:!0}),e.prototype.validate=function(){var t,e,r=[];try{for(var n=i(this.config.validators||[]),o=n.next();!o.done;o=n.next()){var a=o.value;r.concat(a(this.value))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},e.prototype.getValidator=function(t){var e=s.Registry.instance.validators.getSynchronous(t);if(!e)throw new Error("Invalid validator "+t);return e},e.prototype.addValidator=function(t){"string"==typeof t&&(t=this.getValidator(t)),-1==this.config.validators.indexOf(t)&&this.config.validators.push(t)},e.prototype.addLabel=function(t){null==this.config.labels&&(this.config.labels=[]),-1==this.config.labels.indexOf(t)&&this.config.labels.push(t)},e.prototype.removeLabel=function(t){if(null!=this.config.labels){var e=this.config.labels.indexOf(t);-1!=e&&this.config.labels.splice(e,1)}},e.prototype.hasLabel=function(t){return-1!==this.config.labels.indexOf(t)},e.prototype.hasLabels=function(t){var e,r;try{for(var n=i(t),o=n.next();!o.done;o=n.next()){var a=o.value;if(!this.hasLabel(a))return!1}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return!0},e}(a.EventDispatcher);e.Property=u},9618:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FloatProperty=e.IntegerProperty=e.ArrayProperty=e.property=e.Property=void 0;var n=r(9380);Object.defineProperty(e,"Property",{enumerable:!0,get:function(){return n.Property}}),Object.defineProperty(e,"property",{enumerable:!0,get:function(){return n.property}});var o=r(6691);Object.defineProperty(e,"ArrayProperty",{enumerable:!0,get:function(){return o.ArrayProperty}});var i=r(1677);Object.defineProperty(e,"IntegerProperty",{enumerable:!0,get:function(){return i.IntegerProperty}});var a=r(1401);Object.defineProperty(e,"FloatProperty",{enumerable:!0,get:function(){return a.FloatProperty}})},218:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.Service=void 0;var i=r(4843),a=function(t){function e(){var e=t.call(this)||this;return e._scope=new i.Scope,e._scope.wrap(e),e}return o(e,t),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope},enumerable:!1,configurable:!0}),Object.defineProperty(e,"instance",{get:function(){return this._instance||(this._instance=new this),this._instance},enumerable:!1,configurable:!0}),e}(r(2018).ScopeObject);e.Service=a},9045:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.SimplePromise=e.noop=e.EPromiseStates=void 0;var a,s=r(5559);!function(t){t[t.PENDING=0]="PENDING",t[t.FULFILLED=1]="FULFILLED",t[t.REJECTED=2]="REJECTED"}(a=e.EPromiseStates||(e.EPromiseStates={})),e.noop=function(t){return t};var u=function(t){function e(e){var r=t.call(this)||this;r._result=null,r._state=a.PENDING,r.promiseClass=Object.getPrototypeOf(r).constructor;try{e(r._resolve.bind(r),r._reject.bind(r))}catch(t){r._reject(t)}return r}return o(e,t),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e.defer=function(){var t=new e((function(t,e){}));return{promise:t,resolve:t._resolve.bind(t),reject:t._reject.bind(t)}},e.resolve=function(t){return new e((function(r){t instanceof e?t.then((function(t){r(t)})):r(t)}))},e.reject=function(t){return new e((function(e,r){r(t)}))},e.all=function(t){var r,n,o=e.defer(),s=!0;try{for(var u=i(t),c=u.next();!c.done;c=u.next()){var l=c.value;if(l.state==a.PENDING)s=!1,l.once("fulfilled",(function(r){e.poolResults(t,o)})),l.once("rejected",(function(t){o.reject(t)}));else if(l.state==a.REJECTED){o.reject(l.result),s=!1;break}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return s&&e.poolResults(t,o),o.promise},e.poolResults=function(t,e){var r,n,o=!0,s=[];try{for(var u=i(t),c=u.next();!c.done;c=u.next()){var l=c.value;if(l.state===a.REJECTED){e.reject(l.result);break}l.state===a.PENDING&&(o=!1),s.push(l.result)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}o&&e.resolve(s)},e.race=function(t){var r,n,o=e.defer();try{for(var a=i(t),s=a.next();!s.done;s=a.next()){var u=s.value;u.once("fulfilled",(function(t){o.resolve(t)})),u.once("rejected",(function(t){o.reject(t)}))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o.promise},e.prototype.then=function(t,e){var r=this;return new this.promiseClass((function(n,o){r.state===a.FULFILLED?t&&n(t(r.result)):r.state===a.REJECTED?e&&o(e(r.result)):(r.once("fulfilled",(function(e){t&&n(t(e))})),r.once("rejected",(function(t){e&&o(e(t))})))}))},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.finally=function(t){return this.then((function(e){return t(e)}),(function(e){return t(e)}))},e.prototype._resolve=function(t){this.state===a.PENDING&&(this._state=a.FULFILLED,this._result=t,this.dispatch("fulfilled",t))},e.prototype._reject=function(t){this.state===a.PENDING&&(this._state=a.REJECTED,this._result=t,this.dispatch("rejected",t))},e}(s.EventDispatcher);e.SimplePromise=u},712:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Tag=e.TagState=void 0;var l,f=r(4843),p=r(5092),h=r(9033),y=r(126),d=r(4264),v=r(6032),b=r(8447),_=r(1371),g=r(3276),w=r(7754),m=r(1857),O=r(7719);!function(t){t[t.Instantiated=0]="Instantiated",t[t.AttributesBuilt=1]="AttributesBuilt",t[t.AttributesCompiled=2]="AttributesCompiled",t[t.AttributesSetup=3]="AttributesSetup",t[t.AttributesExtracted=4]="AttributesExtracted",t[t.AttributesConnected=5]="AttributesConnected",t[t.Built=6]="Built"}(l=e.TagState||(e.TagState={}));var x=function(t){function e(r,n){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var a=t.call(this,r,o)||this;return a.dom=n,a.deferredAttributes=[],a.attributes=new Map,a._nonDeferredAttributes=[],a._children=[],a.inputTags=["input","select","textarea"],r[e.TaggedVariable]=a,a.rawAttributes={},a.parsedAttributes={},a.onEventHandlers={},a.analyzeElementAttributes(),a._state=l.Instantiated,a}return o(e,t),Object.defineProperty(e.prototype,"uniqueScope",{get:function(){return this._uniqueScope},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"meta",{get:function(){return this._meta||(this._meta={}),this._meta},enumerable:!1,configurable:!0}),e.prototype.onAttributeStateChange=function(t){t.previouseState===p.AttributeState.Deferred&&(this._nonDeferredAttributes.length=0)},e.prototype.getAttributesWithState=function(t){var e,r,n=[];try{for(var o=s(this.attributes.values()),i=o.next();!i.done;i=o.next()){var a=i.value;a.state===t&&n.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n},Object.defineProperty(e.prototype,"nonDeferredAttributes",{get:function(){var t,e;if(this._nonDeferredAttributes.length>0)return this._nonDeferredAttributes;var r=[];try{for(var n=s(this.attributes.values()),o=n.next();!o.done;o=n.next()){var i=o.value;i.state!==p.AttributeState.Deferred&&r.push(i)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this._nonDeferredAttributes=r,r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.element.style},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"computedStyle",{get:function(){return d.VisionHelper.window&&window.getComputedStyle(this.element)||null},enumerable:!1,configurable:!0}),e.prototype.analyzeElementAttributes=function(){if(this.element.attributes&&!(this.element.attributes.length<=0))for(var t=0;t<this.element.attributes.length;t++){var e=this.element.attributes[t];if(this.rawAttributes[e.name]=e.value,e.name.indexOf(":")>-1){var r=e.name.split(":"),n=r.slice(1);n.push(e.value),this.parsedAttributes[r[0]]=n}else this.parsedAttributes[e.name]=[null,e.value]}},e.prototype.exec=function(t){return i(this,void 0,void 0,(function(){var e;return a(this,(function(r){switch(r.label){case 0:return[4,(e=new w.Tree(t)).prepare(this.scope,this.dom,this)];case 1:return r.sent(),[4,e.evaluate(this.scope,this.dom,this)];case 2:return[2,r.sent()]}}))}))},e.prototype.evaluate=function(){return i(this,void 0,void 0,(function(){var t,e,r,n,o;return a(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,7]),t=s(this.nonDeferredAttributes),e=t.next(),i.label=1;case 1:return e.done?[3,4]:[4,e.value.evaluate()];case 2:i.sent(),i.label=3;case 3:return e=t.next(),[3,1];case 4:return[3,7];case 5:return r=i.sent(),n={error:r},[3,7];case 6:try{e&&!e.done&&(o=t.return)&&o.call(t)}finally{if(n)throw n.error}return[7];case 7:return[2]}}))}))},e.prototype.mutate=function(t){this.attributes.forEach((function(e){return e.mutate(t)})),this.dispatch("mutate",t)},e.prototype.get=function(t){this.element.getAttribute(t)},e.prototype.set=function(t,e){this.element.setAttribute(t,e)},e.prototype.getAttributeClass=function(t){return i(this,void 0,void 0,(function(){return a(this,(function(e){return t.startsWith("vsn-")?(t=this.getAttributeName(t),[2,_.Registry.instance.attributes.get(t)]):[2,null]}))}))},e.prototype.getAttributeName=function(t){if((t=t.split("|")[0]).indexOf(":")>-1){var e=t.split(":");t=e[0]}return t},e.prototype.getAttributeBinding=function(t){return(t=t.split("|")[0]).indexOf(":")>-1?t.split(":")[1]:null},Object.defineProperty(e.prototype,"isInput",{get:function(){return this.inputTags.indexOf(this.element.tagName.toLowerCase())>-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSelect",{get:function(){return"select"===this.element.tagName.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMultipleSelect",{get:function(){return this.isSelect&&this.element.hasAttribute("multiple")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.isInput?this.isMultipleSelect?Array.from(this.element.options).filter((function(t){return t.selected})).map((function(t){return t.value})):this.element.value:this.element.textContent},set:function(t){var e,r;if(this.isInput)if(this.isMultipleSelect)try{for(var n=s(Array.from(this.element.options)),o=n.next();!o.done;o=n.next()){var i=o.value;i.selected=t.indexOf(i.value)>-1}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}else this.element.setAttribute("value",t),this.element.value=t;else this.element.innerText=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return!!this.isInput&&this.element.checked},set:function(t){this.isInput&&(t?(this.element.setAttribute("checked",""),this.element.checked=!0):(this.element.removeAttribute("checked"),this.element.checked=!1))},enumerable:!1,configurable:!0}),e.prototype.addChild=function(t){this._children.push(t)},e.prototype.removeChild=function(t){this._children.splice(this._children.indexOf(t),1)},Object.defineProperty(e.prototype,"children",{get:function(){return c([],u(this._children))},enumerable:!1,configurable:!0}),e.prototype.findParentTag=function(){for(var t=h.DOM.getParentElement(this.element),r=!1;t;){if(t[e.TaggedVariable]){r=!0,this.parentTag=t[e.TaggedVariable];break}t=h.DOM.getParentElement(t)}if(!r&&h.DOM.instance.root!==this)return h.DOM.instance.root},Object.defineProperty(e.prototype,"parentTag",{get:function(){return this._parentTag||this.findParentTag(),this._parentTag},set:function(t){this.element!==document.body&&(this._parentTag&&this._parentTag!==t&&(this._parentTag.removeChild(this),this.scope.parentScope=null),this._parentTag=t,t&&(t.addChild(this),this.scope!==t.scope&&(this.scope.parentScope=t.scope)))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope?this._scope:this.uniqueScope?this.createScope(!0):this.parentTag?this.parentTag.scope:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"controller",{get:function(){return this._controller},set:function(t){this._controller=t},enumerable:!1,configurable:!0}),e.prototype.wrap=function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!0),d.VisionHelper.isConstructor(t)&&(t=new t),t instanceof y.Controller?(t.init(this.scope,this,this.element),this.controller=t):(t.$scope=this.scope,t.$tag=this,t.$el=this.element),this.scope.wrap(t,e,r),t},e.prototype.unwrap=function(){this.scope.unwrap()},e.prototype.removeFromDOM=function(){this.element.remove()},e.prototype.addToParentElement=function(){this.parentTag.element.appendChild(this.element)},e.prototype.hide=function(){this.element.hidden=!0},e.prototype.show=function(){this.element.hidden=!1},e.prototype.findAncestorByAttribute=function(t,e){return void 0===e&&(e=!1),e&&this.hasAttribute(t)?this:this.parentTag?this.parentTag.findAncestorByAttribute(t,!0):null},e.prototype.findDescendantsByAttribute=function(t,e){var r,n;void 0===e&&(e=!1);var o=[];e&&this.hasAttribute(t)&&o.push(this);try{for(var i=s(this.children),a=i.next();!a.done;a=i.next()){var u=a.value;o.concat(u.findDescendantsByAttribute(t,!0))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},e.prototype.findChildrenByAttribute=function(t){return this.children.filter((function(e){return e.hasAttribute(t)}))},e.prototype.hasAttribute=function(t){return!!this.parsedAttributes[t]},e.prototype.getAttribute=function(t){return i(this,void 0,void 0,(function(){var e,r,n,o,i,u;return a(this,(function(a){switch(a.label){case 0:return[4,_.Registry.instance.attributes.get(t)];case 1:if(!(e=a.sent()))return[2];try{for(r=s(this.attributes.values()),n=r.next();!n.done;n=r.next())if((o=n.value)instanceof e)return[2,o]}catch(t){i={error:t}}finally{try{n&&!n.done&&(u=r.return)&&u.call(r)}finally{if(i)throw i.error}}return[2]}}))}))},e.prototype.isMagicAttribute=function(t){return e.magicAttributes.indexOf(t)>-1},e.prototype.setElementAttribute=function(t,r){var n,o;if(this.isMagicAttribute(t)){if("@text"===t)this.element.innerText=r;else if("@html"===t)this.element.innerHTML=r,h.DOM.instance.buildFrom(this.element).then((function(t){w.Tree.reprepareExecutingTrees()}));else if("@value"===t)this.value=r;else if("@class"===t&&r){(n=this.element.classList).remove.apply(n,c([],u(Array.from(this.element.classList))));var i=r instanceof Array?r:[r];i.length&&(o=this.element.classList).add.apply(o,c([],u(i)))}else if(e.flagAttributes.indexOf(t)>-1){var a=t.replace("@","");r?this.element.setAttribute(a,""):this.element.removeAttribute(a)}}else this.element.setAttribute(t,r)},e.prototype.getElementAttribute=function(t){if(this.isMagicAttribute(t)){if("@text"===t)return this.element.innerText;if("@html"===t)return this.element.innerHTML;if("@value"===t)return this.value;if("@class"===t)return Array.from(this.element.classList);if(e.flagAttributes.indexOf(t)>-1){var r=t.replace("@","");return this.element.hasAttribute(r)}}return this.element.getAttribute(t)},e.prototype.getRawAttributeValue=function(t,e){return void 0===e&&(e=null),this.rawAttributes[t]?this.rawAttributes[t]:e},e.prototype.hasRawAttribute=function(t){return void 0!==this.getRawAttributeValue(t,void 0)},e.prototype.getParsedAttributeValue=function(t,e,r){return void 0===e&&(e=0),void 0===r&&(r=null),this.parsedAttributes[t]&&this.parsedAttributes[t][e]||r},e.prototype.getTagsToBuild=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return this.isSlot?[4,h.DOM.instance.getTagsForElements(this.delegates,!0)]:[3,2];case 1:return[2,t.sent()];case 2:return[2,[this]]}}))}))},e.prototype.buildAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,r,n,o,i,u,c,f,p,h,y,v,b,_,g,w;return a(this,(function(a){switch(a.label){case 0:return t=!1,e=!1,r=d.VisionHelper.isMobile(),(null===this.element.offsetParent||this.hasAttribute("hidden")||this.hasAttribute("vsn-defer"))&&(e=!0),[4,this.getTagsToBuild()];case 1:n=a.sent(),o=this.isSlot?this:null,a.label=2;case 2:a.trys.push([2,11,12,13]),i=s(n),u=i.next(),a.label=3;case 3:if(u.done)return[3,10];for(p in c=u.value,f=[],this.rawAttributes)f.push(p);h=0,a.label=4;case 4:return h<f.length?(y=f[h],c.attributes.has(y)||this.hasModifier(y,"mobile")&&!r||this.hasModifier(y,"desktop")&&r?[3,7]:[4,this.getAttributeClass(y)]):[3,8];case 5:return(v=a.sent())?(v.scoped&&(t=!0),b=v.create(c,y,v,o),c.attributes.set(y,b),e&&v.canDefer?[4,b.defer()]:[3,7]):[3,7];case 6:a.sent(),c.deferredAttributes.push(b),b.on("state",c.onAttributeStateChange,c),a.label=7;case 7:return h++,[3,4];case 8:c.element.getAttribute("id")&&(t=!0),t&&!c.uniqueScope&&(c._uniqueScope=!0),a.label=9;case 9:return u=i.next(),[3,3];case 10:return[3,13];case 11:return _=a.sent(),g={error:_},[3,13];case 12:try{u&&!u.done&&(w=i.return)&&w.call(i)}finally{if(g)throw g.error}return[7];case 13:return this._state=l.AttributesBuilt,[2]}}))}))},e.prototype.compileAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,r,n,o,i,u,c,f,h,y,d;return a(this,(function(a){switch(a.label){case 0:return[4,this.getTagsToBuild()];case 1:t=a.sent(),a.label=2;case 2:a.trys.push([2,13,14,15]),e=s(t),r=e.next(),a.label=3;case 3:if(r.done)return[3,12];n=r.value,a.label=4;case 4:a.trys.push([4,9,10,11]),y=void 0,o=s(n.getAttributesWithState(p.AttributeState.Instantiated)),i=o.next(),a.label=5;case 5:return i.done?[3,8]:[4,i.value.compile()];case 6:a.sent(),a.label=7;case 7:return i=o.next(),[3,5];case 8:return[3,11];case 9:return u=a.sent(),y={error:u},[3,11];case 10:try{i&&!i.done&&(d=o.return)&&d.call(o)}finally{if(y)throw y.error}return[7];case 11:return r=e.next(),[3,3];case 12:return[3,15];case 13:return c=a.sent(),f={error:c},[3,15];case 14:try{r&&!r.done&&(h=e.return)&&h.call(e)}finally{if(f)throw f.error}return[7];case 15:return this._state=l.AttributesCompiled,[2]}}))}))},e.prototype.setupAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,r,n,o,i,u,c,f,h,y,d;return a(this,(function(a){switch(a.label){case 0:return[4,this.getTagsToBuild()];case 1:t=a.sent(),a.label=2;case 2:a.trys.push([2,13,14,15]),e=s(t),r=e.next(),a.label=3;case 3:if(r.done)return[3,12];n=r.value,a.label=4;case 4:a.trys.push([4,9,10,11]),y=void 0,o=s(n.getAttributesWithState(p.AttributeState.Compiled)),i=o.next(),a.label=5;case 5:return i.done?[3,8]:[4,i.value.setup()];case 6:a.sent(),a.label=7;case 7:return i=o.next(),[3,5];case 8:return[3,11];case 9:return u=a.sent(),y={error:u},[3,11];case 10:try{i&&!i.done&&(d=o.return)&&d.call(o)}finally{if(y)throw y.error}return[7];case 11:return r=e.next(),[3,3];case 12:return[3,15];case 13:return c=a.sent(),f={error:c},[3,15];case 14:try{r&&!r.done&&(h=e.return)&&h.call(e)}finally{if(f)throw f.error}return[7];case 15:return this.isSlot||this.dom.registerElementInRoot(this),this._state=l.AttributesSetup,this.callOnWrapped("$setup"),[2]}}))}))},e.prototype.extractAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,r,n,o,i,u,c,f,h,y,d;return a(this,(function(a){switch(a.label){case 0:return[4,this.getTagsToBuild()];case 1:t=a.sent(),a.label=2;case 2:a.trys.push([2,13,14,15]),e=s(t),r=e.next(),a.label=3;case 3:if(r.done)return[3,12];n=r.value,a.label=4;case 4:a.trys.push([4,9,10,11]),y=void 0,o=s(n.getAttributesWithState(p.AttributeState.Setup)),i=o.next(),a.label=5;case 5:return i.done?[3,8]:[4,i.value.extract()];case 6:a.sent(),a.label=7;case 7:return i=o.next(),[3,5];case 8:return[3,11];case 9:return u=a.sent(),y={error:u},[3,11];case 10:try{i&&!i.done&&(d=o.return)&&d.call(o)}finally{if(y)throw y.error}return[7];case 11:return r=e.next(),[3,3];case 12:return[3,15];case 13:return c=a.sent(),f={error:c},[3,15];case 14:try{r&&!r.done&&(h=e.return)&&h.call(e)}finally{if(f)throw f.error}return[7];case 15:return this._state=l.AttributesExtracted,this.callOnWrapped("$extracted"),[2]}}))}))},e.prototype.connectAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,r,n,o,i,u,c,f,h,y,d;return a(this,(function(a){switch(a.label){case 0:return[4,this.getTagsToBuild()];case 1:t=a.sent(),a.label=2;case 2:a.trys.push([2,13,14,15]),e=s(t),r=e.next(),a.label=3;case 3:if(r.done)return[3,12];(n=r.value).isInput&&n.addEventHandler("input",null,n.inputMutation,n),a.label=4;case 4:a.trys.push([4,9,10,11]),y=void 0,o=s(n.getAttributesWithState(p.AttributeState.Extracted)),i=o.next(),a.label=5;case 5:return i.done?[3,8]:[4,i.value.connect()];case 6:a.sent(),a.label=7;case 7:return i=o.next(),[3,5];case 8:return[3,11];case 9:return u=a.sent(),y={error:u},[3,11];case 10:try{i&&!i.done&&(d=o.return)&&d.call(o)}finally{if(y)throw y.error}return[7];case 11:return r=e.next(),[3,3];case 12:return[3,15];case 13:return c=a.sent(),f={error:c},[3,15];case 14:try{r&&!r.done&&(h=e.return)&&h.call(e)}finally{if(f)throw f.error}return[7];case 15:return this._state=l.AttributesConnected,this.callOnWrapped("$bound"),[2]}}))}))},e.prototype.inputMutation=function(t){var e,r;if(this.isSelect){for(var n=this.element.selectedOptions,o=[],i=0;i<n.length;i++)o.push(n[i].value);try{for(var a=s(Array.from(this.element.options)),u=a.next();!u.done;u=a.next()){var c=u.value;o.indexOf(c.value)>-1?c.setAttribute("selected",""):c.removeAttribute("selected")}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}this.value=o.join(",")}else this.value=t.target.value},e.prototype.finalize=function(){return i(this,void 0,void 0,(function(){return a(this,(function(t){return this._state=l.Built,this.callOnWrapped("$built",this,this.scope,this.element),this.dispatch("$built",this),d.VisionHelper.nice(this.setupDeferredAttributes.bind(this)),[2]}))}))},e.prototype.callOnWrapped=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return!!(this._uniqueScope&&this.scope&&this.scope.wrapped&&this.scope.wrapped[t])&&((e=this.scope.wrapped)[t].apply(e,c([],u(r))),!0)},e.prototype.handleEvent=function(t,e){var r,n,o=this;if(e&&e.stopPropagation(),this.onEventHandlers[t]){this.scope.set("$event",e),this.scope.set("$value",this.value);var u=!1,c=function(t){if(!u&&t.modifiers.has("preventdefault")&&e.cancelable&&(e.preventDefault(),u=!0),t.modifiers.has("once")&&l.removeEventHandler(t.event,t.handler,t.context),t.modifiers.has("throttle")){var r=t.modifiers.get("throttle").getArguments(["1000"]),n=parseInt(r[0]),s=Math.floor(Date.now());if(t.state.lastCalled&&!(t.state.lastCalled+n<s))return"continue";t.state.lastCalled=s}if(t.modifiers.has("debounce")){clearTimeout(t.state.debounceTimeout);r=t.modifiers.get("debounce").getArguments(["1000"]);var c=parseInt(r[0]);t.state.debounceTimeout=setTimeout((function(){return i(o,void 0,void 0,(function(){return a(this,(function(r){switch(r.label){case 0:return[4,t.handler.call(t.context,e)];case 1:return r.sent(),[2]}}))}))}),c)}else t.handler.call(t.context,e)},l=this;try{for(var f=s(this.onEventHandlers[t]),p=f.next();!p.done;p=f.next()){c(p.value)}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}}},e.prototype.hasModifier=function(t,e){return this.attributes,t.indexOf("|"+e)>-1},e.prototype.stripModifier=function(t,e){return t.replace("|"+e,"")},e.prototype.addEventHandler=function(t,e,r,n){void 0===n&&(n=null);var o=null;if((e=e||new O.Modifiers).has("active")?o=!1:e.has("passive")&&(o=!0),!this.onEventHandlers[t]){this.onEventHandlers[t]=[];var i=b.On.WindowEvents.indexOf(t)>-1&&window?window:this.element,a={};(t.indexOf("touch")>-1||null!==o)&&(a.passive=null===o||o),i.addEventListener(t,this.handleEvent.bind(this,t),a)}this.onEventHandlers[t].push({handler:r,event:t,context:n,modifiers:e,state:{}})},e.prototype.removeEventHandler=function(t,e,r){if(void 0===r&&(r=null),this.onEventHandlers[t]){var n=this.onEventHandlers[t].find((function(t){return t.handler===e&&t.context===r}));n&&(this.onEventHandlers[t].splice(this.onEventHandlers[t].indexOf(n),1),0===this.onEventHandlers[t].length&&this.element.removeEventListener(t,this.handleEvent.bind(this,t)))}},e.prototype.removeContextEventHandlers=function(t){var e,r,n,o;try{for(var i=s(Object.keys(this.onEventHandlers)),a=i.next();!a.done;a=i.next()){var u=a.value;try{for(var c=(n=void 0,s(this.onEventHandlers[u])),l=c.next();!l.done;l=c.next()){var f=l.value;f.context===t&&this.removeEventHandler(u,f.handler,t)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},e.prototype.createScope=function(t){return void 0===t&&(t=!1),this._scope||!t&&!this.uniqueScope||(this._uniqueScope=!0,this._scope=new f.Scope,this.parentTag&&(this.scope.parentScope=this.parentTag.scope)),this._scope},e.prototype.watchAttribute=function(t){return i(this,void 0,void 0,(function(){var e;return a(this,(function(r){switch(r.label){case 0:return this.attributes.has(t)&&this.attributes.get(t)instanceof v.StandardAttribute?[2,this.attributes.get(t)]:(this.createScope(!0),e=new v.StandardAttribute(this,t),this.attributes.set(t,e),[4,this.setupAttribute(e)]);case 1:return r.sent(),[2,e]}}))}))},e.prototype.watchStyle=function(t){return i(this,void 0,void 0,(function(){var t;return a(this,(function(e){switch(e.label){case 0:return this.attributes.has("style")?[2,this.attributes.get("style")]:(this.createScope(!0),t=new m.StyleAttribute(this,"style"),this.attributes.set("style",t),[4,this.setupAttribute(t)]);case 1:return e.sent(),[2,t]}}))}))},e.prototype.setupAttribute=function(t){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,t.compile()];case 1:return e.sent(),[4,t.setup()];case 2:return e.sent(),[4,t.extract()];case 3:return e.sent(),[4,t.connect()];case 4:return e.sent(),[2]}}))}))},e.prototype.setupDeferredAttributes=function(){return i(this,void 0,void 0,(function(){var t,e,r,n,o,i;return a(this,(function(a){switch(a.label){case 0:a.trys.push([0,5,6,7]),t=s(this.deferredAttributes),e=t.next(),a.label=1;case 1:return e.done?[3,4]:(r=e.value,[4,this.setupAttribute(r)]);case 2:a.sent(),a.label=3;case 3:return e=t.next(),[3,1];case 4:return[3,7];case 5:return n=a.sent(),o={error:n},[3,7];case 6:try{e&&!e.done&&(i=t.return)&&i.call(t)}finally{if(o)throw o.error}return[7];case 7:return this.deferredAttributes.length=0,[2]}}))}))},e.prototype.deconstruct=function(){this.attributes.forEach((function(t){return t.deconstruct()})),this.attributes.clear(),this._children.forEach((function(t){return t.deconstruct()})),this._children.length=0,t.prototype.deconstruct.call(this)},e.TaggedVariable="_vsn_tag",e.magicAttributes=["@text","@html","@class","@value","@disabled","@hidden","@selected","@readonly","@multiple","@required","@autofocus"],e.flagAttributes=["@disabled","@hidden","@checked","@selected","@readonly","@multiple","@required","@autofocus"],e}(g.DOMObject);e.Tag=x},6453:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.SlotTag=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(r(712).Tag);e.SlotTag=i},3423:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.SlottedTag=void 0;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.slotted=function(t){return i(this,void 0,void 0,(function(){return a(this,(function(e){return this.slotTag=t,this.slot=t.element,this.findParentTag(),[2]}))}))},e.prototype.findParentTag=function(){return this.parentTag=this.slotTag,this._parentTag},e}(r(712).Tag);e.SlottedTag=s},1341:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.TagList=void 0;var s=r(4264),u=function(t){function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=t.apply(this,a([],i(r)))||this;return Object.setPrototypeOf(o,e.prototype),o}return o(e,t),Object.defineProperty(e.prototype,"scope",{get:function(){return this[0].scope},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elements",{get:function(){return this.map((function(t){return t.element}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this[this.length-1]},enumerable:!1,configurable:!0}),e.prototype.all=function(t){var e=this.map((function(e){return e.promise(t)}));return Promise.all(e)},e.prototype.removeClass=function(t){return this.forEach((function(e){return e.element.classList.remove(t)})),this},e.prototype.addClass=function(t){return this.forEach((function(e){return e.element.classList.add(t)})),this},e.prototype.css=function(t,e){var r=t.replace(/(-[a-z])/,(function(t){return t.replace("-","").toUpperCase()}));return this.forEach((function(t){return t.element.style[r]=e})),this},e}(Array);e.TagList=u,s.VisionHelper.inDevelopment&&s.VisionHelper.window&&(window.TagList=u)},3398:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.Types=void 0;var o=r(1371),i=function(){function t(){}return t.any=function(t){return t},t.string=function(t){return""+t},t.integer=function(t){return parseInt(t)},t.float=function(t){return t=(""+t).replace(/[^\d.]+/,""),parseFloat(t)},t.boolean=function(t){return-1===[0,"0",!1,"false",""].indexOf(t)},t.date=function(t){return new Date(Date.parse(t))},n([o.Registry.type("any")],t,"any",null),n([o.Registry.type("string")],t,"string",null),n([o.Registry.type("integer")],t,"integer",null),n([o.Registry.type("float")],t,"float",null),n([o.Registry.type("boolean")],t,"boolean",null),n([o.Registry.type("date")],t,"date",null),t}();e.Types=i},3463:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.Validators=void 0;var o=r(1371),i=function(){function t(){}return t.email=function(t){var e=[];return null==t||this._emailRegex.test(t)||e.push("Please enter a valid email address"),e},t.required=function(t){var e=[];return null!=t&&0!=t.length||e.push("This field is required"),e},t.positive=function(t){var e=[];return null!=t&&t<0&&e.push("Please enter a positive number"),e},t.negative=function(t){var e=[];return null!=t&&t>0&&e.push("Please enter a negative number"),e},t._emailRegex=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,n([o.Registry.validator("email")],t,"email",null),n([o.Registry.validator("required")],t,"required",null),n([o.Registry.validator("positive")],t,"positive",null),n([o.Registry.validator("negative")],t,"negative",null),t}();e.Validators=i},8041:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.AddClassIf=void 0;var u=r(523),c=r(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onChange=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent()?this.tag.element.classList.add(this.getAttributeBinding()):this.tag.element.classList.remove(this.getAttributeBinding()),[2]}}))}))},e=i([c.Registry.attribute("vsn-add-class-if")],e)}(u.If);e.AddClassIf=l},8171:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Bind=void 0;var u=r(5092),c=r(7754),l=r(1371),f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.direction="both",e.formatter=function(t){return t},e}return o(e,t),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,new c.Tree(this.getAttributeValue()).prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[4,t.prototype.compile.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(r){switch(r.label){case 0:return this.property=this.getAttributeBinding(this.property),(e=this.getAttributeModifiers()).length&&(e.indexOf("from")>-1?this.direction="from":e.indexOf("to")>-1&&(this.direction="to")),[4,t.prototype.setup.call(this)];case 1:return r.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){var e,r,n,o;return s(this,(function(i){switch(i.label){case 0:e=this.getAttributeValue();try{r=this.tag.scope.getReference(e)}catch(t){return console.error("error",t),[2]}return n=this,[4,r.getKey()];case 1:return n.key=i.sent(),o=this,[4,r.getScope()];case 2:return o.boundScope=i.sent(),this.valueFromElement&&this.updateFrom(),this.doUpdateTo&&(this.updateTo(),this.boundScope.on("change:"+this.key,this.updateTo,this)),[4,t.prototype.connect.call(this)];case 3:return i.sent(),[2]}}))}))},e.prototype.evaluate=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.valueFromElement&&this.updateFrom(),this.updateTo(),[4,t.prototype.evaluate.call(this)];case 1:return e.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"value",{get:function(){return this.boundScope?this.boundScope.get(this.key,!1):null},set:function(t){this.boundScope&&this.boundScope.set(this.key,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueFromElement",{get:function(){return this.property?this.tag.getElementAttribute(this.property):this.tag.value},enumerable:!1,configurable:!0}),e.prototype.mutate=function(e){t.prototype.mutate.call(this,e),this.doUpdateFrom&&(!this.property&&["characterData","childList"].indexOf(e.type)>-1?this.updateFrom():this.property||"attributes"!=e.type||"value"!==e.attributeName?"attributes"===e.type&&e.attributeName==this.property&&this.updateFrom():this.updateFrom())},Object.defineProperty(e.prototype,"doUpdateFrom",{get:function(){return["both","to"].indexOf(this.direction)>-1},enumerable:!1,configurable:!0}),e.prototype.updateFrom=function(){if(this.doUpdateFrom){var t=this.valueFromElement;t="string"==typeof t&&t.trim()||t;var e=this.value;e="string"==typeof e&&e.trim()||e,(e=this.formatter(e))&&t==e||(this.value=t)}},Object.defineProperty(e.prototype,"doUpdateTo",{get:function(){return["both","from"].indexOf(this.direction)>-1},enumerable:!1,configurable:!0}),e.prototype.updateTo=function(){if(this.doUpdateTo){var t=this.formatter(this.value);this.property?this.tag.setElementAttribute(this.property,t):this.tag.value=t}},e.prototype.setFormatter=function(t){this.formatter=t},e.canDefer=!1,e=i([l.Registry.attribute("vsn-bind")],e)}(u.Attribute);e.Bind=f},5514:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ComponentAttribute=void 0;var u=r(1371),c=r(4515),l=r(2918),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,r,n;return s(this,(function(i){switch(i.label){case 0:return e=this.getAttributeBinding(),u.Registry.instance.tags.has(e)?[3,4]:[4,t.prototype.extract.call(this)];case 1:return i.sent(),r=this.getAttributeValue(),n=void 0,r?[4,u.Registry.instance.components.get(r)]:[3,3];case 2:n=i.sent(),i.label=3;case 3:n||(n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(l.Component)),u.Registry.instance.tags.register(e,n),i.label=4;case 4:return[2]}}))}))},e.scoped=!0,e=i([u.Registry.attribute("vsn-component")],e)}(c.TemplateAttribute);e.ComponentAttribute=f},3650:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ControllerAttribute=void 0;var u=r(4843),c=r(5092),l=r(1371),f=r(126),p=r(218),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registryName="controllers",e}return o(e,t),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var e,r,n;return s(this,(function(o){switch(o.label){case 0:return this.attributeKey=this.getAttributeBinding(),this.className=this.getAttributeValue(this.defaultClassName),[4,l.Registry.instance[this.registryName].get(this.className)];case 1:return e=o.sent(),this.attributeKey?(r=void 0,e.instance instanceof e?(r=e.instance.scope,e.instance instanceof p.Service&&(this.tag.dom.root.scope.addChild(r),this.tag.dom.root.scope.set(this.attributeKey,r))):(r=new u.Scope(this.tag.scope),(n=new e)instanceof f.Controller&&n.init(this.tag.scope,this.tag,this.tag.element),r.wrap(n)),this.tag.scope.set(this.attributeKey,r)):this.instantiateClass(e),[4,t.prototype.setup.call(this)];case 2:return o.sent(),[2]}}))}))},e.prototype.instantiateClass=function(t){return this.tag.wrap(t),this.tag.scope},e.canDefer=!1,e.scoped=!0,e=i([l.Registry.attribute("vsn-controller")],e)}(c.Attribute);e.ControllerAttribute=h},4893:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.DisableIf=void 0;var u=r(523),c=r(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onChange=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent()?this.tag.element.setAttribute("disabled","disabled"):this.tag.element.removeAttribute("disabled"),[2]}}))}))},e.canDefer=!1,e=i([c.Registry.attribute("vsn-disable-if")],e)}(u.If);e.DisableIf=l},6813:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Exec=void 0;var u=r(5092),c=r(7754),l=r(1371),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"code",{get:function(){return this.getAttributeValue()},enumerable:!1,configurable:!0}),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.tree=new c.Tree(this.code),[4,this.tree.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[4,t.prototype.compile.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e=this;return s(this,(function(r){switch(r.label){case 0:return this.hasModifier("defer")?(this.tag.dom.once("built",(function(){return e.execute()})),[3,3]):[3,1];case 1:return[4,this.execute()];case 2:r.sent(),r.label=3;case 3:return[4,t.prototype.extract.call(this)];case 4:return r.sent(),[2]}}))}))},e.prototype.execute=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent(),[2]}}))}))},e.canDefer=!1,e=i([l.Registry.attribute("vsn-exec")],e)}(u.Attribute);e.Exec=f},8289:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Format=void 0;var u=r(5092),c=r(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,r,n,o;return s(this,(function(i){switch(i.label){case 0:return e=this.getAttributeValue(null),r=this.getAttributeBinding(null),[4,c.Registry.instance.formats.get(e)];case 1:return n=i.sent(),o=r?"vsn-bind:"+r:"vsn-bind",[4,this.tag.getAttribute(o)];case 2:return i.sent().setFormatter(n),[4,t.prototype.extract.call(this)];case 3:return i.sent(),[2]}}))}))},e.canDefer=!1,e=i([c.Registry.attribute("vsn-format")],e)}(u.Attribute);e.Format=l},523:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.If=void 0;var u=r(5092),c=r(7754),l=r(1371),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(r){switch(r.label){case 0:return e=this.getAttributeValue(),this.tree=new c.Tree(e),[4,this.tree.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return r.sent(),[4,t.prototype.compile.call(this)];case 2:return r.sent(),[2]}}))}))},e.prototype.extract=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.evaluate()];case 1:return e.sent(),[4,t.prototype.extract.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.tree.bindToScopeChanges(this.tag.scope,this.onChange.bind(this),this.tag.dom,this.tag)];case 1:return e.sent(),[4,t.prototype.connect.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.evaluate=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.onChange()];case 1:return e.sent(),[4,t.prototype.evaluate.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.onChange=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent()?this.tag.show():this.tag.hide(),[2]}}))}))},e.canDefer=!1,e=i([l.Registry.attribute("vsn-if")],e)}(u.Attribute);e.If=f},9979:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.JSONAttribute=void 0;var u=r(1371),c=r(5092),l=r(4843),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,r,n,o,i,a,u;return s(this,(function(s){switch(s.label){case 0:e=this.getAttributeBinding();try{r=this.tag.scope.getReference(e)}catch(t){return console.error("error",t),[2]}return[4,r.getKey()];case 1:return n=s.sent(),[4,r.getScope()];case 2:return o=s.sent(),i="script"===this.tag.element.tagName.toLowerCase()?this.tag.element.innerText:unescape(this.getAttributeValue()),(a=JSON.parse(i))&&"object"==typeof a&&a.constructor===Object?((u=new l.Scope(o)).wrap(a),o.set(n,u)):o.set(n,a),[4,t.prototype.extract.call(this)];case 3:return s.sent(),[2]}}))}))},e.canDefer=!1,e=i([u.Registry.attribute("vsn-json")],e)}(c.Attribute);e.JSONAttribute=f},9215:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.KeyAbstract=void 0;var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.specificKey=null,e}return o(e,t),e.prototype.compile=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.specificKey=this.getAttributeBinding(),[4,t.prototype.compile.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.connect=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.tag.addEventHandler("keydown",this.modifiers,this.handleEvent,this),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.handleEvent=function(e){return i(this,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return r=!1,-1===[void 0,null,""].indexOf(this.specificKey)&&e.key.toLowerCase()!==this.specificKey&&e.code.toLowerCase()!==this.specificKey||(r=!0),r?[4,t.prototype.handleEvent.call(this,e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e}(r(8447).On);e.KeyAbstract=s},9459:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.KeyDown=void 0;var u=r(9215),c=r(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.tag.addEventHandler("keydown",this.modifiers,this.handleEvent,this),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e=i([c.Registry.attribute("vsn-key-down")],e)}(u.KeyAbstract);e.KeyDown=l},7459:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.KeyUp=void 0;var u=r(9215),c=r(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.tag.addEventHandler("keyup",this.modifiers,this.handleEvent,this),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e=i([c.Registry.attribute("vsn-key-up")],e)}(u.KeyAbstract);e.KeyUp=l},1898:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.LazyAttribute=void 0;var u=r(1371),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.loaded=!1,e}return o(e,t),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,t.prototype.setup.call(this)];case 1:return e.sent(),this.eleTop=this.tag.element.getBoundingClientRect().top,[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this.modifiers.has("active")||this.modifiers.add("passive"),this.tag.addEventHandler("scroll",this.modifiers,this.handleEvent,this),[4,this.handleEvent()];case 1:return t.sent(),[2]}}))}))},e.prototype.handleEvent=function(e){return a(this,void 0,void 0,(function(){return s(this,(function(r){switch(r.label){case 0:return!this.loaded&&window.scrollY+window.outerHeight>=this.eleTop?(this.loaded=!0,[4,t.prototype.handleEvent.call(this,e)]):[3,2];case 1:r.sent(),this.tag.removeEventHandler("scroll",this.handleEvent,this),r.label=2;case 2:return[2]}}))}))},e=i([u.Registry.attribute("vsn-lazy")],e)}(r(8447).On);e.LazyAttribute=c},2496:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.List=void 0;var c=r(5092),l=r(712),f=r(8572),p=r(2712),h=r(1371),y=r(9033),d=r(4843),v=r(1525),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var r;return o(e,t),r=e,e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var e,r,n;return s(this,(function(o){switch(o.label){case 0:return this.tag.element.children.length>0?(e=this.tag.element.children[0],[4,this.tag.dom.getTagForElement(e)]):[3,2];case 1:return r=o.sent(),e&&(e.hasAttribute("vsn-template")?(r.parentTag=this.tag,e.removeAttribute("vsn-template"),this.tag.element.removeChild(e),this.template=e):this.template=e.cloneNode(!0)),[3,4];case 2:return this.tag.hasRawAttribute("template")?[4,y.DOM.instance.exec(this.tag.getRawAttributeValue("template"))]:[3,4];case 3:(n=o.sent())instanceof Array&&1===n.length&&(n=n[0]),this.template=n.element.content.cloneNode(!0),o.label=4;case 4:return[4,t.prototype.setup.call(this)];case 5:return o.sent(),[2]}}))}))},e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,r,n,o,i,a,u,c=this;return s(this,(function(s){switch(s.label){case 0:return e=this.getAttributeBinding("items"),[4,(r=this.tag.scope.getReference(e)).getScope()];case 1:return n=s.sent(),[4,r.getKey()];case 2:return o=s.sent(),i=n.get(o),[4,this.addExistingItems(i)];case 3:if(s.sent(),n.on("change:"+o,(function(t){(null==t?void 0:t.oldValue)&&(t.oldValue instanceof f.WrappedArray&&(t.oldValue.map((function(t){c.remove(t)})),t.oldValue.offWithContext("add",c),t.oldValue.offWithContext("remove",c)),c.addExistingItems(t.value))})),!this.tag.hasRawAttribute("initial-items"))return[3,7];a=parseInt(this.tag.getRawAttributeValue("initial-items")),u=0,s.label=4;case 4:return u<a?[4,this.add({})]:[3,7];case 5:s.sent(),s.label=6;case 6:return u++,[3,4];case 7:return[4,t.prototype.extract.call(this)];case 8:return s.sent(),[2]}}))}))},e.prototype.addExistingItems=function(t){var e;return a(this,void 0,void 0,(function(){var r,n,o,i,a,c,l,h,y,d,v,b,_,g,w,m,O,x;return s(this,(function(s){switch(s.label){case 0:if(this.items=t||new f.WrappedArray,(null===(e=this.tags)||void 0===e?void 0:e.length)>0)try{for(r=u(this.tags),n=r.next();!n.done;n=r.next())(d=n.value).deconstruct(),d.removeFromDOM()}catch(t){_={error:t}}finally{try{n&&!n.done&&(g=r.return)&&g.call(r)}finally{if(_)throw _.error}}if(this.tags=this.tags||[],this.tags.length=0,!t)return[3,8];s.label=1;case 1:s.trys.push([1,6,7,8]),o=u(t),i=o.next(),s.label=2;case 2:return i.done?[3,5]:(a=i.value,[4,this.add(a)]);case 3:s.sent(),s.label=4;case 4:return i=o.next(),[3,2];case 5:return[3,8];case 6:return c=s.sent(),w={error:c},[3,8];case 7:try{i&&!i.done&&(m=o.return)&&m.call(o)}finally{if(w)throw w.error}return[7];case 8:s.trys.push([8,13,14,15]),l=u(Array.from(this.tag.element.querySelectorAll("*"))),h=l.next(),s.label=9;case 9:return h.done?[3,12]:(y=h.value,p.ElementHelper.hasVisionAttribute(y,"vsn-list-item")?[4,this.tag.dom.getTagForElement(y)]:[3,11]);case 10:(d=s.sent())&&(this.tags.push(d),v=d.scope.get(this.listItemName),this.items.push((null==v?void 0:v.wrapped)||v||d.scope.wrapped||d.scope)),s.label=11;case 11:return h=l.next(),[3,9];case 12:return[3,15];case 13:return b=s.sent(),O={error:b},[3,15];case 14:try{h&&!h.done&&(x=l.return)&&x.call(l)}finally{if(O)throw O.error}return[7];case 15:return this.items instanceof f.WrappedArray||(this.items=new f.WrappedArray(this.items)),this.items.on("add",this.add,this),this.items.on("remove",this.remove,this),this.tag.scope.set("add",this.add.bind(this)),this.tag.scope.set("remove",this.remove.bind(this)),[2]}}))}))},Object.defineProperty(e.prototype,"listItemName",{get:function(){return this.tag.getRawAttributeValue("list-item-name","item")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"listItemModel",{get:function(){return this.tag.getRawAttributeValue("list-item-model")},enumerable:!1,configurable:!0}),e.prototype.remove=function(t){for(var e=0;e<this.tags.length;e++){var r=this.tags[e],n=r.scope.get(this.listItemName);if([n,n.data,n.wrapped].indexOf(t)>-1)return r.deconstruct(),r.removeFromDOM(),void this.tags.splice(e,1)}},e.prototype.add=function(t){return a(this,void 0,void 0,(function(){var e,r,n,o,i;return s(this,(function(a){switch(a.label){case 0:return e=this.template.cloneNode(!0),delete(r=e instanceof DocumentFragment?e.children[0]:e)[l.Tag.TaggedVariable],n=t instanceof v.ScopeData?t.getData():Object.assign({},t),[4,this.tag.dom.buildTag(r,!0)];case 1:return o=a.sent(),[4,this.setupTagScope(o,t)];case 2:return a.sent(),this.tag.element.appendChild(r),[4,this.tag.dom.setupTags([o])];case 3:return a.sent(),[4,this.tag.dom.buildFrom(this.tag.element)];case 4:return a.sent(),(i=o.scope.get(this.listItemName))instanceof d.Scope&&n&&i.data.setData(n),this.tags.push(o),this.tag.dispatch("add",t),[2]}}))}))},e.prototype.setupTagScope=function(t,e){return a(this,void 0,void 0,(function(){var n,o,i,a=this;return s(this,(function(s){switch(s.label){case 0:return t.meta[r.MetaItemSetupFlag]?[2]:(t.createScope(!0),n=new d.Scope(t.scope),(o=this.listItemModel)?[4,h.Registry.instance.models.get(o)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return i&&(e&&e instanceof i||(e=new i(e),this.tag.once("$built",(function(){e.$built&&e.$built(a.tag,a.tag.scope,a.tag.element)})))),i&&(n.data instanceof i||n.wrapped instanceof i)||(n.wrapped&&n.unwrap(),n.wrap(e,!0,!0)),t.scope.set(this.listItemName,n),t.meta[r.MetaItemSetupFlag]=!0,[2]}}))}))},e.MetaItemSetupFlag="vsn-list-item-setup",e.canDefer=!1,e.scoped=!0,e=r=i([h.Registry.attribute("vsn-list")],e)}(c.Attribute);e.List=b},6846:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ListItem=void 0;var u=r(5092),c=r(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var r;return o(e,t),r=e,Object.defineProperty(e.prototype,"list",{get:function(){return this._list},enumerable:!1,configurable:!0}),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:if(this._list=this.tag.findAncestorByAttribute("vsn-list"),!this._list)throw Error(r.ERROR_NO_PARENT);return[4,this.getListAttribute()];case 1:return[4,e.sent().setupTagScope(this.tag,{})];case 2:return e.sent(),[4,t.prototype.setup.call(this)];case 3:return e.sent(),[2]}}))}))},e.prototype.getListAttribute=function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this._list.getAttribute("vsn-list")];case 1:return[2,t.sent()]}}))}))},e.canDefer=!1,e.scoped=!0,e.ERROR_NO_PARENT="Cannot find list parent.",e=r=i([c.Registry.attribute("vsn-list-item")],e)}(u.Attribute);e.ListItem=l},274:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.ListItemModel=void 0;var a=r(1371),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.canDefer=!1,e=i([a.Registry.attribute("vsn-list-item-model")],e)}(r(5092).Attribute);e.ListItemModel=s},3329:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.ModelAttribute=void 0;var a=r(3650),s=r(1371),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registryName="models",e}return o(e,t),e.canDefer=!1,e=i([s.Registry.attribute("vsn-model")],e)}(a.ControllerAttribute);e.ModelAttribute=u},1576:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Name=void 0;var u=r(5092),c=r(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var t;return s(this,(function(e){return(t=this.tag.scope.parentScope)&&t.set(this.getAttributeValue(),this.tag.scope),[2]}))}))},e.canDefer=!1,e.scoped=!0,e=i([c.Registry.attribute("vsn-name")],e)}(u.Attribute);e.Name=l},8447:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.On=void 0;var u=r(5092),c=r(7754),l=r(1371),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTree=function(){return a(this,void 0,void 0,(function(){var t;return s(this,(function(e){switch(e.label){case 0:return this.handler?[3,2]:(t=this.getAttributeValue(),this.handler=new c.Tree(t),[4,this.handler.prepare(this.tag.scope,this.tag.dom,this.tag)]);case 1:e.sent(),e.label=2;case 2:return[2,this.handler]}}))}))},e.prototype.handleEvent=function(t){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.getTree()];case 1:return[4,t.sent().evaluate(this.tag.scope,this.tag.dom,this.tag)];case 2:return t.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.tag.addEventHandler(this.getAttributeBinding(),this.modifiers,this.handleEvent,this),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e.WindowEvents=["abort","afterprint","beforeprint","error","hashchange","load","popstate","resize","scroll","unload"],e=i([l.Registry.attribute("vsn-on")],e)}(u.Attribute);e.On=f},6338:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.Referenced=void 0;var a=r(1371),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e=i([a.Registry.attribute("vsn-ref")],e)}(r(5092).Attribute);e.Referenced=s},6957:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.RootAttribute=void 0;var c=r(5092),l=r(4264),f=r(1371),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var e,r,n,o,i,a;return s(this,(function(s){switch(s.label){case 0:this.tag.scope.set("$mobile",l.VisionHelper.isMobile());try{for(e=u(f.Registry.instance.functions.keys),r=e.next();!r.done;r=e.next())n=r.value,o=f.Registry.instance.functions.get(n),this.tag.scope.set(n,o)}catch(t){i={error:t}}finally{try{r&&!r.done&&(a=e.return)&&a.call(e)}finally{if(i)throw i.error}}return f.Registry.instance.functions.on("register",this.registerFunction,this),[4,t.prototype.setup.call(this)];case 1:return s.sent(),[2]}}))}))},e.prototype.registerFunction=function(t,e){return a(this,void 0,void 0,(function(){return s(this,(function(r){return this.tag.scope.set(t,e),[2]}))}))},e.canDefer=!1,e.scoped=!0,e=i([f.Registry.attribute("vsn-root")],e)}(c.Attribute);e.RootAttribute=p},5930:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeAttribute=void 0;var c=r(5092),l=r(1371),f=r(7754),p=r(4843),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(r){switch(r.label){case 0:return(e=this.getAttributeValue())?(this.tree=new f.Tree(e),[4,this.tree.prepare(this.tag.scope,this.tag.dom,this.tag)]):[3,2];case 1:r.sent(),r.label=2;case 2:return[4,t.prototype.compile.call(this)];case 3:return r.sent(),[2]}}))}))},e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,r,n,o,i,a,c;return s(this,(function(s){switch(s.label){case 0:return this.tree?(e=this.getAttributeBinding(),[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)]):[3,2];case 1:if(!((r=s.sent())instanceof p.Scope))throw new Error("vsn-scope value must be an object, got "+typeof r);if(e)this.tag.scope.set(e,r);else try{for(n=u(r.data.keys),o=n.next();!o.done;o=n.next())i=o.value,this.tag.scope.set(i,r.data[i])}catch(t){a={error:t}}finally{try{o&&!o.done&&(c=n.return)&&c.call(n)}finally{if(a)throw a.error}}s.label=2;case 2:return[4,t.prototype.extract.call(this)];case 3:return s.sent(),[2]}}))}))},e.canDefer=!1,e.scoped=!0,e=i([l.Registry.attribute("vsn-scope")],e)}(c.Attribute);e.ScopeAttribute=h},1085:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScopeChange=void 0;var u=r(5092),c=r(7754),l=r(1371),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(r){switch(r.label){case 0:return e=this.getAttributeValue(),this.handler=new c.Tree(e),[4,this.handler.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return r.sent(),[4,t.prototype.compile.call(this)];case 2:return r.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){var e,r,n,o,i;return s(this,(function(a){switch(a.label){case 0:return e=this.getAttributeBinding(),[4,(r=this.tag.scope.getReference(e,!1)).getScope()];case 1:return o=(n=a.sent()).on,i="change:",[4,r.getKey()];case 2:return o.apply(n,[i+a.sent(),this.handleEvent.bind(this)]),[4,t.prototype.connect.call(this)];case 3:return a.sent(),[2]}}))}))},e.prototype.handleEvent=function(t){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,this.handler.evaluate(this.tag.scope,this.tag.dom,this.tag)];case 1:return t.sent(),[2]}}))}))},e.canDefer=!1,e=i([l.Registry.attribute("vsn-scope-change")],e)}(u.Attribute);e.ScopeChange=f},8616:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.ScriptAttribute=void 0;var a=r(1371),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"code",{get:function(){return this.tag.element.innerText},enumerable:!1,configurable:!0}),e=i([a.Registry.attribute("vsn-script")],e)}(r(6813).Exec);e.ScriptAttribute=s},199:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceAttribute=void 0;var a=r(3650),s=r(1371),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registryName="services",e.assignToParent=!1,e}return o(e,t),e.prototype.instantiateClass=function(t){return t.instance.scope},e.canDefer=!1,e=i([s.Registry.attribute("vsn-service")],e)}(a.ControllerAttribute);e.ServiceAttribute=u},3070:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.SetAttribute=void 0;var c=r(5092),l=r(1371),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.boundScope?this.boundScope.get(this.key,!1):null},set:function(t){this.boundScope&&this.boundScope.set(this.key,t)},enumerable:!1,configurable:!0}),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var t,e,r,n,o,i,a,c,f;return s(this,(function(s){switch(s.label){case 0:this.property=this.getAttributeBinding();try{t=this.tag.scope.getReference(this.property)}catch(t){return[2]}return e=this,[4,t.getKey()];case 1:return e.key=s.sent(),r=this,[4,t.getScope()];case 2:r.boundScope=s.sent(),n=this.getAttributeValue(null);try{for(o=u(this.getAttributeModifiers()),i=o.next();!i.done;i=o.next())if(a=i.value,l.Registry.instance.types.getSynchronous(a)){this.boundScope.setType(this.key,a);break}}catch(t){c={error:t}}finally{try{i&&!i.done&&(f=o.return)&&f.call(o)}finally{if(c)throw c.error}}return this.boundScope.set(this.key,n),[2]}}))}))},e.canDefer=!1,e=i([l.Registry.attribute("vsn-set")],e)}(c.Attribute);e.SetAttribute=f},6032:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.StandardAttribute=void 0;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.tag.isMagicAttribute(this.key)||this.tag.element.hasAttribute(this.attributeName)||this.tag.element.setAttribute(this.attributeName,""),[4,t.prototype.setup.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.extract=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.updateFrom(),[4,t.prototype.extract.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.connect=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this.tag.scope.on("change:"+this.key,this.updateTo.bind(this)),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.mutate=function(e){t.prototype.mutate.call(this,e),this.updateFrom()},Object.defineProperty(e.prototype,"needsToBeSynced",{get:function(){var t=this.tag.scope.get(this.key)||"",e=this.value;return t&&t.trim&&(t=t.trim()),e&&e.trim&&(e=e.trim()),t instanceof Array?!(e instanceof Array&&t.length===e.length)||t.map((function(t){return e.indexOf(t)>-1})).indexOf(!1)>-1:t!==e},enumerable:!1,configurable:!0}),e.prototype.updateTo=function(){this.needsToBeSynced&&(this.value=this.tag.scope.get(this.key))},e.prototype.updateFrom=function(){this.needsToBeSynced&&this.tag.scope.set(this.key,this.value)},Object.defineProperty(e.prototype,"key",{get:function(){return"@"+this.attributeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.tag.getElementAttribute(this.tag.isMagicAttribute(this.key)?this.key:this.attributeName)},set:function(t){this.tag.setElementAttribute(this.tag.isMagicAttribute(this.key)?this.key:this.attributeName,t)},enumerable:!1,configurable:!0}),e.canDefer=!1,e}(r(5092).Attribute);e.StandardAttribute=s},1857:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.StyleAttribute=void 0;var c=r(1371),l=r(5092),f=r(4843),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setup=function(){return a(this,void 0,void 0,(function(){var e,r,n;return s(this,(function(o){switch(o.label){case 0:return(e=this.getAttributeValue()||null)?(this.scopeRef=this.tag.scope.getReference(e,!0),[4,this.scopeRef.getScope()]):[3,3];case 1:return r=o.sent(),[4,this.scopeRef.getKey()];case 2:return n=o.sent(),this.styleScope=r.get(n),this.styleScope||(this.styleScope=new f.Scope(r),r.set(n,this.styleScope)),[3,4];case 3:this.styleScope=this.tag.scope,o.label=4;case 4:return[4,t.prototype.setup.call(this)];case 5:return o.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.styleScope.on("change",this.handleEvent.bind(this)),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.extract=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.updateFrom(),this.updateTo(),[4,t.prototype.extract.call(this)];case 1:return e.sent(),[2]}}))}))},e.prototype.updateFrom=function(){var t=["cssText","getPropertyPriority","getPropertyValue","removeProperty","setProperty","length"];for(var e in this.tag.style)if(!(t.indexOf(e)>-1||isFinite(e))){var r=this.tag.style[e],n="$"+e;r&&r!==this.styleScope.get(n)&&this.styleScope.set(n,r)}},e.prototype.updateTo=function(){var t,e;try{for(var r=u(this.styleScope.keys),n=r.next();!n.done;n=r.next()){var o=n.value,i=this.styleScope.get(o);if(o.startsWith("$")){var a=o.substr(1);this.tag.element.style[a]=i.value}}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e.prototype.mutate=function(e){t.prototype.mutate.call(this,e),this.updateFrom()},e.prototype.handleEvent=function(t,e){return a(this,void 0,void 0,(function(){var r;return s(this,(function(n){return t.startsWith("$")&&(r=t.substr(1),e.value!==e.previousValue&&(this.tag.element.style[r]=e.value)),[2]}))}))},e.canDefer=!1,e=i([c.Registry.attribute("vsn-styles")],e)}(l.Attribute);e.StyleAttribute=p},4515:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.TemplateAttribute=void 0;var u=r(1371),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return u.Registry.instance.templates.register(this.getAttributeBinding(),this.tag.element),[4,t.prototype.extract.call(this)];case 1:return e.sent(),[2]}}))}))},e.canDefer=!1,e=i([u.Registry.attribute("vsn-template")],e)}(r(5092).Attribute);e.TemplateAttribute=c},8696:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypeAttribute=void 0;var u=r(5092),c=r(1371),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.extract=function(){return a(this,void 0,void 0,(function(){var e,r,n,o,i;return s(this,(function(a){switch(a.label){case 0:e=this.getAttributeBinding(),r=this.getAttributeValue();try{n=this.tag.scope.getReference(e)}catch(t){return console.error("error",t),[2]}return[4,n.getScope()];case 1:return i=(o=a.sent()).setType,[4,n.getKey()];case 2:return i.apply(o,[a.sent(),r]),[4,t.prototype.extract.call(this)];case 3:return a.sent(),[2]}}))}))},e.canDefer=!1,e=i([c.Registry.attribute("vsn-type")],e)}(u.Attribute);e.TypeAttribute=l},2103:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.XHRAttribute=void 0;var c=r(1371),l=r(5092),f=r(7754),p=r(4264),h=r(4296),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"code",{get:function(){return this.getAttributeValue()},enumerable:!1,configurable:!0}),e.prototype.compile=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.tree=new f.Tree(this.code),[4,this.tree.prepare(this.tag.scope,this.tag.dom,this.tag)];case 1:return e.sent(),[4,t.prototype.compile.call(this)];case 2:return e.sent(),[2]}}))}))},e.prototype.connect=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.isForm?this.tag.addEventHandler("submit",this.modifiers,this.handleEvent,this):this.isAnchor&&this.tag.addEventHandler("click",this.modifiers,this.handleEvent,this),[4,t.prototype.connect.call(this)];case 1:return e.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"isForm",{get:function(){return"FORM"===this.tag.element.tagName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAnchor",{get:function(){return"A"===this.tag.element.tagName},enumerable:!1,configurable:!0}),e.prototype.handleEvent=function(t){return a(this,void 0,void 0,(function(){var e,r,n,o,i,a,c,l,f,y,d,v;return s(this,(function(s){if(t.preventDefault(),this.request)return[2];if(this.request=new XMLHttpRequest,this.isForm){if(r=this.tag.element.getAttribute("action"),e=(e=this.getAttributeBinding(this.tag.element.getAttribute("method"))).toUpperCase(),n=new FormData(this.tag.element),"GET"==e){o={},i=Array.from(n.keys());try{for(a=u(i),c=a.next();!c.done;c=a.next())y=c.value,o[y]=n.get(y)}catch(t){d={error:t}}finally{try{c&&!c.done&&(v=a.return)&&v.call(a)}finally{if(d)throw d.error}}r=p.VisionHelper.getUriWithParams(r,o),n=null}}else this.isAnchor&&(r=this.tag.element.getAttribute("href"),e=(e=this.getAttributeBinding("GET")).toUpperCase(),["POST","PUT"].indexOf(e)>-1&&(n=new FormData));for(y in this.request.addEventListener("loadend",this.handleXHREvent.bind(this)),this.request.addEventListener("error",this.handleXHREvent.bind(this)),this.request.open(e,r),this.request.setRequestHeader("X-Requested-With","XMLHttpRequest"),l=h.XHR.instance.getHeaders())this.request.setRequestHeader(y,l[y]);if(n instanceof FormData&&(f=h.XHR.instance.getFormData()))for(y in f)n.append(y,f[y]);return this.request.send(n),[2]}))}))},e.prototype.handleXHREvent=function(t){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this.tag.scope.set("status",this.request.status),this.tag.scope.set("response",this.request.response),this.request.status>=200&&this.request.status<300?[4,this.tree.evaluate(this.tag.scope,this.tag.dom,this.tag)]:[3,2];case 1:return t.sent(),this.tag.element.dispatchEvent(new Event("xhr-success")),[3,3];case 2:this.request.status>=300&&this.request.status<400?this.tag.element.dispatchEvent(new Event("xhr-redirect")):this.request.status>=400&&this.request.status<500?(this.tag.element.dispatchEvent(new Event("xhr-client-error")),this.tag.element.dispatchEvent(new Event("xhr-error"))):(this.tag.element.dispatchEvent(new Event("xhr-server-error")),this.tag.element.dispatchEvent(new Event("xhr-error"))),t.label=3;case 3:return this.request=null,[2]}}))}))},e.canDefer=!1,e=i([c.Registry.attribute("vsn-xhr")],e)}(l.Attribute);e.XHRAttribute=y},2132:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XHRAttribute=e.TypeAttribute=e.TemplateAttribute=e.StyleAttribute=e.StandardAttribute=e.SetAttribute=e.ServiceAttribute=e.ScriptAttribute=e.ScopeChange=e.ScopeAttribute=e.RootAttribute=e.Referenced=e.On=e.Name=e.ModelAttribute=e.ListItemModel=e.ListItem=e.List=e.LazyAttribute=e.KeyUp=e.KeyDown=e.JSONAttribute=e.If=e.Format=e.Exec=e.DisableIf=e.ControllerAttribute=e.ComponentAttribute=e.Bind=e.AddClassIf=void 0;var n=r(8041);Object.defineProperty(e,"AddClassIf",{enumerable:!0,get:function(){return n.AddClassIf}});var o=r(8171);Object.defineProperty(e,"Bind",{enumerable:!0,get:function(){return o.Bind}});var i=r(5514);Object.defineProperty(e,"ComponentAttribute",{enumerable:!0,get:function(){return i.ComponentAttribute}});var a=r(3650);Object.defineProperty(e,"ControllerAttribute",{enumerable:!0,get:function(){return a.ControllerAttribute}});var s=r(4893);Object.defineProperty(e,"DisableIf",{enumerable:!0,get:function(){return s.DisableIf}});var u=r(6813);Object.defineProperty(e,"Exec",{enumerable:!0,get:function(){return u.Exec}});var c=r(8289);Object.defineProperty(e,"Format",{enumerable:!0,get:function(){return c.Format}});var l=r(523);Object.defineProperty(e,"If",{enumerable:!0,get:function(){return l.If}});var f=r(9979);Object.defineProperty(e,"JSONAttribute",{enumerable:!0,get:function(){return f.JSONAttribute}});var p=r(9459);Object.defineProperty(e,"KeyDown",{enumerable:!0,get:function(){return p.KeyDown}});var h=r(7459);Object.defineProperty(e,"KeyUp",{enumerable:!0,get:function(){return h.KeyUp}});var y=r(1898);Object.defineProperty(e,"LazyAttribute",{enumerable:!0,get:function(){return y.LazyAttribute}});var d=r(2496);Object.defineProperty(e,"List",{enumerable:!0,get:function(){return d.List}});var v=r(6846);Object.defineProperty(e,"ListItem",{enumerable:!0,get:function(){return v.ListItem}});var b=r(274);Object.defineProperty(e,"ListItemModel",{enumerable:!0,get:function(){return b.ListItemModel}});var _=r(3329);Object.defineProperty(e,"ModelAttribute",{enumerable:!0,get:function(){return _.ModelAttribute}});var g=r(1576);Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return g.Name}});var w=r(8447);Object.defineProperty(e,"On",{enumerable:!0,get:function(){return w.On}});var m=r(6338);Object.defineProperty(e,"Referenced",{enumerable:!0,get:function(){return m.Referenced}});var O=r(6957);Object.defineProperty(e,"RootAttribute",{enumerable:!0,get:function(){return O.RootAttribute}});var x=r(5930);Object.defineProperty(e,"ScopeAttribute",{enumerable:!0,get:function(){return x.ScopeAttribute}});var S=r(1085);Object.defineProperty(e,"ScopeChange",{enumerable:!0,get:function(){return S.ScopeChange}});var T=r(8616);Object.defineProperty(e,"ScriptAttribute",{enumerable:!0,get:function(){return T.ScriptAttribute}});var E=r(199);Object.defineProperty(e,"ServiceAttribute",{enumerable:!0,get:function(){return E.ServiceAttribute}});var A=r(3070);Object.defineProperty(e,"SetAttribute",{enumerable:!0,get:function(){return A.SetAttribute}});var P=r(6032);Object.defineProperty(e,"StandardAttribute",{enumerable:!0,get:function(){return P.StandardAttribute}});var j=r(1857);Object.defineProperty(e,"StyleAttribute",{enumerable:!0,get:function(){return j.StyleAttribute}});var k=r(4515);Object.defineProperty(e,"TemplateAttribute",{enumerable:!0,get:function(){return k.TemplateAttribute}});var N=r(8696);Object.defineProperty(e,"TypeAttribute",{enumerable:!0,get:function(){return N.TypeAttribute}});var R=r(2103);Object.defineProperty(e,"XHRAttribute",{enumerable:!0,get:function(){return R.XHRAttribute}})},4296:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.XHR=void 0;var a=r(1371),s=r(218),u=r(9380),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.siteHeaders={},e.siteFormData={},e}return o(e,t),e.prototype.addHeader=function(t,e,r){void 0===r&&(r=null),null===r&&(r=window.location.hostname),this.siteHeaders[r]||(this.siteHeaders[r]={}),this.siteHeaders[r][t]=e},e.prototype.addFormData=function(t,e,r){void 0===r&&(r=null),null===r&&(r=window.location.hostname),this.siteFormData[r]||(this.siteFormData[r]={}),this.siteFormData[r][t]=e},e.prototype.getHeaders=function(t){return void 0===t&&(t=null),null===t&&(t=window.location.hostname),this.siteHeaders[t]},e.prototype.getFormData=function(t){return void 0===t&&(t=null),null===t&&(t=window.location.hostname),this.siteFormData[t]},i([u.property()],e.prototype,"siteHeaders",void 0),i([u.property()],e.prototype,"siteFormData",void 0),e=i([a.Registry.service("XHR")],e)}(s.Service);e.XHR=c},7389:()=>{!function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var t=HTMLElement,e=function(){return Reflect.construct(t,[],this.constructor)};window.HTMLElement=e,HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}()},6099:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceDemo=void 0,o(r(3145),e);var i=r(3365);Object.defineProperty(e,"ServiceDemo",{enumerable:!0,get:function(){return i.ServiceDemo}})},3365:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},a=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceDemo=void 0;var u=r(3145),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.count=0,e}return o(e,t),e.prototype.add=function(t){return void 0===t&&(t=1),a(this,void 0,void 0,(function(){return s(this,(function(e){return[2,this.count+=t]}))}))},i([u.property(u.IntegerProperty)],e.prototype,"count",void 0),e=i([u.Registry.service("ServiceDemo")],e)}(u.Service);e.ServiceDemo=c},2712:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ElementHelper=void 0;var o=r(2947),i=function(){function t(){}return t.hasVisionAttribute=function(t,e){var r,i;if(void 0===e&&(e="vsn-"),!t.attributes||t.attributes.length<=0)return!1;for(var a=0;a<t.attributes.length;a++){if(t.attributes[a].name.startsWith(e))return!0}try{for(var s=n(Array.from(t.classList)),u=s.next();!u.done;u=s.next()){var c=u.value;if(o.ClassNode.isClass(c))return!0}}catch(t){r={error:t}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return!1},t.normalizeElementID=function(t){return t?t.replace(/-([a-zA-Z0-9])/g,(function(t){return t[1].toUpperCase()})):null},t}();e.ElementHelper=i},4264:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VisionHelper=void 0;var r=function(){function t(){}return t.isConstructor=function(t){return t&&t.hasOwnProperty("prototype")&&!!t.prototype&&!!t.prototype.constructor&&!!t.prototype.constructor.name},Object.defineProperty(t,"document",{get:function(){return"object"==typeof document?document:null},enumerable:!1,configurable:!0}),Object.defineProperty(t,"window",{get:function(){return"object"==typeof window?window:null},enumerable:!1,configurable:!0}),t.isMobile=function(){var e,r=!1;return navigator&&t.window&&(e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(r=!0)),r},Object.defineProperty(t,"inDevelopment",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t,"doBenchmark",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t,"inLegacy",{get:function(){return"es5"===process.env.BUILD_TARGET},enumerable:!1,configurable:!0}),t.getUriWithParams=function(t,e){var r=window.location.origin;!t.startsWith(".")&&t.startsWith("/")||(r+=window.location.pathname);var n=new URL(t,r),o=new URLSearchParams(n.search);for(var i in e)void 0!==e[i]&&o.set(i,e[i]);return n.search=o.toString(),n.toString()},t.nice=function(e,r){void 0===r&&(r=100),t.window&&window.requestIdleCallback?window.requestIdleCallback(e):setTimeout(e,r)},Object.defineProperty(t,"wasmSupport",{get:function(){try{if("object"==typeof WebAssembly&&"function"==typeof WebAssembly.instantiate){var t=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(t instanceof WebAssembly.Module)return new WebAssembly.Instance(t)instanceof WebAssembly.Instance}}catch(t){}return!1},enumerable:!1,configurable:!0}),t}();e.VisionHelper=r},8412:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="0.1.124"},3145:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),a=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||i(e,t,r)},s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},u=this&&this.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.vision=e.Tag=e.SimplePromise=e.MessageList=e.EventDispatcher=e.Service=e.Model=e.Controller=e.WrappedArray=e.ScopeReference=e.Scope=e.DOM=e.Validators=e.Types=e.Formats=e.Vision=void 0;var c=r(9033),l=r(8572),f=r(1371),p=r(6417),h=r(4264),y=r(7754),d=r(7677),v=r(5559),b=r(1469),_=r(8412);r(7389);var g=function(t){function e(){var r=t.call(this)||this;return r.registry=f.Registry.instance,r.config=p.Configuration.instance,f.Registry.instance.tags.on("register",r.defineComponent,r),h.VisionHelper.document?document.addEventListener("DOMContentLoaded",r.setup.bind(r)):console.warn("No dom, running in CLI mode."),r.registry.functions.register("log",console.log),r.registry.functions.register("warn",console.warn),r.registry.functions.register("error",console.error),r.registry.functions.register("info",console.info),r.registry.functions.register("wait",(function(t){return s(r,void 0,void 0,(function(){return u(this,(function(e){return[2,new Promise((function(e){setTimeout(e,1e3*t)}))]}))}))})),r.registry.models.register("Object",Object),r.registry.controllers.register("WrappedArray",l.WrappedArray),r.registry.controllers.register("Data",b.DynamicScopeData),h.VisionHelper.window&&(window.Vision=e,window.Registry=f.Registry,window.vision=window.vsn=r,window.Tree=y.Tree,window.$=d.Query,h.VisionHelper.window.dispatchEvent(new Event("vsn"))),r}return o(e,t),e.prototype.defineComponent=function(t,e){c.DOM.instance.built?customElements.define(t,e):c.DOM.instance.once("built",(function(){customElements.define(t,e)}))},Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),e.prototype.exec=function(t){return s(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,this._dom.exec(t)];case 1:return[2,e.sent()]}}))}))},e.prototype.setup=function(){return s(this,void 0,void 0,(function(){var t,e,r;return u(this,(function(n){switch(n.label){case 0:return document.body.setAttribute("vsn-root",""),this._dom=c.DOM.instance,t=(new Date).getTime(),[4,this._dom.buildFrom(document,!0)];case 1:return n.sent(),e=(new Date).getTime(),r=e-t,console.info("Took "+r+"ms to start up VisionJS. https://www.vsnjs.com/","v"+_.VERSION),[2]}}))}))},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e),e._instance},enumerable:!1,configurable:!0}),e}(v.EventDispatcher);e.Vision=g,a(r(1371),e),a(r(2132),e),a(r(9618),e),a(r(5092),e),a(r(7754),e);var w=r(8001);Object.defineProperty(e,"Formats",{enumerable:!0,get:function(){return w.Formats}});var m=r(3398);Object.defineProperty(e,"Types",{enumerable:!0,get:function(){return m.Types}});var O=r(3463);Object.defineProperty(e,"Validators",{enumerable:!0,get:function(){return O.Validators}});var x=r(9033);Object.defineProperty(e,"DOM",{enumerable:!0,get:function(){return x.DOM}});var S=r(4843);Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return S.Scope}});var T=r(414);Object.defineProperty(e,"ScopeReference",{enumerable:!0,get:function(){return T.ScopeReference}});var E=r(8572);Object.defineProperty(e,"WrappedArray",{enumerable:!0,get:function(){return E.WrappedArray}});var A=r(126);Object.defineProperty(e,"Controller",{enumerable:!0,get:function(){return A.Controller}});var P=r(5453);Object.defineProperty(e,"Model",{enumerable:!0,get:function(){return P.Model}});var j=r(218);Object.defineProperty(e,"Service",{enumerable:!0,get:function(){return j.Service}});var k=r(5559);Object.defineProperty(e,"EventDispatcher",{enumerable:!0,get:function(){return k.EventDispatcher}});var N=r(9188);Object.defineProperty(e,"MessageList",{enumerable:!0,get:function(){return N.MessageList}});var R=r(9045);Object.defineProperty(e,"SimplePromise",{enumerable:!0,get:function(){return R.SimplePromise}});var C=r(712);Object.defineProperty(e,"Tag",{enumerable:!0,get:function(){return C.Tag}}),e.vision=g.instance}},e={};(function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports})(6099)})();