pseudo-dom 0.1.0

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 (125) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +1029 -0
  3. package/browser/pseudo-dom.js +5219 -0
  4. package/browser/pseudo-dom.min.js +1 -0
  5. package/dist/classes/PseudoEventListener.d.ts +96 -0
  6. package/dist/classes/PseudoEventListener.js +148 -0
  7. package/dist/classes/PseudoEventListener.min.js +1 -0
  8. package/dist/classes/PseudoHTMLDocument.d.ts +35 -0
  9. package/dist/classes/PseudoHTMLDocument.js +77 -0
  10. package/dist/classes/PseudoHTMLDocument.min.js +1 -0
  11. package/dist/classes/PseudoNodeList.d.ts +34 -0
  12. package/dist/classes/PseudoNodeList.js +65 -0
  13. package/dist/classes/PseudoNodeList.min.js +1 -0
  14. package/dist/classes.d.ts +20 -0
  15. package/dist/classes.js +31 -0
  16. package/dist/classes.min.js +1 -0
  17. package/dist/factories/generateDocument.d.ts +11 -0
  18. package/dist/factories/generateDocument.js +65 -0
  19. package/dist/factories/generateDocument.min.js +1 -0
  20. package/dist/factories/generateNode.d.ts +40 -0
  21. package/dist/factories/generateNode.js +118 -0
  22. package/dist/factories/generateNode.min.js +1 -0
  23. package/dist/factories/generateNodeList.d.ts +9 -0
  24. package/dist/factories/generateNodeList.js +13 -0
  25. package/dist/factories/generateNodeList.min.js +1 -0
  26. package/dist/factories.d.ts +5 -0
  27. package/dist/factories.js +23 -0
  28. package/dist/factories.min.js +1 -0
  29. package/dist/functions/getParentNodes.d.ts +9 -0
  30. package/dist/functions/getParentNodes.js +15 -0
  31. package/dist/functions/getParentNodes.min.js +1 -0
  32. package/dist/functions/getParentNodesFromAttribute.d.ts +14 -0
  33. package/dist/functions/getParentNodesFromAttribute.js +9 -0
  34. package/dist/functions/getParentNodesFromAttribute.min.js +1 -0
  35. package/dist/functions.d.ts +5 -0
  36. package/dist/functions.js +23 -0
  37. package/dist/functions.min.js +1 -0
  38. package/dist/interfaces/PseudoAnimation.d.ts +3 -0
  39. package/dist/interfaces/PseudoAnimation.js +5 -0
  40. package/dist/interfaces/PseudoAnimation.min.js +1 -0
  41. package/dist/interfaces/PseudoAttr.d.ts +11 -0
  42. package/dist/interfaces/PseudoAttr.js +5 -0
  43. package/dist/interfaces/PseudoAttr.min.js +1 -0
  44. package/dist/interfaces/PseudoDOMTokenList.d.ts +16 -0
  45. package/dist/interfaces/PseudoDOMTokenList.js +5 -0
  46. package/dist/interfaces/PseudoDOMTokenList.min.js +1 -0
  47. package/dist/interfaces/PseudoDocument.d.ts +3 -0
  48. package/dist/interfaces/PseudoDocument.js +5 -0
  49. package/dist/interfaces/PseudoDocument.min.js +1 -0
  50. package/dist/interfaces/PseudoDocumentFragment.d.ts +3 -0
  51. package/dist/interfaces/PseudoDocumentFragment.js +5 -0
  52. package/dist/interfaces/PseudoDocumentFragment.min.js +1 -0
  53. package/dist/interfaces/PseudoElement.d.ts +678 -0
  54. package/dist/interfaces/PseudoElement.js +5 -0
  55. package/dist/interfaces/PseudoElement.min.js +1 -0
  56. package/dist/interfaces/PseudoEvent.d.ts +79 -0
  57. package/dist/interfaces/PseudoEvent.js +10 -0
  58. package/dist/interfaces/PseudoEvent.min.js +1 -0
  59. package/dist/interfaces/PseudoEventTarget.d.ts +46 -0
  60. package/dist/interfaces/PseudoEventTarget.js +5 -0
  61. package/dist/interfaces/PseudoEventTarget.min.js +1 -0
  62. package/dist/interfaces/PseudoHTMLCollection.d.ts +2 -0
  63. package/dist/interfaces/PseudoHTMLCollection.js +5 -0
  64. package/dist/interfaces/PseudoHTMLCollection.min.js +1 -0
  65. package/dist/interfaces/PseudoHTMLElement.d.ts +22 -0
  66. package/dist/interfaces/PseudoHTMLElement.js +5 -0
  67. package/dist/interfaces/PseudoHTMLElement.min.js +1 -0
  68. package/dist/interfaces/PseudoHTMLSlotElement.d.ts +3 -0
  69. package/dist/interfaces/PseudoHTMLSlotElement.js +5 -0
  70. package/dist/interfaces/PseudoHTMLSlotElement.min.js +1 -0
  71. package/dist/interfaces/PseudoNamedNodeMap.d.ts +11 -0
  72. package/dist/interfaces/PseudoNamedNodeMap.js +5 -0
  73. package/dist/interfaces/PseudoNamedNodeMap.min.js +1 -0
  74. package/dist/interfaces/PseudoNode.d.ts +179 -0
  75. package/dist/interfaces/PseudoNode.js +5 -0
  76. package/dist/interfaces/PseudoNode.min.js +1 -0
  77. package/dist/interfaces/PseudoShadowRoot.d.ts +3 -0
  78. package/dist/interfaces/PseudoShadowRoot.js +5 -0
  79. package/dist/interfaces/PseudoShadowRoot.min.js +1 -0
  80. package/dist/main.d.ts +29 -0
  81. package/dist/main.js +75 -0
  82. package/dist/main.min.js +1 -0
  83. package/dist/services/AnimationService.d.ts +4 -0
  84. package/dist/services/AnimationService.js +16 -0
  85. package/dist/services/AnimationService.min.js +1 -0
  86. package/dist/services/AttrService.d.ts +31 -0
  87. package/dist/services/AttrService.js +57 -0
  88. package/dist/services/AttrService.min.js +1 -0
  89. package/dist/services/DOMTokenListService.d.ts +33 -0
  90. package/dist/services/DOMTokenListService.js +117 -0
  91. package/dist/services/DOMTokenListService.min.js +1 -0
  92. package/dist/services/DocumentFragmentService.d.ts +4 -0
  93. package/dist/services/DocumentFragmentService.js +9 -0
  94. package/dist/services/DocumentFragmentService.min.js +1 -0
  95. package/dist/services/DocumentService.d.ts +4 -0
  96. package/dist/services/DocumentService.js +9 -0
  97. package/dist/services/DocumentService.min.js +1 -0
  98. package/dist/services/ElementService.d.ts +95 -0
  99. package/dist/services/ElementService.js +205 -0
  100. package/dist/services/ElementService.min.js +1 -0
  101. package/dist/services/EventService.d.ts +106 -0
  102. package/dist/services/EventService.js +216 -0
  103. package/dist/services/EventService.min.js +1 -0
  104. package/dist/services/EventTargetService.d.ts +52 -0
  105. package/dist/services/EventTargetService.js +163 -0
  106. package/dist/services/EventTargetService.min.js +1 -0
  107. package/dist/services/HTMLCollectionService.d.ts +3 -0
  108. package/dist/services/HTMLCollectionService.js +8 -0
  109. package/dist/services/HTMLCollectionService.min.js +1 -0
  110. package/dist/services/HTMLElementService.d.ts +37 -0
  111. package/dist/services/HTMLElementService.js +68 -0
  112. package/dist/services/HTMLElementService.min.js +1 -0
  113. package/dist/services/HTMLSlotElementService.d.ts +4 -0
  114. package/dist/services/HTMLSlotElementService.js +9 -0
  115. package/dist/services/HTMLSlotElementService.min.js +1 -0
  116. package/dist/services/NamedNodeMapService.d.ts +23 -0
  117. package/dist/services/NamedNodeMapService.js +77 -0
  118. package/dist/services/NamedNodeMapService.min.js +1 -0
  119. package/dist/services/NodeService.d.ts +111 -0
  120. package/dist/services/NodeService.js +230 -0
  121. package/dist/services/NodeService.min.js +1 -0
  122. package/dist/services/ShadowRootService.d.ts +4 -0
  123. package/dist/services/ShadowRootService.js +9 -0
  124. package/dist/services/ShadowRootService.min.js +1 -0
  125. package/package.json +58 -0
@@ -0,0 +1 @@
1
+ !function e(t,r,n){function i(o,a){if(!r[o]){if(!t[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};t[o][0].call(u.exports,function(e){return i(t[o][1][e]||e)},u,u.exports,e,t,r,n)}return r[o].exports}for(var s="function"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("../services/EventService");r.default=class{constructor(e,{capture:t=!1,once:r=!1,passive:n=!1}={},i,s=i){this.eventOptions={capture:!1,once:!1,passive:!1},this.eventType="",this.defaultListener=!1,this.eventOptions={capture:t,once:r,passive:n},this.eventType=e,this.handler=i,this.originalCallback=s}get callback(){return this.originalCallback}get isDefault(){return this.defaultListener}get once(){return this.eventOptions.once}handleEvent(e){return this.handler(e)}doCapturePhase(e){return e.eventPhase===n.EventService.CAPTURING_PHASE&&this.eventOptions.capture}doTargetPhase(e){return e.eventPhase===n.EventService.AT_TARGET}doBubblePhase(e){return e.eventPhase===n.EventService.BUBBLING_PHASE&&(e.bubbles||!this.eventOptions.capture)}skipPhase(e){return!this.doCapturePhase(e)&&!this.doTargetPhase(e)&&!this.doBubblePhase(e)}skipDefault(e){return this.isDefault&&e.defaultPrevented}stopPropagation(e){return!this.doTargetPhase(e)&&e.inner.propagationStopped}nonPassiveHalt(e){return!this.eventOptions.passive&&(this.skipDefault(e)||e.inner.immediatePropagationStopped||this.stopPropagation(e))}rejectEvent(e){return this.nonPassiveHalt(e)||this.skipPhase(e)}}},{"../services/EventService":12}],2:[function(e,t,r){"use strict";const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});const i=e("../services/HTMLElementService"),s=n(e("../factories/generateNodeList")),o=e("collect-your-stuff/dist/collections/linked-tree-list/TreeLinker");class a extends i.HTMLElementService{constructor(){super();const e=new i.HTMLElementService({tagName:"html",parent:this});this.head=new i.HTMLElementService({tagName:"head",parent:e}),this.body=new i.HTMLElementService({tagName:"body",parent:e}),e.children=(0,s.default)(o.TreeLinker.fromArray([this.head,this.body]).head)}createElement(e="div"){const t=new i.HTMLElementService({tagName:e});return t.parent=this,t}}r.default=a},{"../factories/generateNodeList":5,"../services/HTMLElementService":14,"collect-your-stuff/dist/collections/linked-tree-list/TreeLinker":24}],3:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.map.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.PseudoNodeList=void 0;const n=e("collect-your-stuff/dist/collections/linked-tree-list/LinkedTreeList");class i extends n.LinkedTreeList{[Symbol.iterator](){const e=super[Symbol.iterator]();return{next:()=>{const t=e.next();return t.done?t:{done:!1,value:t.value.data}}}}entries(){return Array.from(this).map((e,t)=>[t,e])[Symbol.iterator]()}keys(){return Array.from(this).map((e,t)=>t)[Symbol.iterator]()}values(){return Array.from(this)[Symbol.iterator]()}}r.PseudoNodeList=i},{"collect-your-stuff/dist/collections/linked-tree-list/LinkedTreeList":23,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.map.js":134}],4:[function(e,t,r){"use strict";const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});const i=n(e("../services/EventTargetService")),s=e("../services/NodeService"),o=e("../services/ElementService"),a=e("../services/HTMLElementService"),l=n(e("../classes/PseudoHTMLDocument"));r.default=(e,t={})=>{const r=void 0===e.document?e:new i.default,n=e.Node||new s.NodeService;void 0===r.Node&&(r.Node=n);const c=e.Element||new o.ElementService;void 0===r.Element&&(r.Element=c);const u=e.HTMLElement||new a.HTMLElementService;void 0===r.HTMLElement&&(r.HTMLElement=u);const d=e.document||new l.default;return void 0===r.document&&(r.document=d),t?Object.assign(t,r):Object.assign(e,r)}},{"../classes/PseudoHTMLDocument":2,"../services/ElementService":11,"../services/EventTargetService":13,"../services/HTMLElementService":14,"../services/NodeService":16}],5:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("../classes/PseudoNodeList");r.default=(e=null)=>(new n.PseudoNodeList).initialize(e)},{"../classes/PseudoNodeList":3}],6:[function(e,t,r){"use strict";const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});const i=n(e("./getParentNodesFromAttribute"));r.default=e=>(0,i.default)("",!1,e)},{"./getParentNodesFromAttribute":7}],7:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=(e,t,r)=>Object.keys(r.parentNode).length?(r.parentNode[e]||!1)===t?n(e,t,r.parentNode).concat([r.parentNode]):n(e,t,r.parentNode):[];r.default=n},{}],8:[function(e,t,r){"use strict";const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.PseudoHTMLDocument=r.PseudoHTMLElement=r.PseudoElement=r.PseudoNode=r.PseudoEventTarget=r.PseudoEvent=r.generateDocument=void 0;const i=e("./services/EventService");Object.defineProperty(r,"PseudoEvent",{enumerable:!0,get:function(){return i.EventService}});const s=n(e("./services/EventTargetService"));r.PseudoEventTarget=s.default;const o=e("./services/NodeService");Object.defineProperty(r,"PseudoNode",{enumerable:!0,get:function(){return o.NodeService}});const a=e("./services/ElementService");Object.defineProperty(r,"PseudoElement",{enumerable:!0,get:function(){return a.ElementService}});const l=e("./services/HTMLElementService");Object.defineProperty(r,"PseudoHTMLElement",{enumerable:!0,get:function(){return l.HTMLElementService}});const c=n(e("./classes/PseudoHTMLDocument"));r.PseudoHTMLDocument=c.default;const u=n(e("./factories/generateDocument"));r.generateDocument=u.default;const d={generateDocument:u.default,PseudoEvent:i.EventService,PseudoEventTarget:s.default,PseudoNode:o.NodeService,PseudoElement:a.ElementService,PseudoHTMLElement:l.HTMLElementService,PseudoHTMLDocument:c.default};r.default=d,"undefined"!=typeof window&&(window.pseudoDom=d)},{"./classes/PseudoHTMLDocument":2,"./factories/generateDocument":4,"./services/ElementService":11,"./services/EventService":12,"./services/EventTargetService":13,"./services/HTMLElementService":14,"./services/NodeService":16}],9:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AttrService=void 0;const n=e("./NodeService");class i extends n.NodeService{constructor(e="",t="",r=null,n="",i=null){super(),this.attributeName=e,this.value=t,this.element=r,this.namespace=n,this.namespacePrefix=i,this.nodeNameValue=e}get nodeType(){return n.NodeService.ATTRIBUTE_NODE}get localName(){return this.attributeName}get name(){return this.namespacePrefix?`${this.namespacePrefix}:${this.attributeName}`:this.attributeName}get namespaceURI(){return this.namespace}get ownerElement(){return this.element}get prefix(){return this.namespacePrefix}}r.AttrService=i},{"./NodeService":16}],10:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.filter.js"),e("core-js/modules/esnext.iterator.for-each.js"),e("core-js/modules/esnext.iterator.map.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.DOMTokenListService=void 0;class n{constructor(e="",t=()=>{}){this.tokens=n.parse(e),this.onChange=t}static parse(e){return(e||"").split(/\s+/).filter((e,t,r)=>""!==e&&r.indexOf(e)===t)}update(e){this.tokens=e,this.onChange(this.value)}static validate(e){if(""===e)throw new SyntaxError("The token provided must not be empty.");if(/\s/.test(e))throw new Error("The token provided contains whitespace.")}get length(){return this.tokens.length}get value(){return this.tokens.join(" ")}set value(e){this.update(n.parse(e))}item(e){return e>=0&&e<this.tokens.length?this.tokens[e]:null}contains(e){return this.tokens.indexOf(e)>=0}add(...e){e.forEach(n.validate),this.update(this.tokens.concat(e).filter((e,t,r)=>r.indexOf(e)===t))}remove(...e){e.forEach(n.validate),this.update(this.tokens.filter(t=>e.indexOf(t)<0))}replace(e,t){return n.validate(e),n.validate(t),!!this.contains(e)&&(this.update(this.tokens.map(r=>r===e?t:r).filter((e,t,r)=>r.indexOf(e)===t)),!0)}supports(e){throw new TypeError(`Failed to execute 'supports' on 'DOMTokenList': DOMTokenList has no supported tokens (${e}).`)}toggle(e,t){n.validate(e);const r="boolean"==typeof t?t:!this.contains(e);return r?this.add(e):this.remove(e),r}entries(){return this.tokens.map((e,t)=>[t,e])[Symbol.iterator]()}forEach(e,t){this.tokens.forEach((r,n)=>e.call(t,r,n,this))}keys(){return this.tokens.map((e,t)=>t)[Symbol.iterator]()}values(){return this.tokens.slice()[Symbol.iterator]()}}r.DOMTokenListService=n},{"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.filter.js":131,"core-js/modules/esnext.iterator.for-each.js":133,"core-js/modules/esnext.iterator.map.js":134}],11:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.find.js"),e("core-js/modules/esnext.iterator.for-each.js"),e("core-js/modules/esnext.iterator.map.js"),e("core-js/modules/esnext.iterator.some.js");const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.ElementService=void 0;const i=n(e("../factories/generateNodeList")),s=e("collect-your-stuff/dist/collections/linked-tree-list/TreeLinker"),o=e("./NodeService"),a=e("./AttrService"),l=e("./DOMTokenListService"),c=e("./NamedNodeMapService"),u=n(e("../functions/getParentNodesFromAttribute"));class d extends o.NodeService{constructor({tagName:e="",attributes:t=[],parent:r=null,children:n=[]}={}){super(),this.tokenList=new l.DOMTokenListService,this.parent=r,this.children=(0,i.default)(s.TreeLinker.fromArray(n).head),this.tag=e,this.attributeList=t.concat([{name:"className",value:""},{name:"id",value:""},{name:"innerHTML",value:""}]),this.propertyAttributes=this.attributeList.map(({name:e})=>e),this.attributeList.forEach(({name:e,value:t})=>{this[e]=t})}get tagName(){return this.tag}get nodeType(){return o.NodeService.ELEMENT_NODE}get attributes(){return new c.NamedNodeMapService(this.attributeList.map(({name:e,value:t})=>new a.AttrService(e,String(t),this)))}get classList(){return this.tokenList}get className(){return this.tokenList.value}set className(e){this.tokenList.value=e}applyDefaultEvent(){let e=e=>{};switch(this.tagName){case"form":this.addEventListener("submit",e);break;case"button":case"input":/^(submit|image)$/i.test(this.type||"")&&(e=e=>{const t=(0,u.default)("tagName","form",this);t.length&&t[0].submit()},super.setDefaultEvent("click",e))}return e}appendChild(e){return super.appendChild(e),e.applyDefaultEvent(),e}hasAttribute(e){return this.attributeList.some(({name:t})=>t===e)}setAttribute(e,t){const r=this.attributeList.find(({name:t})=>t===e);r?r.value=t:this.attributeList.push({name:e,value:t}),this.propertyAttributes.indexOf(e)>=0&&(this[e]=t)}getAttribute(e){const t=this.attributeList.find(({name:t})=>t===e);return t?t.value:null}removeAttribute(e){const t=this.attributeList.findIndex(({name:t})=>t===e);t>=0&&this.attributeList.splice(t,1)}}r.ElementService=d},{"../factories/generateNodeList":5,"../functions/getParentNodesFromAttribute":7,"./AttrService":9,"./DOMTokenListService":10,"./NamedNodeMapService":15,"./NodeService":16,"collect-your-stuff/dist/collections/linked-tree-list/TreeLinker":24,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.find.js":132,"core-js/modules/esnext.iterator.for-each.js":133,"core-js/modules/esnext.iterator.map.js":134,"core-js/modules/esnext.iterator.some.js":136}],12:[function(e,t,r){"use strict";const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.EventService=void 0;const i=n(e("../functions/getParentNodes"));class s{constructor(e="",{bubbles:t=!0,cancelable:r=!0,composed:n=!0}={}){this.properties={bubbles:!0,cancelable:!0,composed:!0,currentTarget:null,defaultPrevented:!1,immediatePropagationStopped:!1,propagationStopped:!1,eventPhase:0,target:null,timeStamp:Math.floor(Date.now()/1e3),type:"",isTrusted:!0},this.setReadOnlyProperties({type:e,bubbles:t,cancelable:r,composed:n})}get bubbles(){return this.properties.bubbles}get cancelable(){return this.properties.cancelable}get composed(){return this.properties.composed}get currentTarget(){return this.properties.currentTarget}get defaultPrevented(){return this.properties.defaultPrevented}get eventPhase(){return this.properties.eventPhase}get isTrusted(){return this.properties.isTrusted}get target(){return this.properties.target}get timeStamp(){return this.properties.timeStamp}get type(){return this.properties.type}get inner(){const e=this;return{set currentTarget(t){e.properties.currentTarget=t},set eventPhase(t){e.properties.eventPhase=t},set target(t){e.properties.target=t},get immediatePropagationStopped(){return e.properties.immediatePropagationStopped},get propagationStopped(){return e.properties.propagationStopped}}}composedPath(){switch(this.eventPhase){case s.CAPTURING_PHASE:return(0,i.default)(this.target);case s.BUBBLING_PHASE:return(0,i.default)(this.target).slice().reverse();case s.AT_TARGET:return[this.target];default:return[]}}preventDefault(){return this.setReadOnlyProperties({defaultPrevented:!0}),null}stopImmediatePropagation(){return this.setReadOnlyProperties({immediatePropagationStopped:!0}),null}stopPropagation(){return this.setReadOnlyProperties({propagationStopped:!0}),null}setReadOnlyProperties(e={}){return this.properties=Object.assign({},this.properties,e),this}}r.EventService=s,s.NONE=0,s.CAPTURING_PHASE=1,s.AT_TARGET=2,s.BUBBLING_PHASE=3},{"../functions/getParentNodes":6}],13:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.filter.js"),e("core-js/modules/esnext.iterator.find.js"),e("core-js/modules/esnext.iterator.for-each.js");const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});const i=e("./EventService"),s=n(e("../classes/PseudoEventListener")),o=e("collect-your-stuff/dist/collections/linked-list/LinkedList");r.default=class{constructor(){this.listeners={},this.defaultEvent={}}listenersFor(e){return e in this.listeners||(this.listeners[e]=new o.LinkedList),this.listeners[e]}runEvents(e){if(!(e.type in this.listeners))return!0;const t=this.listeners[e.type];let r=null;for(const n of Array.from(t)){const i=n.data;if(e.inner.immediatePropagationStopped)break;i.rejectEvent(e)||(r=i.handleEvent(e),i.once&&t.remove(n))}return r}setDefaultEvent(e,t){this.listenersFor(e),this.defaultEvent[e]=t}runDefaultEvent(e){return!e.defaultPrevented&&(this.defaultEvent[e.type](e),!0)}startEvents(e){const t=new i.EventService(e);return t.inner.target=this,[i.EventService.CAPTURING_PHASE,i.EventService.AT_TARGET,i.EventService.BUBBLING_PHASE].forEach(r=>{let n=null;r!==i.EventService.AT_TARGET&&t.inner.propagationStopped||(t.inner.eventPhase=r,t.composedPath().forEach(e=>{t.inner.currentTarget=e,n=t.currentTarget.runEvents(t)})),t.eventPhase===i.EventService.AT_TARGET&&"boolean"!=typeof n&&this.defaultEvent[e]&&this.runDefaultEvent(t)}),!0}addEventListener(e,t,r=!1){let n={capture:!1,once:!1,passive:!1};"object"==typeof r?n=Object.assign(n,r):n.capture=r;const i=new s.default(e,n,(t.handleEvent||t).bind(this),t),o=this.listenersFor(e),a=Array.from(o).find(e=>e.data.isDefault);a&&!i.isDefault?o.insertBefore(a,i):o.append(i)}removeEventListener(e,t){if(!(e in this.listeners))return;const r=this.listeners[e];Array.from(r).filter(e=>!e.data.isDefault&&e.data.callback===t).forEach(e=>r.remove(e))}dispatchEvent(e,t=this){return e.inner.target=t,!(e.type in this.listeners)||(this.runEvents(e),!e.defaultPrevented)}}},{"../classes/PseudoEventListener":1,"./EventService":12,"collect-your-stuff/dist/collections/linked-list/LinkedList":21,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.filter.js":131,"core-js/modules/esnext.iterator.find.js":132,"core-js/modules/esnext.iterator.for-each.js":133}],14:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HTMLElementService=void 0;const n=e("./ElementService");class i extends n.ElementService{constructor({tagName:e="",parent:t=null,children:r=[]}={}){super({tagName:e,attributes:[{name:"hidden",value:!1},{name:"offsetHeight",value:0},{name:"offsetLeft",value:0},{name:"offsetParent",value:null},{name:"offsetTop",value:0},{name:"offsetWidth",value:0},{name:"style",value:{}},{name:"title",value:""}],parent:t,children:r})}}r.HTMLElementService=i},{"./ElementService":11}],15:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.find.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.NamedNodeMapService=void 0;r.NamedNodeMapService=class{constructor(e=[]){this.attributes=e.slice()}get length(){return this.attributes.length}getNamedItem(e){return this.attributes.find(t=>t.name===e)||null}setNamedItem(e){const t=this.attributes.findIndex(t=>t.name===e.name);if(t<0)return this.attributes.push(e),null;const r=this.attributes[t];return this.attributes[t]=e,r}removeNamedItem(e){const t=this.attributes.findIndex(t=>t.name===e);if(t<0)throw new Error(`The attribute "${e}" was not found.`);return this.attributes.splice(t,1)[0]}item(e){return this.attributes[e]||null}getNamedItemNS(e,t){return this.attributes.find(r=>r.namespaceURI===e&&r.localName===t)||null}setNamedItemNS(e){const t=this.attributes.findIndex(t=>t.namespaceURI===e.namespaceURI&&t.localName===e.localName);if(t<0)return this.attributes.push(e),null;const r=this.attributes[t];return this.attributes[t]=e,r}removeNamedItemNS(e,t){const r=this.attributes.findIndex(r=>r.namespaceURI===e&&r.localName===t);if(r<0)throw new Error(`The attribute "${t}" in the namespace "${e}" was not found.`);return this.attributes.splice(r,1)[0]}}},{"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.find.js":132}],16:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.NodeService=void 0;const i=n(e("../factories/generateNodeList")),s=n(e("./EventTargetService"));class o extends s.default{constructor(){super(),this.nodeValueStore="",this.textContentStore="",this.nodeNameValue="",this.children=(0,i.default)(),this.parent=null,this.next=null,this.prev=null}get baseURI(){return window.location||"/"}get childNodes(){return this.children}get firstChild(){return this.children.first?this.children.first.data:null}get isConnected(){return!!this.parent}get lastChild(){return this.children.last?this.children.last.data:null}get nextSibling(){return this.isConnected?this.next:null}get nodeName(){return this.nodeNameValue||""}get nodeType(){return o.DEFAULT_NODE}get nodeValue(){return this.nodeValueStore}set nodeValue(e){this.nodeValueStore=e}get ownerDocument(){return null}get parentNode(){return this.parent}get parentElement(){return this.parent&&this.parent.nodeType===o.ELEMENT_NODE?this.parent:null}get previousSibling(){return this.isConnected?this.prev:null}get textContent(){return this.textContentStore}set textContent(e){this.textContentStore=e}appendChild(e){return this.children.append(e),e}cloneNode(e=!1){throw new Error(`NodeService.cloneNode(${e}) is not implemented yet.`)}compareDocumentPosition(e){throw new Error("NodeService.compareDocumentPosition() is not implemented yet.")}contains(e){throw new Error("NodeService.contains() is not implemented yet.")}getRootNode(e={composed:!1}){return this.parent?this.parent.getRootNode(e):this}hasChildNodes(){return this.children.length>0}insertBefore(e,t){throw new Error("NodeService.insertBefore() is not implemented yet.")}isDefaultNamespace(e){return null===e}isEqualNode(e){throw new Error("NodeService.isEqualNode() is not implemented yet.")}isSameNode(e){return this===e}lookupPrefix(e){return null}lookupNamespaceURI(e){return null}normalize(){}removeChild(e){let t=null;if(this.children.forEach(r=>{null!==t||r!==e&&r.data!==e||(t=r)}),null===t)throw new Error("The node to be removed is not a child of this node.");return this.children.remove(t),t.data}replaceChild(e,t){throw new Error("NodeService.replaceChild() is not implemented yet.")}}r.NodeService=o,o.DEFAULT_NODE=0,o.ELEMENT_NODE=1,o.ATTRIBUTE_NODE=2,o.TEXT_NODE=3,o.CDATA_SECTION_NODE=4,o.ENTITY_REFERENCE_NODE=5,o.ENTITY_NODE=6,o.PROCESSING_INSTRUCTION_NODE=7,o.COMMENT_NODE=8,o.DOCUMENT_NODE=9,o.DOCUMENT_TYPE_NODE=10,o.DOCUMENT_FRAGMENT_NODE=11,o.NOTATION_NODE=12},{"../factories/generateNodeList":5,"./EventTargetService":13,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.for-each.js":133}],17:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ArrayElement=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");class n{constructor(e=null){this.classType=n,this.data=null,this.data=e}}r.ArrayElement=n,n.make=(e,t=n)=>"object"!=typeof e?new t(e):e.classType?e:new t(e),n.fromArray=(e=[],t=n)=>e.reduce((e,r)=>{const n=t.make(r,t);return e.head.length?(e.head.push(n),e.tail=n,e):{head:[n],tail:n}},{head:[],tail:null})},{"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.reduce.js":135}],18:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Arrayable=void 0;var n=e("./ArrayElement"),i=e("../../recipes/ArrayIterator");class s{constructor(e=n.ArrayElement){this.classType=s,this.innerList=[],this.initialized=!1,this.elementClass=e}initialize(e){return this.initialized?(console.warn("Attempt to initialize non-empty list."),this):(this.initialized=!0,this.innerList=e,this)}get list(){return this.innerList}get first(){return this.innerList[0]}get last(){return this.innerList[this.length-1]}get length(){return this.innerList.length}insertAfter(e,t){const r=this.innerList.indexOf(e);return this.innerList.splice(r+1,0,this.elementClass.make(t)),this}insertBefore(e,t){const r=this.innerList.indexOf(e);return this.innerList.splice(r,0,this.elementClass.make(t)),this}append(e,t=this.last){return this.insertAfter(t,e)}prepend(e,t=this.first){return this.insertBefore(t,e)}remove(e){const t=this.innerList.indexOf(e);return this.innerList.splice(t,1),e}item(e){if(e>=this.length)return null;if(e>=0)return this.innerList[e];const t=this.length+e;return t<0?null:this.innerList[t]}forEach(e,t=this){for(let r=0;r<t.length;++r)e(t.item(r),r,t);return t}[Symbol.iterator](){return new i.ArrayIterator(this.innerList,0)}}r.Arrayable=s,s.fromArray=(e=[],t=n.ArrayElement,r=s)=>new r(t).initialize(t.fromArray(e).head)},{"../../recipes/ArrayIterator":25,"./ArrayElement":17}],19:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DoubleLinker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");var n=e("../linked-list/Linker");class i{constructor({data:e=null,next:t=null,prev:r=null}={}){this.classType=i,this.data=null,this.next=null,this.prev=null,this.data=e,this.next=t,this.prev=r}}r.DoubleLinker=i,i.make=(e,t=i)=>n.Linker.make(e,t),i.fromArray=(e=[],t=i)=>e.reduce((e,r)=>{const n=t.make(r,t);return null===e.head?{head:n,tail:n}:(n.prev=e.tail,e.tail.next=n,e.tail=n,e)},{head:null,tail:null})},{"../linked-list/Linker":22,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.reduce.js":135}],20:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DoublyLinkedList=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");var n=e("./DoubleLinker"),i=e("../../recipes/DoubleLinkerIterator"),s=e("../linked-list/LinkedList");class o{constructor(e=n.DoubleLinker){this.classType=o,this.innerList=null,this.initialized=!1,this.linkerClass=e}initialize(e){return s.LinkedList.prototype.initialize.call(this,e)}get list(){return this.innerList}get first(){return this.reset()}get last(){let e=this.innerList;if(null===e)return null;let t=e.next;for(;null!==t;)e=t,t=e.next;return e}get length(){let e=this.first,t=0;for(;null!==e;)++t,e=e.next;return t}insertAfter(e,t){return t=this.linkerClass.make(t),null!==e&&(t.next=e.next,t.prev=e,e.next=t),t.next&&(t.next.prev=t),this.length||(this.innerList=t),this.reset(),this}insertBefore(e,t){return t=this.linkerClass.make(t),null!==e&&(t.prev=e.prev,t.next=e,e.prev=t),t.prev&&(t.prev.next=t),this.length||(this.innerList=t),this.reset(),this}append(e,t=this.last){return this.insertAfter(t,e)}prepend(e,t=this.first){return this.insertBefore(t,e)}remove(e){return null===e?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.innerList===e&&(this.innerList=e.next||e.prev||null),this.reset(),e)}reset(){let e=this.innerList;if(null===e)return null;let t=e.next;for(;null!==t;)e=t,t=e.next;let r=e.prev;for(;null!==r;)e=r,r=e.prev;return this.innerList=e,e}item(e){if(e>=0){let t=this.first,r=-1;for(;++r<e&&null!==t;)t=t.next;return r===e?t:null}let t=this.last,r=this.length;const n=this.length+e;if(n<0)return null;for(;--r>n&&null!==t;)t=t.prev;return r===n?t:null}forEach(e,t=this){return s.LinkedList.prototype.forEach.call(this,e,t)}[Symbol.iterator](){const e=this.first;return new i.DoubleLinkerIterator(e)}}r.DoublyLinkedList=o,o.fromArray=(e=[],t=n.DoubleLinker,r=o)=>s.LinkedList.fromArray(e,t,r)},{"../../recipes/DoubleLinkerIterator":26,"../linked-list/LinkedList":21,"./DoubleLinker":19,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.for-each.js":133}],21:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LinkedList=void 0;var n=e("./Linker"),i=e("../../recipes/LinkerIterator"),s=e("../arrayable/Arrayable");class o{constructor(e=n.Linker){this.classType=o,this.innerList=null,this.initialized=!1,this.linkerClass=e}initialize(e){return s.Arrayable.prototype.initialize.call(this,e)}get list(){return this.innerList}get first(){return this.innerList}get last(){let e=this.innerList;if(null===e)return null;let t=e.next;for(;null!==t;)e=t,t=e.next;return e}get length(){let e=this.first,t=0;for(;null!==e;)++t,e=e.next;return t}insertAfter(e,t){return t=this.linkerClass.make(t),null!==e&&(t.next=e.next,e.next=t),this.length||(this.innerList=t),this}insertBefore(e,t){t=this.linkerClass.make(t);let r=null,n=this.first;for(;n!==e;)r=n,n=n.next;return t.next=e,r&&(r.next=t),e!==this.first&&null!==e||(this.innerList=t),this}append(e,t=this.last){return this.insertAfter(t,e)}prepend(e,t=this.first){return this.insertBefore(t,e)}remove(e){let t=null,r=this.first;for(;r!==e;)t=r,r=r.next;return t&&(t.next=e.next),e===this.first&&null!==e&&(this.innerList=e.next),e}item(e){if(e>=0){let t=this.first,r=-1;for(;++r<e&&null!==t;)t=t.next;return r===e?t:null}let t=this.first,r=0;const n=this.length+e;if(n<0)return null;for(;r<n&&null!==t;)t=t.next,++r;return r===n?t:null}forEach(e,t=this){let r=0,n=t.first;for(;null!==n;)e(n,r,t),n=n.next,++r;return t}[Symbol.iterator](){return new i.LinkerIterator(this.first)}}r.LinkedList=o,o.fromArray=(e=[],t=n.Linker,r=o)=>new r(t).initialize(t.fromArray(e).head)},{"../../recipes/LinkerIterator":27,"../arrayable/Arrayable":18,"./Linker":22}],22:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Linker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");var n=e("../arrayable/ArrayElement");class i{constructor({data:e=null,next:t=null}={}){this.classType=i,this.data=null,this.next=null,this.data=e,this.next=t}}r.Linker=i,i.make=(e,t=i)=>"object"!=typeof e?new t({data:e}):e.classType?e:(e.data||(e={data:e}),n.ArrayElement.make(e,t)),i.fromArray=(e,t=i)=>e.reduce((e,r)=>{const n=t.make(r,t);return null===e.head?{head:n,tail:n}:(e.tail.next=n,e.tail=n,e)},{head:null,tail:null})},{"../arrayable/ArrayElement":17,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.reduce.js":135}],23:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LinkedTreeList=void 0;var n=e("./TreeLinker"),i=e("../../recipes/TreeLinkerIterator"),s=e("../doubly-linked-list/DoublyLinkedList");class o{constructor(e=n.TreeLinker){this.classType=o,this.innerList=null,this.initialized=!1,this.linkerClass=e}initialize(e){return this.initialized?(console.warn("Attempt to initialize LinkedTreeList which is not empty."),this):(this.initialized=!0,this.innerList=e,this)}get list(){return this.innerList}get first(){return this.reset()}get last(){let e=this.innerList;if(null===e)return null;let t=e.next;for(;null!==t;)e=t,t=e.next;return e}get length(){let e=this.first,t=0;for(;null!==e;)++t,e=e.next;return t}get parent(){return null===this.first?null:this.first.parent}set parent(e){let t=this.first;for(;null!==t;)t.parent=e,t=t.next;e&&(e.children=this)}get rootParent(){let e=this.first;if(!e)return null;let t=this.first.parent;for(;null!==t;)e=t,t=e.parent;return e}setChildren(e,t=null){Array.from(this).indexOf(e)<0&&console.error("item is not a child of this"),t.parent=e}insertAfter(e,t){return s.DoublyLinkedList.prototype.insertAfter.call(this,e,t)}insertBefore(e,t){return s.DoublyLinkedList.prototype.insertBefore.call(this,e,t)}append(e,t=this.last){return s.DoublyLinkedList.prototype.append.call(this,e,t)}prepend(e,t=this.first){return s.DoublyLinkedList.prototype.prepend.call(this,e,t)}remove(e){return s.DoublyLinkedList.prototype.remove.call(this,e)}reset(){return s.DoublyLinkedList.prototype.reset.call(this)}item(e){return s.DoublyLinkedList.prototype.item.call(this,e)}forEach(e,t=this){let r=0,n=t.first;for(;null!==n;)e(n,r,t),n=n.next,++r;return t}[Symbol.iterator](){const e=this.rootParent;return new i.TreeLinkerIterator(e)}}r.LinkedTreeList=o,o.fromArray=(e=[],t=n.TreeLinker,r=o)=>new r(t).initialize(t.fromArray(e).head)},{"../../recipes/TreeLinkerIterator":28,"../doubly-linked-list/DoublyLinkedList":20,"./TreeLinker":24}],24:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TreeLinker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.map.js");var n=e("../doubly-linked-list/DoubleLinker"),i=e("./LinkedTreeList");class s{constructor({data:e=null,next:t=null,prev:r=null,children:n=null,parent:o=null,listClass:a=i.LinkedTreeList}={}){this.classType=s,this.data=null,this.next=null,this.prev=null,this.parent=null,this.children=null,this.data=e,this.next=t,this.prev=r,this.parent=o,this.children=this.childrenFromArray(n,a)}childrenFromArray(e=null,t=i.LinkedTreeList){return null===e?null:t.fromArray(e.map(e=>Object.assign({},e,{parent:this})),this.classType)}}r.TreeLinker=s,s.make=(e,t=s)=>n.DoubleLinker.make(e,t),s.fromArray=(e=[],t=s)=>n.DoubleLinker.fromArray(e,t)},{"../doubly-linked-list/DoubleLinker":19,"./LinkedTreeList":23,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.map.js":134}],25:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ArrayIterator=void 0;r.ArrayIterator=class{constructor(e,t=0){this.innerList=e,this.index=t}next(e){return this.index<this.innerList.length?{value:this.innerList[this.index++],done:!1}:{value:void 0,done:!0}}}},{}],26:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DoubleLinkerIterator=void 0;r.DoubleLinkerIterator=class{constructor(e){this.current=e}next(e){const t={value:this.current,done:!this.current};return this.current=this.current?this.current.next:null,t}}},{}],27:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LinkerIterator=void 0;r.LinkerIterator=class{constructor(e){this.current=e}next(e){const t={value:this.current,done:!this.current};return this.current=this.current?this.current.next:null,t}}},{}],28:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TreeLinkerIterator=void 0;var n=e("../services/parseTreeNext");r.TreeLinkerIterator=class{constructor(e){this.current=e}next(e){const t={value:this.current,done:!this.current};return this.current=(0,n.parseTreeNext)(this.current),t}}},{"../services/parseTreeNext":29}],29:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parseTreeNext=void 0;r.parseTreeNext=e=>{if(!e)return null;let t=null;if(e.children&&e.children.length&&(t=e.children.first),t||(t=e.next),!t&&e.parent){let r=e.parent.next,n=e.parent;for(;n&&!r;)r=n.next,n=n.parent;t=r}return t}},{}],30:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),i=e("../internals/try-to-string"),s=TypeError;t.exports=function(e){if(n(e))return e;throw new s(i(e)+" is not a function")}},{"../internals/is-callable":74,"../internals/try-to-string":117}],31:[function(e,t,r){"use strict";var n=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":99}],32:[function(e,t,r){"use strict";var n=e("../internals/is-object"),i=String,s=TypeError;t.exports=function(e){if(n(e))return e;throw new s(i(e)+" is not an object")}},{"../internals/is-object":77}],33:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),s=e("../internals/length-of-array-like"),o=function(e){return function(t,r,o){var a=n(t),l=s(a);if(0===l)return!e&&-1;var c,u=i(o,l);if(e&&r!=r){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":89,"../internals/to-absolute-index":110,"../internals/to-indexed-object":111}],34:[function(e,t,r){"use strict";var n=e("../internals/an-object"),i=e("../internals/iterator-close");t.exports=function(e,t,r,s){try{return s?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},{"../internals/an-object":32,"../internals/iterator-close":83}],35:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=n({}.toString),s=n("".slice);t.exports=function(e){return s(i(e),8,-1)}},{"../internals/function-uncurry-this":59}],36:[function(e,t,r){"use strict";var n=e("../internals/has-own-property"),i=e("../internals/own-keys"),s=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t,r){for(var a=i(t),l=o.f,c=s.f,u=0;u<a.length;u++){var d=a[u];n(e,d)||r&&n(r,d)||l(e,d,c(t,d))}}},{"../internals/has-own-property":66,"../internals/object-define-property":94,"../internals/object-get-own-property-descriptor":95,"../internals/own-keys":104}],37:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},{"../internals/fails":52}],38:[function(e,t,r){"use strict";t.exports=function(e,t){return{value:e,done:t}}},{}],39:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=n?function(e,t,r){return i.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},{"../internals/create-property-descriptor":40,"../internals/descriptors":46,"../internals/object-define-property":94}],40:[function(e,t,r){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],41:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=function(e,t,r){n?i.f(e,t,s(0,r)):e[t]=r}},{"../internals/create-property-descriptor":40,"../internals/descriptors":46,"../internals/object-define-property":94}],42:[function(e,t,r){"use strict";var n=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},{"../internals/make-built-in":90,"../internals/object-define-property":94}],43:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),i=e("../internals/object-define-property"),s=e("../internals/make-built-in"),o=e("../internals/define-global-property");t.exports=function(e,t,r,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(n(r)&&s(r,c,a),a.global)l?e[t]=r:o(t,r);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},{"../internals/define-global-property":45,"../internals/is-callable":74,"../internals/make-built-in":90,"../internals/object-define-property":94}],44:[function(e,t,r){"use strict";var n=e("../internals/define-built-in");t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},{"../internals/define-built-in":43}],45:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=Object.defineProperty;t.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},{"../internals/global-this":65}],46:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":52}],47:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=e("../internals/is-object"),s=n.document,o=i(s)&&i(s.createElement);t.exports=function(e){return o?s.createElement(e):{}}},{"../internals/global-this":65,"../internals/is-object":77}],48:[function(e,t,r){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],49:[function(e,t,r){"use strict";var n=e("../internals/global-this").navigator,i=n&&n.userAgent;t.exports=i?String(i):""},{"../internals/global-this":65}],50:[function(e,t,r){"use strict";var n,i,s=e("../internals/global-this"),o=e("../internals/environment-user-agent"),a=s.process,l=s.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},{"../internals/environment-user-agent":49,"../internals/global-this":65}],51:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-in"),a=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var r,u,d,f,p,h=e.target,v=e.global,m=e.stat;if(r=v?n:m?n[h]||a(h,{}):n[h]&&n[h].prototype)for(u in t){if(f=t[u],d=e.dontCallGetSet?(p=i(r,u))&&p.value:r[u],!c(v?u:h+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&s(f,"sham",!0),o(r,u,f,e)}}},{"../internals/copy-constructor-properties":36,"../internals/create-non-enumerable-property":39,"../internals/define-built-in":43,"../internals/define-global-property":45,"../internals/global-this":65,"../internals/is-forced":75,"../internals/object-get-own-property-descriptor":95}],52:[function(e,t,r){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],53:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype,s=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(s):function(){return o.apply(s,arguments)})},{"../internals/function-bind-native":55}],54:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),s=e("../internals/function-bind-native"),o=n(n.bind);t.exports=function(e,t){return i(e),void 0===t?e:s?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":30,"../internals/function-bind-native":55,"../internals/function-uncurry-this-clause":58}],55:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},{"../internals/fails":52}],56:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":55}],57:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/has-own-property"),s=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=i(s,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&o(s,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":46,"../internals/has-own-property":66}],58:[function(e,t,r){"use strict";var n=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===n(e))return i(e)}},{"../internals/classof-raw":35,"../internals/function-uncurry-this":59}],59:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype,s=i.call,o=n&&i.bind.bind(s,s);t.exports=n?o:function(e){return function(){return s.apply(e,arguments)}}},{"../internals/function-bind-native":55}],60:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=e("../internals/is-callable");t.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},{"../internals/global-this":65,"../internals/is-callable":74}],61:[function(e,t,r){"use strict";t.exports=function(e){return{iterator:e,next:e.next,done:!1}}},{}],62:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/is-callable"),s=e("../internals/an-object"),o=e("../internals/try-to-string"),a=e("../internals/get-iterator-method-internal"),l=TypeError;t.exports=function(e,t){var r=arguments.length<2?a(e):t;if(i(r))return s(n(r,e));throw new l(o(e)+" is not iterable")}},{"../internals/an-object":32,"../internals/function-call":56,"../internals/get-iterator-method-internal":63,"../internals/is-callable":74,"../internals/try-to-string":117}],63:[function(e,t,r){"use strict";var n=e("../internals/classof-raw"),i=e("../internals/is-null-or-undefined"),s=e("../internals/get-method"),o=e("../internals/well-known-symbol")("iterator"),a=Array.prototype;t.exports=function(e){if(!i(e))return s(e,o)||s(e,"@@iterator")||("Arguments"===n(e)?a[o]:void 0)}},{"../internals/classof-raw":35,"../internals/get-method":64,"../internals/is-null-or-undefined":76,"../internals/well-known-symbol":122}],64:[function(e,t,r){"use strict";var n=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},{"../internals/a-callable":30,"../internals/is-null-or-undefined":76}],65:[function(e,t,r){(function(e){(function(){"use strict";var r=function(e){return e&&e.Math===Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],66:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),s=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return s(i(e),t)}},{"../internals/function-uncurry-this":59,"../internals/to-object":114}],67:[function(e,t,r){"use strict";t.exports={}},{}],68:[function(e,t,r){"use strict";var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":60}],69:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails"),s=e("../internals/document-create-element");t.exports=!n&&!i(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":46,"../internals/document-create-element":47,"../internals/fails":52}],70:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),s=e("../internals/classof-raw"),o=Object,a=n("".split);t.exports=i(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?a(e,""):o(e)}:o},{"../internals/classof-raw":35,"../internals/fails":52,"../internals/function-uncurry-this":59}],71:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),s=e("../internals/shared-store"),o=n(Function.toString);i(s.inspectSource)||(s.inspectSource=function(e){return o(e)}),t.exports=s.inspectSource},{"../internals/function-uncurry-this":59,"../internals/is-callable":74,"../internals/shared-store":107}],72:[function(e,t,r){"use strict";var n,i,s,o=e("../internals/weak-map-basic-detection"),a=e("../internals/global-this"),l=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),d=e("../internals/shared-store"),f=e("../internals/shared-key"),p=e("../internals/hidden-keys"),h="Object already initialized",v=a.TypeError,m=a.WeakMap;if(o||d.state){var b=d.state||(d.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,t){if(b.has(e))throw new v(h);return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var y=f("state");p[y]=!0,n=function(e,t){if(u(e,y))throw new v(h);return t.facade=e,c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},s=function(e){return u(e,y)}}t.exports={set:n,get:i,has:s,enforce:function(e){return s(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return r}}}},{"../internals/create-non-enumerable-property":39,"../internals/global-this":65,"../internals/has-own-property":66,"../internals/hidden-keys":67,"../internals/is-object":77,"../internals/shared-key":106,"../internals/shared-store":107,"../internals/weak-map-basic-detection":121}],73:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol"),i=e("../internals/iterators"),s=n("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||o[s]===e)}},{"../internals/iterators":88,"../internals/well-known-symbol":122}],74:[function(e,t,r){"use strict";var n="object"==typeof document&&document.all;t.exports=void 0===n&&void 0!==n?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},{}],75:[function(e,t,r){"use strict";var n=e("../internals/fails"),i=e("../internals/is-callable"),s=/#|\.prototype\./,o=function(e,t){var r=l[a(e)];return r===u||r!==c&&(i(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(s,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},{"../internals/fails":52,"../internals/is-callable":74}],76:[function(e,t,r){"use strict";t.exports=function(e){return null==e}},{}],77:[function(e,t,r){"use strict";var n=e("../internals/is-callable");t.exports=function(e){return"object"==typeof e?null!==e:n(e)}},{"../internals/is-callable":74}],78:[function(e,t,r){"use strict";t.exports=!1},{}],79:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/is-callable"),s=e("../internals/object-is-prototype-of"),o=e("../internals/use-symbol-as-uid"),a=Object;t.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&s(t.prototype,a(e))}},{"../internals/get-built-in":60,"../internals/is-callable":74,"../internals/object-is-prototype-of":99,"../internals/use-symbol-as-uid":119}],80:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),i=e("../internals/function-call"),s=e("../internals/an-object"),o=e("../internals/try-to-string"),a=e("../internals/is-array-iterator-method"),l=e("../internals/length-of-array-like"),c=e("../internals/object-is-prototype-of"),u=e("../internals/get-iterator-internal"),d=e("../internals/get-iterator-method-internal"),f=e("../internals/iterator-close"),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},v=h.prototype;t.exports=function(e,t,r){var m,b,y,g,j,x,E,w=r&&r.that,L=!(!r||!r.AS_ENTRIES),k=!(!r||!r.IS_RECORD),T=!(!r||!r.IS_ITERATOR),S=!(!r||!r.INTERRUPTED),P=n(t,w),N=function(e){var t=m;return m=void 0,t&&f(t,"normal"),new h(!0,e)},O=function(e){return L?(s(e),S?P(e[0],e[1],N):P(e[0],e[1])):S?P(e,N):P(e)};if(k)m=e.iterator;else if(T)m=e;else{if(!(b=d(e)))throw new p(o(e)+" is not iterable");if(a(b)){for(y=0,g=l(e);g>y;y++)if((j=O(e[y]))&&c(v,j))return j;return new h(!1)}m=u(e,b)}for(x=k?e.next:m.next;!(E=i(x,m)).done;){var _=E.value;try{j=O(_)}catch(e){if(!m)throw e;f(m,"throw",e)}if("object"==typeof j&&j&&c(v,j))return j}return new h(!1)}},{"../internals/an-object":32,"../internals/function-bind-context":54,"../internals/function-call":56,"../internals/get-iterator-internal":62,"../internals/get-iterator-method-internal":63,"../internals/is-array-iterator-method":73,"../internals/iterator-close":83,"../internals/length-of-array-like":89,"../internals/object-is-prototype-of":99,"../internals/try-to-string":117}],81:[function(e,t,r){"use strict";t.exports=function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}},{}],82:[function(e,t,r){"use strict";var n=e("../internals/iterator-close");t.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{r=n(e[i].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}},{"../internals/iterator-close":83}],83:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/an-object"),s=e("../internals/get-method");t.exports=function(e,t,r){var o,a;i(e);try{if(!(o=s(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return i(o),r}},{"../internals/an-object":32,"../internals/function-call":56,"../internals/get-method":64}],84:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/object-create"),s=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-ins"),a=e("../internals/well-known-symbol"),l=e("../internals/internal-state"),c=e("../internals/get-method"),u=e("../internals/iterators-core").IteratorPrototype,d=e("../internals/create-iter-result-object"),f=e("../internals/iterator-close"),p=e("../internals/iterator-close-all"),h=e("../internals/iterator-cleanup-state"),v=a("toStringTag"),m="IteratorHelper",b="WrapForValidIterator",y="normal",g="throw",j=l.set,x=function(e){var t=l.getterFor(e?b:m);return o(i(u),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return d(void 0,!0);try{var n=r.nextHandler();return r.done&&h(r),r.returnHandlerResult?n:d(n,r.done)}catch(e){throw r.done=!0,h(r),e}},return:function(){var r=t(this),i=r.iterator,s=r.inner,o=r.openIters,a=r.done;if(r.done=!0,e){var l=c(i,"return");return l?n(l,i):d(void 0,!0)}if(h(r),a)return d(void 0,!0);if(s)try{f(s.iterator,y)}catch(e){return f(i,g,e)}if(o)try{p(o,y)}catch(e){if(i)return f(i,g,e);throw e}return i&&f(i,y),d(void 0,!0)}})},E=x(!0),w=x(!1);s(w,v,"Iterator Helper"),t.exports=function(e,t,r){var n=function(n,i){i?(i.iterator=n.iterator,i.next=n.next):i=n,i.type=t?b:m,i.returnHandlerResult=!!r,i.nextHandler=e,i.counter=0,i.done=!1,j(this,i)};return n.prototype=t?E:w,n}},{"../internals/create-iter-result-object":38,"../internals/create-non-enumerable-property":39,"../internals/define-built-ins":44,"../internals/function-call":56,"../internals/get-method":64,"../internals/internal-state":72,"../internals/iterator-cleanup-state":81,"../internals/iterator-close":83,"../internals/iterator-close-all":82,"../internals/iterators-core":87,"../internals/object-create":92,"../internals/well-known-symbol":122}],85:[function(e,t,r){"use strict";t.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},{}],86:[function(e,t,r){"use strict";var n=e("../internals/global-this");t.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,s=i&&i[e],o=!1;if(s)try{s.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return s}},{"../internals/global-this":65}],87:[function(e,t,r){"use strict";var n,i,s,o=e("../internals/fails"),a=e("../internals/is-callable"),l=e("../internals/is-object"),c=e("../internals/object-create"),u=e("../internals/object-get-prototype-of"),d=e("../internals/define-built-in"),f=e("../internals/well-known-symbol"),p=e("../internals/is-pure"),h=f("iterator"),v=!1;[].keys&&("next"in(s=[].keys())?(i=u(u(s)))!==Object.prototype&&(n=i):v=!0),!l(n)||o(function(){var e={};return n[h].call(e)!==e})?n={}:p&&(n=c(n)),a(n[h])||d(n,h,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},{"../internals/define-built-in":43,"../internals/fails":52,"../internals/is-callable":74,"../internals/is-object":77,"../internals/is-pure":78,"../internals/object-create":92,"../internals/object-get-prototype-of":98,"../internals/well-known-symbol":122}],88:[function(e,t,r){"use strict";t.exports=Object.create?Object.create(null):{}},{}],89:[function(e,t,r){"use strict";var n=e("../internals/to-length");t.exports=function(e){return n(e.length)}},{"../internals/to-length":113}],90:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),s=e("../internals/is-callable"),o=e("../internals/has-own-property"),a=e("../internals/descriptors"),l=e("../internals/function-name").CONFIGURABLE,c=e("../internals/inspect-source"),u=e("../internals/internal-state"),d=u.enforce,f=u.get,p=String,h=Object.defineProperty,v=n("".slice),m=n("".replace),b=n([].join),y=a&&!i(function(){return 8!==h(function(){},"length",{value:8}).length}),g=String(String).split("String"),j=t.exports=function(e,t,r){"Symbol("===v(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&o(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return o(n,"source")||(n.source=b(g,"string"==typeof t?t:"")),e};Function.prototype.toString=j(function(){return s(this)&&f(this).source||c(this)},"toString")},{"../internals/descriptors":46,"../internals/fails":52,"../internals/function-name":57,"../internals/function-uncurry-this":59,"../internals/has-own-property":66,"../internals/inspect-source":71,"../internals/internal-state":72,"../internals/is-callable":74}],91:[function(e,t,r){"use strict";var n=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:n)(t)}},{}],92:[function(e,t,r){"use strict";var n,i=e("../internals/an-object"),s=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),l=e("../internals/html"),c=e("../internals/document-create-element"),u=e("../internals/shared-key"),d="prototype",f="script",p=u("IE_PROTO"),h=function(){},v=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;b="undefined"!=typeof document?document.domain&&n?m(n):(t=c("iframe"),r="java"+f+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):m(n);for(var i=o.length;i--;)delete b[d][o[i]];return b()};a[p]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(h[d]=i(e),r=new h,h[d]=null,r[p]=e):r=b(),void 0===t?r:s.f(r,t)}},{"../internals/an-object":32,"../internals/document-create-element":47,"../internals/enum-bug-keys":48,"../internals/hidden-keys":67,"../internals/html":68,"../internals/object-define-properties":93,"../internals/shared-key":106}],93:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),s=e("../internals/object-define-property"),o=e("../internals/an-object"),a=e("../internals/to-indexed-object"),l=e("../internals/object-keys");r.f=n&&!i?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),i=l(t),c=i.length,u=0;c>u;)s.f(e,r=i[u++],n[r]);return e}},{"../internals/an-object":32,"../internals/descriptors":46,"../internals/object-define-property":94,"../internals/object-keys":101,"../internals/to-indexed-object":111,"../internals/v8-prototype-define-bug":120}],94:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),s=e("../internals/v8-prototype-define-bug"),o=e("../internals/an-object"),a=e("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";r.f=n?s?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=u(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:d in r?r[d]:n[d],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(o(e),t=a(t),o(r),i)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},{"../internals/an-object":32,"../internals/descriptors":46,"../internals/ie8-dom-define":69,"../internals/to-property-key":116,"../internals/v8-prototype-define-bug":120}],95:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/function-call"),s=e("../internals/object-property-is-enumerable"),o=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),c=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),d=Object.getOwnPropertyDescriptor;r.f=n?d:function(e,t){if(e=a(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return o(!i(s.f,e,t),e[t])}},{"../internals/create-property-descriptor":40,"../internals/descriptors":46,"../internals/function-call":56,"../internals/has-own-property":66,"../internals/ie8-dom-define":69,"../internals/object-property-is-enumerable":102,"../internals/to-indexed-object":111,"../internals/to-property-key":116}],96:[function(e,t,r){"use strict";var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},{"../internals/enum-bug-keys":48,"../internals/object-keys-internal":100}],97:[function(e,t,r){"use strict";r.f=Object.getOwnPropertySymbols},{}],98:[function(e,t,r){"use strict";var n=e("../internals/has-own-property"),i=e("../internals/is-callable"),s=e("../internals/to-object"),o=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),l=o("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(e){var t=s(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},{"../internals/correct-prototype-getter":37,"../internals/has-own-property":66,"../internals/is-callable":74,"../internals/shared-key":106,"../internals/to-object":114}],99:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this");t.exports=n({}.isPrototypeOf)},{"../internals/function-uncurry-this":59}],100:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),s=e("../internals/to-indexed-object"),o=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys"),l=n([].push);t.exports=function(e,t){var r,n=s(e),c=0,u=[];for(r in n)!i(a,r)&&i(n,r)&&l(u,r);for(;t.length>c;)i(n,r=t[c++])&&(~o(u,r)||l(u,r));return u}},{"../internals/array-includes":33,"../internals/function-uncurry-this":59,"../internals/has-own-property":66,"../internals/hidden-keys":67,"../internals/to-indexed-object":111}],101:[function(e,t,r){"use strict";var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,i)}},{"../internals/enum-bug-keys":48,"../internals/object-keys-internal":100}],102:[function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!n.call({1:2},1);r.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},{}],103:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/is-callable"),s=e("../internals/is-object"),o=TypeError;t.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!s(a=n(r,e)))return a;if(i(r=e.valueOf)&&!s(a=n(r,e)))return a;if("string"!==t&&i(r=e.toString)&&!s(a=n(r,e)))return a;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":56,"../internals/is-callable":74,"../internals/is-object":77}],104:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),s=e("../internals/object-get-own-property-names"),o=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),l=i([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=s.f(a(e)),r=o.f;return r?l(t,r(e)):t}},{"../internals/an-object":32,"../internals/function-uncurry-this":59,"../internals/get-built-in":60,"../internals/object-get-own-property-names":96,"../internals/object-get-own-property-symbols":97}],105:[function(e,t,r){"use strict";var n=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":76}],106:[function(e,t,r){"use strict";var n=e("../internals/shared"),i=e("../internals/uid"),s=n("keys");t.exports=function(e){return s[e]||(s[e]=i(e))}},{"../internals/shared":108,"../internals/uid":118}],107:[function(e,t,r){"use strict";var n=e("../internals/is-pure"),i=e("../internals/global-this"),s=e("../internals/define-global-property"),o="__core-js_shared__",a=t.exports=i[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/define-global-property":45,"../internals/global-this":65,"../internals/is-pure":78}],108:[function(e,t,r){"use strict";var n=e("../internals/shared-store"),i=Object.create||Object;t.exports=function(e,t){return n[e]||(n[e]=t||i(null))}},{"../internals/shared-store":107}],109:[function(e,t,r){"use strict";var n=e("../internals/environment-v8-version"),i=e("../internals/fails"),s=e("../internals/global-this").String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},{"../internals/environment-v8-version":50,"../internals/fails":52,"../internals/global-this":65}],110:[function(e,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),i=Math.max,s=Math.min;t.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):s(r,t)}},{"../internals/to-integer-or-infinity":112}],111:[function(e,t,r){"use strict";var n=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return n(i(e))}},{"../internals/indexed-object":70,"../internals/require-object-coercible":105}],112:[function(e,t,r){"use strict";var n=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},{"../internals/math-trunc":91}],113:[function(e,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},{"../internals/to-integer-or-infinity":112}],114:[function(e,t,r){"use strict";var n=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(n(e))}},{"../internals/require-object-coercible":105}],115:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/is-object"),s=e("../internals/is-symbol"),o=e("../internals/get-method"),a=e("../internals/ordinary-to-primitive"),l=e("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");t.exports=function(e,t){if(!i(e)||s(e))return e;var r,l=o(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||s(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},{"../internals/function-call":56,"../internals/get-method":64,"../internals/is-object":77,"../internals/is-symbol":79,"../internals/ordinary-to-primitive":103,"../internals/well-known-symbol":122}],116:[function(e,t,r){"use strict";var n=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":79,"../internals/to-primitive":115}],117:[function(e,t,r){"use strict";var n=String;t.exports=function(e){try{return n(e)}catch(e){return"Object"}}},{}],118:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=0,s=Math.random(),o=n(1.1.toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+s,36)}},{"../internals/function-uncurry-this":59}],119:[function(e,t,r){"use strict";var n=e("../internals/symbol-constructor-detection");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":109}],120:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails");t.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},{"../internals/descriptors":46,"../internals/fails":52}],121:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=e("../internals/is-callable"),s=n.WeakMap;t.exports=i(s)&&/native code/.test(String(s))},{"../internals/global-this":65,"../internals/is-callable":74}],122:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=e("../internals/shared"),s=e("../internals/has-own-property"),o=e("../internals/uid"),a=e("../internals/symbol-constructor-detection"),l=e("../internals/use-symbol-as-uid"),c=n.Symbol,u=i("wks"),d=l?c.for||c:c&&c.withoutSetter||o;t.exports=function(e){return s(u,e)||(u[e]=a&&s(c,e)?c[e]:d("Symbol."+e)),u[e]}},{"../internals/global-this":65,"../internals/has-own-property":66,"../internals/shared":108,"../internals/symbol-constructor-detection":109,"../internals/uid":118,"../internals/use-symbol-as-uid":119}],123:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/global-this"),s=e("../internals/an-instance"),o=e("../internals/an-object"),a=e("../internals/is-callable"),l=e("../internals/object-get-prototype-of"),c=e("../internals/define-built-in-accessor"),u=e("../internals/create-property"),d=e("../internals/fails"),f=e("../internals/has-own-property"),p=e("../internals/well-known-symbol"),h=e("../internals/iterators-core").IteratorPrototype,v=e("../internals/descriptors"),m=e("../internals/is-pure"),b="constructor",y="Iterator",g=p("toStringTag"),j=TypeError,x=i[y],E=m||!a(x)||x.prototype!==h||!d(function(){x({})}),w=function(){if(s(this,h),l(this)===h)throw new j("Abstract class Iterator not directly constructable")},L=function(e,t){v?c(h,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===h)throw new j("You can't redefine this property");f(this,e)?this[e]=t:u(this,e,t)}}):h[e]=t};f(h,g)||L(g,y),!E&&f(h,b)&&h[b]!==Object||L(b,w),w.prototype=h,n({global:!0,constructor:!0,forced:E},{Iterator:w})},{"../internals/an-instance":31,"../internals/an-object":32,"../internals/create-property":41,"../internals/define-built-in-accessor":42,"../internals/descriptors":46,"../internals/export":51,"../internals/fails":52,"../internals/global-this":65,"../internals/has-own-property":66,"../internals/is-callable":74,"../internals/is-pure":78,"../internals/iterators-core":87,"../internals/object-get-prototype-of":98,"../internals/well-known-symbol":122}],124:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/a-callable"),o=e("../internals/an-object"),a=e("../internals/get-iterator-direct"),l=e("../internals/iterator-create-proxy"),c=e("../internals/call-with-safe-iteration-closing"),u=e("../internals/is-pure"),d=e("../internals/iterator-close"),f=e("../internals/iterator-helper-throws-on-invalid-iterator"),p=e("../internals/iterator-helper-without-closing-on-early-error"),h=!u&&!f("filter",function(){}),v=!u&&!h&&p("filter",TypeError),m=u||h||v,b=l(function(){for(var e,t,r=this.iterator,n=this.predicate,s=this.next;;){if(e=o(i(s,r)),this.done=!!e.done)return;if(t=e.value,c(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){o(this);try{s(e)}catch(e){d(this,"throw",e)}return v?i(v,this,e):new b(a(this),{predicate:e})}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/call-with-safe-iteration-closing":34,"../internals/export":51,"../internals/function-call":56,"../internals/get-iterator-direct":61,"../internals/is-pure":78,"../internals/iterator-close":83,"../internals/iterator-create-proxy":84,"../internals/iterator-helper-throws-on-invalid-iterator":85,"../internals/iterator-helper-without-closing-on-early-error":86}],125:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/iterate"),o=e("../internals/a-callable"),a=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),c=e("../internals/iterator-close"),u=e("../internals/iterator-helper-without-closing-on-early-error")("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),r=0;return s(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/export":51,"../internals/function-call":56,"../internals/get-iterator-direct":61,"../internals/iterate":80,"../internals/iterator-close":83,"../internals/iterator-helper-without-closing-on-early-error":86}],126:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/iterate"),o=e("../internals/a-callable"),a=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),c=e("../internals/iterator-close"),u=e("../internals/iterator-helper-without-closing-on-early-error")("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),r=0;s(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/export":51,"../internals/function-call":56,"../internals/get-iterator-direct":61,"../internals/iterate":80,"../internals/iterator-close":83,"../internals/iterator-helper-without-closing-on-early-error":86}],127:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/a-callable"),o=e("../internals/an-object"),a=e("../internals/get-iterator-direct"),l=e("../internals/iterator-create-proxy"),c=e("../internals/call-with-safe-iteration-closing"),u=e("../internals/iterator-close"),d=e("../internals/iterator-helper-throws-on-invalid-iterator"),f=e("../internals/iterator-helper-without-closing-on-early-error"),p=e("../internals/is-pure"),h=!p&&!d("map",function(){}),v=!p&&!h&&f("map",TypeError),m=p||h||v,b=l(function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){o(this);try{s(e)}catch(e){u(this,"throw",e)}return v?i(v,this,e):new b(a(this),{mapper:e})}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/call-with-safe-iteration-closing":34,"../internals/export":51,"../internals/function-call":56,"../internals/get-iterator-direct":61,"../internals/is-pure":78,"../internals/iterator-close":83,"../internals/iterator-create-proxy":84,"../internals/iterator-helper-throws-on-invalid-iterator":85,"../internals/iterator-helper-without-closing-on-early-error":86}],128:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/iterate"),s=e("../internals/a-callable"),o=e("../internals/an-object"),a=e("../internals/get-iterator-direct"),l=e("../internals/iterator-close"),c=e("../internals/iterator-helper-without-closing-on-early-error"),u=e("../internals/function-apply"),d=e("../internals/fails"),f=TypeError,p=d(function(){[].keys().reduce(function(){},void 0)}),h=!p&&c("reduce",f);n({target:"Iterator",proto:!0,real:!0,forced:p||h},{reduce:function(e){o(this);try{s(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(h)return u(h,this,t?[e]:[e,r]);var n=a(this),c=0;if(i(n,function(n){t?(t=!1,r=n):r=e(r,n,c),c++},{IS_RECORD:!0}),t)throw new f("Reduce of empty iterator with no initial value");return r}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/export":51,"../internals/fails":52,"../internals/function-apply":53,"../internals/get-iterator-direct":61,"../internals/iterate":80,"../internals/iterator-close":83,"../internals/iterator-helper-without-closing-on-early-error":86}],129:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/iterate"),o=e("../internals/a-callable"),a=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),c=e("../internals/iterator-close"),u=e("../internals/iterator-helper-without-closing-on-early-error")("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),r=0;return s(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/export":51,"../internals/function-call":56,"../internals/get-iterator-direct":61,"../internals/iterate":80,"../internals/iterator-close":83,"../internals/iterator-helper-without-closing-on-early-error":86}],130:[function(e,t,r){"use strict";e("../modules/es.iterator.constructor")},{"../modules/es.iterator.constructor":123}],131:[function(e,t,r){"use strict";e("../modules/es.iterator.filter")},{"../modules/es.iterator.filter":124}],132:[function(e,t,r){"use strict";e("../modules/es.iterator.find")},{"../modules/es.iterator.find":125}],133:[function(e,t,r){"use strict";e("../modules/es.iterator.for-each")},{"../modules/es.iterator.for-each":126}],134:[function(e,t,r){"use strict";e("../modules/es.iterator.map")},{"../modules/es.iterator.map":127}],135:[function(e,t,r){"use strict";e("../modules/es.iterator.reduce")},{"../modules/es.iterator.reduce":128}],136:[function(e,t,r){"use strict";e("../modules/es.iterator.some")},{"../modules/es.iterator.some":129}]},{},[8]);
@@ -0,0 +1,96 @@
1
+ /**
2
+ * @file Substitute for the DOM EventEventListener Class.
3
+ * @author Joshua Heagle <joshuaheagle@gmail.com>
4
+ * @version 1.0.0
5
+ */
6
+ import { EventService } from '../services/EventService';
7
+ /**
8
+ * Handle events as they are stored and implemented.
9
+ * @author Joshua Heagle <joshuaheagle@gmail.com>
10
+ * @class
11
+ * @property {string} eventType
12
+ * @property {Object} eventOptions
13
+ * @property {boolean} isDefault
14
+ */
15
+ declare class PseudoEventListener {
16
+ private eventOptions;
17
+ private eventType;
18
+ private handler;
19
+ private readonly originalCallback;
20
+ private readonly defaultListener;
21
+ constructor(eventType: string, { capture, once, passive }: {
22
+ capture?: boolean;
23
+ once?: boolean;
24
+ passive?: boolean;
25
+ }, handleEvent: Function, originalCallback?: Function);
26
+ /**
27
+ * The function (or object with handleEvent) which was originally given when registering, used to find this listener again for removal.
28
+ */
29
+ get callback(): Function;
30
+ get isDefault(): boolean;
31
+ get once(): boolean;
32
+ /**
33
+ * @method
34
+ * @name PseudoEventListener#handleEvent
35
+ * @param {PseudoEvent} event
36
+ * @returns {*}
37
+ */
38
+ handleEvent(event: EventService): any;
39
+ /**
40
+ * @method
41
+ * @name PseudoEventListener#doCapturePhase
42
+ * @param {PseudoEvent} event
43
+ * @returns {boolean}
44
+ */
45
+ doCapturePhase(event: EventService): boolean;
46
+ /**
47
+ * @method
48
+ * @name PseudoEventListener#doTargetPhase
49
+ * @param {PseudoEvent} event
50
+ * @returns {boolean}
51
+ */
52
+ doTargetPhase(event: EventService): boolean;
53
+ /**
54
+ * @method
55
+ * @name PseudoEventListener#doBubblePhase
56
+ * @param {PseudoEvent} event
57
+ * @returns {boolean|*}
58
+ */
59
+ doBubblePhase(event: EventService): boolean | any;
60
+ /**
61
+ * @method
62
+ * @name PseudoEventListener#skipPhase
63
+ * @param {PseudoEvent} event
64
+ * @returns {boolean}
65
+ */
66
+ skipPhase(event: EventService): boolean;
67
+ /**
68
+ * @method
69
+ * @name PseudoEventListener#skipDefault
70
+ * @param {PseudoEvent} event
71
+ * @returns {boolean|*}
72
+ */
73
+ skipDefault(event: EventService): boolean | any;
74
+ /**
75
+ * @method
76
+ * @name PseudoEventListener#stopPropagation
77
+ * @param {PseudoEvent} event
78
+ * @returns {boolean}
79
+ */
80
+ stopPropagation(event: EventService): boolean;
81
+ /**
82
+ * @method
83
+ * @name PseudoEventListener#nonPassiveHalt
84
+ * @param {PseudoEvent} event
85
+ * @returns {boolean|*}
86
+ */
87
+ nonPassiveHalt(event: EventService): boolean | any;
88
+ /**
89
+ * @method
90
+ * @name PseudoEventListener#rejectEvent
91
+ * @param {PseudoEvent} event
92
+ * @returns {*|boolean}
93
+ */
94
+ rejectEvent(event: EventService): any | boolean;
95
+ }
96
+ export default PseudoEventListener;
@@ -0,0 +1,148 @@
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
6
+ /**
7
+ * @file Substitute for the DOM EventEventListener Class.
8
+ * @author Joshua Heagle <joshuaheagle@gmail.com>
9
+ * @version 1.0.0
10
+ */
11
+ const EventService_1 = require('../services/EventService')
12
+ /**
13
+ * Handle events as they are stored and implemented.
14
+ * @author Joshua Heagle <joshuaheagle@gmail.com>
15
+ * @class
16
+ * @property {string} eventType
17
+ * @property {Object} eventOptions
18
+ * @property {boolean} isDefault
19
+ */
20
+ class PseudoEventListener {
21
+ constructor (eventType, {
22
+ capture = false,
23
+ once = false,
24
+ passive = false
25
+ } = {}, handleEvent, originalCallback = handleEvent) {
26
+ this.eventOptions = {
27
+ capture: false,
28
+ once: false,
29
+ passive: false
30
+ }
31
+ this.eventType = ''
32
+ this.defaultListener = false
33
+ this.eventOptions = {
34
+ capture,
35
+ once,
36
+ passive
37
+ }
38
+ this.eventType = eventType
39
+ this.handler = handleEvent
40
+ this.originalCallback = originalCallback
41
+ }
42
+
43
+ /**
44
+ * The function (or object with handleEvent) which was originally given when registering, used to find this listener again for removal.
45
+ */
46
+ get callback () {
47
+ return this.originalCallback
48
+ }
49
+
50
+ get isDefault () {
51
+ return this.defaultListener
52
+ }
53
+
54
+ get once () {
55
+ return this.eventOptions.once
56
+ }
57
+
58
+ /**
59
+ * @method
60
+ * @name PseudoEventListener#handleEvent
61
+ * @param {PseudoEvent} event
62
+ * @returns {*}
63
+ */
64
+ handleEvent (event) {
65
+ return this.handler(event)
66
+ }
67
+
68
+ /**
69
+ * @method
70
+ * @name PseudoEventListener#doCapturePhase
71
+ * @param {PseudoEvent} event
72
+ * @returns {boolean}
73
+ */
74
+ doCapturePhase (event) {
75
+ return event.eventPhase === EventService_1.EventService.CAPTURING_PHASE && this.eventOptions.capture
76
+ }
77
+
78
+ /**
79
+ * @method
80
+ * @name PseudoEventListener#doTargetPhase
81
+ * @param {PseudoEvent} event
82
+ * @returns {boolean}
83
+ */
84
+ doTargetPhase (event) {
85
+ return event.eventPhase === EventService_1.EventService.AT_TARGET
86
+ }
87
+
88
+ /**
89
+ * @method
90
+ * @name PseudoEventListener#doBubblePhase
91
+ * @param {PseudoEvent} event
92
+ * @returns {boolean|*}
93
+ */
94
+ doBubblePhase (event) {
95
+ return event.eventPhase === EventService_1.EventService.BUBBLING_PHASE && (event.bubbles || !this.eventOptions.capture)
96
+ }
97
+
98
+ /**
99
+ * @method
100
+ * @name PseudoEventListener#skipPhase
101
+ * @param {PseudoEvent} event
102
+ * @returns {boolean}
103
+ */
104
+ skipPhase (event) {
105
+ return !this.doCapturePhase(event) && !this.doTargetPhase(event) && !this.doBubblePhase(event)
106
+ }
107
+
108
+ /**
109
+ * @method
110
+ * @name PseudoEventListener#skipDefault
111
+ * @param {PseudoEvent} event
112
+ * @returns {boolean|*}
113
+ */
114
+ skipDefault (event) {
115
+ return this.isDefault && event.defaultPrevented
116
+ }
117
+
118
+ /**
119
+ * @method
120
+ * @name PseudoEventListener#stopPropagation
121
+ * @param {PseudoEvent} event
122
+ * @returns {boolean}
123
+ */
124
+ stopPropagation (event) {
125
+ return !this.doTargetPhase(event) && event.inner.propagationStopped
126
+ }
127
+
128
+ /**
129
+ * @method
130
+ * @name PseudoEventListener#nonPassiveHalt
131
+ * @param {PseudoEvent} event
132
+ * @returns {boolean|*}
133
+ */
134
+ nonPassiveHalt (event) {
135
+ return !this.eventOptions.passive && (this.skipDefault(event) || event.inner.immediatePropagationStopped || this.stopPropagation(event))
136
+ }
137
+
138
+ /**
139
+ * @method
140
+ * @name PseudoEventListener#rejectEvent
141
+ * @param {PseudoEvent} event
142
+ * @returns {*|boolean}
143
+ */
144
+ rejectEvent (event) {
145
+ return this.nonPassiveHalt(event) || this.skipPhase(event)
146
+ }
147
+ }
148
+ exports.default = PseudoEventListener
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const EventService_1=require("../services/EventService");class PseudoEventListener{constructor(e,{capture:t=!1,once:s=!1,passive:n=!1}={},i,r=i){this.eventOptions={capture:!1,once:!1,passive:!1},this.eventType="",this.defaultListener=!1,this.eventOptions={capture:t,once:s,passive:n},this.eventType=e,this.handler=i,this.originalCallback=r}get callback(){return this.originalCallback}get isDefault(){return this.defaultListener}get once(){return this.eventOptions.once}handleEvent(e){return this.handler(e)}doCapturePhase(e){return e.eventPhase===EventService_1.EventService.CAPTURING_PHASE&&this.eventOptions.capture}doTargetPhase(e){return e.eventPhase===EventService_1.EventService.AT_TARGET}doBubblePhase(e){return e.eventPhase===EventService_1.EventService.BUBBLING_PHASE&&(e.bubbles||!this.eventOptions.capture)}skipPhase(e){return!this.doCapturePhase(e)&&!this.doTargetPhase(e)&&!this.doBubblePhase(e)}skipDefault(e){return this.isDefault&&e.defaultPrevented}stopPropagation(e){return!this.doTargetPhase(e)&&e.inner.propagationStopped}nonPassiveHalt(e){return!this.eventOptions.passive&&(this.skipDefault(e)||e.inner.immediatePropagationStopped||this.stopPropagation(e))}rejectEvent(e){return this.nonPassiveHalt(e)||this.skipPhase(e)}}exports.default=PseudoEventListener;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @file Substitute for the DOM HTMLDocument Class.
3
+ * @author Joshua Heagle <joshuaheagle@gmail.com>
4
+ * @version 1.0.0
5
+ */
6
+ /**
7
+ *
8
+ * @type {PseudoHTMLElement}
9
+ */
10
+ import { HTMLElementService as PseudoHTMLElement } from '../services/HTMLElementService';
11
+ /**
12
+ * Simulate the behaviour of the HTMLDocument Class when there is no DOM available.
13
+ * @author Joshua Heagle <joshuaheagle@gmail.com>
14
+ * @class
15
+ * @augments PseudoHTMLElement
16
+ * @property {PseudoHTMLElement} head - A reference to the Head child element
17
+ * @property {PseudoHTMLElement} body - A reference to the Body child element
18
+ * @property {function} createElement - Generate a new PseudoHTMLElement with parent of document
19
+ */
20
+ declare class PseudoHTMLDocument extends PseudoHTMLElement {
21
+ private head;
22
+ private body;
23
+ /**
24
+ * The root HTML element is acts as the parent to all HTML elements in the document.
25
+ * @constructor
26
+ */
27
+ constructor();
28
+ /**
29
+ * Create and return a PseudoHTMLElement
30
+ * @param {string} tagName - Tag Name is a string representing the type of Dom element this represents
31
+ * @returns {PseudoHTMLElement}
32
+ */
33
+ createElement(tagName?: string): PseudoHTMLElement;
34
+ }
35
+ export default PseudoHTMLDocument;
@@ -0,0 +1,77 @@
1
+ 'use strict'
2
+
3
+ const __importDefault = void 0 && (void 0).__importDefault || function (mod) {
4
+ return mod && mod.__esModule
5
+ ? mod
6
+ : {
7
+ default: mod
8
+ }
9
+ }
10
+ Object.defineProperty(exports, '__esModule', {
11
+ value: true
12
+ })
13
+ /**
14
+ * @file Substitute for the DOM HTMLDocument Class.
15
+ * @author Joshua Heagle <joshuaheagle@gmail.com>
16
+ * @version 1.0.0
17
+ */
18
+ /**
19
+ *
20
+ * @type {PseudoHTMLElement}
21
+ */
22
+ const HTMLElementService_1 = require('../services/HTMLElementService')
23
+ const generateNodeList_1 = __importDefault(require('../factories/generateNodeList'))
24
+ const TreeLinker_1 = require('collect-your-stuff/dist/collections/linked-tree-list/TreeLinker')
25
+ /**
26
+ * Simulate the behaviour of the HTMLDocument Class when there is no DOM available.
27
+ * @author Joshua Heagle <joshuaheagle@gmail.com>
28
+ * @class
29
+ * @augments PseudoHTMLElement
30
+ * @property {PseudoHTMLElement} head - A reference to the Head child element
31
+ * @property {PseudoHTMLElement} body - A reference to the Body child element
32
+ * @property {function} createElement - Generate a new PseudoHTMLElement with parent of document
33
+ */
34
+ class PseudoHTMLDocument extends HTMLElementService_1.HTMLElementService {
35
+ /**
36
+ * The root HTML element is acts as the parent to all HTML elements in the document.
37
+ * @constructor
38
+ */
39
+ constructor () {
40
+ super()
41
+ const html = new HTMLElementService_1.HTMLElementService({
42
+ tagName: 'html',
43
+ parent: this
44
+ })
45
+ /**
46
+ * Create document head element
47
+ * @type {PseudoHTMLElement}
48
+ */
49
+ this.head = new HTMLElementService_1.HTMLElementService({
50
+ tagName: 'head',
51
+ parent: html
52
+ })
53
+ /**
54
+ * Create document body element
55
+ * @type {PseudoHTMLElement}
56
+ */
57
+ this.body = new HTMLElementService_1.HTMLElementService({
58
+ tagName: 'body',
59
+ parent: html
60
+ })
61
+ html.children = (0, generateNodeList_1.default)(TreeLinker_1.TreeLinker.fromArray([this.head, this.body]).head)
62
+ }
63
+
64
+ /**
65
+ * Create and return a PseudoHTMLElement
66
+ * @param {string} tagName - Tag Name is a string representing the type of Dom element this represents
67
+ * @returns {PseudoHTMLElement}
68
+ */
69
+ createElement (tagName = 'div') {
70
+ const returnElement = new HTMLElementService_1.HTMLElementService({
71
+ tagName
72
+ })
73
+ returnElement.parent = this
74
+ return returnElement
75
+ }
76
+ }
77
+ exports.default = PseudoHTMLDocument
@@ -0,0 +1 @@
1
+ "use strict";var __importDefault=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const HTMLElementService_1=require("../services/HTMLElementService"),generateNodeList_1=__importDefault(require("../factories/generateNodeList")),TreeLinker_1=require("collect-your-stuff/dist/collections/linked-tree-list/TreeLinker");class PseudoHTMLDocument extends HTMLElementService_1.HTMLElementService{constructor(){super();const e=new HTMLElementService_1.HTMLElementService({tagName:"html",parent:this});this.head=new HTMLElementService_1.HTMLElementService({tagName:"head",parent:e}),this.body=new HTMLElementService_1.HTMLElementService({tagName:"body",parent:e}),e.children=(0,generateNodeList_1.default)(TreeLinker_1.TreeLinker.fromArray([this.head,this.body]).head)}createElement(e="div"){const t=new HTMLElementService_1.HTMLElementService({tagName:e});return t.parent=this,t}}exports.default=PseudoHTMLDocument;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @file Substitute for the NodeList interface.
3
+ * @author Joshua Heagle <joshuaheagle@gmail.com>
4
+ * @version 1.0.0
5
+ */
6
+ import { LinkedTreeList } from 'collect-your-stuff/dist/collections/linked-tree-list/LinkedTreeList';
7
+ /**
8
+ * A NodeList, like the DOM one, iterates over the nodes themselves (the data stored in each TreeLinker), rather than
9
+ * the linkers that hold them.
10
+ * @class
11
+ * @augments LinkedTreeList
12
+ */
13
+ export declare class PseudoNodeList extends LinkedTreeList {
14
+ /**
15
+ * Iterate over the nodes in this list.
16
+ * @returns {Iterator}
17
+ */
18
+ [Symbol.iterator](): Iterator<any>;
19
+ /**
20
+ * Iterate over [index, node] pairs.
21
+ * @returns {Iterator}
22
+ */
23
+ entries(): Iterator<[number, any]>;
24
+ /**
25
+ * Iterate over the indexes.
26
+ * @returns {Iterator}
27
+ */
28
+ keys(): Iterator<number>;
29
+ /**
30
+ * Iterate over the nodes.
31
+ * @returns {Iterator}
32
+ */
33
+ values(): Iterator<any>;
34
+ }