taggedjs 2.8.44 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.js +1 -1
- package/bundle.js.map +1 -1
- package/js/TagJsEvent.type.d.ts +1 -5
- package/js/TagJsEvent.type.js +6 -0
- package/js/TagJsEvent.type.js.map +1 -1
- package/js/elements/designElement.function.d.ts +48 -0
- package/js/elements/designElement.function.js +77 -0
- package/js/elements/designElement.function.js.map +1 -0
- package/js/elements/destroyDesignElement.function.d.ts +4 -0
- package/js/elements/destroyDesignElement.function.js +53 -0
- package/js/elements/destroyDesignElement.function.js.map +1 -0
- package/js/elements/div.d.ts +4 -0
- package/js/elements/div.js +6 -0
- package/js/elements/div.js.map +1 -0
- package/js/elements/elementFunctions.d.ts +20 -0
- package/js/elements/elementFunctions.js +140 -0
- package/js/elements/elementFunctions.js.map +1 -0
- package/js/elements/htmlTag.function.d.ts +48 -0
- package/js/elements/htmlTag.function.js +77 -0
- package/js/elements/htmlTag.function.js.map +1 -0
- package/js/elements/index.d.ts +52 -0
- package/js/elements/index.js +56 -0
- package/js/elements/index.js.map +1 -0
- package/js/elements/noElement.function.d.ts +4 -0
- package/js/elements/noElement.function.js +53 -0
- package/js/elements/noElement.function.js.map +1 -0
- package/js/elements/processChildren.d.ts +5 -0
- package/js/elements/processChildren.function.d.ts +8 -0
- package/js/elements/processChildren.function.js +63 -0
- package/js/elements/processChildren.function.js.map +1 -0
- package/js/elements/processChildren.js +48 -0
- package/js/elements/processChildren.js.map +1 -0
- package/js/elements/processDesignElementInit.function.d.ts +3 -0
- package/js/elements/processDesignElementInit.function.js +19 -0
- package/js/elements/processDesignElementInit.function.js.map +1 -0
- package/js/elements/processDesignElementUpdate.function.d.ts +4 -0
- package/js/elements/processDesignElementUpdate.function.js +70 -0
- package/js/elements/processDesignElementUpdate.function.js.map +1 -0
- package/js/elements/processElementVar.d.ts +4 -0
- package/js/elements/processElementVar.function.d.ts +5 -0
- package/js/elements/processElementVar.function.js +63 -0
- package/js/elements/processElementVar.function.js.map +1 -0
- package/js/elements/processElementVar.js +78 -0
- package/js/elements/processElementVar.js.map +1 -0
- package/js/elements/processElementVarFunction.d.ts +3 -0
- package/js/elements/processElementVarFunction.function.d.ts +4 -0
- package/js/elements/processElementVarFunction.function.js +67 -0
- package/js/elements/processElementVarFunction.function.js.map +1 -0
- package/js/elements/processElementVarFunction.js +53 -0
- package/js/elements/processElementVarFunction.js.map +1 -0
- package/js/index.d.ts +5 -3
- package/js/index.js +4 -2
- package/js/index.js.map +1 -1
- package/js/interpolations/attributes/addSupportEventListener.function.d.ts +2 -1
- package/js/interpolations/attributes/addSupportEventListener.function.js +10 -23
- package/js/interpolations/attributes/addSupportEventListener.function.js.map +1 -1
- package/js/interpolations/attributes/bindSubjectCallback.function.d.ts +2 -2
- package/js/interpolations/attributes/bindSubjectCallback.function.js +10 -8
- package/js/interpolations/attributes/bindSubjectCallback.function.js.map +1 -1
- package/js/interpolations/attributes/bubbleEvent.function.d.ts +1 -0
- package/js/interpolations/attributes/bubbleEvent.function.js +22 -0
- package/js/interpolations/attributes/bubbleEvent.function.js.map +1 -0
- package/js/interpolations/attributes/checkToResolvePromise.function.d.ts +2 -3
- package/js/interpolations/attributes/checkToResolvePromise.function.js +7 -10
- package/js/interpolations/attributes/checkToResolvePromise.function.js.map +1 -1
- package/js/interpolations/attributes/getSupportWithState.function.d.ts +2 -1
- package/js/interpolations/attributes/getSupportWithState.function.js +15 -1
- package/js/interpolations/attributes/getSupportWithState.function.js.map +1 -1
- package/js/interpolations/attributes/getUpTags.function.js +11 -3
- package/js/interpolations/attributes/getUpTags.function.js.map +1 -1
- package/js/interpolations/attributes/howToSetInputValue.function.d.ts +5 -2
- package/js/interpolations/attributes/howToSetInputValue.function.js +49 -2
- package/js/interpolations/attributes/howToSetInputValue.function.js.map +1 -1
- package/js/interpolations/attributes/isSpecialAttribute.function.js +2 -0
- package/js/interpolations/attributes/isSpecialAttribute.function.js.map +1 -1
- package/js/interpolations/attributes/processAttributeCallback.function.d.ts +1 -1
- package/js/interpolations/attributes/processFunctionAttr.function.d.ts +6 -0
- package/js/interpolations/attributes/processFunctionAttr.function.js +65 -0
- package/js/interpolations/attributes/processFunctionAttr.function.js.map +1 -0
- package/js/interpolations/attributes/processNameValueAttribute.function.d.ts +4 -4
- package/js/interpolations/attributes/processNameValueAttribute.function.js +15 -8
- package/js/interpolations/attributes/processNameValueAttribute.function.js.map +1 -1
- package/js/interpolations/attributes/renderTagArray.function.d.ts +1 -1
- package/js/interpolations/attributes/renderTagArray.function.js +5 -2
- package/js/interpolations/attributes/renderTagArray.function.js.map +1 -1
- package/js/interpolations/attributes/specialAttribute.js +6 -5
- package/js/interpolations/attributes/specialAttribute.js.map +1 -1
- package/js/interpolations/attributes/updateAttribute.function.d.ts +1 -2
- package/js/interpolations/attributes/updateAttribute.function.js +2 -2
- package/js/interpolations/attributes/updateAttribute.function.js.map +1 -1
- package/js/interpolations/attributes/updateNameOnlyAttrValue.function.d.ts +4 -0
- package/js/interpolations/attributes/updateNameOnlyAttrValue.function.js +39 -0
- package/js/interpolations/attributes/updateNameOnlyAttrValue.function.js.map +1 -0
- package/js/interpolations/interpolateTemplate.d.ts +1 -1
- package/js/interpolations/optimizers/ObjectNode.types.d.ts +5 -8
- package/js/interpolations/optimizers/attachDynamicDom.function.d.ts +3 -5
- package/js/interpolations/optimizers/attachDynamicDom.function.js +10 -7
- package/js/interpolations/optimizers/attachDynamicDom.function.js.map +1 -1
- package/js/interpolations/optimizers/domProcessContextItem.function.d.ts +1 -3
- package/js/interpolations/optimizers/domProcessContextItem.function.js +8 -9
- package/js/interpolations/optimizers/domProcessContextItem.function.js.map +1 -1
- package/js/isInstance.d.ts +1 -1
- package/js/isInstance.js +2 -0
- package/js/isInstance.js.map +1 -1
- package/js/render/addOneContext.function.d.ts +4 -0
- package/js/render/addOneContext.function.js +26 -0
- package/js/render/addOneContext.function.js.map +1 -0
- package/js/render/afterRender.function.d.ts +5 -2
- package/js/render/afterRender.function.js +24 -8
- package/js/render/afterRender.function.js.map +1 -1
- package/js/render/attributes/createDynamicAttribute.function.d.ts +6 -6
- package/js/render/attributes/createDynamicAttribute.function.js +34 -12
- package/js/render/attributes/createDynamicAttribute.function.js.map +1 -1
- package/js/render/attributes/processAttribute.function.d.ts +9 -10
- package/js/render/attributes/processAttribute.function.js +55 -57
- package/js/render/attributes/processAttribute.function.js.map +1 -1
- package/js/render/attributes/processStandAloneAttribute.function.d.ts +5 -0
- package/js/render/attributes/processStandAloneAttribute.function.js +37 -0
- package/js/render/attributes/processStandAloneAttribute.function.js.map +1 -0
- package/js/render/attributes/processTagJsAttribute.function.d.ts +7 -0
- package/js/render/attributes/processTagJsAttribute.function.js +24 -0
- package/js/render/attributes/processTagJsAttribute.function.js.map +1 -0
- package/js/render/attributes/processTagJsVarAttribute.function.d.ts +6 -0
- package/js/render/attributes/processTagJsVarAttribute.function.js +19 -0
- package/js/render/attributes/processTagJsVarAttribute.function.js.map +1 -0
- package/js/render/attributes/processUpdateAttrContext.function.d.ts +3 -3
- package/js/render/attributes/processUpdateAttrContext.function.js +29 -9
- package/js/render/attributes/processUpdateAttrContext.function.js.map +1 -1
- package/js/render/buildBeforeElement.function.d.ts +2 -4
- package/js/render/buildBeforeElement.function.js +16 -22
- package/js/render/buildBeforeElement.function.js.map +1 -1
- package/js/render/callTag.d.ts +4 -0
- package/js/render/callTag.function.d.ts +4 -0
- package/js/render/callTag.function.js +25 -0
- package/js/render/callTag.function.js.map +1 -0
- package/js/render/callTag.js +26 -0
- package/js/render/callTag.js.map +1 -0
- package/js/render/checkRenderUp.d.ts +2 -0
- package/js/render/checkRenderUp.function.d.ts +5 -0
- package/js/render/checkRenderUp.function.js +39 -0
- package/js/render/checkRenderUp.function.js.map +1 -0
- package/js/render/checkRenderUp.js +14 -0
- package/js/render/checkRenderUp.js.map +1 -0
- package/js/render/destroySupport.function.d.ts +1 -1
- package/js/render/destroySupport.function.js +12 -7
- package/js/render/destroySupport.function.js.map +1 -1
- package/js/render/dom/attachDomElement.function.d.ts +4 -0
- package/js/render/dom/attachDomElement.function.js +17 -0
- package/js/render/dom/attachDomElement.function.js.map +1 -0
- package/js/render/dom/attachDomElements.function.d.ts +2 -4
- package/js/render/dom/attachDomElements.function.js +48 -36
- package/js/render/dom/attachDomElements.function.js.map +1 -1
- package/js/render/dom/blankHandler.function.d.ts +1 -0
- package/js/render/dom/blankHandler.function.js +4 -0
- package/js/render/dom/blankHandler.function.js.map +1 -0
- package/js/render/dom/processAttributeArray.function.d.ts +4 -0
- package/js/render/dom/processAttributeArray.function.js +24 -0
- package/js/render/dom/processAttributeArray.function.js.map +1 -0
- package/js/render/executeWrap.function.d.ts +1 -1
- package/js/render/executeWrap.function.js +8 -6
- package/js/render/executeWrap.function.js.map +1 -1
- package/js/render/paint.function.d.ts +15 -6
- package/js/render/paint.function.js +40 -34
- package/js/render/paint.function.js.map +1 -1
- package/js/render/registerNewTagElement.function.d.ts +4 -2
- package/js/render/registerNewTagElement.function.js +24 -6
- package/js/render/registerNewTagElement.function.js.map +1 -1
- package/js/render/renderExistingTag.function.d.ts +1 -1
- package/js/render/renderExistingTag.function.js +3 -4
- package/js/render/renderExistingTag.function.js.map +1 -1
- package/js/render/renderSupport.function.d.ts +1 -4
- package/js/render/renderSupport.function.js +4 -37
- package/js/render/renderSupport.function.js.map +1 -1
- package/js/render/renderTagElement.function.d.ts +3 -3
- package/js/render/renderTagElement.function.js +48 -45
- package/js/render/renderTagElement.function.js.map +1 -1
- package/js/render/renderTagOnly.function.d.ts +7 -3
- package/js/render/renderTagOnly.function.js +31 -33
- package/js/render/renderTagOnly.function.js.map +1 -1
- package/js/render/renderWithSupport.function.d.ts +2 -2
- package/js/render/renderWithSupport.function.js +18 -7
- package/js/render/renderWithSupport.function.js.map +1 -1
- package/js/render/runAfterRender.function.d.ts +9 -0
- package/js/render/runAfterRender.function.js +37 -0
- package/js/render/runAfterRender.function.js.map +1 -0
- package/js/render/softDestroySupport.function.d.ts +1 -1
- package/js/render/softDestroySupport.function.js +11 -10
- package/js/render/softDestroySupport.function.js.map +1 -1
- package/js/render/update/processRenderOnceInit.function.d.ts +2 -3
- package/js/render/update/processRenderOnceInit.function.js +4 -4
- package/js/render/update/processRenderOnceInit.function.js.map +1 -1
- package/js/render/update/processTag.function.d.ts +2 -4
- package/js/render/update/processTag.function.js +12 -9
- package/js/render/update/processTag.function.js.map +1 -1
- package/js/render/update/updateExistingTagComponent.function.d.ts +1 -1
- package/js/render/update/updateExistingTagComponent.function.js +8 -8
- package/js/render/update/updateExistingTagComponent.function.js.map +1 -1
- package/js/render/update/updateSupportBy.function.d.ts +1 -2
- package/js/render/update/updateSupportBy.function.js +3 -4
- package/js/render/update/updateSupportBy.function.js.map +1 -1
- package/js/state/StateMemory.type.d.ts +5 -2
- package/js/state/array.function.js +1 -1
- package/js/state/array.function.js.map +1 -1
- package/js/state/callback.function.d.ts +7 -4
- package/js/state/callback.function.js +19 -16
- package/js/state/callback.function.js.map +1 -1
- package/js/state/callbackMaker.function.js +5 -4
- package/js/state/callbackMaker.function.js.map +1 -1
- package/js/state/callbackStateUpdate.function.d.ts +2 -2
- package/js/state/callbackStateUpdate.function.js +24 -6
- package/js/state/callbackStateUpdate.function.js.map +1 -1
- package/js/state/handleProviderChanges.function.d.ts +1 -1
- package/js/state/handleProviderChanges.function.js.map +1 -1
- package/js/state/index.d.ts +2 -2
- package/js/state/index.js +2 -2
- package/js/state/index.js.map +1 -1
- package/js/state/onDestroy.function.d.ts +3 -0
- package/js/state/onDestroy.function.js +11 -0
- package/js/state/onDestroy.function.js.map +1 -0
- package/js/state/onDestroy.js +1 -1
- package/js/state/onDestroy.js.map +1 -1
- package/js/state/onInit.function.d.ts +4 -0
- package/js/state/onInit.function.js +24 -0
- package/js/state/onInit.function.js.map +1 -0
- package/js/state/onInit.js +1 -1
- package/js/state/onInit.js.map +1 -1
- package/js/state/onRender.function.d.ts +1 -0
- package/js/state/onRender.function.js +22 -0
- package/js/state/onRender.function.js.map +1 -0
- package/js/state/providers.d.ts +1 -1
- package/js/state/providers.js +11 -9
- package/js/state/providers.js.map +1 -1
- package/js/state/providersChangeCheck.function.d.ts +2 -1
- package/js/state/providersChangeCheck.function.js +3 -2
- package/js/state/providersChangeCheck.function.js.map +1 -1
- package/js/state/reState.d.ts +2 -0
- package/js/state/reState.function.d.ts +5 -0
- package/js/state/reState.function.js +28 -0
- package/js/state/reState.function.js.map +1 -0
- package/js/state/reState.js +8 -0
- package/js/state/reState.js.map +1 -0
- package/js/state/setUse.function.d.ts +1 -1
- package/js/state/setUseMemory.object.js +1 -1
- package/js/state/setUseMemory.object.js.map +1 -1
- package/js/state/signal.function.d.ts +1 -1
- package/js/state/signal.function.js +9 -5
- package/js/state/signal.function.js.map +1 -1
- package/js/state/state.utils.d.ts +4 -4
- package/js/state/state.utils.js +10 -19
- package/js/state/state.utils.js.map +1 -1
- package/js/state/stateHandlers.js +12 -3
- package/js/state/stateHandlers.js.map +1 -1
- package/js/state/states.utils.js +7 -1
- package/js/state/states.utils.js.map +1 -1
- package/js/state/subject.function.d.ts +7 -6
- package/js/state/subject.function.js +13 -5
- package/js/state/subject.function.js.map +1 -1
- package/js/state/syncStates.function.d.ts +1 -1
- package/js/state/syncStates.function.js +5 -1
- package/js/state/syncStates.function.js.map +1 -1
- package/js/state/tagClosed$.subject.d.ts +1 -1
- package/js/state/tagClosed$.subject.js +1 -1
- package/js/state/tagClosed$.subject.js.map +1 -1
- package/js/state/watch.function.d.ts +6 -5
- package/js/state/watch.function.js +63 -38
- package/js/state/watch.function.js.map +1 -1
- package/js/subject/Subject.class.d.ts +17 -16
- package/js/subject/Subject.class.js +17 -14
- package/js/subject/Subject.class.js.map +1 -1
- package/js/tag/AnySupport.type.d.ts +5 -7
- package/js/tag/AttributeContextItem.type.d.ts +16 -0
- package/js/tag/AttributeContextItem.type.js +2 -0
- package/js/tag/AttributeContextItem.type.js.map +1 -0
- package/js/tag/Context.types.d.ts +5 -5
- package/js/tag/ContextItem.type.d.ts +31 -16
- package/js/tag/ContextStateMeta.type.d.ts +13 -0
- package/js/tag/ContextStateMeta.type.js +2 -0
- package/js/tag/ContextStateMeta.type.js.map +1 -0
- package/js/tag/ProcessInit.type.d.ts +8 -3
- package/js/tag/ProcessUpdate.type.d.ts +3 -3
- package/js/tag/SupportContextItem.type.d.ts +18 -2
- package/js/tag/Tag.type.d.ts +1 -1
- package/js/tag/TagMaker.type.d.ts +1 -1
- package/js/tag/checkDestroyPrevious.function.d.ts +1 -3
- package/js/tag/checkDestroyPrevious.function.js +3 -13
- package/js/tag/checkDestroyPrevious.function.js.map +1 -1
- package/js/tag/checkStateMismatch.function.d.ts +1 -1
- package/js/tag/checkStateMismatch.function.js +3 -3
- package/js/tag/checkStateMismatch.function.js.map +1 -1
- package/js/tag/checkTagValueChange.function.d.ts +4 -5
- package/js/tag/checkTagValueChange.function.js +89 -15
- package/js/tag/checkTagValueChange.function.js.map +1 -1
- package/js/tag/createHtmlSupport.function.d.ts +6 -5
- package/js/tag/createHtmlSupport.function.js +12 -9
- package/js/tag/createHtmlSupport.function.js.map +1 -1
- package/js/tag/createSupport.function.d.ts +3 -2
- package/js/tag/createSupport.function.js +4 -2
- package/js/tag/createSupport.function.js.map +1 -1
- package/js/tag/cycles/getSupportInCycle.function.d.ts +3 -0
- package/js/tag/cycles/getSupportInCycle.function.js +10 -0
- package/js/tag/cycles/getSupportInCycle.function.js.map +1 -0
- package/js/tag/cycles/index.d.ts +1 -0
- package/js/tag/cycles/index.js +2 -0
- package/js/tag/cycles/index.js.map +1 -0
- package/js/tag/cycles/setContextInCycle.function.d.ts +7 -0
- package/js/tag/cycles/setContextInCycle.function.js +19 -0
- package/js/tag/cycles/setContextInCycle.function.js.map +1 -0
- package/js/tag/destroyArrayContext.function.d.ts +4 -0
- package/js/tag/destroyArrayContext.function.js +14 -0
- package/js/tag/destroyArrayContext.function.js.map +1 -0
- package/js/tag/destroyContext.function.d.ts +1 -1
- package/js/tag/destroyContext.function.js +5 -4
- package/js/tag/destroyContext.function.js.map +1 -1
- package/js/tag/destroyContexts.function.d.ts +9 -0
- package/js/tag/destroyContexts.function.js +61 -0
- package/js/tag/destroyContexts.function.js.map +1 -0
- package/js/tag/destroyHtmlDomMeta.function.d.ts +3 -0
- package/js/tag/destroyHtmlDomMeta.function.js +19 -0
- package/js/tag/destroyHtmlDomMeta.function.js.map +1 -0
- package/js/tag/destroySupportByContextItem.function.d.ts +2 -0
- package/js/tag/destroySupportByContextItem.function.js +19 -0
- package/js/tag/destroySupportByContextItem.function.js.map +1 -0
- package/js/tag/domMetaCollector.d.ts +1 -1
- package/js/tag/domMetaCollector.js +1 -1
- package/js/tag/domMetaCollector.js.map +1 -1
- package/js/tag/getDomTag.function.js +7 -4
- package/js/tag/getDomTag.function.js.map +1 -1
- package/js/tag/getTagWrap.function.d.ts +1 -1
- package/js/tag/getTagWrap.function.js +2 -2
- package/js/tag/getTagWrap.function.js.map +1 -1
- package/js/tag/getTemplaterResult.function.d.ts +7 -20
- package/js/tag/getTemplaterResult.function.js +14 -3
- package/js/tag/getTemplaterResult.function.js.map +1 -1
- package/js/tag/hasPropChanges.function.js +3 -2
- package/js/tag/hasPropChanges.function.js.map +1 -1
- package/js/tag/hasSupportChanged.function.d.ts +2 -3
- package/js/tag/hasSupportChanged.function.js +0 -43
- package/js/tag/hasSupportChanged.function.js.map +1 -1
- package/js/tag/html.d.ts +3 -3
- package/js/tag/html.js.map +1 -1
- package/js/tag/index.d.ts +2 -3
- package/js/tag/index.js +1 -1
- package/js/tag/index.js.map +1 -1
- package/js/tag/isLikeTags.function.d.ts +1 -1
- package/js/tag/loadNewBaseSupport.function.d.ts +1 -1
- package/js/tag/loadNewBaseSupport.function.js +6 -3
- package/js/tag/loadNewBaseSupport.function.js.map +1 -1
- package/js/tag/output.function.d.ts +2 -2
- package/js/tag/output.function.js +31 -14
- package/js/tag/output.function.js.map +1 -1
- package/js/tag/processOuterDomTagInit.function.d.ts +4 -3
- package/js/tag/processOuterDomTagInit.function.js +22 -16
- package/js/tag/processOuterDomTagInit.function.js.map +1 -1
- package/js/tag/processUpdateContext.function.d.ts +1 -1
- package/js/tag/processUpdateContext.function.js +16 -11
- package/js/tag/processUpdateContext.function.js.map +1 -1
- package/js/tag/props/alterProp.function.d.ts +9 -7
- package/js/tag/props/alterProp.function.js +53 -26
- package/js/tag/props/alterProp.function.js.map +1 -1
- package/js/tag/props/clonePropsBy.function.d.ts +1 -1
- package/js/tag/props/safeRenderSupport.function.d.ts +1 -1
- package/js/tag/shallowPropMatch.function.d.ts +2 -0
- package/js/tag/shallowPropMatch.function.js +44 -0
- package/js/tag/shallowPropMatch.function.js.map +1 -0
- package/js/tag/smartRemoveKids.function.d.ts +4 -2
- package/js/tag/smartRemoveKids.function.js +28 -47
- package/js/tag/smartRemoveKids.function.js.map +1 -1
- package/js/tag/tag.types.d.ts +8 -4
- package/js/tag/tag.types.js.map +1 -1
- package/js/tag/tagElement.d.ts +4 -4
- package/js/tag/tagElement.js +30 -13
- package/js/tag/tagElement.js.map +1 -1
- package/js/tag/tagRunner.d.ts +1 -1
- package/js/tag/tagRunner.js +3 -4
- package/js/tag/tagRunner.js.map +1 -1
- package/js/tag/update/SubContext.type.d.ts +18 -8
- package/js/tag/update/arrays/compareArrayItems.function.d.ts +7 -0
- package/js/tag/update/arrays/compareArrayItems.function.js +39 -0
- package/js/tag/update/arrays/compareArrayItems.function.js.map +1 -0
- package/js/tag/update/arrays/processTagArray.d.ts +7 -0
- package/js/tag/update/arrays/processTagArray.js +81 -0
- package/js/tag/update/arrays/processTagArray.js.map +1 -0
- package/js/tag/update/checkStillSubscription.function.d.ts +4 -0
- package/js/tag/update/checkStillSubscription.function.js +16 -0
- package/js/tag/update/checkStillSubscription.function.js.map +1 -0
- package/js/tag/update/checkSubContext.function.d.ts +7 -2
- package/js/tag/update/checkSubContext.function.js +36 -9
- package/js/tag/update/checkSubContext.function.js.map +1 -1
- package/js/tag/update/compareArrayItems.function.d.ts +1 -1
- package/js/tag/update/compareArrayItems.function.js +7 -10
- package/js/tag/update/compareArrayItems.function.js.map +1 -1
- package/js/tag/update/convertTagToElementManaged.d.ts +2 -0
- package/js/tag/update/convertTagToElementManaged.function.d.ts +2 -0
- package/js/tag/update/convertTagToElementManaged.function.js +37 -0
- package/js/tag/update/convertTagToElementManaged.function.js.map +1 -0
- package/js/tag/update/convertTagToElementManaged.js +32 -0
- package/js/tag/update/convertTagToElementManaged.js.map +1 -0
- package/js/tag/update/createAndProcessContextItem.function.d.ts +4 -6
- package/js/tag/update/createAndProcessContextItem.function.js +9 -14
- package/js/tag/update/createAndProcessContextItem.function.js.map +1 -1
- package/js/tag/update/deleteContextSubContext.function.d.ts +5 -0
- package/js/tag/update/deleteContextSubContext.function.js +25 -0
- package/js/tag/update/deleteContextSubContext.function.js.map +1 -0
- package/js/tag/update/deleteSubContext.function.js +1 -4
- package/js/tag/update/deleteSubContext.function.js.map +1 -1
- package/js/tag/update/forceUpdateExistingValue.function.d.ts +4 -5
- package/js/tag/update/forceUpdateExistingValue.function.js +6 -5
- package/js/tag/update/forceUpdateExistingValue.function.js.map +1 -1
- package/js/tag/update/getNewGlobal.function.d.ts +4 -3
- package/js/tag/update/getNewGlobal.function.js +13 -2
- package/js/tag/update/getNewGlobal.function.js.map +1 -1
- package/js/tag/update/getOverrideTagVar.d.ts +5 -0
- package/js/tag/update/getOverrideTagVar.js +65 -0
- package/js/tag/update/getOverrideTagVar.js.map +1 -0
- package/js/tag/update/handleStillTag.function.d.ts +1 -1
- package/js/tag/update/handleStillTag.function.js +2 -3
- package/js/tag/update/handleStillTag.function.js.map +1 -1
- package/js/tag/update/handleTagTypeChangeFrom.d.ts +5 -0
- package/js/tag/update/handleTagTypeChangeFrom.function.d.ts +5 -0
- package/js/tag/update/handleTagTypeChangeFrom.function.js +13 -0
- package/js/tag/update/handleTagTypeChangeFrom.function.js.map +1 -0
- package/js/tag/update/handleTagTypeChangeFrom.js +13 -0
- package/js/tag/update/handleTagTypeChangeFrom.js.map +1 -0
- package/js/tag/update/index.d.ts +2 -2
- package/js/tag/update/index.js +2 -2
- package/js/tag/update/index.js.map +1 -1
- package/js/tag/update/onFirstSubContext.function.d.ts +1 -3
- package/js/tag/update/onFirstSubContext.function.js +1 -2
- package/js/tag/update/onFirstSubContext.function.js.map +1 -1
- package/js/tag/update/oneRenderToSupport.function.d.ts +1 -1
- package/js/tag/update/processDomTagInit.function.d.ts +2 -3
- package/js/tag/update/processDomTagInit.function.js +6 -5
- package/js/tag/update/processDomTagInit.function.js.map +1 -1
- package/js/tag/update/processFirstSubjectComponent.function.d.ts +7 -4
- package/js/tag/update/processFirstSubjectComponent.function.js +53 -17
- package/js/tag/update/processFirstSubjectComponent.function.js.map +1 -1
- package/js/tag/update/processFirstSubjectValue.function.d.ts +4 -6
- package/js/tag/update/processFirstSubjectValue.function.js +3 -6
- package/js/tag/update/processFirstSubjectValue.function.js.map +1 -1
- package/js/tag/update/processNewSubjectTag.function.d.ts +2 -3
- package/js/tag/update/processNewSubjectTag.function.js +5 -5
- package/js/tag/update/processNewSubjectTag.function.js.map +1 -1
- package/js/tag/update/processRegularValue.function.js +2 -1
- package/js/tag/update/processRegularValue.function.js.map +1 -1
- package/js/tag/update/processSignal.function.d.ts +4 -0
- package/js/tag/update/processSignal.function.js +11 -0
- package/js/tag/update/processSignal.function.js.map +1 -0
- package/js/tag/update/processSubscribe.function.d.ts +3 -2
- package/js/tag/update/processSubscribe.function.js +16 -10
- package/js/tag/update/processSubscribe.function.js.map +1 -1
- package/js/tag/update/processSubscribeWith.function.d.ts +6 -0
- package/js/tag/update/processSubscribeWith.function.js +26 -0
- package/js/tag/update/processSubscribeWith.function.js.map +1 -0
- package/js/tag/update/processTagArray.d.ts +3 -4
- package/js/tag/update/processTagArray.js +14 -14
- package/js/tag/update/processTagArray.js.map +1 -1
- package/js/tag/update/processTagComponentInit.function.d.ts +2 -3
- package/js/tag/update/processTagComponentInit.function.js +3 -5
- package/js/tag/update/processTagComponentInit.function.js.map +1 -1
- package/js/tag/update/processTagInit.function.d.ts +2 -3
- package/js/tag/update/processTagInit.function.js +4 -3
- package/js/tag/update/processTagInit.function.js.map +1 -1
- package/js/tag/update/processTagResult.function.d.ts +2 -3
- package/js/tag/update/processTagResult.function.js +2 -2
- package/js/tag/update/processTagResult.function.js.map +1 -1
- package/js/tag/update/processUpdateSubscribe.d.ts +4 -0
- package/js/tag/update/processUpdateSubscribe.function.d.ts +2 -0
- package/js/tag/update/processUpdateSubscribe.function.js +22 -0
- package/js/tag/update/processUpdateSubscribe.function.js.map +1 -0
- package/js/tag/update/processUpdateSubscribe.js +15 -0
- package/js/tag/update/processUpdateSubscribe.js.map +1 -0
- package/js/tag/update/setupSubscribe.function.d.ts +10 -8
- package/js/tag/update/setupSubscribe.function.js +66 -39
- package/js/tag/update/setupSubscribe.function.js.map +1 -1
- package/js/tag/update/syncPriorPropFunction.function.d.ts +1 -1
- package/js/tag/update/tagValueUpdateHandler.function.d.ts +2 -3
- package/js/tag/update/tagValueUpdateHandler.function.js +12 -3
- package/js/tag/update/tagValueUpdateHandler.function.js.map +1 -1
- package/js/tag/update/tryUpdateToTag.function.d.ts +2 -3
- package/js/tag/update/tryUpdateToTag.function.js +14 -12
- package/js/tag/update/tryUpdateToTag.function.js.map +1 -1
- package/js/tag/update/updateExistingArray.function.d.ts +1 -1
- package/js/tag/update/updateExistingObject.function.d.ts +1 -1
- package/js/tag/update/updateToDiffValue.function.d.ts +3 -3
- package/js/tag/update/updateToDiffValue.function.js +10 -10
- package/js/tag/update/updateToDiffValue.function.js.map +1 -1
- package/js/tagJsVars/getArrayTagJsVar.function.d.ts +1 -0
- package/js/tagJsVars/getArrayTagJsVar.function.js +22 -7
- package/js/tagJsVars/getArrayTagJsVar.function.js.map +1 -1
- package/js/tagJsVars/getInnerHTML.function.js +12 -8
- package/js/tagJsVars/getInnerHTML.function.js.map +1 -1
- package/js/tagJsVars/getSimpleTagVar.function.d.ts +5 -2
- package/js/tagJsVars/getSimpleTagVar.function.js +40 -13
- package/js/tagJsVars/getSimpleTagVar.function.js.map +1 -1
- package/js/tagJsVars/host.function.d.ts +12 -5
- package/js/tagJsVars/host.function.js +92 -18
- package/js/tagJsVars/host.function.js.map +1 -1
- package/js/tagJsVars/pipe.function.d.ts +2 -1
- package/js/tagJsVars/pipe.function.js +20 -8
- package/js/tagJsVars/pipe.function.js.map +1 -1
- package/js/tagJsVars/processAttributeUpdate.function.d.ts +5 -0
- package/js/tagJsVars/processAttributeUpdate.function.js +17 -0
- package/js/tagJsVars/processAttributeUpdate.function.js.map +1 -0
- package/js/tagJsVars/processSimpleAttribute.d.ts +3 -0
- package/js/tagJsVars/processSimpleAttribute.function.d.ts +7 -0
- package/js/tagJsVars/processSimpleAttribute.function.js +18 -0
- package/js/tagJsVars/processSimpleAttribute.function.js.map +1 -0
- package/js/tagJsVars/processSimpleAttribute.js +12 -0
- package/js/tagJsVars/processSimpleAttribute.js.map +1 -0
- package/js/tagJsVars/processSubscribeAttribute.function.d.ts +10 -0
- package/js/tagJsVars/processSubscribeAttribute.function.js +25 -0
- package/js/tagJsVars/processSubscribeAttribute.function.js.map +1 -0
- package/js/tagJsVars/processSubscribeAttributeUpdate.d.ts +5 -0
- package/js/tagJsVars/processSubscribeAttributeUpdate.function.d.ts +5 -0
- package/js/tagJsVars/processSubscribeAttributeUpdate.function.js +21 -0
- package/js/tagJsVars/processSubscribeAttributeUpdate.function.js.map +1 -0
- package/js/tagJsVars/processSubscribeAttributeUpdate.js +18 -0
- package/js/tagJsVars/processSubscribeAttributeUpdate.js.map +1 -0
- package/js/tagJsVars/processSubscribeWithAttribute.function.d.ts +18 -0
- package/js/tagJsVars/processSubscribeWithAttribute.function.js +23 -0
- package/js/tagJsVars/processSubscribeWithAttribute.function.js.map +1 -0
- package/js/tagJsVars/subscribe.function.d.ts +13 -11
- package/js/tagJsVars/subscribe.function.js +19 -11
- package/js/tagJsVars/subscribe.function.js.map +1 -1
- package/js/tagJsVars/subscribeWith.function.d.ts +5 -1
- package/js/tagJsVars/subscribeWith.function.js +35 -6
- package/js/tagJsVars/subscribeWith.function.js.map +1 -1
- package/js/tagJsVars/tag.function.d.ts +28 -0
- package/js/tagJsVars/tag.function.js +68 -8
- package/js/tagJsVars/tag.function.js.map +1 -1
- package/js/tagJsVars/tagInject.function.d.ts +5 -0
- package/js/tagJsVars/tagInject.function.js +43 -0
- package/js/tagJsVars/tagInject.function.js.map +1 -0
- package/js/tagJsVars/tagJsVar.type.d.ts +13 -6
- package/package.json +1 -1
package/bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};function n(t){return t.renderCount=t.renderCount||0,t.global={}}t.d(e,{W9:()=>qe,cg:()=>A,m0:()=>I,rS:()=>Bn,Y2:()=>o,ei:()=>Ye,B7:()=>xt,TU:()=>Tt,XF:()=>Qe,PC:()=>Xe,Ot:()=>je,Mj:()=>Le,tD:()=>J,j8:()=>yn,Gf:()=>Lo,xe:()=>ir,YO:()=>pn,um:()=>bn,E2:()=>Ke,OH:()=>en,TB:()=>Kt,Ii:()=>de,m3:()=>Te,yV:()=>hn,zV:()=>yt,pf:()=>Ft,ze:()=>tn,WJ:()=>Ct,Ng:()=>fe,HG:()=>tr,aZ:()=>ee,Ey:()=>te,O:()=>re,F3:()=>mn,Ie:()=>E,ts:()=>xe,B4:()=>_t,Az:()=>H,Xi:()=>rr,sV:()=>mr,Ah:()=>n,Gk:()=>Sn,j_:()=>ke,zC:()=>$n,cF:()=>Sr,Hc:()=>vr,jU:()=>R,PB:()=>N,uq:()=>U,qy:()=>sr,cy:()=>K,Tn:()=>Y,Gv:()=>Q,yL:()=>q,D8:()=>G,Ze:()=>z,_4:()=>X,mn:()=>Z,z:()=>Ge,sA:()=>ln,TG:()=>Se,MG:()=>cn,PL:()=>Mn,CG:()=>pr,nI:()=>$o,Fs:()=>br,PZ:()=>ue,r5:()=>Ze,uc:()=>ro,pG:()=>Nn,QB:()=>eo,Ll:()=>kt,vP:()=>Pe,wk:()=>Re,xP:()=>Fe,bc:()=>$e,B1:()=>dr,RX:()=>Cr,ag:()=>nn,Tc:()=>_n,Hf:()=>lr,zc:()=>Zt,_A:()=>kn,Ag:()=>$t,Pc:()=>me,NU:()=>r,wB:()=>De,id:()=>He,MC:()=>Ne,SZ:()=>Ue});class o{get(t){return"todo"}}const r=":tagvar",s=":";function c(t){if(t.startsWith("class."))return"class";const e=function(t){switch(t){case"autoselect":return"autoselect";case"autofocus":return"autofocus"}return!1}(t);return!1!==e?e:!!t.startsWith("style.")&&"style"}const u=new RegExp(r+"(\\d+)"+s,"g");function a(t){return t.search&&t.startsWith(r)?t.search(u):-1}const i=/(:tagvar\d+:)/,l="ondoubleclick",p=/([:_a-zA-Z0-9\-.]+)\s*(?:=\s*"([^"]*)"|=\s*(\S+))?/g,f=/<\/?([a-zA-Z0-9-]+)((?:\s+[a-zA-Z_:*][\w:.-]*(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)+\s*|\s*)\/?>/g;function d(t){const e=[],n=[],o=[];let c=null,u=-1,a=0;const l=new RegExp(f,"g");for(t=function(t){return t.replace(g,(function(t){return t.replace(/\[l t\]/g,"[l t]").replace(/\[g t\]/g,"[g t]").replace(/</g,"[l t]").replace(/>/g,"[g t]")}))}(t);a<t.length;){const f=l.exec(t);if(!f)break;const[d,g,m]=f,y=d.startsWith("</"),w=d.endsWith("/>");if(a<f.index){const e=t.slice(a,f.index);if(e.trim()){const t=b(e);for(let e of t)e.startsWith(r)&&e.search(i)>=0&&-1===e.search(C)&&(e=r+ ++u+s),h(c,n,e)}}if(a=f.index+d.length,y){c=o.pop()||null;continue}const x=[];let T;for(;null!==(T=p.exec(m));)u=v(T,u,e,x);const S={nn:g};x.length&&(S.at=x),c?(c.ch||(c.ch=[]),c.ch.push(S)):n.push(S),w||(o.push(c),c=S)}if(a<t.length){const e=t.slice(a);if(e.trim()){const t=b(e);for(const e of t)e.startsWith(r)&&++u,h(c,n,e)}}return n}const g=new RegExp("(\x3c!--[\\s\\S]*?--\x3e)","g");function h(t,e,n){!function(t,e,n){t?(t.ch||(t.ch=[]),t.ch.push(n)):e.push(n)}(t,e,{nn:"text",tc:m(n)})}function m(t){return t.replace(/(\[l t\]!--[\s\S]*?--\[g t\])/g,(function(t){return t.replace(/\[l t\]/g,"<").replace(/\[g t\]/g,">").replace(/\[l t\]/g,"[l t]").replace(/\[g t\]/g,"[g t]")}))}function b(t){return t.split(i).filter(y)}function y(t){return""!==t}function v(t,e,n,o){const a=t[1]||t[3]||t[5];let i=t[2]||t[4]||t[6];if(void 0===a)return e;const p=""!==t[2],f=void 0===i&&p,d=a.toLowerCase(),g=d.startsWith("on")?function(t){if(t.startsWith("on"))return t.length===l.length&&t===l?"dblclick":t.slice(2,t.length);return t}(d):d;if(f){if(a.slice(0,r.length)===r){const t=r+ ++e+s;return n.push(["at",t]),o.push([t]),e}if(t[0].startsWith(a)&&t[0].slice(a.length,t[0].length).search(/\s+$/)>=0)return o.push([g]),e;const c=t[3];if(c.search(C)>=0){i=c;const t=[g,i];return o.push(t),e}i=r+ ++e+s}p||(i=t[2]);const h=i.split(x).filter((t=>t.length>0));h.length>1&&(i=h,h.forEach((t=>{t.search(u)>=0&&++e})));const m=[g,i],b=c(d);return b&&m.push(b),"style"===g?(o.unshift(m),e):(o.push(m),e)}const w=new RegExp(r+"(\\d+)"+s,"gi"),x=new RegExp("("+r+"\\d+"+s+")","gi"),T=r.slice(0,r.length-1),C=new RegExp(T+"r(\\d+)"+s,"gi"),S=T+"r$1"+s;function k(t,e){const n=function(t,e){const n=t;return function(t,e){const n=[];for(let o=0;o<t.length;++o){const c=t[o].replace(w,S);o<e.length?n.push(c+r+o+s):n.push(c)}return function(t,e,n){const o=n.length-e.length;if(o>0)for(let n=o;n>0;--n)t.push(r+(e.length+n-1)+s)}(n,t,e),n}(n,e)}(t,e).join("");return d(n)}const E="";var I,A;!function(t){t.string="string",t.number="number",t.boolean="boolean",t[void 0]="undefined"}(I||(I={})),function(t){t.function="function",t.date="date",t.unknown="unknown",t.object="object"}(A||(A={}));const J={tag:"html",dom:"dom",templater:"templater",tagComponent:"tagComponent",tagArray:"tagArray",host:"host",subscribe:"subscribe",signal:"signal",renderOnce:"renderOnce",stateRender:"stateRender",version:Date.now()},V="ch";function O(t,e,n=[],o=[]){const r=t;for(let t=0;t<r.length;t++){const s=[...o,t],c=r[t];if(c.at){const t=c.at;c.at=M(t,e)}if(c.ch){const t=c.ch,o=[...s,V];c.ch=O(t,e,n,o)}t=P(c,e,r,t)}return r}function P(t,e,n,o){if("text"!==t.nn)return o;const c=t;let a,i=c.tc;if(typeof i!==I.string)return o;for(;null!==(a=u.exec(i));){const t=a[1],c=parseInt(t,10);if(!isNaN(c)&&c<e){const t=r+c+s,e=i.slice(a.index+t.length);n.splice(o,1,{nn:"text",v:c}),i=e,u.lastIndex=0}}return c.tc=i,o}function M(t,e){const n=[];for(const o of t){const[t,s,c]=o;if(t.startsWith(r)){const o=parseInt(t.replace(r,""),10);if(!isNaN(o)&&o<e){n.push([{tagJsVar:o}]);continue}}if(typeof s===I.string&&s.startsWith(r)){const o=parseInt(s.replace(r,""),10);if(!isNaN(o)&&o<e){n.push([t,{tagJsVar:o},c]);continue}}n.push(o)}return n}function j(t){return t.length}const L={};function H(t,e){const n=function(t){const e=t.map(j);return e.push(t.length),Number(e.join(""))}(t),o=L[n],r=o&&function(t,e,n){if(n&&n.strings.length===t.length&&n.strings.every(((e,n)=>e===t[n]))&&n.values.length===e.length)return!0;return!1}(t,e,o);if(r)return o.domMetaMap;const s=O(k(t,e),e.length),c={interpolation:void 0,string:void 0,strings:t,values:e,domMetaMap:s};return L[n]=c,s}function N(t,e,n){Ro.push([R,[t,e,n]])}function U(t,e,n){t.setAttribute(e,"")}function R(t,e,n){void 0!==n&&!1!==n&&null!==n?t.setAttribute(e,n):t.removeAttribute(e)}function D(t,e,n,o){switch(o){case"autofocus":return void Ro.push([F,[n]]);case"autoselect":return void Ro.push([$,[n]]);case"style":{const o=t.split(".");return void Ro.push([W,[n,o,e]])}case"class":return void function(t,e,n){const o=t.split(".");if(o.shift(),e){for(const t of o)Ro.push([B,[n,t]]);return}for(const t of o)Ro.push([_,[n,t]])}(t,e,n)}throw new Error(`Invalid special attribute of ${o}. ${t}`)}function W(t,e,n){const o=e[1];t.style[o]=n,t.style.setProperty(o,n)}function B(t,e){t.classList.add(e)}function _(t,e){t.classList.remove(e)}function $(t){t.select()}function F(t){t.focus()}function G(t){switch(t){case I.string:case I.number:case I.boolean:return!0}return!1}function z(t){if(!t)return!1;switch(t.tagJsType){case J.dom:case J.tag:case J.templater:return!0}return!1}function Z(t){const e=t?.tagJsType;return e===J.tagComponent||e===J.stateRender}function X(t){return Q(t)&&typeof t.subscribe===A.function}function q(t){return t&&Y(t.then)}function Y(t){return typeof t===A.function}function Q(t){return typeof t===A.object&&null!==t}function K(t){return Array.isArray(t)}function tt(t,e){const n=function(t,e,n=[]){const o=t.context;n.push({support:t,renderCount:o.renderCount,provider:e});const r=e.children;for(let t=r.length-1;t>=0;--t){const o=r[t],s=o.context;n.push({support:o,renderCount:s.renderCount,provider:e})}return n}(t,e);return n}function et(t){return t.support}function nt(t,e){return ot(t,e)}function ot(t,e){if(null===t||typeof t!==A.object)return t;if(e<0)return t;if(t instanceof Date)return new Date(t);if(t instanceof RegExp)return new RegExp(t);const n=K(t)?[]:Object.create(Object.getPrototypeOf(t));if(K(t))for(let o=0;o<t.length;o++)n[o]=ot(t[o],e-1);else for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=ot(t[o],e-1));return n}function rt(t,e,n){return st(t,e,n)}function st(t,e,n){return!(t!==e&&(o=t,r=e,!Y(o)||!Y(r)||o.toString()!==r.toString()))||(n<0||typeof t===A.object&&typeof e===A.object&&(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():K(t)&&K(e)?function(t,e,n){if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!st(t[o],e[o],n-1))return!1;return!0}(t,e,n-1):!K(t)&&!K(e)&&function(t,e,n){const o=Object.keys(t),r=Object.keys(e);if(0===o.length&&0===r.length)return!0;if(o.length!==r.length)return!1;for(const s of o){if(!r.includes(s)||!st(t[s],e[s],n-1))return!1}return!0}(t,e,n-1)));var o,r}function ct(){return kt.stateConfig.support}function ut(t){return kt.stateConfig.support=t}function at(t){let e=t;for(;e.ownerSupport&&!Z(e.templater);)e=e.ownerSupport;return e.context.global.newest||e}function it(...t){return t}function lt(t){const e=kt.stateConfig;return e.states[e.statesIndex]=t,++e.statesIndex,t(it)}function pt(t){const e=kt.stateConfig,n=e.statesIndex,o=at(e.prevSupport).states[n];let r=[];o((function(...t){return r=t,t}));return e.states[e.statesIndex]=t,++e.statesIndex,t((function(...t){return r}))}function ft(t){const e=kt.stateConfig;e.handlers.handler=bt,e.handlers.statesHandler=lt,e.rearray=[],e.stateArray=[],e.states=[],e.statesIndex=0,ut(t)}function dt(t,e,n){const o=kt.stateConfig;o.rearray=n,o.stateArray=[],o.states=[],o.statesIndex=0,o.handlers.handler=mt,o.handlers.statesHandler=pt,o.prevSupport=e,ut(t)}class gt{}function ht(t){const e=t.callback;if(!e)return t.defaultValue;const[n]=function(t){const[e]=t(gt),[n]=t(e);return[e,n]}(e);return n}function mt(){const t=kt.stateConfig,e=t.rearray[t.stateArray.length];return t.stateArray.push(e),e.defaultValue}function bt(t){const e=kt.stateConfig;let n=t;if(typeof t===A.function&&(n=t()),typeof n===A.function){const t=n;n=function(...e){return t(...e)},n.original=t}const o={get:function(){return ht(o)},defaultValue:n};return e.stateArray.push(o),n}function yt(t){const e=new xt;return e.subscribeWith=e=>{const n=[],o=[],r=(r,s)=>{n[s]=!0,o[s]=r;if(n.length===t.length){for(const t of n)if(!t)return;e(o,c)}},s=[...t],c=s.shift().subscribe((t=>r(t,0))),u=s.map(((t,e)=>t.subscribe((t=>r(t,e+1)))));return c.subscriptions=u,c},e}function vt(t,e,n){const o=xt.globalSubCount$;xt.globalSubCount$.next(o.value+1);const r=function(){r.unsubscribe()};return r.callback=e,r.subscriptions=[],r.unsubscribe=function(){return function(t,e,n){!function(t,e){const n=t.findIndex((t=>t.callback===e));-1!==n&&t.splice(n,1)}(e,n);const o=xt.globalSubCount$;xt.globalSubCount$.next(o.value-1),t.unsubscribe=()=>t;const r=t.subscriptions;for(const t of r)t.unsubscribe();return t}(r,n,e)},r.add=t=>(r.subscriptions.push(t),r),r.next=t=>{e(t,r)},r}function wt(t,e,n){const o=[...e],r=o.shift(),s=t=>{if(o.length)return wt(t,o,n);n(t)};let c=s;const u=r(t,{setHandler:t=>c=t,next:s});c(u)}class xt{value;onSubscription;methods=[];isSubject=!0;subscribers=[];subscribeWith;constructor(t,e){this.value=t,this.onSubscription=e}subscribe(t){const e=vt(0,t,this.subscribers),n=this.subscribeWith;if(n){if(this.methods.length){const n=t;t=t=>{wt(t,this.methods,(t=>n(t,e)))}}return n(t)}return this.subscribers.push(e),this.onSubscription&&this.onSubscription(e),e}next(t){this.value=t,this.emit()}set=this.next.bind(this);emit(){const t=this.value,e=this.subscribers;for(const n of e)n.callback(t,n)}toPromise(){return new Promise((t=>{this.subscribe(((e,n)=>{n.unsubscribe(),t(e)}))}))}toCallback(t){const e=this.subscribe(((n,o)=>{const r=o?.unsubscribe;r?r():setTimeout((()=>e.unsubscribe()),0),t(n)}));return this}pipe(...t){const e=new xt(this.value);return e.setMethods(t),e.subscribeWith=t=>this.subscribe(t),e.next=t=>this.next(t),e}setMethods(t){this.methods=t}static all(t){return yt(t.map((t=>{if(X(t))return t;return new xt(t,(e=>(e.next(t),e)))})))}static globalSubCount$=new xt(0)}class Tt extends xt{value;onSubscription;_value;constructor(t,e){super(t,e),this.value=t,this.onSubscription=e,this._value=t,Ct(this)}next(t){this._value=t,this.emit()}emit(){const t=this._value,e=this.subscribers;for(const n of e)n.callback(t,n)}}function Ct(t){Object.defineProperty(t,"value",{set(e){t._value=e,t.emit()},get:()=>t._value})}const St=new xt(void 0,(function(t){ct()||t.next()})),kt={stateConfig:{stateArray:[],version:Date.now(),handlers:{handler:bt,statesHandler:lt}},tagClosed$:St};function Et(t,e){return It(t.states,e.states)}function It(t,e){for(let n=0;n<t.length;++n){Ot(t[n],e[n])}}let At;function Jt(...t){return At=t,t}function Vt(){return At}function Ot(t,e){t(Jt,1),e(Vt,2)}function Pt(t,e,n,o){for(let n=t.length-1;n>=0;--n){const o=t[n].get(),r=e[n].callback;r&&r(o)}for(let t=o.length-1;t>=0;--t){jt.length=0,Mt=0;(0,o[t])(Lt),n[t](Ht)}}let Mt=0;const jt=[];function Lt(...t){return jt.push(t),t}function Ht(...t){return jt[Mt++]}function Nt(t,e,n,o,r){const s=n[e],c=t[s.valueIndex];if(c===s.value)return;s.tagJsVar.processUpdate(c,o,s,r,t),s.value=c}function Ut(t,e){const n=t.context.global.contexts;!function(t,e){const n=e.templater,o=e.templater.tag,r=n.values||o.values,s=t.templater.tag;s.values=r}(t,e),++Bo.locks,function(t,e){const n=t.templater.tag.values;let o=0;const r=n.length,s={added:0,removed:0};for(;o<r;)Nt(n,o,e,t,s),++o}(t,n),--Bo.locks,$o()}function Rt(t){return t.map(Dt)}function Dt(t,e){const n=t,o=t?.tagJsType;if(o)switch(o){case J.signal:case J.subscribe:case J.stateRender:return;case J.dom:case J.tag:case J.templater:return Rt(n.values)}return K(t)?Rt(n):nt(t,e)}function Wt(t){return Dt(t,Zn)}function Bt(t){return Dt(t,Xn)}function _t(t,e,n){const o={templater:t,context:e,castedProps:n,appSupport:void 0},r=e.global;return r.blocked=[],r.destroy$=new xt,o}function $t(t,e,n,o){e.appSupport=n;const r=t.props;return r&&(e.propsConfig=function(t,e,n){const o=t.templater;if(o.tagJsType!==J.stateRender){switch(o.propWatch){case Bn.IMMUTABLE:return t.propsConfig={latest:e,castProps:n};case Bn.SHALLOW:return t.propsConfig={latest:e.map(Wt),castProps:n}}return t.propsConfig={latest:e.map(Bt),castProps:n}}}(e,r,o)),e}function Ft(t,e,n,o,r){const s={templater:t,context:o,castedProps:r,appSupport:void 0};return s.ownerSupport=e,s.appSupport=n,s}function Gt(t,e,n,o,r){const s=_t(t,o,r);return s.ownerSupport=e,$t(t,s,n,r)}function zt(t,e,o,r){const s=Z(e);if(t.tagJsVar=e,s)return void 0===t.global&&n(t),function(t,e,o,r){const s=e.global;if(!s.newest)return void t.processInit(t,e,o,r,void 0,e.placeholder);const c=Gt(t,o,o.appSupport,e);!function(t,e,o){const r=o.global,s=r.newest,c=s.templater.wrapper;let u=e.templater.wrapper,a=!1;const i=e.templater.tagJsType,l=J.stateRender===i||J.renderOnce===i;if(l)a=e.templater.tagJsType===J.renderOnce||dn(s,e);else if(c&&u){const t=s.templater.tag?._innerHTML;t&&(u=e.outerHTML);a=c.original===u.original}const p=e.templater;if(!a)return void function(t,e,o){const r=t.global,s=r.oldest;re(s,r),n(t),e.processInit(e,t,o,{added:0,removed:0},void 0,t.placeholder)}(o,p,t);const f=l||function(t,e){const n=e.props,o=t.propsConfig,r=o.latest,s=$n(n,r,t.templater.propWatch);return s}(s,p);if(!f){return void function(t,e,n,o,r){const s=t.props,c=Qn(e,n,o,s,r),u=e.propsConfig;u.castProps=c;const a=n.propsConfig;a.latest=u.latest}(p,e,s,t,p.propWatch===Bn.DEEP?Xn:Zn)}if(o.locked)return void r.blocked.push(e);ro(e),++o.renderCount}(o,c,e)}(e,t,o,r),!0;const c=t.global;if(c){const n=c.newest;if(n)return typeof e===A.function||function(t,e,n,o){let r=n.templater||n;const s=t.templater.tag;s&&s._innerHTML&&(r=n.outerHTML||n._innerHTML.outerHTML);const c=Gt(r,o,o.appSupport,e);Ut(t.context.global.oldest,c)}(n,t,e,o),!0}return e.processInit(e,t,o,r,void 0,t.placeholder),!0}function Zt(t,e,n,o){t!==n.value&&xe(n,t,e,o)}function Xt(t,e){const n=e.providers;if(n)for(const t of n)for(let n=t.children.length-1;n>=0;--n){t.children[n].context.global===e&&t.children.splice(n,1)}e.destroy$&&e.destroy$.next(),t.context.renderCount=0}function qt(t,e){for(const n of t){const t=n.lastArray;if(t){qt(t,e);continue}const o=n.value;if(o?.tagJsType===J.subscribe){o.delete(n,e);continue}const r=n.global;if(!r)continue;const s=r.newest,c=r.subscriptions;c&&c.forEach(Qt),Z(s.templater)&&Xt(s,r);qt(r.contexts,s)}}function Yt(t,e=[],n=[]){for(const o of t){const t=o.global;if(!t)continue;const r=t.newest;if(r){e.push(r);const o=t.subscriptions;o&&n.push(...o)}const s=t.contexts;s&&Yt(s,e,n)}return{tags:e,subs:n}}function Qt(t){t.unsubscribe()}function Kt(t,e){return!K(t)&&(te(e),9)}function te(t){ee(t,t.lastArray)}function ee(t,e){for(let t=0;t<e.length;++t)ce(e[t]);delete t.lastArray}function ne(t,e){!function(t,e){for(const n of t){if(n.locked)continue;if(n.withinOwnerElement){const t=n.tagJsVar;if(t&&"host"===t.tagJsType){const e=n.supportOwner;t.delete(n,e)}continue}const t=n.lastArray;if(t){ee(n,t);continue}const o=n.simpleValueElm;if(o){delete n.simpleValueElm,Fo(o);continue}const r=n.global;if(void 0===r)continue;if(!0===r.deleted)continue;r.deleted=!0;r.oldest&&ne(r,e)}}(t.contexts,e),function(t){const e=t.htmlDomMeta;for(let t=e.length-1;t>=0;--t){oe(e[t]),e.splice(t,1)}}(t)}function oe(t){const e=t.marker;e&&Fo(e);const n=t.domElement;n&&Fo(n)}function re(t,e){const n=t.context;e.deleted=!0,n.renderCount=0;const o=[];return qt(e.contexts,t),e.destroy$&&Xt(t,e),ne(e,o),o}function se(t,e,n,o){const r=t.length-1,s=e-o,c=s<0||r<s,u=n[e];if(c)return ce(u),1;const a=function(t,e,n,o,r){const s=e&&t!==e.arrayValue;if(s)return ce(n),o.splice(r,1),2;return 0}(u.value.arrayValue,t[e],u,n,e);return a}function ce(t){!function(t,e){if(t){return void re(t.oldest,t)}const n=e.simpleValueElm;delete e.simpleValueElm,Fo(n)}(t.global,t)}function ue(t,e,n,o,r,s){return e.tagJsVar.processInit(t,e,n,o,r,s)}function ae(t,e,n,o,r,s){const c=e.context;c.locked=!0,ue(t,n,e,o,r,s),delete c.locked,n.value=t}function ie(t){switch(t){case void 0:case!1:case null:return E}return t}function le(t){return{tagJsType:"simple",value:t,processInit:pe,delete:fe,checkValueChange:de,processUpdate:Zt}}function pe(t,e,n,o,r,s){const c=ie(t);s=e.placeholder;const u=e.paint=[Yo,[s,c,function(t){e.simpleValueElm=t,delete e.paint}]];No.push(u)}function fe(t){const e=t.simpleValueElm;delete t.simpleValueElm,Fo(e)}function de(t,e){return null!=t&&typeof t===A.object?(fe(e),6):(function(t,e){const n=ie(t);if(e.paint)return void(e.paint[1][1]=n);const o=e.simpleValueElm;Ro.push([_o,[n,o]])}(t,e),-1)}function ge(t){return{tagJsType:"array",value:t,processInit:he,processUpdate:Zt,checkValueChange:Kt,delete:te}}function he(t,e,n,o,r){ye(e,t,n,o,r)}function me(t){const e=t?.tagJsType;return e?t:function(t){if(K(t))return ge(t);return le(t)}(t)}function be(t,e,n,o,r,s){const c=document.createTextNode(E),u={value:t,tagJsVar:me(t),withinOwnerElement:!1,placeholder:c,valueIndex:o.length,valueIndexSetBy:"createAndProcessContextItem"};return s||No.push([zo,[r,c]]),ae(t,e,u,n,s,r),s&&Do.push([Zo,[s,c]]),u}function ye(t,e,n,o,r){const s=void 0===t.lastArray;s&&(t.lastArray=[]);const c=t.lastArray;let u=t.placeholder,a=0;const i=[];if(!s){for(let t=0;t<c.length;++t){const n=c[t],o=se(e,t,c,a);0!==o?2!==o?a+=o:t-=1:i.push(n)}t.lastArray=i}const l=e.length;for(let s=0;s<l;++s){u=ve(e,s,t.lastArray,n,u,o,r).placeholder}}function ve(t,e,n,o,r,s,c){const u=t[e],a=n[e];if(a)return function(t,e,n,o,r,s,c,u){const a=n.length>r;if(a)return Zt(t,o,e,c),e;const i=be(t,o,c,n,s,u);return n.push(i),i}(u,a,n,o,e,r,s,c);const i=be(u,o,s,n,r,c);return n.push(i),i}function we(t,e,n,o,r){const s=t&&t.tagJsType;if(e.tagJsVar=me(t),s){if(s===J.renderOnce)return;zt(e,t,n,r)}else{if(K(t))return ye(e,t,n,r),void(e.tagJsVar=ge(t));typeof t!==A.function?o&&function(t,e){e.value=t,e.tagJsVar=le(t);const n=e.placeholder,o=ie(t),r=e.paint=[Yo,[n,o,function(t){e.simpleValueElm=t,delete e.paint}]];No.push(r)}(t,e):e.value=t}}function xe(t,e,n,o){const r=t.tagJsVar.checkValueChange(e,t,o,n);-1!==r&&we(e,t,n,r,o)}function Te(t,e,n,o){const r=Ce(J.subscribe,t,e,n,o);if(r)return r;const s=n.subContext;return s&&s.hasEmitted?(s.callback=t.callback,s.valuesHandler(s.lastValues),-1):-1}function Ce(t,e,n,o,r){if(!e||!e.tagJsType||e.tagJsType!==t){return o.tagJsVar.delete(o,n),we(e,o,n,99,r),99}}function Se(t,e,n,o,r){return e.hasEmitted=!0,e.contextItem=be(t,n,o,[],r)}function ke(t,e){let n;return t&&(n=e=document.createTextNode(E),Do.push([Zo,[t,e]])),{appendMarker:n,insertBefore:e}}function Ee(t,e,n,o,r,s,c){const{appendMarker:u,insertBefore:a}=ke(s,c),i=function(t,e,n,o,r){const s=at(e);let c=function(t){Se(t,l,e,n,o),Ae(i),c=function(t){xe(l.contextItem,t,e,{added:0,removed:0}),Ae(i)}};function u(t,e){l.lastValues[e]=t,a(l.lastValues)}function a(t){if(Et(s.context.global.newest,s),l.callback){const e=l.callback(...t);c(e)}else c(t[0])}let i=!0;const l={lastValues:[],valueHandler:u,valuesHandler:a,callback:r,subscriptions:[]};return t.forEach(((t,e)=>{i=!0,l.subscriptions.push(t.subscribe((t=>u(t,e)))),i=!1})),l}(t,n,o,a,r);return i.appendMarker=u,e.subContext=i,e.tagJsVar.processUpdate=Te,i}function Ie(t,e){return t.subContext.subscriptions.forEach((t=>t.unsubscribe())),tr(t,e)}function Ae(t){t||kt.stateConfig.support||$o()}function Je(t,e,n,o,r,s){return Ee(t.Observables,e,n,o,t.callback,r,s)}function Ve(t,e,n,o,r,s){const c=t.Observables,u=Ee(c,e,n,o,t.callback,r,s);if(!u.hasEmitted){const e=c[0]?.value;u.valueHandler(e||t.withDefault,0)}return u}function Oe(t,e,n,o,r){Ee([t],e,n,o,void 0,r)}function Pe(t){return ct()?Re((()=>Me(t))):Me(t)}function Me(t){let e=t;const n=new Set,o=t=>{n.forEach((e=>e(t)))};return{tagJsType:J.signal,processInit:Oe,processUpdate:(t,e,n,o)=>Ce(J.signal,t,e,n,o),get value(){return e},set value(t){e!==t&&(e=t,o(t))},delete:Ie,emit:o,subscribe(t){t(e),n.add(t);const o=()=>n.delete(t);return o.unsubscribe=o,o}}}class je extends xt{value;constructor(t){super(t),this.value=t}subscribe(t){const e=super.subscribe(t);return t(this.value,e),e}}class Le extends xt{value;constructor(t){super(t),this.value=t,this._value=t,Ct(this)}subscribe(t){const e=super.subscribe(t);return t(this._value,e),e}}function He(t){return(e,n)=>{n.setHandler((()=>{})),t(e,n.next)}}function Ne(t){return(e,n)=>{n.setHandler((()=>{}));t(e).then((t=>n.next(t)))}}const Ue=t=>(e,n)=>{n.setHandler((()=>{}));const o=t(e).subscribe((t=>{o.unsubscribe(),n.next(t)}))};function Re(t){return kt.stateConfig.handlers.handler(t)}const De=(t,e)=>Be(t,e),We=t=>t;const Be=(t,e,{init:n,before:o,final:r=We}={})=>{const s=Re({pastResult:void 0,values:void 0}),c=s.values;if(void 0===c){if(o&&!o(t))return s.values=t,s.pastResult;const u=(n||e)(t,c);return s.pastResult=r(u),s.values=t,s.pastResult}if(t.every(((t,e)=>t===c[e])))return s.pastResult;if(o&&!o(t))return s.values=t,s.pastResult;const u=e(t,c);return s.pastResult=r(u),c.length=0,c.push(...t),s.pastResult};function _e(t,e){return Object.defineProperty(e,"noInit",{get(){const e=t();return e.setup.init=()=>{},e}}),Object.defineProperty(e,"asSubject",{get(){const e=t(),n=Re((()=>ct())),o=Re((()=>new je(void 0))),r=Re((()=>({stateArray:kt.stateConfig.stateArray,states:kt.stateConfig.states}))),s=(t,s)=>(Be(t,((t,e)=>{const c=ct(),u=s(t,e);if(c!==n){const t=r.stateArray,e=n.context.global.oldest;Pt(t,e.state,r.states,e.states)}o.next(u)}),e.setup),o);return s.setup=e.setup,_e((()=>s),s),s}}),Object.defineProperty(e,"truthy",{get(){const e=t();return e.setup.before=t=>t.every((t=>t)),e}}),e}function $e(t){return ct()?Re((()=>new xt(t))):new xt(t)}function Fe(t){return kt.stateConfig.handlers.statesHandler(t)}function Ge(t){const e=Pe([]),n=Pe(0),o=Pe(0);let r=[],s=0;return o.value=n.value,t(((...t)=>(r=t,e.value))),De(r,(()=>{++s,e.value=r,t((()=>r))})),Fe(((r,c)=>{if(s)return t(((...t)=>(c&&1!==c||(e.value=t),e.value))),o.value=n.value,void++n.value;t((()=>e.value))})),++s,e.value}function ze(){return{stateDiff:0,provider:void 0}}_e((()=>function(t){const e=(e,n)=>Be(e,n,t);return e.setup=t,_e((()=>e),e),e}({})),De),$e._value=t=>{const e=Re((function(){return{stateArray:kt.stateConfig.stateArray,states:kt.stateConfig.states}})),n=ct();return Re((function(){return new je(t).pipe((t=>(Pt(n.state,e.stateArray,n.states,e.states),t)))}))},$e.all=function(t){const e=Re((()=>({stateArray:kt.stateConfig.stateArray,states:kt.stateConfig.states}))),n=ct();return xt.all(t).pipe((t=>(Pt(n.state,e.stateArray,n.states,e.states),t)))};const Ze={create:t=>{const e=Re(ze);if(e.stateDiff){let t=e.stateDiff;for(;t--;)Re(void 0);return Re(void 0)}const n=Re((()=>{const n=kt.stateConfig,o=n.stateArray.length,r=t.prototype?new t:t(),s=n.support,c=n.stateArray.length-o,u={constructMethod:t,instance:r,stateDiff:c,owner:s,children:[]};e.provider=u;const a=s.context.global;return(a.providers=a.providers||[]).push(u),e.stateDiff=c,r})),o=t,r=o.compareTo=o.toString();return e.provider.constructMethod.compareTo=r,n},inject:function(t){return Re((function(){const e=t,n=e.compareTo=e.compareTo||t.toString(),o=ct(),r=[];let s={ownerSupport:o.ownerSupport};for(;s.ownerSupport;){const t=s.ownerSupport.context.global.providers;if(!t){s=s.ownerSupport;continue}const e=t.find((t=>{r.push(t);if(t.constructMethod.compareTo===n)return!0}));if(e){const t=o.context.global;return(t.providers=t.providers||[]).push(e),e.children.push(o),e.instance}s=s.ownerSupport}const c=`Could not inject provider: ${t.name} ${t}`;throw console.warn(`${c}. Available providers`,r),new Error(c)}))}};class Xe extends Error{details;constructor(t,e,n={}){super(t),this.name=Xe.name,this.details={...n,errorCode:e}}}class qe extends Xe{constructor(t,e){super(t,"array-no-key-error",e),this.name=qe.name}}class Ye extends Xe{constructor(t,e){super(t,"state-mismatch-error",e),this.name=Ye.name}}class Qe extends Xe{constructor(t,e){super(t,"sync-callback-error",e),this.name=Qe.name}}function Ke(t){const e=ct();if(!e)throw nn;return tn(e,kt.stateConfig,t)}function tn(t,e,n){const o=e.states;return function(...e){return t.context.renderCount>0?function(t,e,n,...o){const r=t.context.global.newest,s=n(...o);return ro(r),q(s)&&s.finally((()=>{ro(r)})),s}(t,o,n,...e):n(...e)}}const en=()=>{const t=ct();if(!t)throw nn;const e=kt.stateConfig;return function(n){return tn(t,e,n)}},nn=new Qe("callback() was called outside of synchronous rendering. Use `callback = callbackMaker()` to create a callback that could be called out of sync with rendering");function on(t){++Bo.locks,t.forEach(rn),--Bo.locks,$o()}function rn(t){const e=t.context.global;e&&ro(e.newest)}function sn(t,e,n,o,{resolvePromise:r,resolveValue:s}){if(q(t)){return e.context.locked=!0,t.then(function(t,e){return n=>{if(!0===t.context.global.deleted)return e(n);const o=t.context,r=t.context.global;delete o.locked,Et(t,r.newest);return on(ao(t)),e(n)}}(e,r))}return s(t)}function cn(t){Re((()=>{const e=t(),n=ct();return sn(e,n,n.context.global,0,{resolvePromise:un,resolveValue:an})}))}function un(t){return t}function an(t){return t}function ln(t){Re((function(){ct().context.global.destroy$.toCallback(t)}))}function pn(t=[]){return ct()?Re((()=>fn(Me(t)))):fn(Me(t))}function fn(t){const e=["push","pop","splice","shift","unshift"],n=["map","reduce","forEach","every"],o=new Proxy(t,{get(r,s){return isNaN(s)?"length"===s?t.value.length:e.includes(s)?o[c=s]=(...e)=>{const n=t.value[c](...e);return t.emit(t.value),n}:n.includes(s)?t.value[s].bind(t.value):t[s]:t.value[s];var c},set:(e,n,o)=>isNaN(n)?"length"===n?(t.value.length=o,t.emit(t.value),!0):(t[n]=o,!0):(t.value[n]=o,t.emit(t.value),!0)});return o}function dn(t,e){const n=gn(t,e);return!(n||!e.templater.tag?._innerHTML||!gn(t.outerHTML,e))||n}function gn(t,e){const n=t.templater,o=e.templater,r=n?.tag||t,s=o.tag;if(n?.tagJsType===J.stateRender)return n.dom===o.dom;switch(r.tagJsType){case J.dom:return s?.tagJsType===J.dom&&function(t,e){const n=t.dom,o=e.dom;return n===o}(r,s);case J.tag:{const n=function(t,e,n,o){const r=t.strings,s=e.strings;if(r.length!==s.length)return!1;if(!r.every(((t,e)=>s[e].length===t.length)))return!1;const c=n.templater.values||t.values,u=o.templater.values||e.values;return function(t,e){const n=t.length===e.length;if(!n)return!1;const o=e.every((function(e,n){const o=t[n];if(typeof e===A.function&&typeof o===A.function){return!!(e.toString()===o.toString())}return!0}));if(o)return!0;return!1}(c,u)}(r,s,t,e);return n}}throw new Error(`unknown tagJsType of ${r.tagJsType}`)}function hn(t,e,o){const r=e.global,s=r?.newest;if(z(t)){return dn(t,s)?(zt(e,t,s,o),-1):(re(s,r),n(e),7)}const c=t?.tagJsType;if(c){return!0===zt(e,t,r.newest.ownerSupport,o)?-1:88}return mn(e),8}function mn(t){const e=t.global,n=e?.newest;re(n,e),delete t.global,t.renderCount=0}function bn(t,e,n,o){const r=t.context.global;r.oldest=t,r.newest=t,++Bo.locks;const s=function(t,e,n,o){const r=function(t){const e=t.templater,n=e.tag;if(n.tagJsType===J.dom)return n.dom;const o=n.strings;return H(o,n.values)}(t),s=t.templater.tag,c=s.values,u=[],a=t.context.global;a.contexts=u;const i=Po(r,c,t,e,u,0,n,o);return i}(t,e,n,o);return r.htmlDomMeta=s.dom,--Bo.locks,s}function yn(t,e,n){const o={value:t,valueIndex:e.length,valueIndexSetBy:"addOneContext",tagJsVar:me(t),withinOwnerElement:n};return e.push(o),o}function vn(t,e,n){const o=e.global.newest,r=e.placeholder;return o.ownerSupport=t,bn(o,n,void 0,r),o}function wn(t){const e={tagJsType:J.templater,processInit:Cn,checkValueChange:hn};return e.tag=t,t.templater=e,e}function xn(t,e,n){const o=Ft(t,e,e.appSupport,n);return n.global.contexts=[],o}function Tn(t,e,n,o,r,s){const c=xn(t,n,e);c.ownerSupport=n;const u=bn(c,o,r,r?void 0:s);for(const t of u.dom)t.marker&&(r?Do.push([Zo,[r,t.marker]]):No.push([zo,[s,t.marker]])),t.domElement&&(r?Do.push([Zo,[r,t.domElement]]):No.push([zo,[s,t.domElement]]));return c}function Cn(t,e,n,o,r,s){return r?Tn(t,e,n,o,r,s):vn(n,e,o)}function Sn(t,e){const n={tagJsType:J.templater,processInit:Cn,processUpdate:Zt,checkValueChange:hn,delete:mn,propWatch:t,props:e,key:function(t){return n.arrayValue=t,n}};return n}const kn=[];function En(t){const e=t.context;return oo(t.templater)?so(t):no(t,t,e)}function In(t,e,n){return t.map((function(t){return function(t,e,n,o){if(z(t)||!t)return t;if(!e)return t;return An(t,e,n,o)}(t,e.ownerSupport,e,n)}))}function An(t,e,n,o,r){if(!t)return t;if(t.tagJsType)return t;if(typeof t===A.function)return o<=1?function(t,e,n){const o=t.mem;if(o)return t;const r=function(...t){return function(t,e,n,o){const r=o.context.global,s=r?.newest||o,c=void 0===ct(),u=t.apply(e,n),a=function(){const t=s.context;return t.global&&!0!==t.locked?(En(s),u):u};if(c)return a();return kt.tagClosed$.toCallback(a),u}(r.mem,e,t,n)};return r.original=t,r.mem=t,Object.assign(r,t),r}(t,r,e):t;if(o===Xn)return t;return Vn(t)?t:K(t)?function(t,e,n,o){for(let r=t.length-1;r>=0;--r){const s=t[r];if(t[r]=An(s,n,e,o+1,t),typeof s===A.function){if(s.mem)continue;Jn(o+1,r,s,t,e)}}return t}(t,n,e,o):function(t,e,n,o){const r=Object.keys(t);for(const s of r){const r=t[s],c=An(r,n,e,o+1,t);if(t[s]===c)continue;const u=Object.getOwnPropertyDescriptor(t,s);if(!(u?.get||u?.set)&&(t[s]=c,typeof c===A.function)){if(r.mem)continue;Jn(o+1,s,r,t,e)}}return t}(t,n,e,o)}function Jn(t,e,n,o,r){if(t>0){const t=r.context.global;o[e].subscription=t.destroy$.toCallback((function(){o[e]=n}))}}function Vn(t){return typeof t!==A.object||!t||t.tagJsType}function On(t,e,n,o){const r=e.original,s=t.tagJsType===J.stateRender,c=kt.stateConfig;let u;return ut(n),s?u=t():(u=r(...o),typeof u===A.function&&(u=u())),u.templater=t,t.tag=u,n.state=c.stateArray,n.states=c.states,n}function Pn(t,e,n){const o=t.propWatch===Bn.DEEP?Xn:Zn,r=t.props,s=e.propsConfig;let c=s.castProps;const u=n?.propsConfig,a=u?.castProps;a&&(s.castProps=a,c=Qn(e,n,n.ownerSupport,r,o));return c||In(r,e,0)}function Mn(t,e,n){const o=Sn(Bn.DEEP);o.tagJsType=t.tagJsType;const r=xn(o,n,e);function s(){return o.tag=t(),r}return o.wrapper=s,s.tagJsType=t.tagJsType,s.original=t.original||t,r}function jn(t,e){const n=t.rearray;n.length&&n.length!==t.stateArray.length&&function(t,e,n){const o=`Saved states between renders are inconsistent. Expected ${t.length} states got ${n.stateArray.length}.`,r=e.templater?.wrapper;let s=r;(r?.original||r?.original)&&(s=r.original);const c={oldStates:n.stateArray,newStates:n.rearray,tagFunction:s,templater:e.templater},u=new Ye(o,c);throw console.error(Ln,c),u}(n,e,t)}const Ln="State tracking requires same number of state calls on every render. This error typically occurs when a state call is only reachable behind a condition. Also, wrapping tags that have state, with tag(), often helps when tag is only reachable by a condition.";function Hn(t,e){const n=t.context;++n.renderCount;const o=kt.stateConfig;t.state=o.stateArray,t.states=o.states,n.global.newest=t,jn(o,t),delete o.prevSupport,delete o.support,delete o.stateArray,delete o.states,kt.tagClosed$.next(e)}function Nn(t,e,n,o){!function(t,e){const n=e?.state;if(n)return void dt(t,e,n);ft(t)}(t,e);const r=t.templater;let s;if(r.tagJsType===J.stateRender){const e=r;s=Gt(r,o,t.appSupport,n),On(r,e,s)}else{s=(0,r.wrapper)(t,n,e)}return Hn(s,o),s.ownerSupport=t.ownerSupport,s}function Un(t,e,o,r,s,c){n(e);const u=Mn(t,e,o);return Nn(u,void 0,e),Tn(u.templater,e,o,r,s,c)}function Rn(t,e,n,o,r){const s=Gt(t,n,n.appSupport,e),c=s.propsConfig;if(c){const e=t.tagJsType!==J.tagComponent?[]:Pn(t,s);c.castProps=e}return function(t,e,n){const o=bn(t,e,n,void 0);for(const t of o.dom)t.domElement&&Do.push([Zo,[n,t.domElement]]),t.marker&&Do.push([Zo,[n,t.marker]]);return t}(Nn(s,e.global.newest,e),o,r)}function Dn(t,e,o,r,s){if(n(e),s){return Rn(t,e,o,r,s)}const c=function(t,e,n,o){const r=Gt(t,n,n.appSupport,e),s=r.propsConfig;if(s){const e=t.tagJsType!==J.tagComponent?[]:Pn(t,r);s.castProps=e}const c=Nn(r,e.global.newest,e);return bn(c,o,void 0,e.placeholder),c}(t,e,o,r);return c}let Wn=0;var Bn;function _n(t,e=Bn.SHALLOW){const n=function(...o){const r=Sn(e,o);r.tagJsType=J.tagComponent,r.processInit=Dn;const s=function(t,e){return function(n,o,r){const s=Pn(t,n,r),c=n.ownerSupport,u=Gt(t,c,n.appSupport,o,s);return On(t,e,u,s)}}(r,n);return s.original=t,r.wrapper=s,r},o=t;return n.original=t,o.tags=kn,o.setUse=kt,o.ValueTypes=J,o.tagIndex=Wn++,kn.push(n),n}function $n(t,e,n){if(uo(t,e))return 11;switch(n){case Bn.NONE:return 1;case Bn.SHALLOW:return zn(t,e);case Bn.IMMUTABLE:return Gn(t,e)}return function(t,e){let n=t,o=e;n=[...t],o=[...e||[]];if(!n.every(((t,e)=>function(t,e,n,o){const r=o[e];if(typeof t===A.object){const e={...t},n={...r||{}},o=Object.entries(e).every((([t,o])=>Fn(o,n[t],(()=>{delete e[t],delete n[t]}))));return o}return Fn(t,r,(function(){n.splice(e,1),o.splice(e,1)}))}(t,e,n,o))))return 7;return!1}(t,e)}function Fn(t,e,n){if(typeof t!==A.function)return!!rt(t,e,Xn)&&4;if(typeof e!==A.function)return!1;const o=e?.original;o&&(e=o);t.original&&(t=t.original);return t.toString()===e.toString()?(n(),5):(n(),6)}function Gn(t,e){const n=t.length;for(let o=0;o<n;++o){if(t[o]!==e[o])return 2}return!1}function zn(t,e){const n=t.length;for(let o=0;o<n;++o){const n=t[o],r=e[o];if(K(n)&&K(r)){if(n===r)continue;return 3}if(typeof n!==A.function||typeof r!==A.function)if(typeof n!==A.object){if(n!==r)return 3.3}else if(typeof e===A.object){const t=Object.entries(n);for(const e of t){if(!qn(e,r))return 3.1}}}return!1}!function(t){t.DEEP="deep",t.SHALLOW="shallow",t.NONE="none",t.IMMUTABLE="immutable"}(Bn||(Bn={})),_n.renderOnce=function(){throw new Error("Do not call tag.renderOnce as a function but instead set it as: `(props) => tag.renderOnce = () => html`` `")},_n.use=function(){throw new Error("Do not call tag.use as a function but instead set it as: `(props) => tag.use = (use) => html`` `")},_n.deepPropWatch=_n,_n.route=function(t){throw new Error("Do not call tag.route as a function but instead set it as: `tag.route = (routeProps: RouteProps) => (state) => html`` `")},_n.app=function(t){throw new Error("Do not call tag.route as a function but instead set it as: `tag.route = (routeProps: RouteProps) => (state) => html`` `")},_n.immutableProps=function(t){return _n(t,Bn.IMMUTABLE)},_n.watchProps=function(t){return _n(t,Bn.SHALLOW)},Object.defineProperty(_n,"renderOnce",{set(t){t.tagJsType=J.renderOnce,t.processInit=Un,t.processUpdate=Zt,t.delete=mn,t.checkValueChange=function(){return-1}}}),Object.defineProperty(_n,"use",{set(t){t.original={setUse:kt,tags:kn},t.tagJsType=J.stateRender,t.processInit=Dn,t.processUpdate=Zt,t.checkValueChange=hn,t.delete=mn}});const Zn=3,Xn=10;function qn([t,e],n){const o=n[t];return typeof e===A.function&&typeof o===A.function||o===e}function Yn(t,e,n,o,r,s){return null==t||s>r?e:typeof t===A.function?e.mem?(t.mem=e.mem,e):(t.mem=e,t):Vn(e)?e:K(e)?function(t,e,n,o,r,s){for(let c=t.length-1;c>=0;--c){const u=t[c],a=e[c];t[c]=Yn(a,u,n,o,s,r+1)}return t}(e,t,n,o,s,r):function(t,e,n,o,r,s){const c=Object.keys(t);for(const u of c){const c=t[u],a=Yn(e[u],c,n,o,s,r+1);if(c===a)continue;const i=Object.getOwnPropertyDescriptor(t,u)?.set;i||(t[u]=a)}return t}(e,t,n,o,s,r)}function Qn(t,e,n,o,r,s=-1){const c=e.context.global;if(!c||!c.newest){const e=In(o,t,s);o.push(...e);return t.propsConfig.castProps=e,o}const u=(e=c.newest||e).propsConfig.castProps,a=[];for(let e=0;e<o.length;++e){const c=o[e],i=Yn(u[e],c,t,n,r,s+1);a.push(i)}return t.propsConfig.castProps=a,a}function Kn(t){const e=t.context,o=e.global,{subs:r,tags:s}=Yt(o.contexts);to(o);for(const t of s){const e=t.context.global;if(!0===e.deleted)return;to(e)}o.subscriptions&&r.forEach(Qt),n(e)}function to(t){t.deleted=!0,ne(t,[])}function eo(t,e,n){const o=Nn(t,e,n),r=!e||dn(e,o);if(r){if(e){const t=e.templater.tag;if(t&&n.renderCount>0){const n=e?.templater,o=n?.tag;!function(t,e,n){if(t.tagJsType===J.dom){const o=n?.dom;return void(o!==t.dom&&Kn(e))}if(n){const o=n.strings;if(o){const n=o?.length;n!==t.strings.length&&Kn(e)}}}(t,e,o)}}}else{!function(t,e){const n=t.context.global;let o=-1;const r=n.providers=n.providers||[],s=r.length-1;for(;o++<s;){const t=r[o];let s=-1;const c=t.children.length-1;for(;s++<c;)if(n===t.children[s].context.global)return t.children.splice(s,1),void t.children.push(e)}}(e,o),Kn(e);const t=o.context.global;t.oldest=o,t.newest=o}return o.ownerSupport=t.ownerSupport,{support:o,wasLikeTags:r}}function no(t,e,n){const o=eo(e,t,n),r=n.global;return o.wasLikeTags?(Ut(r.oldest,o.support),o.support):vn(e,n,{added:0,removed:0})}function oo(t){return J.templater===t.tagJsType}function ro(t){const e=t.context,n=e.global,o=oo(t.templater);if(e.locked)return n.blocked.push(t),t;if(o){return so(t)}e.locked=!0,n.blocked.length&&(t=n.blocked.pop(),n.blocked=[]);const r=no(n.newest,t,e);return delete e.locked,r}function so(t){return ro(at(t).context.global.newest)}function co(t,e){const n=function(t,e){const n=t.props,o=e.propsConfig,r=o.latest;if(uo(n,r))return!0;switch(t.propWatch){case Bn.IMMUTABLE:return Gn(n,r);case Bn.SHALLOW:return zn(n,r)}return!rt(n,r,Xn)}(t,e);return!!n}function uo(t,e){return t.length!==e.length}function ao(t,e=[]){const n=t.context,o=oo(t.templater),r=t.ownerSupport;if(n.locked)return e.push(t),e;if(o)return ao(r,e);const s=t,c=Z(s.templater),u=t.templater.tagJsType,a=r&&u!==J.stateRender&&(!c||co(s.templater,s)),i=function(t){const e=t.context.global.providers;if(!e)return[];const n=[];for(const t of e){const e=tt(t.owner,t);n.push(...e.map(et))}return n}(s);return e.push(...i),a?(ao(r,e),c&&e.push(s),e):(e.push(s),e)}function io(t,e){const n=e.context.global,o=function(t,e){if(!0!==n.deleted)return function(t,e,n,o){const r=at(e),s=r.context;s.locked=!0;const c=t.apply(n,o);delete s.locked;return function(t,e){e.context.global;return function(t,e,n){return on(ao(t)),sn(e,t,0,0,{resolvePromise:fo,resolveValue:go})}(e,t)}(c,r)}(o.tagFunction,o.support,t,e)};return o.tagFunction=t,o.support=e,o}const lo="no-data-ever",po="promise-no-data-ever";function fo(){return po}function go(){return lo}function ho(t,e,n,o,r,s,c){if(c)return D(t,e,n,c);o(n,t,e)}function mo(t,e,n,o){const r=t.appElement;"blur"===e&&(e="focusout");const s="_"+e,c=t.context.global.events;if(!c[e]){const t=function(t){t.originalStopPropagation=t.stopPropagation,bo(t,s,t.target)};c[e]=t,r.addEventListener(e,t)}n[s]=o,n[e]=o}function bo(t,e,n){const o=n[e];if(o){let e=!1;if(t.stopPropagation=function(){e=!0,t.originalStopPropagation.call(t)},o(t),t.defaultPrevented||e)return}const r=n.parentNode;r&&bo(t,e,r)}function yo(t,e,n,o){const r=function(...e){return r.tagFunction(t,e)};r.tagFunction=e,r.support=n,mo(n.appSupport,o,t,r)}function vo(t){return null==t||!1===t}function wo(t,e){t.removeAttribute(e)}function xo(t,e,n,o,r){if(n.isNameOnly)return function(t,e,n,o,r,s,c,u){if(n){if(vo(e))return void o.removeAttribute(n);if(typeof n===A.object)if(typeof e===A.object)for(const t in n)t in e||Ro.push([wo,[o,t]]);else for(const t in n)Ro.push([wo,[o,t]])}Eo(t,e,o,r,s,c,u)}(r,t,n.value,n.element,e,n.howToSet,[],{added:0,removed:0}),void(n.value=t);const s=n.element;!function(t,e,n,o,r,s,c,u){if(Y(t))return function(t,e,n,o,r,s,c,u){const a=t.templater.wrapper;if((a?.tagJsType||a?.original?.tagJsType)!==J.renderOnce)return Ao(c,e,t,o,n);return Io(e,n,o,r,s,t,u)}(r,t,o,e,c,s,n,u);Io(t,o,e,c,s,r,u)}(t,n.attrName,n,s,e,n.howToSet,n.isSpecial,{added:0,removed:0}),n.value=t}function To(t,e,n,o,r,s,c,u,i){const l=o.length;function p(o){const s=function(t,e,n){return t.reduce(((t,o)=>{if(a(o)>=0){const o=n++,r=e[o];return t.push(r),t}return t.push(o),t}),[])}(e,o,l).join("");r(n,t,s)}e.forEach((e=>{if(a(e)>=0){const r=o.length,s=me(e),c={isAttr:!0,element:n,attrName:t,withinOwnerElement:!0,tagJsVar:s,valueIndex:o.length,valueIndexSetBy:"createDynamicArrayAttribute"};s.processUpdate=function(t,e,n,o,r){p(r)};const a=u[r];c.value=a,o.push(c)}})),p(u)}function Co(t,e,n,o,r,s,c,u,a){const i=me(e),l={isAttr:!0,element:n,attrName:t,withinOwnerElement:!0,tagJsVar:i,valueIndex:a,valueIndexSetBy:"createDynamicAttribute"};o.push(l),i.processUpdate=xo,function(t,e,n,o,r,s,c,u){n.element=o,n.howToSet=r,typeof e===A.function?Ao(n,e,s,t,o):(n.attrName=t,n.isSpecial=u,ho(t,e,o,r,0,0,u))}(t,e,l,n,r,s,0,u),l.value=e}function So(t){return Q(t)&&"tagJsVar"in t?t.tagJsVar:-1}function ko(t,e,n,o,r,s,c,u,a){const i=So(e);if(i>=0){const e=t[i],c=yn(e,s,!0);if(c.valueIndex=i,c.valueIndexSetBy="processAttribute",c.isAttr=!0,c.element=n,c.isNameOnly=!0,e.tagJsType)return c.tagJsVar=e,c.stateOwner=at(o),c.supportOwner=o,function(t,e,n){return void e.processInit(t,e,n)}(n,e,c);c.howToSet=r;return c.tagJsVar.processUpdate=xo,void Eo(t,e,n,o,r,s,u)}if(Array.isArray(a))return To(e,a,n,s,r,0,0,t);const l=So(a);if(l>=0){return Co(e,t[l],n,s,r,o,0,c,l)}return ho(e,a,n,r,0,0,c)}function Eo(t,e,n,o,r,s,u){if(!vo(e))if(typeof e!==A.object)0!==e.length&&r(n,e,E);else for(const a in e){const i=e[a];ko(t,a,n,o,r,s,c(a),u,i)}}function Io(t,e,n,o,r,s,c){if(!1===o){switch(t){case void 0:case!1:case null:return void Ro.push([Jo,[e,n]])}if(Y(t))return yo(e,t,s,n);r(e,n,t)}else D(n,t,e,o)}function Ao(t,e,n,o,r){e=io(e,n);return t.tagJsVar.processUpdate=xo,yo(r,e,n,o)}function Jo(t,e){t.removeAttribute(e)}function Vo(t,e,n,o,r,s,c){const u=document.createTextNode(E),a=yn(t,e,r>0);a.placeholder=u,s?Do.push([Zo,[s,u]]):No.push([zo,[c,u]]),ae(t,n,a,o,s,c)}const Oo=function(){};function Po(t,e,n,o,r,s,c,u){const a=[];c&&void 0===u&&(u=document.createTextNode(E),Do.push([Zo,[c,u]]),c=void 0);for(let i=0;i<t.length;++i){const l=t[i],p=l.v;if(!isNaN(p)){Vo(e[r.length],r,n,o,s,c,u);continue}const f={};if(a.push(f),"text"===l.nn){jo(f,l,c,u);continue}const d=Mo(f,l,e,n,r,o,c,u);l.ch&&(f.ch=Po(l.ch,e,n,o,r,s+1,d,u).dom)}return{dom:a,contexts:r}}function Mo(t,e,n,o,r,s,c,u){const a=t.domElement=document.createElement(e.nn);if(e.at)for(const t of e.at){const e=t[0],c=t[1],u=t[2]||!1;ko(n,e,a,o,t.length>1?R:U,r,u,s,c)}return c?Do.push([Zo,[c,a]]):No.push([zo,[u,a]]),a}function jo(t,e,n,o){const r=t,s=r.tc=e.tc;n?Do.push([Ko,[n,s,function(t){r.domElement=t}]]):No.push([Qo,[o,s,function(t){r.domElement=t}]])}function Lo(t){Ho.length&&(Ho[Ho.length-1].paintRemoves.push(...Uo),Uo=[]),Ho.push({promise:t,paintRemoves:Uo}),Uo=[]}let Ho=[],No=[],Uo=[],Ro=[],Do=[],Wo=[];const Bo={locks:0,removeLocks:0};function _o(t,e){e.textContent=t}function $o(){if(!(Bo.locks>0))return function(){(function(){if(Ho.length){const t=Ho.map((t=>t.promise.then((()=>{const e=t.paintRemoves;for(const t of e)t[0](...t[1])}))));Ho=[];const e=Uo;return Promise.all(t).then((()=>{for(const t of e)t[0](...t[1])}))}for(const t of Uo)t[0](...t[1])})(),Uo=[];for(const t of Ro)t[0](...t[1]);for(const t of Do)t[0](...t[1]);for(const t of No)t[0](...t[1])}(),void function(){No=[],Ro=[],Do=[];const t=Wo;Wo=[];for(const e of t)e[0](...e[1])}()}function Fo(t){Uo.push([Go,[t]])}function Go(t,e){t.parentNode.removeChild(t)}function zo(t,e){t.parentNode.insertBefore(e,t)}function Zo(t,e){t.appendChild(e)}const Xo="object"==typeof document&&document.createElement("div");function qo(t){return Xo.innerHTML=t,document.createTextNode(Xo.innerHTML)}function Yo(t,e,n=Oo){const o=qo(e);zo(t,o),n(o)}function Qo(t,e,n=Oo){Xo.innerHTML=e;const o=document.createTextNode(Xo.textContent);zo(t,o),n(o)}function Ko(t,e,n){Xo.innerHTML=e;const o=document.createTextNode(Xo.textContent);Zo(t,o),n(o)}function tr(t,e){const n=t.subContext;n.deleted=!0,delete t.subContext;const o=n.appendMarker;if(o&&(Fo(o),delete n.appendMarker),delete t.delete,!n.hasEmitted)return;const r=n.contextItem;return r.tagJsVar.delete(r,e),76}function er(t,e,o,r,s,c){const u=t;let a=u.templater;a||(a=wn(u));const i=n(e);return s?Tn(a,e,o,r,s,c):(i.newest=xn(a,o,e),vn(o,e,r))}function nr(t,e,n,o,r,s){er(t.outerHTML,e,n,o,r,s);e.tagJsVar.processUpdate=function(t,e,n,o){xe(n,t?.outerHTML||t,e,o)},t.checkValueChange=or}function or(t,e,n){return hn(t,e,n)}function rr(t,e){const n={values:e,ownerSupport:ct(),dom:t,tagJsType:J.dom,processInit:er,processUpdate:Zt,checkValueChange:hn,delete:mn,key:function(t){return n.arrayValue=t,n},setHTML:function(t){return t.outerHTML=n,n._innerHTML=t,t.oldProcessInit=t.processInit,t.processInit=nr,n},acceptInnerHTML:function(t){return t.owner=n,n},html:{dom:function(t,e){return n.children={dom:t,values:e},n}}};return Object.defineProperty(n,"innerHTML",{set:t=>n.setHTML(t)}),n}function sr(t,...e){const n=function(t,e){const n={values:e,ownerSupport:ct(),tagJsType:J.tag,processInit:er,processUpdate:Zt,checkValueChange:hn,delete:mn,strings:t,key:t=>(n.arrayValue=t,n),setHTML:function(t){return t.outerHTML=n,n._innerHTML=t,t.oldProcessInit=t.processInit,t.processInit=nr,n},acceptInnerHTML:function(t){return t.owner=n,n},html:function(t,e){return n.children={strings:t,values:e},n}};return Object.defineProperty(n,"innerHTML",{set:t=>n.setHTML(t)}),n}(t,e),o=Sn(Bn.NONE);return o.tag=n,n.templater=o,n}function cr(t,e){t.domElement&&e.appendChild(t.domElement),t.marker&&e.appendChild(t.marker)}function ur(t,e,n){const o=e.global,r=_t(t,e);return $t(t,r,r),r.appElement=n,o.oldest=o.oldest||r,o.newest=r,r}function ar(t,e,n,o,r,s,c){const u=document.createTextNode(E);kn.push(n.wrapper||{original:n});const a=function(t,e,n,o,r){o.placeholder=e;const s=o.global,c=s.oldest,u=s.newest===c,a=Gt(t,s.newest,s.newest.appSupport,o);u||dt(a,s.newest,c.state);if(t.tagJsType===J.stateRender)return function(t,e,n,o,r){const s=t.wrapper||{original:t};if(!e){const e=ur(t,o,r);return Hn(e),e}return On(t,s,n),Hn(n),n}(t,r,a,o,n);const i=t.wrapper,l=i(a,o);return Hn(a),l}(n,u,r,s,c);if(e.isApp=!0,c&&(o.tag=a.templater.tag),!r)throw new Error(`Cannot tagElement, element received is type ${typeof r} and not type Element`);r.destroy=function(){const t=e.events;for(const e in t){const n=t[e];r.removeEventListener(e,n)}e.events={},++Bo.locks;const n=re(a,e);return--Bo.locks,$o(),n},++Bo.locks;const i=function(t,e,n,o,r,s){console.debug("🏷️ Building element into tag...",{element:e,app:r,support:t});const c=bn(t,{added:0,removed:0},e,void 0);n.oldest=t,n.newest=t;let u=o.setUse;if(o.tagJsType!==J.stateRender){const t=r.original;u=t.setUse,t.isApp=!0}e.setUse=u,e.ValueTypes=J,ir.push({element:e,support:t});const a=document.createDocumentFragment();a.appendChild(s);for(const t of c.dom)cr(t,a);return console.debug("🏷️ Element Tag DOM built ✅"),a}(a,r,e,n,t,u);return--Bo.locks,$o(),r.appendChild(i),{support:a,tags:kn,ValueTypes:J}}sr.dom=function(t,...e){return rr(t,e)},"object"==typeof document&&(document.taggedJs&&console.warn("🏷️🏷️ Multiple versions of taggedjs are loaded. May cause issues."),document.taggedJs=!0);const ir=[];function lr(t,e,o){const r=ir.findIndex((t=>t.element===e));if(r>=0){const t=ir[r].support;re(t,t.context.global),ir.splice(r,1),console.warn("Found and destroyed app element already rendered to element",{element:e})}let s=()=>a(o);s.propWatch=Bn.NONE,s.tagJsType=J.stateRender,s.processUpdate=Zt,s.props=[o],s.isApp=!0;const c=function(t,e){const o={value:t,valueIndex:0,valueIndexSetBy:"getNewSubject",withinOwnerElement:!1,renderCount:0,global:void 0,tagJsVar:{tagJsType:"templater",checkValueChange:hn,delete:mn,processInit:function(){console.debug("do nothing app function")},processUpdate:Zt}},r=n(o);return r.events={},ur(t,o,e),o}(s,e),u=c.global;ft(u.newest);let a=t(o);const i=typeof a==A.function;return i||(Z(a)?(u.newest.propsConfig={latest:[o],castProps:[o]},s.propWatch=a.propWatch,s.tagJsType=a.tagJsType,s.wrapper=a.wrapper,s=a):(s.tag=a,a=t)),ar(t,u,s,a,e,c,i)}function pr(t){if(!t)return Oo;const e=ct();if(!e)throw new Error("output must be used in render sync fashion");return(...n)=>{const o=e.ownerSupport;return fr(n,t,o)}}function fr(t,e,n){const o=n.context.global.newest;It(o.states,n.states);const r=e(...t);return It(n.states,o.states),Wo.push([()=>{o.context.global&&(++Bo.locks,En(o),--Bo.locks,$o())},[]]),r}function dr(t,e){const n=ct(),o=n?at(n).states:[];return{tagJsType:J.subscribe,processInit:Je,processUpdate:Te,delete:Ie,callback:e,states:o,Observables:[t]}}function gr(t,e,n,o){const r=t.owner._innerHTML;r.processInit=r.oldProcessInit;const s=n.subContext?.contextItem;xe(s,r,e,o)}function hr(t,e,n,o,r,s){e.subContext={},t.processUpdate=gr,function(t,e,n,o,r,s){const{appendMarker:c,insertBefore:u}=ke(s,r),a=n.subContext;a.appendMarker=c;const i=t.owner,l=i._innerHTML;l.processInit=l.oldProcessInit,Se(l,a,e,o,u)}(t,n,e,o,s,r)}function mr(){return{tagJsType:"innerHTML",processInit:hr,processUpdate:gr,delete:tr}}function br(t,e){return{tagJsType:J.subscribe,processInit:yr,processUpdate:Oo,delete:Ie,callback:e,states:at(ct()).states,Observables:t}}function yr(t,e,n,o,r){return Ee(t,e,n,o,void 0,r)}function vr(t,e={}){return{tagJsType:J.host,processInit:xr,processUpdate:wr,delete:Tr,options:{callback:t,...e}}}function wr(t,e,n,o){const r=Ce(J.host,t,e,n,o);if(r)return r;const s=n.tagJsVar.options,c=n.element;s.callback(c,t,n)}function xr(t,e,n){e.options.callback(t,e,n);const o=e.options;if(o.onInit){const t=n.element;o.onInit(t,e,n)}}function Tr(t){const e=t.tagJsVar,n=e.options;if(n.onDestroy){const o=t.element;fr([],(function(){return n.onDestroy(o,e,t)}),t.stateOwner)}}function Cr(t,e,n){return{tagJsType:J.subscribe,processInit:Ve,processUpdate:Oo,delete:Ie,callback:n,withDefault:e,states:at(ct()).states,Observables:[t]}}vr.onInit=t=>vr((()=>{}),{onInit:t}),vr.onDestroy=t=>vr((()=>{}),{onDestroy:t});const Sr={tagElement:lr,renderWithSupport:eo,renderSupport:ro,renderTagOnly:Nn,paint:$o};var kr=e.W9,Er=e.cg,Ir=e.m0,Ar=e.rS,Jr=e.Y2,Vr=e.ei,Or=e.B7,Pr=e.TU,Mr=e.XF,jr=e.PC,Lr=e.Ot,Hr=e.Mj,Nr=e.tD,Ur=e.j8,Rr=e.Gf,Dr=e.xe,Wr=e.YO,Br=e.um,_r=e.E2,$r=e.OH,Fr=e.TB,Gr=e.Ii,zr=e.m3,Zr=e.yV,Xr=e.zV,qr=e.pf,Yr=e.ze,Qr=e.WJ,Kr=e.Ng,ts=e.HG,es=e.aZ,ns=e.Ey,os=e.O,rs=e.F3,ss=e.Ie,cs=e.ts,us=e.B4,as=e.Az,is=e.Xi,ls=e.sV,ps=e.Ah,fs=e.Gk,ds=e.j_,gs=e.zC,hs=e.cF,ms=e.Hc,bs=e.jU,ys=e.PB,vs=e.uq,ws=e.qy,xs=e.cy,Ts=e.Tn,Cs=e.Gv,Ss=e.yL,ks=e.D8,Es=e.Ze,Is=e._4,As=e.mn,Js=e.z,Vs=e.sA,Os=e.TG,Ps=e.MG,Ms=e.PL,js=e.CG,Ls=e.nI,Hs=e.Fs,Ns=e.PZ,Us=e.r5,Rs=e.uc,Ds=e.pG,Ws=e.QB,Bs=e.Ll,_s=e.vP,$s=e.wk,Fs=e.xP,Gs=e.bc,zs=e.B1,Zs=e.RX,Xs=e.ag,qs=e.Tc,Ys=e.Hf,Qs=e.zc,Ks=e._A,tc=e.Ag,ec=e.Pc,nc=e.NU,oc=e.wB,rc=e.id,sc=e.MC,cc=e.SZ;export{kr as ArrayNoKeyError,Er as BasicTypes,Ir as ImmutableTypes,Ar as PropWatches,Jr as RouteQuery,Vr as StateMismatchError,Or as Subject,Pr as Subjective,Mr as SyncCallbackError,jr as TagError,Lr as ValueSubject,Hr as ValueSubjective,Nr as ValueTypes,Ur as addOneContext,Rr as addPaintRemoveAwait,Dr as appElements,Wr as array,Br as buildBeforeElement,_r as callback,$r as callbackMaker,Fr as checkArrayValueChange,Gr as checkSimpleValueChange,zr as checkSubContext,Zr as checkTagValueChange,Xr as combineLatest,qr as createHtmlSupport,Yr as createTrigger,Qr as defineValueOn,Kr as deleteSimpleValue,ts as deleteSubContext,es as destroyArray,ns as destroyArrayContextItem,os as destroySupport,rs as destroySupportByContextItem,ss as empty,cs as forceUpdateExistingValue,us as getBaseSupport,as as getDomMeta,is as getDomTag,ls as getInnerHTML,ps as getNewGlobal,fs as getTemplaterResult,ds as guaranteeInsertBefore,gs as hasPropChanges,hs as hmr,ms as host,bs as howToSetFirstInputValue,ys as howToSetInputValue,vs as howToSetStandAloneAttr,ws as html,xs as isArray,Ts as isFunction,Cs as isObject,Ss as isPromise,ks as isSimpleType,Es as isStaticTag,Is as isSubjectInstance,As as isTagComponent,Js as letProp,Vs as onDestroy,Os as onFirstSubContext,Ps as onInit,Ms as oneRenderToSupport,js as output,Ls as paint,Hs as pipe,Ns as processFirstSubjectValue,Us as providers,Rs as renderSupport,Ds as renderTagOnly,Ws as renderWithSupport,Bs as setUseMemory,_s as signal,$s as state,Fs as states,Gs as subject,zs as subscribe,Zs as subscribeWith,Xs as syncError,qs as tag,Ys as tagElement,Qs as tagValueUpdateHandler,Ks as tags,tc as upgradeBaseToSupport,ec as valueToTagJsVar,nc as variablePrefix,oc as watch,rc as willCallback,sc as willPromise,cc as willSubscribe};
|
|
1
|
+
var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};function n(t){return t.renderCount=t.renderCount||0,t.varCounter=0,t.state={newer:{state:[],states:[]}},t.global={blocked:[]}}t.d(e,{W9:()=>Ns,cg:()=>I,m0:()=>k,rS:()=>Zo,Y2:()=>o,ei:()=>Us,B7:()=>q,TU:()=>Z,XF:()=>Ws,PC:()=>Hs,Ot:()=>Ts,Mj:()=>Vs,tD:()=>S,a:()=>ga,Gf:()=>c,xe:()=>sr,YO:()=>_s,b:()=>wa,rf:()=>Wr,br:()=>ha,um:()=>Zn,x6:()=>Er,E2:()=>$s,OH:()=>Bs,TB:()=>Ft,Ii:()=>Rt,mX:()=>mo,yV:()=>fe,EI:()=>de,zV:()=>G,pf:()=>us,ze:()=>Rs,Go:()=>ot,bD:()=>rt,WJ:()=>Q,wL:()=>vo,Ng:()=>$t,O:()=>ue,r3:()=>ra,y4:()=>Qr,Ie:()=>J,lI:()=>oa,hp:()=>Ae,qr:()=>na,ts:()=>fs,B4:()=>as,HD:()=>Gs,Az:()=>qn,Xi:()=>nr,sV:()=>To,Ah:()=>n,f5:()=>Me,Gk:()=>oo,j_:()=>ds,h1:()=>Br,h2:()=>Fr,h3:()=>_r,h4:()=>zr,h5:()=>Gr,h6:()=>Xr,zC:()=>Yo,d5:()=>Dr,wx:()=>ea,cF:()=>Ta,Hc:()=>So,PB:()=>Jt,uq:()=>It,hr:()=>Rr,qy:()=>or,gM:()=>Pr,gx:()=>Vr,hF:()=>Or,cy:()=>j,Tn:()=>P,Gv:()=>D,yL:()=>L,D8:()=>E,Ze:()=>A,_4:()=>O,mn:()=>M,Pf:()=>ma,o1:()=>sa,z:()=>Ps,li:()=>Zr,nf:()=>Nr,iW:()=>Yr,mI:()=>Hr,et:()=>kr,Vg:()=>$r,ol:()=>Kr,sA:()=>Fo,TG:()=>xo,MG:()=>$o,PL:()=>ao,uK:()=>Mr,CG:()=>ko,p:()=>ba,nI:()=>h,Fs:()=>Vo,AS:()=>aa,r5:()=>js,M$:()=>Ee,uc:()=>De,QB:()=>Oe,uW:()=>ta,Lt:()=>Ar,Jv:()=>Et,TA:()=>St,Jn:()=>At,Ll:()=>tt,vP:()=>ws,EX:()=>va,Ln:()=>ya,wk:()=>Wo,xP:()=>Ls,ko:()=>xa,iF:()=>Ur,bc:()=>Os,B1:()=>bo,RX:()=>fo,lR:()=>Ca,ag:()=>Fs,tp:()=>ca,Tc:()=>Qo,Hf:()=>rr,zc:()=>ht,_A:()=>so,T_:()=>fa,td:()=>ia,g0:()=>Lr,pd:()=>da,th:()=>la,VQ:()=>pa,DD:()=>jr,tr:()=>ua,ul:()=>qr,Ag:()=>cs,Pc:()=>Xt,NU:()=>dn,wB:()=>Ss,id:()=>Js,MC:()=>ks,SZ:()=>Is});class o{get(t){return"todo"}}function s(){return tt.stateConfig.support}function r(t){return Ks(t.context),tt.stateConfig.support=t}const a=function(){};function c(t){}let u=[];const i=[];let l=[],p=[],f=[];const d={locks:0,removeLocks:0};function g(t,e){e.textContent=t}function h(){d.locks>0||(++d.locks,function(){const t=i.length;(function(){for(const t of i)t[0](...t[1])})(),i.splice(0,t);for(const t of l)t[0](...t[1]);for(const t of p)t[0](...t[1]);for(const t of u)t[0](...t[1])}(),--d.locks,function(){u=[],l=[],p=[];const t=f;f=[];for(const e of t)e[0](...e[1])}())}function m(t,e){i.push([b,[t,e]])}function b(t,e){t.parentNode.removeChild(t)}function v(t,e,n){t.parentNode.insertBefore(e,t)}function y(t,e){t.appendChild(e)}const x="object"==typeof document&&document.createElement("div");function w(t){return x.innerHTML=t,document.createTextNode(x.innerHTML)}function C(t,e,n=a,o){const s=w(e);v(t,s),n(s)}function T(t,e,n=a){x.innerHTML=e;const o=document.createTextNode(x.textContent);v(t,o),n(o)}function V(t,e,n){x.innerHTML=e;const o=document.createTextNode(x.textContent);y(t,o),n(o)}const J="";var k,I;!function(t){t.string="string",t.number="number",t.boolean="boolean",t[void 0]="undefined"}(k||(k={})),function(t){t.function="function",t.date="date",t.unknown="unknown",t.object="object"}(I||(I={}));const S={tag:"html",dom:"dom",templater:"templater",tagComponent:"tagComponent",tagArray:"tagArray",host:"host",subscribe:"subscribe",signal:"signal",renderOnce:"renderOnce",stateRender:"stateRender",version:Date.now()};function E(t){switch(t){case k.string:case k.number:case k.boolean:return!0}return!1}function A(t){if(!t)return!1;switch(t.tagJsType){case S.dom:case S.tag:case S.templater:return!0}return!1}function M(t){const e=t?.tagJsType;return e===S.tagComponent||e===S.stateRender}function O(t){return D(t)&&typeof t.subscribe===I.function}function L(t){return t&&P(t.then)}function P(t){return typeof t===I.function}function D(t){return typeof t===I.object&&null!==t}function j(t){return Array.isArray(t)}function H(t){const e=t.state;return e&&e.newest&&e.newest?e.newest:t.parentContext?H(t.parentContext):void 0}function N(t){let e=t;for(;e.ownerSupport&&!M(e.templater);)e=e.ownerSupport;const n=e.context.state;return n&&n.newest||e}function U(...t){return t}function W(t){const e=tt.stateConfig;return e.states[e.statesIndex]=t,++e.statesIndex,t(U)}function $(t){const e=tt.stateConfig,n=e.statesIndex,o=N(e.prevSupport).context.state.older.states[n];let s=[];o((function(...t){return s=t,o.lastValues=s,t}));return e.states[e.statesIndex]=t,++e.statesIndex,t((function(...t){return s}))}function R(t){Ks(t);const e=tt.stateConfig;e.handlers.handler=z,e.handlers.statesHandler=W,e.rearray=[];const n=e.state=[],o=e.states=[];e.statesIndex=0;(t.state=t.state||{}).newer={state:n,states:o}}class B{}function F(t){const e=t.callback;if(!e)return t.defaultValue;const[n]=function(t){const[e]=t(B),[n]=t(e);return[e,n]}(e);return n}function _(){const t=tt.stateConfig,e=t.rearray[t.state.length];return t.state.push(e),e.defaultValue}function z(t){const e=tt.stateConfig,n=Gs();if(!n||!n.state){const t="State requested but TaggedJs is not currently rendering a tag or host";throw console.error(t,{config:e,context:n}),new Error(t)}const o=n.state.newer;e.state=o.state;let s=t;if(typeof t===I.function&&(s=t()),typeof s===I.function){const t=s;s=function(...e){return t(...e)},s.original=t}const r={get:function(){return F(r)},defaultValue:s};return e.state.push(r),s}function G(t){const e=new q;return e.subscribeWith=e=>{const n=[],o=[],s=(s,r)=>{n[r]=!0,o[r]=s;if(n.length===t.length){for(const t of n)if(!t)return;e(o,a)}},r=[...t],a=r.shift().subscribe((t=>s(t,0))),c=r.map(((t,e)=>t.subscribe((t=>s(t,e+1)))));return a.subscriptions=c,a},e}function X(t,e,n){const o=q.globalSubCount$;q.globalSubCount$.next(o.value+1);const s=function(){s.unsubscribe()};return s.callback=e,s.subscriptions=[],s.unsubscribe=function(){return function(t,e,n){!function(t,e){const n=t.findIndex((t=>t.callback===e));-1!==n&&t.splice(n,1)}(e,n);const o=q.globalSubCount$;q.globalSubCount$.next(o.value-1),t.unsubscribe=()=>t;const s=t.subscriptions;for(const t of s)t.unsubscribe();return t}(s,n,e)},s.add=t=>(s.subscriptions.push(t),s),s.next=t=>{e(t,s)},s}function K(t,e,n){const o=[...e],s=o.shift(),r=t=>{if(o.length)return K(t,o,n);n(t)};let a=r;const c=s(t,{setHandler:t=>a=t,next:r});a(c)}class q{onSubscription;methods=[];isSubject=!0;subscribers=[];subscribeWith;value;constructor(t,e){this.onSubscription=e,arguments.length>0&&(this.value=t)}subscribe(t){const e=X(0,t,this.subscribers),n=this.subscribeWith;if(n){if(this.methods.length){const n=t;t=t=>{K(t,this.methods,(t=>n(t,e)))}}return n(t)}return this.subscribers.push(e),this.onSubscription&&this.onSubscription(e),e}next(t){this.value=t,this.emit()}set=this.next.bind(this);emit(){const t=this.value,e=this.subscribers;for(const n of e)n.callback(t,n)}toPromise(){return new Promise((t=>{this.subscribe(((e,n)=>{n.unsubscribe(),t(e)}))}))}toCallback(t){const e=this.subscribe(((n,o)=>{const s=o?.unsubscribe;s?s():setTimeout((()=>e.unsubscribe()),0),t(n)}));return e}pipe(...t){const e=[];"value"in this&&e.push(this.value);const n=new q(...e);return n.setMethods(t),n.subscribeWith=t=>this.subscribe(t),n.next=t=>this.next(t),n}setMethods(t){this.methods=t}static all(t){return G(t.map((t=>{if(O(t))return t;return new q(t,(e=>(e.next(t),e)))})))}static globalSubCount$=new q(0)}class Z extends q{_value;constructor(...t){super(...t),this._value=t[0],Q(this)}next(t){this._value=t,this.emit()}emit(){const t=this._value,e=this.subscribers;for(const n of e)n.callback(t,n)}}function Q(t){Object.defineProperty(t,"value",{set(e){t._value=e,t.emit()},get:()=>t._value})}const Y=new q(void 0,(function(t){s()||t.next()})),tt={stateConfig:{state:[],version:Date.now(),handlers:{handler:z,statesHandler:W}},tagClosed$:Y};function et(t,e,n){if(e.deleted)return;const o=t[e.valueIndex],s=e.tagJsVar;Ks(e),s.processUpdate(o,e,n,t),qs(),e.value=o}function nt(t,e){const n=t.context.contexts;!function(t,e){const n=e.templater,o=e.templater.tag,s=n.values||o.values,r=t.templater.tag;r.values=s}(t,e),++d.locks,function(t,e){const n=t.templater.tag.values;for(const o of e)et(n,o,t)}(t,n),--d.locks,h()}function ot(t,e){return st(t,e)}function st(t,e){if(null===t||typeof t!==I.object)return t;if(e<0)return t;if(t instanceof Date)return new Date(t);if(t instanceof RegExp)return new RegExp(t);const n=j(t)?[]:Object.create(Object.getPrototypeOf(t));if(j(t))for(let o=0;o<t.length;o++)n[o]=st(t[o],e-1);else for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=st(t[o],e-1));return n}function rt(t,e,n){return at(t,e,n)}function at(t,e,n){return!(t!==e&&(o=t,s=e,!P(o)||!P(s)||o.toString()!==s.toString()))||(n<0||typeof t===I.object&&typeof e===I.object&&(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():j(t)&&j(e)?function(t,e,n){if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!at(t[o],e[o],n-1))return!1;return!0}(t,e,n-1):!j(t)&&!j(e)&&function(t,e,n){const o=Object.keys(t),s=Object.keys(e);if(0===o.length&&0===s.length)return!0;if(o.length!==s.length)return!1;for(const r of o){if(!s.includes(r)||!at(t[r],e[r],n-1))return!1}return!0}(t,e,n-1)));var o,s}function ct(t){return t.map(ut)}function ut(t,e){const n=t,o=t?.tagJsType;if(o)switch(o){case S.signal:case S.subscribe:case S.stateRender:return;case S.dom:case S.tag:case S.templater:return ct(n.values)}return j(t)?ct(n):ot(t,e)}function it(t,e){const n=t.length;for(let o=0;o<n;++o){const n=t[o],s=e[o];if(j(n)&&j(s)){if(n===s)continue;return 3}if(typeof n!==I.function||typeof s!==I.function)if(typeof n!==I.object){if(n!==s)return 3.3}else if(typeof e===I.object){const t=Object.entries(n);for(const e of t){if(!lt(e,s))return 3.1}}}return!1}function lt([t,e],n){const o=n[t];return typeof e===I.function&&typeof o===I.function||o===e}function pt(t,e){const n=t.context.providers;if(n)for(const t of n)for(let n=t.children.length-1;n>=0;--n){t.children[n].context.global===e&&t.children.splice(n,1)}t.context.destroy$.next(),t.context.renderCount=0}function ft(t,e){for(const n of t){const t=n.lastArray;if(t){ft(t,e);continue}const o=n.value;if(o?.tagJsType===S.subscribe){o.destroy(n,e),n.deleted=!0;continue}const s=n.global;if(!s)continue;const r=n.state.newest,a=s.subscriptions;a&&a.forEach(gt),M(r.templater)&&pt(r,s);ft(n.contexts,r),s.deleted=!0}}function dt(t,e=[],n=[]){for(const o of t){const t=o.global;if(!t)continue;const s=o.state.newest;if(s){e.push(s);const o=t.subscriptions;o&&n.push(...o)}const r=o.contexts;r&&dt(r,e,n)}return{tags:e,subs:n}}function gt(t){t.unsubscribe()}function ht(t,e,n){const o=e.tagJsVar.tagJsType;return o&&["tag-conversion","element"].includes(o)?(e.tagJsVar.processUpdate(t,e,n,[]),e.value=t,0):t===e.value?0:(++e.updateCount,fs(e,t,n))}function mt(t,e,n,o,s){const r=e.context;r.locked=3,n.element=n.element||o,Ks(n),n.tagJsVar.processInit(t,n,e,s,o),qs(),n.value=t,delete r.locked}function bt(t){switch(t){case void 0:case!1:case null:return J}return t}function vt(t){if(t.startsWith("class."))return"class";const e=function(t){switch(t){case"autoselect":case"autoSelect":return"autoselect";case"autofocus":case"autoFocus":return"autofocus"}return!1}(t);return!1!==e?e:!!t.startsWith("style.")&&"style"}function yt(t,e,n,o){switch(o){case"autofocus":return void f.push([Vt,[n]]);case"autoselect":return void f.push([Tt,[n]]);case"style":{const o=t.split(".");return void l.push([xt,[n,o,e]])}case"class":return void function(t,e,n){const o=t.split(".");if(o.shift(),e){for(const t of o)l.push([wt,[n,t]]);return}for(const t of o)l.push([Ct,[n,t]])}(t,e,n)}throw new Error(`Invalid special attribute of ${o}. ${t}`)}function xt(t,e,n){const o=e[1];t.style[o]=n,t.style.setProperty(o,n)}function wt(t,e){t.classList.add(e)}function Ct(t,e){t.classList.remove(e)}function Tt(t){t.select()}function Vt(t){t.focus()}function Jt(t,e,n){if(D(n))return kt(t,e,n);l.push([St,[t,e,n]])}function kt(t,e,n){"object"!=typeof t[e]&&(t[e]={});for(const o in n){const s=n[o];l.push([Ot,[t,e,o,s]])}if(t[e].setProperty)for(const o in n){const s=n[o];l.push([Mt,[t,e,o,s]])}}function It(t,e,n){t.setAttribute(e,"")}function St(t,e,n){if(D(n))return kt(t,e,n);At(t,e,n)}function Et(t,e,n){t[e]=!!n}function At(t,e,n){t[e]=n,void 0!==n&&!1!==n&&null!==n?t.setAttribute(e,n):t.removeAttribute(e)}function Mt(t,e,n,o){t[e].setProperty(n,o)}function Ot(t,e,n,o){t[e][n]=o}function Lt(t,e,n,o,s,r,a){return n.element=o,n.howToSet=s,n.attrName=t,n.isSpecial=a,e?.tagJsType?function(t,e,n,o,s){e.processInitAttribute(t,e,s,e,n,o,St),n.tagJsVar=e}(t,e,n,r,o):Pt(t,e,o,s,a,n)}function Pt(t,e,n,o,s,r){return"function"==typeof e?function(t,e,n,o,s){const r=t(),c={tagJsType:"dynamic-attr",matchesInjection:t=>{const e=u.tagJsVar;if(e.matchesInjection)return e.matchesInjection(t,u)},hasValueChanged:(e,n,o)=>{const s=t();return u.tagJsVar.hasValueChanged(s,u,o)},processInit:a,processInitAttribute:a,destroy:(t,e)=>{u.tagJsVar.destroy(u,e)},processUpdate:(t,e,n,o)=>{++e.updateCount;const s=t();u.tagJsVar.processUpdate(s,u,n,o),u.value=s}},u={updateCount:0,isAttr:!0,element:o,parentContext:e,value:r,tagJsVar:Xt(r),valueIndex:-1,withinOwnerElement:!0,destroy$:new q,render$:new q},i={updateCount:0,isAttr:!0,contexts:[u],element:o,parentContext:e,value:t,tagJsVar:c,valueIndex:-1,withinOwnerElement:!0,destroy$:new q,render$:new q};return u.tagJsVar.processInitAttribute(n,r,o,u.tagJsVar,u,{},s),i}(e,r,t,n,o):s?yt(t,e,n,s):void o(n,t,e)}function Dt(t,e,n,o,s,r){const a=e.tagJsVar,c=t;if(a.hasValueChanged(c,e,n)>0){a.destroy(e,n),o.removeAttribute(s);const c=Xt(t);return c.isAttr=!0,c.processInitAttribute(s,t,o,c,e,n,r),void(e.tagJsVar=c)}}function jt(t,e,n,o,s,r,a){o.destroy=Ht,o.hasValueChanged=Rt,o.processUpdate=(e,o,s)=>Dt(e,o,s,n,t,a);const c=vt(t);Pt(t,e,n,a,c,s),s.tagJsVar=o}function Ht(t){const e=t.element,n=t.attrName;e.removeAttribute(n)}function Nt(t){return{tagJsType:"simple",value:t,processInitAttribute:jt,processInit:Wt,destroy:$t,hasValueChanged:Bt,processUpdate:Ut}}function Ut(t,e,n){return t===e.value?0:fs(e,t,n)}function Wt(t,e,n,o,s){const r=bt(t);o=e.placeholder;const a=e.paint=[C,[o,r,function(t){e.simpleValueElm=t,delete e.paint},"processSimpleValueInit"]];u.push(a)}function $t(t){if(!t.simpleValueElm&&t.paint)return void(t.paint[0]=a);const e=t.simpleValueElm;delete t.simpleValueElm,m(e,"deleteSimpleValue")}function Rt(t,e){return null==t||t===e.value?0:6}function Bt(t,e){return null!=t&&typeof t===I.object?($t(e),6):(function(t,e){const n=bt(t);if(e.paint)return void(e.paint[1][1]=n);const o=e.simpleValueElm;l.push([g,[n,o]])}(t,e),0)}function Ft(t,e){return j(t)?0:(ne(e),9)}function _t(t){return{tagJsType:"array",value:t,processInitAttribute:a,processInit:Gt,processUpdate:zt,hasValueChanged:Ft,destroy:ne}}function zt(t,e,n){if(++e.updateCount,Array.isArray(t))return void Zt(e,t,n);0===ht(t,e,n)&&Zt(e,t,n)}function Gt(t,e,n,o,s){Zt(e,t,n,s)}function Xt(t){const e=t?.tagJsType;return e?t:function(t){if(j(t))return _t(t);return Nt(t)}(t)}function Kt(t,e,n,o){return{updateCount:0,value:t,destroy$:new q,render$:new q,tagJsVar:Xt(t),withinOwnerElement:n,parentContext:o,valueIndex:o.varCounter}}function qt(t,e,n,o,s){const r=document.createTextNode(J),a=Kt(t,0,!0,e.context);return a.withinOwnerElement=!1,a.placeholder=r,s||(a.placeholder=o),mt(t,e,a,s,o),s&&p.push([y,[s,r]]),a}function Zt(t,e,n,o){const s=void 0===t.lastArray;s&&(t.lastArray=[]);const r=t.lastArray;let a=t.placeholder,c=0;const u=[];if(!s){for(let t=0;t<r.length;++t){const n=r[t],o=te(e,t,r,c);0!==o?2!==o?c+=o:t-=1:u.push(n)}t.lastArray=u}const i=e.length;for(let s=0;s<i;++s){a=Qt(e,s,t.lastArray,n,a,o).placeholder}}function Qt(t,e,n,o,s,r){const a=Yt(t[e]),c=n[e];if(c)return function(t,e,n,o,s,r,a){const c=n.length>s;if(c)return Array.isArray(t)?(e.tagJsVar.processUpdate(t,e,o,[]),e.value=t,e):(ht(t,e,o),e);const u=qt(t,o,0,r,a);return n.push(u),u}(a,c,n,o,e,s,r);const u=qt(a,o,0,s,r);return n.push(u),u}function Yt(t){if("function"==typeof t&&void 0===t.tagJsType){t=t()}return t}function te(t,e,n,o){const s=t.length-1,r=e-o,a=r<0||s<r,c=n[e];if(a)return ee(c),1;const u=function(t,e,n,o,s){const r=e&&t!==e.arrayValue;if(r)return ee(n),o.splice(s,1),2;return 0}(c.value.arrayValue,Yt(t[e]),c,n,e);return u}function ee(t){!function(t,e){if(t&&e.state?.oldest){return void ue(e.state.oldest,t)}e.tagJsVar.destroy(e,{})}(t.global,t)}function ne(t){++t.updateCount;oe(t,t.lastArray)}function oe(t,e){for(let t=0;t<e.length;++t)ee(e[t]);delete t.lastArray}function se(t){for(let e=t.length-1;e>=0;--e){re(t[e]),t.splice(e,1)}}function re(t){const e=t.marker;e&&m(e,"destroyMarker");m(t.domElement,"destroyClone")}function ae(t,e){!function(t,e){for(const n of t){if(n.withinOwnerElement){const t=n.tagJsVar;if(t&&"host"===t.tagJsType){const o=n.supportOwner,s=t.destroy(n,o);L(s)&&e.push(s)}continue}const t=n.lastArray;if(t){oe(n,t);continue}const o=n.simpleValueElm;if(o){delete n.simpleValueElm,m(o,"smartRemoveByContext");continue}const s=n.global;if(void 0===s)continue;s.deleted=!0;const r=n.state?.oldest;r&&ae(n,e)}}(t.contexts,e),ce(t)}function ce(t){se(t.htmlDomMeta)}function ue(t,e){const n=t.context;e.deleted=!0,n.renderCount=0;const o=[];return ft(n.contexts,t),t.templater.wrapper&&pt(t,e),ae(n,o),delete n.state,delete n.contexts,delete n.returnValue,delete n.providers,o}function ie(t,e){const n=le(t,e);return!(n||!e.templater.tag?._innerHTML||!le(t.outerHTML,e))||n}function le(t,e){const n=t.templater,o=e.templater,s=n?.tag||t,r=o.tag;if(n?.tagJsType===S.stateRender)return n.dom===o.dom;switch(s.tagJsType){case S.dom:return r?.tagJsType===S.dom&&function(t,e){const n=t.dom,o=e.dom;return n===o}(s,r);case S.tag:{const n=function(t,e,n,o){const s=t.strings,r=e.strings;if(s.length!==r.length)return!1;if(!s.every(((t,e)=>r[e].length===t.length)))return!1;const a=n.templater.values||t.values,c=o.templater.values||e.values;return function(t,e){const n=t.length===e.length;if(!n)return!1;const o=e.every((function(e,n){const o=t[n];if(typeof e===I.function&&typeof o===I.function){return!!(e.toString()===o.toString())}return!0}));if(o)return!0;return!1}(a,c)}(s,r,t,e);return n}}throw new Error(`unknown tagJsType of ${s.tagJsType}`)}function pe(t){++t.updateCount;const e=t.global;ue(t.state.newest,e),function(t){t.htmlDomMeta=[],delete t.contexts,delete t.state,delete t.global,t.renderCount=0}(t)}function fe(t,e){const n=e.state?.newest;if(A(t)){return ie(t,n)?0:7}const o=t?.tagJsType;return o?t.wrapper?.original===e.value.wrapper?.original?0:88:8}function de(t,e){const o=e.global,s=e.state?.newest;if(A(t)){return ie(t,s)?(ls(e,t,s),0):(ue(s,o),n(e),7)}const r=t?.tagJsType;if(r){return!0===ls(e,t,e.state.newest.ownerSupport)?0:88}return pe(e),8}function ge(t,e,n,o,s,r,a){const c=document.createTextNode(J),i=function(t,e,n,o){const s=Kt(t,0,n,o);return e.push(s),++o.varCounter,s}(t,e,s>0,o);return i.placeholder=c,i.element=r,r?p.push([y,[r,c]]):u.push([v,[a,c,"attachDynamicDom.attachDynamicDom"]]),mt(t,n,i,r,a),i}function he(t,e){const n=function(t,e,n=[]){const o=t.context;n.push({support:t,renderCount:o.renderCount,provider:e});const s=e.children;for(let t=s.length-1;t>=0;--t){const o=s[t],r=o.context;n.push({support:o,renderCount:r.renderCount,provider:e})}return n}(t,e);return n}function me(t){return t.support}function be(t){const e=t.context;return Pe(t.templater)?je(t):Le(t,t,e)}function ve(t,e,n){return t}function ye(t){return typeof t!==I.object||!t||t.tagJsType}function xe(t,e,n,o,s,r){return null==t||r>s?e:typeof t===I.function?e.mem?(t.mem=e.mem,e):(t.mem=e,t):ye(e)?e:j(e)?function(t,e,n,o,s,r){for(let a=t.length-1;a>=0;--a){const c=t[a],u=e[a];t[a]=xe(u,c,n,o,r,s+1)}return t}(e,t,n,o,r,s):function(t,e,n,o,s,r){const a=Object.keys(t);for(const c of a){const a=t[c],u=xe(e[c],a,n,o,r,s+1);if(a===u)continue;const i=Object.getOwnPropertyDescriptor(t,c)?.set;i||(t[c]=u)}return t}(e,t,n,o,r,s)}function we(t,e,o){const s=o.global,r=o.state.newest,a=r.templater.wrapper;let c=e.templater.wrapper,u=!1;const i=e.templater.tagJsType,l=S.stateRender===i||S.renderOnce===i;if(l)u=e.templater.tagJsType===S.renderOnce||ie(r,e);else if(a&&c){const t=r.templater.tag?._innerHTML;t&&(c=e.outerHTML);u=a.original===c.original}const p=e.templater;if(!u)return void function(t,e,o){const s=t.global;ue(t.state.oldest,s),n(t),e.processInit(e,t,o,t.placeholder)}(o,p,t);const f=l||function(t,e){const n=e.props,o=t.propsConfig,s=o.latest,r=Yo(n,s,t.templater.propWatch);return r}(r,p);if(f)o.locked?s.blocked.push(e):(De(e),++o.renderCount);else{!function(t,e,n,o,s){const r=t.props,a=Ce(e,n,o,r,s),c=e.propsConfig;c.castProps=a;const u=n.propsConfig;u.latest=c.latest}(p,e,r,t,p.propWatch===Zo.DEEP?os:ns)}}function Ce(t,e,n,o,s,r=-1){const a=e.context;if(!a.global||!a.state.newest){const e=ve(o);o.push(...e);return t.propsConfig.castProps=e,o}const c=(e=a.state.newest||e).propsConfig.castProps,u=[];for(let e=0;e<o.length;++e){const a=o[e],i=xe(c[e],a,t,n,s,r+1);u.push(i)}return t.propsConfig.castProps=u,u}function Te(t){const e=t.context,o=e.global,{subs:s,tags:r}=dt(e.contexts);Ve(e);for(const t of r){if(!0===t.context.global.deleted)return;Ve(t.context)}o.subscriptions&&s.forEach(gt),n(e)}function Ve(t){t.global.deleted=!0,ae(t,[]),delete t.contexts}function Je(t,e,n,o){const s=e.original,a=t.tagJsType===S.stateRender,c=tt.stateConfig;let u;return r(n),a?u=t():(u=s(...o),typeof u===I.function&&void 0===u.tagJsType&&(u=u())),n.context.returnValue=u,n.returnValue=u,u.templater=t,t.tag=u,n.context.state.newer={...c},qs(),n}function ke(t){!function(t){const e=tt.stateConfig,n=t||e.context;n.state=n.state||{},n.state.newer={...e};const o=e.support;n.state.newest=o}(t),function(){const t=tt.stateConfig;delete t.prevSupport,delete t.support,delete t.state,delete t.states,qs()}()}function Ie(t,e,n,o){let s;const r=t.templater;if(r.tagJsType===S.stateRender){const e=r;s=is(r,n,o,t.appSupport),Je(r,e,s)}else{s=(0,r.wrapper)(t,n,e)}return function(t,e){++t.context.renderCount,ke(t.context),tt.tagClosed$.next(e)}(s,o),s.ownerSupport=t.ownerSupport,s}function Se(t){const e=tt.stateConfig;return e.rearray=t,e.state=[],e.states=[],e.statesIndex=0,e.handlers.handler=_,e.handlers.statesHandler=$,e}function Ee(t,e,n,o){return function(t,e,n){Se(n),tt.stateConfig.prevSupport=e,r(t)}(t,e,n.state.older.state),Ie(t,e,n,o)}function Ae(t,e,n,o){R(t.context),r(t);const s=Ie(t,e,n,o);return qs(),s}function Me(t){const e=t?.context,n=e?.state;return n?.older?.state}function Oe(t,e,n){let o;o=Me(e)?Ee(t,e,n):Ae(t,e,n);const s=!e||ie(e,o);if(s){if(e){const t=e.templater.tag;if(t&&n.renderCount>0){const n=e?.templater,o=n?.tag;!function(t,e,n){if(t.tagJsType===S.dom){const o=n?.dom;return void(o!==t.dom&&Te(e))}if(n){const o=n.strings;if(o){const n=o?.length;n!==t.strings.length&&Te(e)}}}(t,e,o)}}}else{!function(t,e){const n=t.context,o=n.global;let s=-1;const r=n.providers=n.providers||[],a=r.length-1;for(;s++<a;){const t=r[s];let n=-1;const a=t.children.length-1;for(;n++<a;)if(o===t.children[n].context.global)return t.children.splice(n,1),void t.children.push(e)}}(e,o),Te(e);const t=o.context;t.state.oldest=o,t.state.newest=o}return o.ownerSupport=t.ownerSupport,{support:o,wasLikeTags:s}}function Le(t,e,n){const o=Oe(e,t,n);if(o.wasLikeTags){return nt(n.state.oldest,o.support),o.support}return Qn(e,n)}function Pe(t){return S.templater===t.tagJsType}function De(t){const e=t.context,n=e.global,o=Pe(t.templater);if(e.locked)return n.blocked.push(t),t;if(o){return je(t)}e.locked=4,n.blocked.length&&(t=n.blocked.pop(),n.blocked=[]);const s=Le(e.state.newest,t,e);return delete e.locked,s}function je(t){return De(N(t).context.state.newest)}function He(t,e){const n=e.context.global;if(n&&n.deleted)return!1;const o=function(t,e){const n=t.props,o=e.propsConfig,s=o.latest;if(Ne(n,s))return!0;switch(t.propWatch){case Zo.IMMUTABLE:return es(n,s);case Zo.SHALLOW:return it(n,s)}return!rt(n,s,os)}(t,e);return!!o}function Ne(t,e){return t.length!==e.length}function Ue(t,e=[]){const n=t.context,o=Pe(t.templater),s=t.ownerSupport;if(n.locked)return e.push(t),e;if(o)return Ue(s,e);const r=t.context.global;if(r&&!0===r.deleted)return e;const a=t,c=M(a.templater),u=t.templater.tagJsType,i=s&&u!==S.stateRender&&(!c||He(a.templater,a));if(a.context.providers){const t=function(t){const e=t.context.providers;if(!e)return[];const n=[];for(const t of e){const e=he(t.owner,t);n.push(...e.map(me))}return n}(a);e.push(...t)}return i?(Ue(s,e),c&&e.push(a),e):(e.push(a),e)}function We(t){++d.locks,t.forEach($e),--d.locks,h()}function $e(t){const e=t.context;if(!e.global)return void e.tagJsVar.processUpdate(e.value,e,t.ownerSupport,[]);De(e.state.newest)}function Re(t,e){for(let n=0;n<t.length;++n){ze(t[n],e[n])}}let Be;function Fe(...t){return Be=t,t}function _e(){return Be}function ze(t,e){t(Fe,1),e(_e,2)}function Ge(t,e,n,o){for(let n=t.length-1;n>=0;--n){const o=t[n].get(),s=e[n].callback;s&&s(o)}for(let t=o.length-1;t>=0;--t){Ke.length=0,Xe=0;(0,o[t])(qe),n[t](Ze)}}let Xe=0;const Ke=[];function qe(...t){return Ke.push(t),t}function Ze(...t){return Ke[Xe++]}function Qe(t,e,{resolvePromise:n,resolveValue:o}){if(L(t)){return e.context.locked=2,t.then(function(t,e){return n=>{const o=t.context,s=o.global;if(delete o.locked,!0===o.deleted||!0===s?.deleted)return e(n);!function(t,e){const n=t.context.state,o=e.context.state;Re(n.newer.states,o.newer.states)}(t,o.state.newest);return We(Ue(t)),e(n)}}(e,n))}return o(t)}function Ye(t,e){const n=e.context.global,o=function(t,e){if(!0!==n.deleted)return function(t,e,n,o){const s=N(e),r=s.context;r.locked=1;const a=t.apply(n,o);delete r.locked;return tn(a,s)}(o.tagFunction,o.support,t,e)};return o.tagFunction=t,o.support=e,o}function tn(t,e){const n=e.context.global;if(n?.deleted)return;return We(Ue(e)),Qe(t,e,{resolvePromise:on,resolveValue:sn})}const en="no-data-ever",nn="promise-no-data-ever";function on(){return nn}function sn(){return en}function rn(t,e,n){const o=n[e];if(o){let e=!1;if(t.originalStopPropagation=t.stopPropagation,t.stopPropagation=function(){e=!0,t.originalStopPropagation.call(t),t.stopPropagation=t.originalStopPropagation,delete t.originalStopPropagation},o(t),t.defaultPrevented||e)return}const s=n.parentNode;s&&rn(t,e,s)}function an(t,e,n,o){const s=t.appElement,r=function(t){"blur"===t&&(t="focusout");return"_"+t}(e);"blur"===e&&(e="focusout");const a=t.context.events;if(!a[e]){const t=function(t){rn(t,r,t.target)};a[e]=t,s.addEventListener(e,t)}n[r]=o,n[e]=o}function cn(t,e,n,o){const s=function(...e){return s.tagFunction(t,e)};s.tagFunction=e,s.support=n,an(n.appSupport,o,t,s)}function un(t){return null==t||!1===t}function ln(t,e,n,o,s,r,a){if(un(e))return;const c=[];if(typeof e===I.object){for(const s in e){const u=vt(s),i=yn(s,e[s],t,n,o,St,r,a,u);void 0!==i&&(Array.isArray(i)?c.push(...i):c.push(i))}return c}0!==e.length&&s(n,e,J)}function pn(t,e){t.removeAttribute(e)}function fn(t,e,n,o){const s=e,r=t;if(r?.tagJsType){const o=e.value;return o?.tagJsType?void o.hasValueChanged(r,e,n):(r.isAttr=!0,Ks(e),r.processInitAttribute(s.attrName,t,s.element,r,s,n,St),qs(),void(s.tagJsVar=r))}if(s.isNameOnly)return function(t,e,n,o,s,r,a,c){if(n){if(un(e)||""===e)return void o.removeAttribute(n);if(typeof n===I.object)if(typeof e===I.object)for(const t in n)t in e||l.push([pn,[o,t]]);else for(const t in n)l.push([pn,[o,t]])}const u=ln(t,e,o,s,r,a,c);u&&a.push(...u)}(o,t,s.value,s.element,n,s.howToSet,[],s.parentContext),void(s.value=t);const a=s.element;!function(t,e,n,o,s,r,a){if(P(t))return function(t,e,n,o,s,r,a){const c=t.templater.wrapper;if((c?.tagJsType||c?.original?.tagJsType)!==S.renderOnce)return wn(e,t,o,n);return xn(e,n,o,s,r,t)}(s,t,o,e,a,r);xn(t,o,e,a,r,s)}(t,s.attrName,0,a,n,s.howToSet,s.isSpecial),e.value=t}const dn=":tagvar",gn=":",hn=new RegExp(dn+"(\\d+)"+gn,"g");function mn(t){return t.search&&t.startsWith(dn)?t.search(hn):-1}function bn(t,e,n,o,s,r,a){const c=o.length,u=[];function i(o){const r=function(t,e,n){return t.reduce(((t,o)=>{if(mn(o)>=0){const o=n++,s=e[o];return t.push(s),t}return t.push(o),t}),[])}(e,o,c).join("");s(n,t,r)}return e.forEach((e=>{if(mn(e)>=0){const s=o.length,c=Xt(e),l={updateCount:0,isAttr:!0,element:n,attrName:t,withinOwnerElement:!0,tagJsVar:c,valueIndex:a.varCounter,parentContext:a,destroy$:new q,render$:new q};c.processUpdate=function(t,e,n,o){++e.updateCount,i(o)};const p=r[s];l.value=p,u.push(l),++a.varCounter}})),i(r),u}function vn(t){return D(t)&&"tagJsVar"in t?t.tagJsVar:-1}function yn(t,e,n,o,s,r,a,c,u){const i=vn(t);let l=i>=0||void 0===e&&"string"!=typeof t,p=n[i];e?.tagJsType?p=e:t?.tagJsType&&(l=!0,p=t,e=t);const f=p;if(f?.tagJsType)return function(t,e,n,o,s,r,a,c,u){const i=Kt(t,0,!0,n);return i.element=c,i.valueIndex=s,i.isAttr=!0,i.isNameOnly=u,i.stateOwner=N(r),i.supportOwner=r,Ks(i),o.processInitAttribute(a,t,c,o,i,r,St),qs(),i.oldTagJsVar=i.tagJsVar,i.tagJsVar=o,i}(e,0,c,f,i,s,t,o,l);if(l){-1===i&&l&&(p=t);const e=Kt(p,0,!0,c);e.valueIndex=i,e.isAttr=!0,e.element=o,e.isNameOnly=!0,e.howToSet=r;e.tagJsVar.processUpdate=fn;const u=ln(n,p,o,s,r,a,c);return u&&a.push(...u),e}if(Array.isArray(e))return bn(t,e,o,[],r,n,s.context);const d=vn(e);if(d>=0){return function(t,e,n,o,s,r,a,c,u){if(typeof e===I.function)return++s.varCounter,wn(e,a,t,n);const i=Xt(e),l={updateCount:0,isAttr:!0,element:n,attrName:t,howToSet:r,value:e,withinOwnerElement:!0,tagJsVar:i,destroy$:new q,render$:new q,valueIndex:u,parentContext:s};return o.push(l),i.processUpdate=fn,Lt(t,e,l,n,r,a,c),l.value=e,l}(t,n[d],o,[],c,r,s,u,d)}return Pt(t,e,o,r,u,c)}function xn(t,e,n,o,s,r){if(!1===o){switch(t){case void 0:case!1:case null:return void l.push([Cn,[e,n]])}if(P(t))return cn(e,t,r,n);s(e,n,t)}else yt(n,t,e,o)}function wn(t,e,n,o){return cn(o,t=Ye(t,e),e,n)}function Cn(t,e){t.removeAttribute(e)}function Tn(t,e,n,o,s){for(const r of t){const t=r[0],a=r[1],c=r[2]||!1;let u=r.length>1?St:It;r[3]&&(u=r[3]);const i=s.contexts,l=yn(t,a,e,n,o,u,i,s,c)||void 0;"object"==typeof l&&(i.push(l),++s.varCounter)}}function Vn(t,e,n,o,s,r,a){e.at&&Tn(e.at,n,t,o,s),r?p.push([y,[r,t,"appendToAttachDomElement"]]):u.push([v,[a,t,"insertBeforeAttachDomElement"]])}function Jn(t,e,n,o,s,r,a){const c=n.context,u=c.contexts;o=c;const i=[];r&&void 0===a&&(a=document.createTextNode(J),p.push([y,[r,a]]),r=void 0);for(let c=0;c<t.length;++c){const l=t[c],p=l.v;if(!isNaN(p)){const t=Number(p),c=e[t];if(P(c)&&void 0===c.tagJsType){++o.varCounter;continue}ge(c,u,n,o,s,r,a).valueIndex=t;continue}const f={};if(i.push(f),"text"===l.nn){kn(f,l,r,a);continue}const d=f.domElement=document.createElement(l.nn),g={updateCount:0,isAttrs:!0,element:d,parentContext:o,contexts:[],destroy$:new q,render$:new q,tagJsVar:{tagJsType:"new-parent-context"},valueIndex:-1,withinOwnerElement:!0,varCounter:0};Vn(d,l,e,n,g,r,a),g.element=d,l.ch&&(f.ch=Jn(l.ch,e,n,g,s+1,d,a).dom)}return{dom:i,contexts:u}}function kn(t,e,n,o){const s=t,r=s.tc=e.tc;n?p.push([V,[n,r,function(t){s.domElement=t}]]):u.push([T,[o,r,function(t){s.domElement=t}]])}const In=/(:tagvar\d+:)/,Sn="ondoubleclick",En=/([:_a-zA-Z0-9\-.]+)\s*(?:=\s*"([^"]*)"|=\s*(\S+))?/g,An=/<\/?([a-zA-Z0-9-]+)((?:\s+[a-zA-Z_:*][\w:.-]*(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)+\s*|\s*)\/?>/g;function Mn(t){const e=[],n=[],o=[];let s=null,r=-1,a=0;const c=new RegExp(An,"g");for(t=function(t){return t.replace(On,(function(t){return t.replace(/\[l t\]/g,"[l t]").replace(/\[g t\]/g,"[g t]").replace(/</g,"[l t]").replace(/>/g,"[g t]")}))}(t);a<t.length;){const u=c.exec(t);if(!u)break;const[i,l,p]=u,f=i.startsWith("</"),d=i.endsWith("/>");if(a<u.index){const e=t.slice(a,u.index);if(e.trim()){const t=Dn(e);for(let e of t)e.startsWith(dn)&&e.search(In)>=0&&-1===e.search($n)&&(e=dn+ ++r+gn),Ln(s,n,e)}}if(a=u.index+i.length,f){s=o.pop()||null;continue}const g=[];let h;for(;null!==(h=En.exec(p));)r=Hn(h,r,e,g);const m={nn:l};g.length&&(m.at=g),s?(s.ch||(s.ch=[]),s.ch.push(m)):n.push(m),d||(o.push(s),s=m)}if(a<t.length){const e=t.slice(a);if(e.trim()){const t=Dn(e);for(const e of t)e.startsWith(dn)&&++r,Ln(s,n,e)}}return n}const On=new RegExp("(\x3c!--[\\s\\S]*?--\x3e)","g");function Ln(t,e,n){!function(t,e,n){t?(t.ch||(t.ch=[]),t.ch.push(n)):e.push(n)}(t,e,{nn:"text",tc:Pn(n)})}function Pn(t){return t.replace(/(\[l t\]!--[\s\S]*?--\[g t\])/g,(function(t){return t.replace(/\[l t\]/g,"<").replace(/\[g t\]/g,">").replace(/\[l t\]/g,"[l t]").replace(/\[g t\]/g,"[g t]")}))}function Dn(t){return t.split(In).filter(jn)}function jn(t){return""!==t}function Hn(t,e,n,o){const s=t[1]||t[3]||t[5];let r=t[2]||t[4]||t[6];if(void 0===s)return e;const a=""!==t[2],c=void 0===r&&a,u=s.toLowerCase(),i=u.startsWith("on")?function(t){if(t.startsWith("on"))return t.length===Sn.length&&t===Sn?"dblclick":t.slice(2,t.length);return t}(u):u;if(c){if(s.slice(0,dn.length)===dn){const t=dn+ ++e+gn;return n.push(["at",t]),o.push([t]),e}if(t[0].startsWith(s)&&t[0].slice(s.length,t[0].length).search(/\s+$/)>=0)return o.push([i]),e;const a=t[3];if(a.search($n)>=0){r=a;const t=[i,r];return o.push(t),e}r=dn+ ++e+gn}a||(r=t[2]);const l=r.split(Un).filter((t=>t.length>0));l.length>1&&(r=l,l.forEach((t=>{t.search(hn)>=0&&++e})));const p=[i,r],f=vt(u);return f&&p.push(f),"style"===i?(o.unshift(p),e):(o.push(p),e)}const Nn=new RegExp(dn+"(\\d+)"+gn,"gi"),Un=new RegExp("("+dn+"\\d+"+gn+")","gi"),Wn=dn.slice(0,dn.length-1),$n=new RegExp(Wn+"r(\\d+)"+gn,"gi"),Rn=Wn+"r$1"+gn;function Bn(t,e){const n=function(t,e){const n=t;return function(t,e){const n=[];for(let o=0;o<t.length;++o){const s=t[o].replace(Nn,Rn);o<e.length?n.push(s+dn+o+gn):n.push(s)}return function(t,e,n){const o=n.length-e.length;if(o>0)for(let n=o;n>0;--n)t.push(dn+(e.length+n-1)+gn)}(n,t,e),n}(n,e)}(t,e).join("");return Mn(n)}const Fn="ch";function _n(t,e,n=[],o=[]){const s=t;for(let t=0;t<s.length;t++){const r=[...o,t],a=s[t];if(a.at){const t=a.at;a.at=Gn(t,e)}if(a.ch){const t=a.ch,o=[...r,Fn];a.ch=_n(t,e,n,o)}t=zn(a,e,s,t)}return s}function zn(t,e,n,o){if("text"!==t.nn)return o;const s=t;let r,a=s.tc;if(typeof a!==k.string)return o;for(;null!==(r=hn.exec(a));){const t=r[1],s=parseInt(t,10);if(!isNaN(s)&&s<e){const t=dn+s+gn,e=a.slice(r.index+t.length);n.splice(o,1,{nn:"text",v:s}),a=e,hn.lastIndex=0}}return s.tc=a,o}function Gn(t,e){const n=[];for(const o of t){const[t,s,r]=o;if(t.startsWith(dn)){const o=parseInt(t.replace(dn,""),10);if(!isNaN(o)&&o<e){n.push([{tagJsVar:o}]);continue}}if(typeof s===k.string&&s.startsWith(dn)){const o=parseInt(s.replace(dn,""),10);if(!isNaN(o)&&o<e){n.push([t,{tagJsVar:o},r]);continue}}n.push(o)}return n}function Xn(t){return t.length}const Kn={};function qn(t,e){const n=function(t){const e=t.map(Xn);return e.push(t.length),Number(e.join(""))}(t),o=Kn[n],s=o&&function(t,e,n){if(n&&n.strings.length===t.length&&n.strings.every(((e,n)=>e===t[n]))&&n.values.length===e.length)return!0;return!1}(t,e,o);if(s)return o.domMetaMap;const r=_n(Bn(t,e),e.length),a={interpolation:void 0,string:void 0,strings:t,values:e,domMetaMap:r};return Kn[n]=a,r}function Zn(t,e,n){const o=t.context;o.state=o.state||{};const s=o.state;s.oldest=t,s.newest=t,o.state.older=o.state.newer,++d.locks;const r=function(t,e,n,o){const s=function(t){const e=t.templater,n=e.tag;if(n.tagJsType===S.dom)return n.dom;const o=n.strings;return qn(o,n.values)}(t),r=t.templater.tag,a=r.values,c=[],u=t.context;e=u,u.contexts=c;const i=Jn(s,a,t,e,0,n,o);return i}(t,t.context,e,n);return o.htmlDomMeta=r.dom,--d.locks,r}function Qn(t,e){const n=e.state.newest,o=e.placeholder;return n.ownerSupport=t,Zn(n,void 0,o),n}function Yn(t){const e={tagJsType:S.templater,processInitAttribute:a,processInit:no,processUpdate:a,hasValueChanged:de,destroy:a,propWatch:"shallow",key:a};return e.tag=t,t.templater=e,e}function to(t,e,n){const o=us(t,e,e.appSupport,n);return n.contexts=n.contexts||[],o}function eo(t,e,n,o,s){const r=to(t,n,e);r.ownerSupport=n;const a=Zn(r,o,o?void 0:s);for(const t of a.dom)t.marker&&(o?p.push([y,[o,t.marker]]):u.push([v,[s,t.marker,"subMarker"]])),t.domElement&&(o?p.push([y,[o,t.domElement,"subAppendTo"]]):u.push([v,[s,t.domElement,"subInsertBefore"]]));return r}function no(t,e,n,o,s){return e.state={},s?eo(t,e,n,s,o):Qn(n,e)}function oo(t,e){const n={tagJsType:S.templater,processInit:no,processInitAttribute:a,processUpdate:ht,hasValueChanged:de,destroy:pe,propWatch:t,props:e,key:function(t){return n.arrayValue=t,n},matchesInjection:(t,e)=>n.wrapper===t||n.wrapper?.original===t?.original?e:void 0};return n}const so=[];function ro(t,e,n){const o=t.propWatch===Zo.DEEP?os:ns,s=t.props,r=e.propsConfig;let a=r.castProps;const c=n?.propsConfig,u=c?.castProps;u&&(r.castProps=u,a=Ce(e,n,n.ownerSupport,s,o));return a||ve(s)}function ao(t,e,n){const o=oo(Zo.DEEP);o.tagJsType=t.tagJsType;const s=to(o,n,e);function r(){return o.tag=t(),s}return o.wrapper=r,r.tagJsType=t.tagJsType,r.original=t.original||t,s}function co(t,e,o,s,r){n(e);const a=ao(t,e,o);return Ae(a,void 0,e),eo(a.templater,e,o,r,s)}function uo(t,e,n,o,s){const r=hs(t,e,n,o,s);return r.hasEmitted||io(t,r),r}function io(t,e){const n=t.Observables[0];if(!e.hasEmitted)return"withDefault"in t?void e.subValueHandler(t.withDefault,0):"value"in n?void e.subValueHandler(n.value,0):void 0;const o=e.lastValues[0].value;e.subValueHandler(o,0)}function lo(t,e,n,o,s,r){e.destroy=bs;const a=vt(t),c=function(e,o){Pt(t,e,n,St,a,s),ys(o)},u=ms(e.Observables,r,c,e,s);return s.subContext=u,s.value=e,s.tagJsVar=e,e.processUpdate=function(e,o,r){return Dt(e,s,r,n,t,St)},{subContext:u,onOutput:c}}function po(t,e,n,o,s,r){const{subContext:a}=lo(t,e,n,0,s,r);a.hasEmitted||function(t,e){const n=e.tagJsVar,o=n.onOutput,s=t.Observables;let r=s[0]?.value||t.withDefault;t.callback&&(r=t.callback(r));o(r,!0,e)}(e,a)}function fo(t,e,n){return{onOutput:a,tagJsType:S.subscribe,processInitAttribute:po,processInit:uo,hasValueChanged:go,processUpdate:a,destroy:vs,callback:n,withDefault:e,Observables:[t]}}function go(t,e){if(!t?.tagJsType)return 1;const n=t.Observables;if(!n)return 2;const o=e.value.Observables;if(!o||o.length!==n.length)return 3;return n.every(((t,e)=>t===o[e]))?0:4}function ho(t,e,n,o){if(!e||!e.tagJsType||e.tagJsType!==t){return o.tagJsVar.destroy(o,n),ps(e,o,n,99),99}}function mo(t,e,n){const o=e.subContext,s=ho(S.subscribe,t,n,e);return s||(o&&o.hasEmitted?(o.tagJsVar=t,o.valuesHandler(o.lastValues,0),0):0)}function bo(t,e){return{onOutput:a,tagJsType:S.subscribe,processInitAttribute:lo,processInit:hs,hasValueChanged:go,processUpdate:mo,destroy:vs,callback:e,Observables:[t]}}function vo(t,e){++t.updateCount;const n=yo(t.subContext,e);return delete t.subContext,n}function yo(t,e){t.deleted=!0;const n=t.appendMarker;if(n&&(m(n,"deleteSubContext"),delete t.appendMarker),!t.hasEmitted)return;const o=t.contextItem;return o.tagJsVar.destroy(o,e),76}function xo(t,e,n,o){return e.hasEmitted=!0,e.contextItem=qt(t,n,0,o)}function wo(t,e,n){++e.updateCount;const o=t.owner._innerHTML;o.processInit=o.oldProcessInit;const s=e.subContext?.contextItem;fs(s,o,n)}function Co(t,e,n,o,s){e.subContext={},t.processUpdate=wo,function(t,e,n,o,s){const{appendMarker:r,insertBefore:a}=ds(s,o),c=n.subContext;c.appendMarker=r;const u=t.owner,i=u._innerHTML;i.processInit=i.oldProcessInit,xo(i,c,e,a)}(t,n,e,o,s)}function To(){return{tagJsType:"innerHTML",hasValueChanged:()=>0,processInitAttribute:a,processInit:Co,processUpdate:wo,destroy:vo}}function Vo(t,e){return{onOutput:a,tagJsType:S.subscribe,processInitAttribute:a,hasValueChanged:go,processInit:Jo,processUpdate:a,destroy:vs,callback:e,Observables:t}}function Jo(t,e,n,o,s){return hs({tagJsType:S.subscribe,states:[],Observables:t},e,n,void 0,s)}function ko(t){if(!t)return a;const e=Gs();if(!e)throw new Error("output must be used in render sync with a parent context");const n=H(e);if(!n)throw new Error("output must be used in render sync fashion");if(!0===t.wrapped)return t;const o=(...e)=>{const o=n.ownerSupport;return Io(e,t,o.context)};return o.wrapped=!0,o}function Io(t,e,n){const o=n.state,s=o.newer.states,r=o.older?o.older.states:s,a=o.newest;Re(s,r);const c=e(...t);return Re(r,s),f.push([()=>{const t=a.context.global;if(void 0===t||!0===t.deleted)return++d.locks,a.context.tagJsVar.processUpdate(a.context.value,a.context,a,[]),--d.locks,void h();++d.locks,be(a),--d.locks,h()},[]]),c}function So(t,e={}){const n={tagJsType:S.host,processInitAttribute:Ao,hasValueChanged:()=>0,processInit:Mo,processUpdate:Eo,destroy:Oo,options:{callback:t,...e},matchesInjection(e,n){const o=e?.options;if(!o)return!1;const s=o?.callback;return s===t&&n}},o=(...n)=>({...o,options:{arguments:n,...e,callback:t}});return Object.assign(o,n),o}function Eo(t,e,n){if(P(t)&&!t?.tagJsType)throw new Error("issue on its way");const o=ho(S.host,t,n,e);if(o)return o;const s=e.tagJsVar.options,r=t;var a;Ks(a=e),Se(a.state.newer.state);const c=r.options.arguments||s.arguments||[];e.returnValue=r.options.callback(...c),ke(e)}function Ao(t,e,n,o,s){return Mo(o,s)}function Mo(t,e){const n=e.element,o=e.state={};R(e),function(t,e,n,o){const s=e.options.arguments||[],r=e.options.callback(...s);n.returnValue=r;const a=e.options;a.onInit&&a.onInit(t,e,n,o)}(n,t,e,o),ke(e)}function Oo(t){++t.updateCount;const e=t,n=e.tagJsVar,o=n.options;if(e.destroy$.subscribers.length&&(Ks(t),Io([],e.destroy$.next.bind(e.destroy$),t),qs()),o.onDestroy){const s=e.element;return Io([],(function(){Ks(t);const r=o.onDestroy(s,n,e,e.state);return qs(),r}),t.stateOwner.context)}}function Lo(t,e,n,o){const s={tagJsType:"tag-conversion",processInitAttribute:a,processInit:(s,r,a)=>{const c=t.returnValue;return e.tagJsVar.processInit(c,e,n,o.placeholder)},processUpdate:(t,o,r)=>{if(o.locked||o.deleted)return;++o.updateCount;const a=o.value.tagJsType,c=t?.tagJsType,u=c!==a;if(fe(t,o)||u||s.hasValueChanged(t,o,n))return s.destroy(o,n),void ps(t,o,r,789);o.locked=467,o.render$.next();const i=o.returnValue;!function(t,e,n,o,s){const r=ve(e.props);t.value.props=r;const a=s.propsConfig;a&&(a.castProps=r);if(t.updatesHandler=n.updatesHandler,n.updatesHandler){Ks(n);(0,n.updatesHandler)(r),qs()}t.tagJsVar.processUpdate(o,t,s,[]),t.value=o}(e,t,o,i,n),delete o.locked},hasValueChanged:(n,o,s)=>{const r=t.returnValue;return e.tagJsVar.hasValueChanged(r,e,s)},destroy:(o,s)=>{++t.updateCount,t.deleted=!0,delete t.returnValue;const r=e.tagJsVar.destroy(e,n);return L(r)?r.then((()=>{const e=Ho(t,s);return h(),e})):Ho(t,s)}};return s}function Po(t,e,n){const o=t.context,s=t.returnValue,r=Xt(s);delete o.global,o.contexts=[];const a={updateCount:0,value:s,tagJsVar:r,destroy$:new q,render$:new q,placeholder:o.placeholder,valueIndex:-1,withinOwnerElement:!0,parentContext:o,contexts:o.contexts},c=Lo(o,a,t,n);return o.tagJsVar=c,r.processInit(s,a,t,n.placeholder),t}function Do(t,e,n){const o=is(t,e,n,n?.appSupport),s=o.propsConfig;if(s){const e=t.tagJsType!==S.tagComponent?[]:ro(t,o);s.castProps=e}return Ae(o,e.state.newest,e)}function jo(t,e,n){const o=Do(t,e,n),s=o.templater.tag;return["dom","html"].includes(s.tagJsType)?(Zn(o,void 0,e.placeholder),o):Po(o,o.ownerSupport,e)}function Ho(t,e){delete t.returnValue,delete t.global,t.contexts=[],t.htmlDomMeta=[],delete t.updatesHandler}function No(t,e,n,o){const s=Do(t,e,n),r=s.templater.tag;return["dom","html"].includes(r.tagJsType)?function(t,e){const n=Zn(t,e,void 0);for(const t of n.dom)t.domElement&&p.push([y,[e,t.domElement]]),t.marker&&p.push([y,[e,t.marker]]);return t}(s,o):Po(s,0,e)}function Uo(t,e,o,s,r){return n(e),r?No(t,e,o,r):jo(t,e,o)}function Wo(t){return tt.stateConfig.handlers.handler(t)}function $o(t){return Wo((()=>{const e=t();if(Gs().global){return Qe(e,s(),{resolvePromise:Ro,resolveValue:Bo})}})),Qo}function Ro(t){return t}function Bo(t){return t}function Fo(t){return Wo((function(){Gs().destroy$.toCallback(t)})),Qo}bo.all=function(t,e){return bo(q.all(t),e)},So.onInit=t=>So((()=>{}),{onInit:t}),So.onDestroy=t=>So((()=>{}),{onDestroy:t});let _o=0;const zo=Xo("click"),Go=Xo("mousedown");function Xo(t){return function(e){const n=$s(e);return Wo((()=>{Xs().addEventListener(t,n)})),n}}const Ko={get:Xs,onclick:zo,click:zo,onClick:zo,mousedown:Go,onmousedown:Go,onMouseDown:Go};function qo(t,e){Object.defineProperty(Qo,t,{get:()=>e,set:t=>e(t)})}var Zo;function Qo(t,e=Zo.SHALLOW){const n=function(...o){const s=oo(e,o);s.tagJsType=S.tagComponent,s.processInit=Uo,s.hasValueChanged=de;const r=function(t,e){return function(n,o,s){const r=ro(t,n,s),a=n.ownerSupport,c=is(t,o,a,n.appSupport,r);return Je(t,e,c,r)}}(s,n);return r.original=t,s.wrapper=r,s},o=t;n.original=t,o.tags=so,o.setUse=tt,o.ValueTypes=S,o.tagIndex=_o++,so.push(n);const s=n;return s.updates=t=>(Gs().updatesHandler=t,!0),s.getInnerHTML=To,s}function Yo(t,e,n){if(Ne(t,e))return 11;switch(n){case Zo.NONE:return 1;case Zo.SHALLOW:return it(t,e);case Zo.IMMUTABLE:return es(t,e)}return function(t,e){let n=t,o=e;n=[...t],o=[...e||[]];if(!n.every(((t,e)=>function(t,e,n,o){const s=o[e];if(typeof t===I.object){const e={...t},n={...s||{}},o=Object.entries(e).every((([t,o])=>ts(o,n[t],(()=>{delete e[t],delete n[t]}))));return o}return ts(t,s,(function(){n.splice(e,1),o.splice(e,1)}))}(t,e,n,o))))return 7;return!1}(t,e)}function ts(t,e,n){if(typeof t!==I.function)return!!rt(t,e,os)&&4;if(typeof e!==I.function)return!1;const o=e?.original;o&&(e=o);t.original&&(t=t.original);return t.toString()===e.toString()?(n(),5):(n(),6)}function es(t,e){const n=t.length;for(let o=0;o<n;++o){if(t[o]!==e[o])return 2}return!1}qo("onclick",zo),qo("click",zo),qo("onMouseDown",Go),qo("onmousedown",Go),qo("mousedown",Go),function(t){t.DEEP="deep",t.SHALLOW="shallow",t.NONE="none",t.IMMUTABLE="immutable"}(Zo||(Zo={})),Qo.element=Ko,Qo.renderOnce=function(){throw new Error("Do not call tag.renderOnce as a function but instead set it as: `(props) => tag.renderOnce = () => html`` `")},Qo.use=function(){throw new Error("Do not call tag.use as a function but instead set it as: `(props) => tag.use = (use) => html`` `")},Qo.deepPropWatch=Qo,Qo.route=function(t){throw new Error("Do not call tag.route as a function but instead set it as: `tag.route = (routeProps: RouteProps) => (state) => html`` `")},Qo.inject=function(t){const e=Gs();if(!e)throw new Error("tag.inject can only be called within a tag or host context");let n=e.parentContext;for(;n;){const e=n.contexts;if(e)for(const n of e)if(n.isAttr&&n.tagJsVar?.matchesInjection){const e=n.tagJsVar.matchesInjection(t,n);if(void 0!==e)return e.returnValue}if(n.tagJsVar?.matchesInjection&&n.tagJsVar.matchesInjection(t,n))return n.returnValue;n=n.parentContext}const o=`Could not find parent context for tag.inject ${t}`;throw console.error(o,{targetItem:t,context:e}),new Error(o)},Qo.onInit=$o,Qo.onDestroy=Fo,Qo.onRender=function(t){const e=Gs(),n=n=>{const o=Gs();Ks(e);const s=t();return qs(),Ks(o),s},o=e.render$.subscribe((()=>n())),s=n();return Qo.onDestroy((()=>o.unsubscribe())),s},Qo.getInnerHTML=To,Qo.app=function(t){throw new Error("Do not call tag.route as a function but instead set it as: `tag.route = (routeProps: RouteProps) => (state) => html`` `")},Qo.immutableProps=function(t){return Qo(t,Zo.IMMUTABLE)},Qo.watchProps=function(t){return Qo(t,Zo.SHALLOW)},Object.defineProperty(Qo,"renderOnce",{set(t){t.tagJsType=S.renderOnce,t.processInit=co,t.processUpdate=ht,t.destroy=pe,t.hasValueChanged=function(){return 0}}}),Object.defineProperty(Qo,"use",{set(t){t.original={setUse:tt,tags:so},t.tagJsType=S.stateRender,t.processInit=Uo,t.processUpdate=ht,t.hasValueChanged=de,t.destroy=pe}});const ns=3,os=10;function ss(t){return ut(t,ns)}function rs(t){return ut(t,os)}function as(t,e,n){const o={templater:t,context:e,castedProps:n,appSupport:void 0};return e.global.blocked=[],e.state||(e.state={newer:{state:[],states:[]}}),o}function cs(t,e,n,o){e.appSupport=n||e;const s=t.props;return s&&(e.propsConfig=function(t,e,n){const o=t.templater;if(o.tagJsType!==S.stateRender){switch(o.propWatch){case Zo.IMMUTABLE:return t.propsConfig={latest:e,castProps:n};case Zo.SHALLOW:return t.propsConfig={latest:e.map(ss),castProps:n}}return t.propsConfig={latest:e.map(rs),castProps:n}}}(e,s,o)),e}function us(t,e,n,o,s){const r={templater:t,context:o,castedProps:s,appSupport:void 0};return r.ownerSupport=e,r.appSupport=n,r}function is(t,e,n,o,s){const r=as(t,e,s);return r.ownerSupport=n||r,r.ownerSupport.appSupport=o||r.ownerSupport,cs(t,r,o,s)}function ls(t,e,o){if(M(e))return void 0===t.global&&n(t),t.oldTagJsVar=t.tagJsVar,t.tagJsVar=e,function(t,e,n){if(!e.state.newest)return void t.processInit(t,e,n,e.placeholder);const o=is(t,e,n,n.appSupport);we(n,o,e)}(e,t,o),!0;if(t.global){t.oldTagJsVar=t.tagJsVar,t.tagJsVar=e;const n=t.state.newest;if(n)return typeof e===I.function||function(t,e,n,o){let s=n.templater||n;const r=t.templater.tag;r&&r._innerHTML&&(s=n.outerHTML||n._innerHTML.outerHTML);const a=is(s,e,o,o.appSupport);nt(t.context.state.oldest,a)}(n,t,e,o),!0}return e.processInit(e,t,o,t.placeholder),t.oldTagJsVar=t.tagJsVar,t.tagJsVar=e,!0}function ps(t,e,n,o){const s=t&&t.tagJsType;if(delete e.deleted,s){if(s===S.renderOnce)return;ls(e,t,n)}else{if(j(t))return Zt(e,t,n),e.oldTagJsVar=e.tagJsVar,void(e.tagJsVar=_t(t));typeof t!==I.function?o&&function(t,e){e.value=t,e.oldTagJsVar=e.tagJsVar,e.tagJsVar=Nt(t);const n=e.placeholder,o=bt(t),s=e.paint=[C,[n,o,function(t){e.simpleValueElm=t,delete e.paint},"processNowRegularValue"]];u.push(s)}(t,e):e.value=t}}function fs(t,e,n){const o=t.tagJsVar.hasValueChanged(e,t,n);return 0===o||ps(e,t,n,o),o}function ds(t,e){let n;return t&&(n=e=document.createTextNode(J),p.push([y,[t,e]])),{appendMarker:n,insertBefore:e}}function gs(t,e,n){const o=mo(t,e,n);if(!0!==e.hasEmitted){const t=e.value.Observables;if(!t)return;if(!("value"in t[0]))return}if(0===o&&t.callback){io(t,e.subContext)}}function hs(t,e,n,o,s){const r=t.Observables,{appendMarker:a,insertBefore:c}=ds(s,o);let u=function(t,e,o){xo(t,o,n,c),ys(e),u=o.tagJsVar.onOutput=function(t,e,o){const s=o.contextItem;fs(s,t,n),s.tagJsVar.processUpdate(t,s,n,[t]),s.value=t,ys(e)}};const i=ms(r,n,((t,e,n)=>u(t,e,n)),t,e);return i.appendMarker=a,e.subContext=i,t.processUpdate=gs,t.onOutput=u,i}function ms(t,e,n,o,s){function r(t,e){u.lastValues[e]={value:t,tagJsVar:Xt(t),oldTagJsVar:u.lastValues[e]?.tagJsVar},a(u.lastValues,e)}function a(t,e){const o=u.tagJsVar,r=o?.callback;if(r){Ks(s);const e=o.callback(...t.map((t=>t.value)));return n(e,c,u),void qs()}const a=t[e].value;n(a,c,u)}let c=!0;const u={lastValues:[],subValueHandler:r,valuesHandler:a,tagJsVar:o,subscriptions:[]};return t.forEach(((t,e)=>{c=!0,u.subscriptions.push(t.subscribe((t=>r(t,e)))),c=!1})),o.onOutput=n,u}function bs(t){const e=t.subContext;if(!e)return;e.subscriptions.forEach((t=>t.unsubscribe())),delete t.subContext}function vs(t,e){++t.updateCount;const n=t.subContext;return bs(t),yo(n,e)}function ys(t){t||tt.stateConfig.support||h()}function xs(t,e,n,o,s){hs({tagJsType:S.subscribe,states:[],Observables:[t]},e,n,o,s)}function ws(t){return s()?Wo((()=>Cs(t))):Cs(t)}function Cs(t){let e=t;const n=new Set,o=t=>{n.forEach((e=>e(t)))};return{tagJsType:S.signal,hasValueChanged:go,processInitAttribute:a,processInit:xs,processUpdate:gs,get value(){return e},set value(t){e!==t&&(e=t,o(t))},destroy:vs,emit:o,subscribe(t){t(e),n.add(t);const o=()=>n.delete(t);return o.unsubscribe=o,o}}}class Ts extends q{value;constructor(t){super(t),this.value=t}subscribe(t){const e=super.subscribe(t);return t(this.value,e),e}}class Vs extends q{value;constructor(t){super(t),this.value=t,this._value=t,Q(this)}subscribe(t){const e=super.subscribe(t);return t(this._value,e),e}}function Js(t){return(e,n)=>{n.setHandler((()=>{})),t(e,n.next)}}function ks(t){return(e,n)=>{n.setHandler((()=>{}));t(e).then((t=>n.next(t)))}}const Is=t=>(e,n)=>{n.setHandler((()=>{}));const o=t(e).subscribe((t=>{o.unsubscribe(),n.next(t)}))},Ss=(t,e)=>As(t,e).pastResult,Es=t=>t;const As=(t,e,{init:n,before:o,final:s=Es}={})=>{const r=Wo({pastResult:void 0,values:void 0}),a="function"==typeof t?t():t,c=void 0===r.values;let u=0;function i(t){if(void 0===r.values){if(o&&!o(t))return r.values=t,r;const a=(n||e)(t,r.values);return r.pastResult=s(a),r.values=t,r}if(t.every(((t,e)=>t===r.values[e])))return r;if(o&&!o(t))return r.values=t,r;const a=e(t,r.values);return r.pastResult=s(a),r.values.length=0,r.values.push(...t),r}return c&&"function"==typeof t&&Qo.onRender((()=>{if(++u,1===u)return;i(t())})),i(a)};function Ms(t,e){return Object.defineProperty(e,"noInit",{get(){const e=t();return e.setup.init=()=>{},e}}),Object.defineProperty(e,"asSubject",{get(){const e=t(),n=Wo((()=>s())),o=Wo((()=>new Ts(void 0))),r=Wo((()=>({state:tt.stateConfig.state,states:tt.stateConfig.states}))),a=(t,a)=>(As(t,((t,e)=>{const c=s(),u=a(t,e);if(c!==n){const t=r.state,e=n.context.state.older;if(e){Ge(t,e.state,r.states,e.states)}}o.next(u)}),e.setup),o);return a.setup=e.setup,Ms((()=>a),a),a}}),Object.defineProperty(e,"truthy",{get(){const e=t();return e.setup.before=t=>t.every((t=>t)),e}}),e}function Os(t){return s()?Wo((()=>new q(t))):new q(t)}function Ls(t){return tt.stateConfig.handlers.statesHandler(t)}function Ps(t){const e=ws([]),n=ws(0),o=ws(0);let s=[],r=0;return o.value=n.value,t(((...t)=>(s=t,e.value))),Ss(s,(()=>{++r,e.value=s,t((()=>s))})),Ls(((s,a)=>{if(r)return t(((...t)=>(a&&1!==a||(e.value=t),e.value))),o.value=n.value,void++n.value;t((()=>e.value))})),++r,e.value}function Ds(){return{stateDiff:0,provider:void 0}}Ms((()=>function(t){const e=(e,n)=>As(e,n,t).pastResult;return e.setup=t,Ms((()=>e),e),e}({})),Ss),Os._value=t=>{const e=Wo((function(){return{state:tt.stateConfig.state,states:tt.stateConfig.states}})),n=s();return Wo((function(){return new Ts(t).pipe((t=>{const o=n.context.state.newer;return Ge(o.state,e.state,o.states,e.states),t}))}))},Os.all=function(t){const e=Wo((()=>({state:tt.stateConfig.state,states:tt.stateConfig.states}))),n=s();return q.all(t).pipe((t=>{const o=n.context.state.newer;return o&&Ge(o.state,e.state,o.states,e.states),t}))};const js={create:t=>{const e=Wo(Ds);if(e.stateDiff){let t=e.stateDiff;for(;t--;)Wo(void 0);return Wo(void 0)}const n=Wo((()=>{const n=tt.stateConfig,o=n.state.length,s=t.prototype?new t:t(),r=n.support,a=n.state.length-o,c={constructMethod:t,instance:s,stateDiff:a,owner:r,children:[]};e.provider=c;const u=r.context;return(u.providers=u.providers||[]).push(c),e.stateDiff=a,s})),o=t,s=o.compareTo=o.toString();return e.provider.constructMethod.compareTo=s,n},inject:function(t){return Wo((function(){const e=t,n=e.compareTo=e.compareTo||t.toString(),o=s(),r=[];let a={ownerSupport:o.ownerSupport};for(;a.ownerSupport;){const t=a.ownerSupport.context.providers;if(!t){a=a.ownerSupport;continue}const e=t.find((t=>{r.push(t);if(t.constructMethod.compareTo===n)return!0}));if(e){const t=o.context;return(t.providers=t.providers||[]).push(e),e.children.push(o),e.instance}a=a.ownerSupport}const c=`Could not inject provider: ${t.name} ${t}`;throw console.warn(`${c}. Available providers`,r),new Error(c)}))}};class Hs extends Error{details;constructor(t,e,n={}){super(t),this.name=Hs.name,this.details={...n,errorCode:e}}}class Ns extends Hs{constructor(t,e){super(t,"array-no-key-error",e),this.name=Ns.name}}class Us extends Hs{constructor(t,e){super(t,"state-mismatch-error",e),this.name=Us.name}}class Ws extends Hs{constructor(t,e){super(t,"sync-callback-error",e),this.name=Ws.name}}function $s(t){const e=Gs(),n=Wo({callback:t}),o=Wo((()=>Rs(e,tt.stateConfig,n)));return n.callback=t,o}function Rs(t,e,n){const o=e.states;return function(...e){const s=function(t,e,n,...o){const s=n(...o),r=H(t);if(!r)return s;if(r.context.global)De(r);else{const t=r.context;t.tagJsVar.processUpdate(t.value,t,r.ownerSupport,[])}return L(s)&&s.finally((()=>{if(t.global)De(r);else{const t=r.context;t.tagJsVar.processUpdate(t.value,t,r.ownerSupport,[])}})),s}(t,o,n.callback,...e);return h(),s}}const Bs=()=>{const t=Gs();if(!t)throw Fs;const e=tt.stateConfig;return function(n){return Rs(t,e,{callback:n})}},Fs=new Ws("callback() was called outside of synchronous rendering. Use `callback = callbackMaker()` to create a callback that could be called out of sync with rendering");function _s(t=[]){return s()?Wo((()=>zs(Cs(t)))):zs(Cs(t))}function zs(t){const e=["push","pop","splice","shift","unshift"],n=["map","reduce","forEach","every"],o=new Proxy(t,{get(s,r){return isNaN(r)?"length"===r?t.value.length:e.includes(r)?o[a=r]=(...e)=>{const n=t.value[a](...e);return t.emit(t.value),n}:n.includes(r)?t.value[r].bind(t.value):t[r]:t.value[r];var a},set:(e,n,o)=>isNaN(n)?"length"===n?(t.value.length=o,t.emit(t.value),!0):(t[n]=o,!0):(t.value[n]=o,t.emit(t.value),!0)});return o}function Gs(){return tt.stateConfig.context}function Xs(){return Gs().element}function Ks(t){return tt.stateConfig.context=t}function qs(){delete tt.stateConfig.context}function Zs(t,e,o,s,r){const a=t;let c=a.templater;if(c||(c=Yn(a)),n(e),r)return eo(c,e,o,r,s);return(e.state=e.state||{}).newest=to(c,o,e),Qn(o,e)}function Qs(t,e,n,o,s){Zs(t.outerHTML,e,n,o,s);e.tagJsVar.processUpdate=function(t,e,n){fs(e,t?.outerHTML||t,n)},t.hasValueChanged=Ys}function Ys(t,e){return de(t,e)}function tr(t,e){const n={values:e,ownerSupport:s(),tagJsType:S.tag,processInitAttribute:a,processInit:Zs,processUpdate:ht,hasValueChanged:de,destroy:pe,strings:t,key:t=>er(t,n),setHTML:function(t){return t.outerHTML=n,n._innerHTML=t,t.oldProcessInit=t.processInit,t.processInit=Qs,n},acceptInnerHTML:function(t){return t.owner=n,n},html:function(t,e){return n.children={strings:t,values:e},n}};return Object.defineProperty(n,"innerHTML",{set:t=>n.setHTML(t)}),n}function er(t,e){return er(t,e),e.arrayValue=t,e}function nr(t,e){const n={values:e,ownerSupport:s(),dom:t,tagJsType:S.dom,processInitAttribute:a,processInit:Zs,processUpdate:ht,hasValueChanged:de,destroy:pe,key:function(t){return n.arrayValue=t,n},setHTML:function(t){return t.outerHTML=n,n._innerHTML=t,t.oldProcessInit=t.processInit,t.processInit=Qs,n},acceptInnerHTML:function(t){return t.owner=n,n},html:{dom:function(t,e){return n.children={dom:t,values:e},n}}};return Object.defineProperty(n,"innerHTML",{set:t=>n.setHTML(t)}),n}function or(t,...e){const n=tr(t,e),o=oo(Zo.NONE);return o.tag=n,n.templater=o,n}or.dom=function(t,...e){return nr(t,e)},"object"==typeof document&&(document.taggedJs&&console.warn("🏷️🏷️ Multiple versions of taggedjs are loaded. May cause issues."),document.taggedJs=!0);const sr=[];function rr(t,e,o){const s=sr.findIndex((t=>t.element===e));if(s>=0){const t=sr[s].support;ue(t,t.context.global),sr.splice(s,1),console.warn("Found and destroyed app element already rendered to element",{element:e})}let c=()=>p(o);c.propWatch=Zo.NONE,c.tagJsType=S.stateRender,c.processUpdate=ht,c.props=[o],c.isApp=!0;const u=function(t,e){const o={tagJsType:"templater",hasValueChanged:de,destroy:pe,processInitAttribute:a,processInit:function(){console.debug("do nothing app function")},processUpdate:ht},s={updateCount:0,value:t,valueIndex:0,varCounter:0,destroy$:new q,render$:new q,withinOwnerElement:!1,renderCount:0,global:void 0,state:{},tagJsVar:o};return n(s),s.events={},function(t,e,n){const o=as(t,e);cs(t,o,o),o.appElement=n,e.state.oldest||(e.state.oldest=o,e.state.older=e.state.newer),e.state.newest=o}(t,s,e),s}(c,e),i=u.global,l=u.state.newest;R(l.context),r(l);let p=t(o);const f=typeof p==I.function;f||(M(p)?(u.state.newest.propsConfig={latest:[o],castProps:[o]},c.propWatch=p.propWatch,c.tagJsType=p.tagJsType,c.wrapper=p.wrapper,c=p):(c.tag=p,p=t));const g=function(t,e,n,o,s,r,a){const c=document.createTextNode(J);if(so.push(n.wrapper||{original:n}),r.placeholder=c,e.isApp=!0,!s)throw new Error(`Cannot tagElement, element received is type ${typeof s} and not type Element`);s.destroy=function(){const t=r.events;for(const e in t){const n=t[e];s.removeEventListener(e,n)}r.events={},++d.locks;const n=ue(i,e);return--d.locks,h(),n},++d.locks;const u=document.createDocumentFragment();u.appendChild(c);const i=jo(n,r,{appSupport:{appElement:s,context:r},appElement:s});return i.appElement=s,a&&(o.tag=i.templater.tag),--d.locks,h(),s.appendChild(u),{support:i,tags:so,ValueTypes:S}}(0,i,c,p,e,u,f);return qs(),g}function ar(t,e,n){function o(t){return o.toCallback(t)}return o.toCallback=n,t.listeners.push([e,o]),t.allListeners.push([e,o]),t}function cr(t,e){return t.attributes.push(e),lr(e[0])?ir(e[0],t):lr(e[1])&&ir(e[1],t),t}function ur(t){function e(e){return function(n){return function(t,e,n){return ar(Jr(t,t.elementFunctions),e,n)}(t,e,n)}}const n={onClose:e("onclose"),onDoubleClick:e("ondblclick"),onClick:e("click"),onBlur:e("onblur"),onChange:e("onchange"),onMousedown:e("onmousedown"),onMouseup:e("onmouseup"),onKeydown:e("onkeydown"),onKeyup:e("onkeyup"),attr:(...e)=>function(t,e){const n=Jr(t,t.elementFunctions);return n.attributes.push(e),lr(e[0])?ir(e[0],n):lr(e[1])&&ir(e[1],n),n}(t,e),key:function(t){return this.arrayValue=t,this}};return n}function ir(t,e){e.contexts||(e.contexts=[]),e.contexts.push(t)}function lr(t){return Array.isArray(t)||P(t)||t?.tagJsType}function pr(t,e){return(n,o)=>cr(n,[t,o,!1,e])}function fr(t){return(e,n)=>ar(e,t,n)}const dr={onClose:fr("onclose"),onClick:fr("click"),onDoubleClick:fr("ondblclick"),onDblClick:fr("ondblclick"),onBlur:fr("onblur"),onChange:fr("onchange"),onMousedown:fr("onmousedown"),onMouseDown:fr("onmousedown"),onMouseup:fr("onmouseup"),onMouseUp:fr("onmouseup"),onKeyup:fr("onkeyup"),onKeyUp:fr("onkeyup"),onKeydown:fr("onkeydown"),onKeyDown:fr("onkeydown")},gr={checked:pr("checked",Et),selected:pr("selected",Et),class:pr("class",(function(t,e,n){D(n)?Object.entries(n).forEach((([e,n])=>{n?t.classList.add(e):t.classList.remove(e)})):At(t,e,n)})),...dr};function hr(t,e){++t.updateCount;const n=t.contexts,o=[];if(n.length&&(mr(n,e,o),n.length=0,o.length)){const e=t.htmlDomMeta;return t.deleted=!0,Promise.all(o).then((()=>{++d.locks,se(e),t.htmlDomMeta=[],--d.locks,h()}))}ce(t),t.htmlDomMeta=[],delete t.contexts,t.deleted=!0}function mr(t,e,n){const o=t[0],s=o.tagJsVar.destroy(o,e);return o.deleted=!0,L(s)?n.push(s.then((()=>{if(t.length>1)return mr(t.slice(1,t.length),e,n)}))):(o.htmlDomMeta&&(ce(o),delete o.htmlDomMeta),t.length>1?mr(t.slice(1,t.length),e,n):void 0)}function br(t,e,n){if(e.locked||!0===e.deleted)return;++e.updateCount;if(vr(t,e))return hr(e,n),e.htmlDomMeta=[],delete e.deleted,void ps(t,e,n,789);const o=e.contexts,s=t.contexts||[],r=e.tagJsVar.allListeners;if(t.allListeners.forEach(((t,e)=>{r[e][1].toCallback=t[1].toCallback})),o.length!==s.length)throw console.info("context mismatch",{value:t,context:e,conValues:o.map((t=>t.value)),vContexts:s,deleted:e.deleted}),new Error("super issue discovered");e.locked=79,o.forEach(((t,e)=>{t.tagJsVar.processUpdate(s[e],t,n)})),delete e.locked}function vr(t,e){if(e.value===t)return 0;if(!t||"element"!==t.tagJsType)return 1;if(t.innerHTML.length!==e.value.innerHTML.length)return 1;return t.attributes.length!==e.value.attributes.length?1:0}function yr(t,e,n,o,s){t.forEach((t=>{switch(typeof t){case"string":case"boolean":case"number":return wr(t,o,s);case"function":{if("element"===t.tagJsType)break;const r=function(t,e,n,o,s){const r=[],c={updateCount:0,parentContext:n,contexts:r,element:e,value:t,htmlDomMeta:[],tagJsVar:{tagJsType:"dynamic-text",hasValueChanged:()=>0,processInit:a,processInitAttribute:a,destroy:(t,e)=>{++c.updateCount,r.forEach((t=>t.tagJsVar.destroy(t,e)))},processUpdate:(t,e,n,o)=>{++c.updateCount,Ks(i);let s=t(i);const r=c.underFunction;delete c.underFunction,s instanceof Function&&!s.tagJsType&&(r&&s.toString()===r.toString()?s=i.value:(c.underFunction=s,s=s()));const a=i.tagJsVar.processUpdate(s,i,n,o);return i.value=s,e.value=t,qs(),a}},valueIndex:-1,withinOwnerElement:!0,destroy$:new q,render$:new q};Ks(c);let u=t();P(u)&&!u.tagJsType&&(c.underFunction=u,u=u());const i=xr(u,c,e,o,s);return n.contexts.push(c),qs(),i}(t,o,e,n,s);return r}}if(null==t)return wr(t,o,s);if("element"!==t.tagJsType)return xr(t,e,o,n,s);{const r=Cr(t,e,n,e.contexts);u.push([s,[o,r]]);e.htmlDomMeta.push({nn:r.tagName,domElement:r,at:[]})}}))}function xr(t,e,n,o,s){const r=Kt(t,0,!0,e);return e.contexts.push(r),r.element=n,r.placeholder=document.createTextNode(""),u.push([s,[n,r.placeholder]]),Ks(r),r.tagJsVar.processInit(t,r,o,r.placeholder),qs(),r}function wr(t,e,n){const o=bt(t),s=document.createTextNode(o);return u.push([n,[e,s]]),s}function Cr(t,e,n,o){const s=document.createElement(t.tagName);return e.element=s,t.attributes.forEach((t=>{const e=t[0];"string"==typeof e&&(t[2]=vt(e))})),Tn(t.attributes,[],s,n,e),yr(t.innerHTML,e,n,s,y),t.listeners.forEach(((e,o)=>function(t,e,n,o,s){const r=(...o)=>{const s=t.listeners[e][1],r=N(n),a=r.context.updateCount;r.context.locked=1,++d.locks;const c=s(...o);--d.locks,delete r.context.locked;return a===r.context.updateCount?tn(c,r):(h(),L(c)?c.then((()=>(We([r.context.state.newest]),"promise-no-data-ever"))):"no-data-ever")};an(n.appSupport,o[0],s,r)}(t,o,n,e,s))),s}function Tr(t,e,n,o){e.contexts=e.contexts||[],e.htmlDomMeta=[],e.locked=34;const s=Cr(t,e,n,e.contexts);delete e.locked,u.push([v,[o,s,"htmlTag.processInit"]]);const r={nn:t.tagName,domElement:s,at:t.attributes};return e.htmlDomMeta=[r],s}function Vr(t){const e=Jr({tagJsType:"element",processInitAttribute:a,processInit:Tr,destroy:hr,processUpdate:br,hasValueChanged:vr,tagName:t,innerHTML:[],attributes:[],listeners:[],allListeners:[],elementFunctions:ur},ur);return e.tagName=t,e}function Jr(t,e){const n=(...t)=>{const e={...n};var o,s;return e.attributes=[...n.attributes],e.listeners=[...n.listeners],e.allListeners=[...n.allListeners],t.length>0&&"object"==typeof t[0]&&!Array.isArray(t[0])&&!t[0].tagJsType&&(o=e,s=t[0],Object.entries(s).reduce(((t,[e,n])=>e in gr?gr[e](o,n):cr(o,[e,n,!1,St])),o),t.splice(0,1)),e.innerHTML=t,t.forEach((t=>{if(lr(t))return"element"===t.tagJsType?(e.allListeners.push(...t.allListeners),void(t.contexts&&(e.contexts?e.contexts.push(...t.contexts):e.contexts=t.contexts))):void function(t,e){e.contexts||(e.contexts=[]);e.contexts.push(t)}(t,e)})),e};return Object.assign(n,t),Object.assign(n,ur(n)),n.attributes=[...t.attributes],n.listeners=[...t.listeners],n.allListeners=[...t.allListeners],n}const kr=function(){const t=Jr({tagJsType:"element",processInitAttribute:a,processInit:Ir,destroy:Sr,processUpdate:br,hasValueChanged:vr,tagName:"no-element",innerHTML:[],attributes:[],listeners:[],allListeners:[],elementFunctions:ur});return t.tagName="no-element",t}();function Ir(t,e,n,o){e.contexts=e.contexts||[],e.htmlDomMeta=[],yr(t.innerHTML,e,n,o,v)}function Sr(t,e){++t.updateCount;const n=t.contexts,o=[];if(n.length&&(mr(n,e,o),n.length=0,o.length)){const e=t.htmlDomMeta;return Promise.all(o).then((()=>{++d.locks,se(e),--d.locks,h()}))}}const Er=Vr("button"),Ar=Vr("select"),Mr=Vr("option"),Or=Vr("input"),Lr=Vr("textarea"),Pr=Vr("html"),Dr=Vr("head"),jr=Vr("title"),Hr=Vr("meta"),Nr=Vr("link"),Ur=Vr("style"),Wr=Vr("body"),$r=Vr("noscript"),Rr=Vr("hr"),Br=Vr("h1"),Fr=Vr("h2"),_r=Vr("h3"),zr=Vr("h4"),Gr=Vr("h5"),Xr=Vr("h6"),Kr=Vr("ol"),qr=Vr("ul"),Zr=Vr("li"),Qr=Vr("div"),Yr=Vr("main"),ta=Vr("section"),ea=Vr("header"),na=Vr("footer"),oa=Vr("fieldset"),sa=Vr("legend"),ra=Vr("dialog"),aa=Vr("pre"),ca=Vr("table"),ua=Vr("tr"),ia=Vr("td"),la=Vr("th"),pa=Vr("thead"),fa=Vr("tbody"),da=Vr("tfoot"),ga=Vr("a"),ha=Vr("br"),ma=Vr("label"),ba=Vr("p"),va=Vr("small"),ya=Vr("span"),xa=Vr("strong"),wa=Vr("b"),Ca=Vr("sup"),Ta={tagElement:rr,renderWithSupport:Oe,renderSupport:De,firstTagRender:Ae,reRenderTag:Ee,paint:h};var Va=e.W9,Ja=e.cg,ka=e.m0,Ia=e.rS,Sa=e.Y2,Ea=e.ei,Aa=e.B7,Ma=e.TU,Oa=e.XF,La=e.PC,Pa=e.Ot,Da=e.Mj,ja=e.tD,Ha=e.a,Na=e.Gf,Ua=e.xe,Wa=e.YO,$a=e.b,Ra=e.rf,Ba=e.br,Fa=e.um,_a=e.x6,za=e.E2,Ga=e.OH,Xa=e.TB,Ka=e.Ii,qa=e.mX,Za=e.yV,Qa=e.EI,Ya=e.zV,tc=e.pf,ec=e.ze,nc=e.Go,oc=e.bD,sc=e.WJ,rc=e.wL,ac=e.Ng,cc=e.O,uc=e.r3,ic=e.y4,lc=e.Ie,pc=e.lI,fc=e.hp,dc=e.qr,gc=e.ts,hc=e.B4,mc=e.HD,bc=e.Az,vc=e.Xi,yc=e.sV,xc=e.Ah,wc=e.f5,Cc=e.Gk,Tc=e.j_,Vc=e.h1,Jc=e.h2,kc=e.h3,Ic=e.h4,Sc=e.h5,Ec=e.h6,Ac=e.zC,Mc=e.d5,Oc=e.wx,Lc=e.cF,Pc=e.Hc,Dc=e.PB,jc=e.uq,Hc=e.hr,Nc=e.qy,Uc=e.gM,Wc=e.gx,$c=e.hF,Rc=e.cy,Bc=e.Tn,Fc=e.Gv,_c=e.yL,zc=e.D8,Gc=e.Ze,Xc=e._4,Kc=e.mn,qc=e.Pf,Zc=e.o1,Qc=e.z,Yc=e.li,tu=e.nf,eu=e.iW,nu=e.mI,ou=e.et,su=e.Vg,ru=e.ol,au=e.sA,cu=e.TG,uu=e.MG,iu=e.PL,lu=e.uK,pu=e.CG,fu=e.p,du=e.nI,gu=e.Fs,hu=e.AS,mu=e.r5,bu=e.M$,vu=e.uc,yu=e.QB,xu=e.uW,wu=e.Lt,Cu=e.Jv,Tu=e.TA,Vu=e.Jn,Ju=e.Ll,ku=e.vP,Iu=e.EX,Su=e.Ln,Eu=e.wk,Au=e.xP,Mu=e.ko,Ou=e.iF,Lu=e.bc,Pu=e.B1,Du=e.RX,ju=e.lR,Hu=e.ag,Nu=e.tp,Uu=e.Tc,Wu=e.Hf,$u=e.zc,Ru=e._A,Bu=e.T_,Fu=e.td,_u=e.g0,zu=e.pd,Gu=e.th,Xu=e.VQ,Ku=e.DD,qu=e.tr,Zu=e.ul,Qu=e.Ag,Yu=e.Pc,ti=e.NU,ei=e.wB,ni=e.id,oi=e.MC,si=e.SZ;export{Va as ArrayNoKeyError,Ja as BasicTypes,ka as ImmutableTypes,Ia as PropWatches,Sa as RouteQuery,Ea as StateMismatchError,Aa as Subject,Ma as Subjective,Oa as SyncCallbackError,La as TagError,Pa as ValueSubject,Da as ValueSubjective,ja as ValueTypes,Ha as a,Na as addPaintRemoveAwait,Ua as appElements,Wa as array,$a as b,Ra as body,Ba as br,Fa as buildBeforeElement,_a as button,za as callback,Ga as callbackMaker,Xa as checkArrayValueChange,Ka as checkSimpleValueChange,qa as checkStillSubscription,Za as checkTagValueChange,Qa as checkTagValueChangeAndUpdate,Ya as combineLatest,tc as createHtmlSupport,ec as createTrigger,nc as deepClone,oc as deepEqual,sc as defineValueOn,rc as deleteContextSubContext,ac as deleteSimpleValue,cc as destroySupport,uc as dialog,ic as div,lc as empty,pc as fieldset,fc as firstTagRender,dc as footer,gc as forceUpdateExistingValue,hc as getBaseSupport,mc as getContextInCycle,bc as getDomMeta,vc as getDomTag,yc as getInnerHTML,xc as getNewGlobal,wc as getSupportOlderState,Cc as getTemplaterResult,Tc as guaranteeInsertBefore,Vc as h1,Jc as h2,kc as h3,Ic as h4,Sc as h5,Ec as h6,Ac as hasPropChanges,Mc as head,Oc as header,Lc as hmr,Pc as host,Dc as howToSetInputValue,jc as howToSetStandAloneAttr,Hc as hr,Nc as html,Uc as htmlDoc,Wc as htmlTag,$c as input,Rc as isArray,Bc as isFunction,Fc as isObject,_c as isPromise,zc as isSimpleType,Gc as isStaticTag,Xc as isSubjectInstance,Kc as isTagComponent,qc as label,Zc as legend,Qc as letProp,Yc as li,tu as link,eu as main,nu as meta,ou as noElement,su as noscript,ru as ol,au as onDestroy,cu as onFirstSubContext,uu as onInit,iu as oneRenderToSupport,lu as option,pu as output,fu as p,du as paint,gu as pipe,hu as pre,mu as providers,bu as reRenderTag,vu as renderSupport,yu as renderWithSupport,xu as section,wu as select,Cu as setBooleanAttribute,Tu as setNonFunctionInputValue,Vu as setSimpleAttribute,Ju as setUseMemory,ku as signal,Iu as small,Su as span,Eu as state,Au as states,Mu as strong,Ou as style,Lu as subject,Pu as subscribe,Du as subscribeWith,ju as sup,Hu as syncError,Nu as table,Uu as tag,Wu as tagElement,$u as tagValueUpdateHandler,Ru as tags,Bu as tbody,Fu as td,_u as textarea,zu as tfoot,Gu as th,Xu as thead,Ku as title,qu as tr,Zu as ul,Qu as upgradeBaseToSupport,Yu as valueToTagJsVar,ti as variablePrefix,ei as watch,ni as willCallback,oi as willPromise,si as willSubscribe};
|
|
2
2
|
//# sourceMappingURL=bundle.js.map
|