@base-framework/base 3.9.10 → 3.9.11
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/dist/types/modules/component/data-resume-helper.d.ts +33 -0
- package/package.json +1 -1
- package/dist/chunks/chunk-6VPBF5VF.js +0 -2
- package/dist/chunks/chunk-CNIJE66G.js +0 -2
- package/dist/chunks/chunk-DWOYCZYJ.js +0 -2
- package/dist/chunks/chunk-GNJZ6CEA.js +0 -2
- package/dist/chunks/chunk-KRDITJSA.js +0 -2
- package/dist/chunks/chunk-MNKLSGJQ.js +0 -2
- package/dist/chunks/chunk-QXTQMPCM.js +0 -2
- package/dist/chunks/chunk-T3WI7GCT.js +0 -2
- package/dist/chunks/chunk-TDLN57VY.js +0 -2
- package/dist/chunks/chunk-TFVBKZUB.js +0 -2
- package/dist/chunks/chunk-VRFEYZE5.js +0 -2
- package/dist/chunks/chunk-W37VRHGC.js +0 -2
- package/dist/meta.json +0 -1
- package/dist/types/modules/data/types/model/model-request.d.ts +0 -2
- package/dist/types/modules/layout/base-layout-methods.d.ts +0 -1
- package/dist/types/modules/layout/directives/core/core-directives.d.ts +0 -7
- package/dist/types/modules/layout/directives/core/reactive-directives.d.ts +0 -6
- package/dist/types/modules/layout/directives/core/router-directives.d.ts +0 -11
- package/dist/types/modules/layout/directives/directive-registry.d.ts +0 -5
- package/dist/types/modules/router/router-registry.d.ts +0 -2
|
@@ -24,6 +24,35 @@ export class DataResumeHelper {
|
|
|
24
24
|
* @returns {void}
|
|
25
25
|
*/
|
|
26
26
|
static resume(component: object, persistedData: Data | null): void;
|
|
27
|
+
/**
|
|
28
|
+
* Release the data links an instance is still holding when the
|
|
29
|
+
* resume replaces it, or when it is being carried into a new
|
|
30
|
+
* mount.
|
|
31
|
+
*
|
|
32
|
+
* A persisting unit keeps its links through teardown
|
|
33
|
+
* (`Unit.prepareDestroy`) because resume restores its data
|
|
34
|
+
* instead of rebuilding it. Resume is where that debt is paid:
|
|
35
|
+
* - the instance that loses the fresh-vs-persisted decision is
|
|
36
|
+
* dropped on the floor, so every subscription it opened on a
|
|
37
|
+
* remote source (and the remote's paired record pointing back
|
|
38
|
+
* at it) would stay live for the life of the page, one more
|
|
39
|
+
* per mount/destroy cycle;
|
|
40
|
+
* - the instance that wins carries links minted by the previous
|
|
41
|
+
* mount, and `initialize()` re-runs `beforeSetup` immediately
|
|
42
|
+
* after this, so those links are about to be minted a second
|
|
43
|
+
* time on the same source.
|
|
44
|
+
*
|
|
45
|
+
* Only links are released. The stage is untouched, so the
|
|
46
|
+
* resumed values survive, and the setup that created the links
|
|
47
|
+
* runs again before the layout is built.
|
|
48
|
+
*
|
|
49
|
+
* @protected
|
|
50
|
+
* @param {Data|null|undefined} data
|
|
51
|
+
* @param {Data|null|undefined} [keep] The surviving instance,
|
|
52
|
+
* skipped when both sides of the decision are the same object.
|
|
53
|
+
* @returns {void}
|
|
54
|
+
*/
|
|
55
|
+
protected static _releaseLinks(data: Data | null | undefined, keep?: Data | null | undefined): void;
|
|
27
56
|
/**
|
|
28
57
|
* Refresh the host component's data with fresh prop-derived
|
|
29
58
|
* values from setData(), then refresh context data from parent.
|
|
@@ -97,6 +126,10 @@ export class DataResumeHelper {
|
|
|
97
126
|
* outright) or refreshState is flagged (then only keys
|
|
98
127
|
* missing from fresh are copied).
|
|
99
128
|
*
|
|
129
|
+
* Whichever instance loses is released, and a persisted
|
|
130
|
+
* instance that wins is released too, because the setup that
|
|
131
|
+
* minted its links is about to run again. See _releaseLinks.
|
|
132
|
+
*
|
|
100
133
|
* @protected
|
|
101
134
|
* @param {object} component
|
|
102
135
|
* @param {Data|null} persistedData
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as k}from"./chunk-AO5L25YQ.js";import{a as pt,b as mt,c as gt,d as yt,e as C,f as y,g as A}from"./chunk-FXJIFTW5.js";import{a as L,b as ut}from"./chunk-ILT4B3VY.js";import{a as dt,c as I,d as ft,f as M}from"./chunk-E3C6NOMV.js";import{b as f,c as p}from"./chunk-R5DHGQZV.js";var q={items:new Map,add(s,t){return this.items.set(s,t),this},get(s){return this.items.get(s)??null}};f.addType("components",s=>{if(!s)return;let t=s.component;!t||!t.isUnit||(t.persistToken&&t.parent&&t.parent.removePersistedChild(t.persistToken),t.rendered===!0&&(t.prepareDestroy(),t.cleanUpAfterDestroy()))});var me=0,W=class{constructor(t,e,r){this.isUnit=!0,this.data=null,this.persist=null,this.nest=null,this.state=null,this.panel=null,this.parent=null,this.unitType=null,this._classId,this.id="",this.cached=[],this.init();let n,i;if(t==null)n={},i=[];else{let o=typeof t;o==="string"||o==="number"?(n={},i=[{tag:"text",textContent:t}]):Array.isArray(t)?(n={},i=t):(n=t||{},i=typeof e=="string"?[{tag:"text",textContent:e}]:e)}this.setupProps(n),this.children=i||[],this.persistedChildren={},this.persistedCount=0,this.onCreated(),this.rendered=!1,this.container=null}init(){this.id="cp-"+me++,this.unitType=this._classId||this.constructor.name.toLowerCase()}declareProps(){}addPersistedChild(t){let e=t.key,r=t.cache,n;r!=null&&e!=null?n="pk:"+r+":"+e:r!=null?n="pk:"+r:e!=null?n="pk:"+e:n="pc"+this.persistedCount++;let i=this.persistedChildren[n];return i&&t.unitType===i.unitType&&t.resumeScope(i),t.persistToken=n,this.persistedChildren[n]=t,n}removePersistedChild(t){this.rendered&&(!t||!this.persistedChildren[t]||delete this.persistedChildren[t])}setupProps(t){if(this.declareProps(),!(!t||typeof t!="object"))for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this[e]=t[e],e==="data"&&(this._externalData=!0))}getChildScope(){return this}getParentContext(){return this.parent?this.parent.getContext():null}setupContext(){if(this._contextResumed)return;let t=this.getParentContext(),e=this.setContext(t);if(e){this.context=e;return}this.context=t,this.setupAddingContext()}setupAddingContext(){let t=this.context,e=this.addContext(t);if(!e)return;let r=e[0];r&&(this.addingContext=!0,this.contextBranchName=r,this.addContextBranch(r,e[1]))}addContextBranch(t,e){this.context??={},this.context[t]=e}setContext(t){return null}addContext(t){return null}removeContext(){this.addingContext&&this.removeContextBranch(this.contextBranchName)}removeContextBranch(t){t&&delete this.context[t]}getContext(){return this.context}onCreated(){}render(){return{}}_cacheRoot(t){return t&&(t.id||(t.id=this.getId()),t.cache="panel",t)}_createLayout(){return this.render()}prepareLayout(){let t=this._createLayout();return this._cacheRoot(t)}afterBuild(){f.add(this.panel,"components",{component:this}),this.rendered=!0,this.afterLayout()}afterLayout(){this.afterSetup()}if(t,e){return t?e||t:null}map(t,e){let r=[];if(!t||t.length<1)return r;for(let n=0,i=t.length;n<i;n++){let o=e(t[n],n);r.push(o)}return r}removeAll(t){return M.removeAll(t)}getId(t){let e=this.id;return typeof t=="string"&&(e+="-"+t),e}cacheEle(t,e){e&&(this[e]=t,this.cached.push(e))}initialize(){this.setupContext(),this.beforeSetup()}beforeSetup(){}afterSetup(){}setup(t){this.setContainer(t),this.initialize()}setContainer(t){this.container=t}_remove(){this.prepareDestroy();let t=this.panel;t&&M.removeElement(t),this.cleanUpAfterDestroy()}cleanUpAfterDestroy(){this.panel=null,this.container=null;let t=this.cached;for(let e=0,r=t.length;e<r;e++)this[t[e]]=null;this.cached=[],this.persist!==!0&&(this.persistedChildren={},this.persistToken=null)}prepareDestroy(){this.persistedCount=0,this.rendered=!1;try{this.beforeDestroy()}catch(t){console.error("Error in beforeDestroy:",t)}this.removeContext(),this.data&&this.persist!==!0&&typeof this.data.unlink=="function"&&this.data.unlink()}beforeDestroy(){}destroy(){this._remove()}};var E=class{static resume(t,e){if(t._externalData){this._resumeExternal(t,e);return}this._resumeOwned(t,e)}static refresh(t){let e=t.setData();e&&t.data&&t.data.set(e.stage),this.refreshContext(t)}static refreshContext(t){let e=t.context;if(!e||!e.data)return;let r=t.getParentContext();if(!r||!r.data)return;let n=r.data.stage,i=e.data.stage,o=null;for(let a in n){if(!Object.prototype.hasOwnProperty.call(n,a))continue;let l=n[a];l!==i[a]&&(o===null&&(o={}),o[a]=l)}o!==null&&(typeof e.data._silentSet=="function"?e.data._silentSet(o):e.data.set(o))}static _resumeExternal(t,e){let r=t.setData();if(!r){t.data=e;return}if(e&&e.stage){let n=e._retainState||r._retainState,i=!n&&(e._refreshState||r._refreshState),o=this._buildExternalUpdates(e.stage,r.stage,n,i);L.isEmpty(o)||r._silentSet(o)}typeof r.flushPending=="function"&&r.flushPending(),t.data=r}static _buildExternalUpdates(t,e,r,n){let i={};for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;if(n){Object.prototype.hasOwnProperty.call(e,o)||(i[o]=t[o]);continue}let a=t[o];!r&&a==null||a!==e[o]&&(i[o]=a)}return i}static _resumeOwned(t,e){if(!t.data){t.data=e;return}if(e&&e._retainState){t.data=e;return}if(e&&e.stage){let r=e._refreshState||t.data._refreshState,n=this._buildOwnedUpdates(e.stage,t.data.stage,r);L.isEmpty(n)||t.data._silentSet(n)}t.data&&typeof t.data.flushPending=="function"&&t.data.flushPending()}static _buildOwnedUpdates(t,e,r){let n={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;if(r){Object.prototype.hasOwnProperty.call(e,i)||(n[i]=t[i]);continue}let o=t[i];o!=null&&o!==e[i]&&(n[i]=o)}return n}};var N=class{constructor(){this.events=[]}addEvents(t){let e=t.length;if(!(e<1))for(let r=0;r<e;r++){let n=t[r];this.on(n[0],n[1],n[2],n[3])}}on(t,e,r,n){p.on(t,e,r,n),this.events.push({event:t,obj:e,callBack:r,capture:n})}off(t,e,r,n){p.off(t,e,r,n);let i,o=this.events;for(let a=0,l=o.length;a<l;a++)if(i=o[a],i.event===t&&i.obj===e&&i.callBack===r&&i.capture===n){o.splice(a,1);break}}set(){let t=this.events;for(let e=0,r=t.length;e<r;e++){let n=t[e];p.on(n.event,n.obj,n.callBack,n.capture)}}unset(){let t=this.events;for(let e=0,r=t.length;e<r;e++){let n=t[e];p.off(n.event,n.obj,n.callBack,n.capture)}}reset(){this.unset(),this.events=[]}};var F=class{constructor(t,e){this.remoteStates=[],this.callBackStates=[];let r=this.convertStates(e);this.addStatesToTarget(t,r)}addStates(t,e){let r=this.convertStates(e);this.addStatesToTarget(t,r)}createState(t,e,r,n){return{action:t,state:e,callBack:r,targetId:n,token:null,callBackToken:null}}convertStates(t){let e=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if(r==="remotes"){this.setupRemoteStates(t[r],e);continue}let n=null,i=null,o=t[r];o&&typeof o=="object"&&(i=o.callBack,n=o.id||o.targetId,o=o.state),e.push(this.createState(r,o,i,n))}return e}setupRemoteStates(t,e){for(let r=0,n=t.length;r<n;r++){let i=t[r];if(i)for(let o in i){if(!Object.prototype.hasOwnProperty.call(i,o)||o==="id")continue;let a=null,l=i[o],c=l!==null?l:void 0;c&&typeof c=="object"&&(a=c.callBack,c=c.state),e.push(this.createState(o,c,a,i.id))}}}removeRemoteStates(t){let e=this.remoteStates;e&&this.removeActions(t,e)}removeLocalStates(t){let e=this.callBackStates;if(e)for(let r=0,n=e.length;r<n;r++){let i=e[r];i.callBackToken&&(t.off(i.action,i.callBackToken),i.callBackToken=null)}}removeActions(t,e){if(!(e.length<1))for(let r=0,n=e.length;r<n;r++){let i=e[r];i.token&&this.unbindRemoteState(t,i.token),i.targetId&&k.remove(i.targetId,i.action,i.token)}}restore(t){k.restore(t.id,t);let e=this.callBackStates;if(e)for(let n=0,i=e.length;n<i;n++){let o=e[n];o.callBackToken=t.on(o.action,o.callBack)}let r=this.remoteStates;if(r)for(let n=0,i=r.length;n<i;n++){let o=r[n];o.token=this.bindRemoteState(t,o.action,o.targetId)}}bindRemoteState(t,e,r){let n=k.getTarget(r);return t.link(n,e)}unbindRemoteState(t,e){t.unlink(e)}addStatesToTarget(t,e){let r=this.remoteStates;for(let n=0,i=e.length;n<i;n++){let o=e[n],a=this.addAction(t,o);o.targetId&&(o.token=a,r.push(o))}}addAction(t,e){let r,n=e.action,i=e.targetId;i&&(r=this.bindRemoteState(t,n,i)),typeof e.state<"u"&&t.addAction(n,e.state);let o=e.callBack;return typeof o=="function"&&(e.callBackToken=t.on(n,o),this.callBackStates.push(e)),r||null}};var x=class extends W{constructor(t,e,r){super(t,e,r),this.isComponent=!0,this.stateResumed=!1,this.stateTargetId=null,this._externalData=this._externalData??!1,this._setupData()}setData(){return null}_setupData(){if(this.data)return;let t=this.setData();t&&(this.data=t)}resumeScope(t){if(this._resumeData(t.data),this.state=t.state,this.stateHelper=t.stateHelper,this.persistedChildren=t.persistedChildren,t.context){let e=t.context.data;e&&e._refreshState===!0&&e._retainState!==!0||(this.context=t.context,this._contextResumed=!0)}this.id=t.id,this._refreshContextData()}_resumeData(t){E.resume(this,t)}_refreshData(){E.refresh(this)}_refreshContextData(){E.refreshContext(this)}initialize(){this.setupContext(),this.addStates(),this.beforeSetup()}afterLayout(){this.addEvents(),this.afterSetup()}setupStateTarget(t){let e=t||this.stateTargetId||this.id;this.state=k.attach(String(e))}setupStates(){return{}}addStates(){let t=this.state;if(t){this.stateResumed=!0,this.stateHelper?.restore(t);return}let e=this.setupStates();L.isEmpty(e)||this.setStateHelper(e)}setStateHelper(t={}){this.state||(this.setupStateTarget(),this.stateHelper=new F(this.state??{},t))}addState(t){!this.stateHelper||this.stateResumed===!0||this.stateHelper.addStates(this.state,t)}removeStates(){let t=this.state;if(!t)return;let e=this.stateHelper;e&&(e.removeRemoteStates(t),e.removeLocalStates(t)),k.detach(String(t.id)),this.stateResumed=!1}onFlush(t){let e=this.data??this?.context?.data??null;e&&e.onFlush(t)}setEventHelper(){this.events||(this.events=new N)}setupEvents(){return[]}addEvents(){let t=this.setupEvents();t.length<1||(this.setEventHelper(),this.events&&this.events.addEvents(t))}removeEvents(){let t=this.events;t&&t.reset()}prepareDestroy(){this.persistedCount=0,this.rendered=!1;try{this.beforeDestroy()}catch(t){console.error("Error in beforeDestroy:",t)}this.removeEvents(),this.removeStates(),this.removeContext(),this.data&&this.persist!==!0&&this.data.unlink()}};var xt={created:"onCreated",setStates:"setupStates",state:"setupStates",events:"setupEvents",before:"beforeSetup",render:"render",after:"afterSetup",destroy:"beforeDestroy"},St=(s,t)=>typeof s!="function"&&t==="setupStates"?()=>s:s;var rt=(s,t)=>{if(!s)return t;let e=Object.keys(s);for(let r=0,n=e.length;r<n;r++){let i=e[r],o=s[i],a=xt[i]||i;t[a]=St(o,a)}return t},ge=s=>rt(s,{}),ye=0,vt=(s,t)=>{class e extends s{}return Object.assign(e.prototype,t),e.prototype._classId="jot"+ye++,e},B=(s,t=x)=>{s||(s={});let e,r=typeof s;return r==="object"&&s.render?(e=ge(s),vt(t,e)):(e={render:r==="function"?s:()=>s},vt(t,e))};var st=(s,t)=>({attr:s,directive:t});var S=(s,t)=>({key:s,value:t});var wt=(s,t,e,r)=>({tag:s,attr:t,directives:e,children:r});var Ct=null,xe=()=>Ct||(Ct=q.get("watch")),v=class{static getTag(t){return t.tag||"div"}static setupChildren(t){t.nest&&(t.children=t.nest,delete t.nest)}static setElementContent(t,e,r,n){return t==="text"?(n.push({tag:"text",textContent:e}),!0):t==="html"||t==="innerHTML"?(r.push(S("innerHTML",e)),!0):!1}static setTextAsWatcher(t,e,r){t.push(st(S(e,A.getWatcherSettings(r,ft(e))),xe()))}static setButtonType(t,e,r){if(t==="button"){let n=e.type||"button";r.push(S("type",n))}}static parse(t,e){let r=[],n=[],i=t.tag||"div";i==="button"&&r.push(S("type",t.type||"button"));let o=[],a,l;for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c)||c==="tag"||(a=t[c],a==null))continue;if(c==="children"||c==="nest"){if(Array.isArray(a))for(let d=0;d<a.length;d++)o.push(a[d]);else o.push(a);continue}if((l=q.get(c))!==null){n.push(st(S(c,a),l));continue}let h=typeof a;if(h==="object"){if(A.isWatching(a)){this.setTextAsWatcher(n,c,a);continue}o.push(a);continue}if(h==="function"){let d=a,m=function(g){d.call(this,g,e)};m.originalCallback=d,r.push(S(c,m));continue}if(h==="string"&&a.includes("[[")){this.setTextAsWatcher(n,c,a);continue}if(c==="text"){o.push({tag:"text",textContent:a});continue}if(c==="html"||c==="innerHTML"){r.push(S("innerHTML",a));continue}r.push(S(c,a))}return wt(i,r,n,o)}};var D=class{build(t,e,r){}setupComponent(t,e,r){let n=r?.getChildScope();t.parent=n,n&&n.persist===!0&&t.persist!==!1&&(t.persist=!0,t.parent.addPersistedChild(t)),t.cache&&n&&(n[t.cache]=t),t.setup(e)}buildComponent(t){let e=t.prepareLayout(),r=this.build(e,t.container,t);return t.afterBuild(),t.component&&typeof t.onCreated=="function"&&t.onCreated(t),r}createComponent(t,e,r){return this.setupComponent(t,e,r),this.buildComponent(t),t}setDirectives(t,e,r){}removeNode(t){}removeAll(t){}};var Se=s=>{for(let e in s)if(e!=="tag"&&e!=="textContent")return!1;let t=s.textContent;return typeof t=="string"?t.indexOf("[[")===-1:typeof t!="object"},Q=class extends D{build(t,e,r){let n=y.createDocFragment();if(Array.isArray(t))for(let i=0,o=t.length;i<o;i++)this.buildElement(t[i],n,r);else this.buildElement(t,n,r);return e&&typeof e=="object"&&e.appendChild(n),n}buildElement(t,e,r){if(t){if(t.isUnit===!0){this.createComponent(t,e,r);return}this.createElement(t,e,r)}}createElement(t,e,r){if(t.tag==="text"&&Se(t)){let c=t.textContent;y.createText(c??"",e);return}let n=r?.getChildScope();if(t.data||t.state){this.createTempComponent(t,e,n);return}let i=v.parse(t,n),o=this.createNode(i,e,n);this.cache(o,t.cache,r);let a=i.children;for(let c=0,h=a.length;c<h;c++){let d=a[c];d!==null&&this.buildElement(d,o,r)}let l=i.directives;l.length&&this.setDirectives(o,l,n)}createTempComponent(t,e,r){let n={cache:t.cache,key:t.key,persist:t.persist,_externalData:!0,setData:()=>t.data,...rt(t.methods||{},{}),render(){return{...t,data:null,state:null,methods:null,key:null,persist:null}}};t.state&&(n.setupStateTarget=function(o){this.state=t.state});let i=new x(n);this.createComponent(i,e,r)}setDirectives(t,e,r){for(let n=0,i=e.length;n<i;n++)this.handleDirective(t,e[n],r)}handleDirective(t,e,r){e.directive(t,e.attr.value,r)}cache(t,e,r){r&&e&&r.cacheEle(t,e)}createNode(t,e,r){let n=t.tag;if(n==="text"){let i=t.attr[0],o=i?i.value:"";return y.createText(o,e)}else if(n==="comment"){let i=t.attr[0],o=i?i.value:"";return y.createComment(o,e)}return y.create(n,t.attr,e,r)}removeNode(t){y.removeElement(t)}removeAll(t){y.removeAll(t)}};var ve=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source"]),we=/[&<>"]/,nt=s=>{let t=typeof s=="string"?s:String(s);return we.test(t)?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t},O=class{static create(t,e=[],r=""){let n="",i="";for(let o=0,a=e.length;o<a;o++){let l=e[o],c=l.key,h=l.value;if(c==="text"||c==="textContent"){n+=nt(h);continue}if(c==="html"||c==="innerHTML"){n+=h;continue}if(typeof h=="function")continue;let d=c+'="'+nt(h)+'"';i?i+=" "+d:i=d}return ve.has(t)?"<"+t+" "+i+" />":"<"+t+" "+i+">"+n+r+"</"+t+">"}static createText(t){return nt(t)}static createComment(t){return"<!-- "+t+" -->"}};var z=class extends D{build(t,e,r){if(Array.isArray(t)){let n="";for(let i=0,o=t.length;i<o;i++)n+=this.buildElement(t[i],r);return n}return this.buildElement(t,r)}createComponent(t,e,r){return this.setupComponent(t,e,r),this.buildComponent(t)}buildElement(t,e){return t?t.isUnit===!0?this.createComponent(t,{},e):this.createElement(t,e):""}createElement(t,e){let r=v.parse(t,e),n=r.children,i="";for(let o=0,a=n.length;o<a;o++){let l=n[o];l!==null&&(i+=this.buildElement(l,e))}return this.createNode(r,i)}createNode(t,e){let r=t.tag;if(r==="text"){let n=t.attr[0],i=n?n.value:"";return O.createText(i)}else if(r==="comment"){let n=t.attr[0],i=n?n.value:"";return O.createComment(i)}return O.create(r,t.attr,e)}removeAll(t){}};var j=class{static browserIsSupported(){return typeof window<"u"&&typeof document=="object"}static setup(){return this.browserIsSupported()?new Q:new z}};var T=j.setup(),Ce=s=>typeof s=="object"&&s.isUnit===!0,ke=s=>{let t=B(s);return t?new t:null},u=class{static render(t,e,r){return!t||(Ce(t)||(t=ke(t)),!t)?null:T.createComponent(t,e,r)}static build(t,e,r){return T.build(t,e,r)}static rebuild(t,e,r){return T.removeAll(e),this.build(t,e,r)}static setDirectives(t,e,r){T.setDirectives(t,e,r)}static createNode(t,e,r){return T.createNode(t,e,r)}static removeNode(t){T.removeNode(t)}static removeAll(t){T.removeAll(t)}};ut.augment({buildLayout(s,t,e){u.build(s,t,e)}});var it=[],Te=s=>it.indexOf(s)!==-1,be=s=>({tag:"script",src:s.src,async:!1,load(t){it.push(s.src);let e=s.load;e&&e()}}),Pe=s=>({tag:"link",rel:"stylesheet",type:"text/css",href:s.src,load(t){it.push(s.src);let e=s.load;e&&e()}}),$=class{constructor(t){this.percent=0,this.loaded=0,this.total=0,this.callBack=t||null}add(t){this.total++;let e,r=this.update.bind(this);t.indexOf(".css")!==-1?e=Pe({load:r,src:t}):e=be({load:r,src:t}),u.build(e,document.head)}addFiles(t){t&&t.forEach(e=>{Te(e)||this.add(e)})}update(){if(this.updateProgress()<100)return;let e=this.callBack;e&&e()}updateProgress(){return++this.loaded,this.percent=Math.floor(this.loaded/this.total*100)}};var Re=s=>s?typeof s?.prototype?.constructor=="function":!1,b=class{static process(t,e){let r=t.default;return r?e.callback?e.callback(r):(Re(r)?r=new r:r=r(),r.isUnit===!0&&(r.route=e.route,e.persist&&(r.persist=!0)),r):null}static render(t,e,r){let n=u.build(t,null,r),i=n.firstChild||t?.panel;return e.after(n),i}};var Y=class{static load(t,e,r){return t.then(n=>(e&&e(n),n)).catch(n=>{console.error("Error loading module:",n),r&&r(n)})}};var Ie=s=>({tag:"comment",textContent:"import placeholder",onCreated:s.onCreated}),P=new pt(100),Ae=s=>{if(P.has(s)){let r=P.get(s);return r&&typeof r.then!="function"?Promise.resolve(r):r}let t=typeof s,e;if(t==="string")e=import(s);else if(t==="function")e=s();else return s;return e.then(r=>{P.set(s,r)}).catch(()=>{P.delete(s)}),P.set(s,e),e},Ee=s=>{if(!P.has(s))return null;let t=P.get(s);return t&&typeof t.then=="function"?null:t||null},kt=B({declareProps(){this.loaded=!1,this.errorRoot=null,this.generation=0},render(){return Ie({onCreated:s=>{if(this.src){if(this.layout){this.layoutRoot=b.render(this.layout,this.panel,this.parent);return}if(this.depends){new $(()=>{this.loadAndRender(s)}).addFiles(this.depends);return}this.loadAndRender(s)}}})},loadAndRender(s){let t=this.generation,e=Ee(this.src);if(e){this.renderModule(s,e);return}Y.load(Ae(this.src),r=>{t===this.generation&&this.renderModule(s,r)},r=>{t===this.generation&&(this.loaded=!1,this.renderError(s,r))})},renderError(s,t){let e=()=>this.retry(s),r=this.fallback,n=typeof r=="function"?r(t,e):r||{class:"base-import-error",children:[{tag:"span",text:"Failed to load content."},{tag:"button",type:"button",text:"Retry",click:e}]};n&&(this.errorRoot=b.render(n,s,this.parent))},retry(s){this.removeErrorLayout(),this.loadAndRender(s)},removeErrorLayout(){this.errorRoot&&(u.removeNode(this.errorRoot),this.errorRoot=null)},renderModule(s,t){this.loaded=!0;let e=this.layout||b.process(t,{callback:this.callback,route:this.route,persist:this.persist});this.layout=e,this.layoutRoot=b.render(e,s,this.parent)},shouldUpdate(s){return this.updateLayout===!0?!0:this.updateLayout=s&&s.isUnit&&typeof s.update=="function"},updateModuleLayout(s){let t=this.layout;this.shouldUpdate(t)&&t&&t.update(s)},update(s){this.loaded===!0&&this.updateModuleLayout(s)},destroy(){this.generation++,this.removeErrorLayout(),this.layoutRoot&&(u.removeNode(this.layoutRoot),this.persist!==!0&&(this.layoutRoot=null,this.layout=null,this.loaded=!1,this.updateLayout=!1))}});var Tt=s=>{let t=typeof s;return(t==="string"||t==="function"||s instanceof Promise)&&(s={src:s}),new kt(s)};var Be=0,_=class{constructor(t){this.router=t,this.locationId="base-app-router-"+Be++,this.callBack=this.check.bind(this)}setup(){return this.addEvent(),this}check(t){}getScrollPosition(){return{x:window.scrollX,y:window.scrollY}}scrollTo(t){window.scrollTo(t.x,t.y)}addEvent(){return this}};var Pt=typeof navigator<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent||"")&&!window.MSStream,bt=()=>{Pt&&requestAnimationFrame(()=>requestAnimationFrame(()=>{let s=window.scrollX,t=window.scrollY;window.scrollTo(0,t+1),document.documentElement.offsetHeight,window.scrollTo(s,t)}))},J=class extends _{addEvent(){return p.on("popstate",window,this.callBack),Pt&&(this.pageShowCallBack=this.onPageShow.bind(this),p.on("pageshow",window,this.pageShowCallBack)),this}removeEvent(){return p.off("popstate",window,this.callBack),this.pageShowCallBack&&p.off("pageshow",window,this.pageShowCallBack),this}onPageShow(t){t.persisted&&bt()}check(t){let e=t.state;if(!e||e.location!==this.locationId)return!1;t.preventDefault(),t.stopPropagation(),this.router.checkActiveRoutes(e.uri);let r=e.scrollPosition;r&&this.scrollTo(r),bt()}createState(t,e={}){let r=this.getScrollPosition();return e=e===null?{}:e,{location:this.locationId,...e,scrollPosition:r,uri:t}}addState(t,e,r=!1){let n=window.history,i=n.state;if(i&&i.uri===t)return this;!r&&i&&i.location===this.locationId&&(i.scrollPosition=this.getScrollPosition(),n.replaceState(i,"",window.location.href));let o=this.createState(t,e);return r||(o.scrollPosition={x:0,y:0}),n[r===!1?"pushState":"replaceState"](o,null,t),this}};var K={removeSlashes(s){return typeof s!="string"?"":(s[0]==="/"&&(s=s.substring(1)),s[s.length-1]==="/"&&(s=s.substring(0,s.length-1)),s)},getHashUri(s){if(typeof s!="string")return"";let t=s.indexOf("#");return t===-1?"":s.substring(t+1)}};var V=class extends _{addEvent(){return p.on("hashchange",window,this.callBack),this}removeEvent(){return p.off("hashchange",window,this.callBack),this}check(t){this.router.checkActiveRoutes(K.getHashUri(t.newURL))}addState(t,e,r){return window.location.hash=t,this}};var X=class{static browserIsSupported(){return typeof window=="object"&&"history"in window&&"pushState"in window.history}static setup(t){return this.browserIsSupported()?new J(t).setup():new V(t).setup()}};var ot=class extends x{getChildScope(){return this.parent}},Rt=s=>B(s,ot);var Z=class{constructor(t,e){this.route=t,this.template=e.component,this.component=null,this.hasTemplate=!1,this.setup=!1,this.container=e.container,this.persist=e.persist,this.parent=e.parent}focus(t){this.setup===!1&&(this.route&&typeof this.route.flushPending=="function"&&this.route.flushPending(),this.create()),this.update(t)}setupTemplate(){let e=typeof this.template;e==="function"?this.initializeComponent():e==="object"&&this.initializeTemplateObject(),this.hasTemplate=!0}initializeComponent(){this.template=this.template(),this.initializeTemplateObject()}transferSettings(t){this.persist=this.persist&&t.persist!==!1,Object.assign(t,{route:this.route,persist:this.persist}),this.component=t}initializeTemplateObject(){let t=this.template;if(!t)return;t.isUnit||(this.template=new(Rt(t)));let e=this.template;this.transferSettings(e)}create(){if(this.setupTemplate(),!this.hasTemplate)return;this.setup=!0;let t=this.component;u.render(t,this.container,this.parent)}remove(){if(this.setup!==!0)return;this.setup=!1;let t=this.component;t&&(typeof t.destroy=="function"&&t.destroy(),this.component=null)}update(t){let e=this.component;e&&typeof e.update=="function"&&e.update(t)}};var It=s=>{if(!s.length)return null;let t={};for(let e=0,r=s.length;e<r;e++)t[s[e]]=null;return t},At=s=>{let t=[];if(!s)return t;let e=/[*?]/g;s=s.replace(e,"");let r=/:(.[^./?&($]+)\?*/g,n=s.match(r);if(n===null)return t;for(let i=0,o=n.length;i<o;i++){let a=n[i];a&&t.push(a.replace(":",""))}return t};var De=/(\/):[^/(]*?\?/g,Oe=/\//g,_e=/(\?\/+\*?)/g,Ue=/(:[^/?&($]+)/g,He=/(\*)/g,Le=s=>s.replace(De,t=>t.replace(Oe,"(?:$|/)")),Me=s=>(s=s.replace(_e,"?/*"),s.replace(Ue,t=>t.indexOf(".")<0?"([^/|?]+)":"([^/|?]+.*)")),qe=s=>s.replace(He,".*"),Ge=(s,t)=>s+=t[t.length-1]==="*"?"":"$",Et=s=>{if(!s)return"";let t=s;return t=Le(t),t=Me(t),t=qe(t),t=Ge(t,s),t};var We=0,Bt=(s,t="")=>{let e=s||"",r=typeof t=="string"&&t?t:e,n=null,i=[],o=r.match(/#\{([^}]+)\}/);o&&o[1]&&(n=o[1].trim(),r=r.replace(o[0],""),e=e.replace(o[0],""));let a=r.indexOf("?");if(a>-1){let h=r.substring(a+1);if(h.indexOf("=")>-1){let d=h.split("&");for(let g=0,R=d.length;g<R;g++){let H=d[g];if(!H)continue;let[fe,pe=""]=H.split("="),ht=(fe||"").trim();ht&&i.push({key:ht,value:(pe||"").trim()})}r=r.substring(0,a);let m=e.indexOf("?");m>-1&&(e=e.substring(0,m))}}let l=n!==null||i.length>0;return l&&!r&&(e="*"),{uriPath:e,requiredHash:n,requiredQuery:i,hasConditions:l}},Ne=s=>{if(!s)return"";let t=s.indexOf("?"),e=s.indexOf("#"),r=s.length;return t>-1&&(r=t),e>-1&&e<r&&(r=e),s.substring(0,r)},Fe=s=>{if(!s)return"";let t=s.indexOf("#");return t===-1?"":s.substring(t+1)},Qe=s=>{if(!s)return"";let t=s.indexOf("?");if(t===-1)return"";let e=s.indexOf("#",t);return e===-1?s.substring(t+1):s.substring(t+1,e)},tt=class extends gt{constructor(t,e){let r=t.baseUri,i=Bt(r,t.rawUri).uriPath,o=At(i),a=It(o),l=super(a);return this.uri=r,this.matchUri=i,this.paramKeys=o,this.titleCallBack=e,this.setupRoute(t),this.set("active",!1),l}setup(){this.stage={},this.routeId=null,this.uri=null,this.rawUri=null,this.matchUri="",this.uriQuery=/$^/,this.controller=null,this.paramKeys=[],this.requiredHash=null,this.requiredQuery=[],this.hasConditions=!1,this.titleCallBack=()=>{},this.path=null,this.referralPath=null,this.params=null,this.callBack=null,this.title=null,this.preventScroll=!1,this.scrollTo=null}setupRoute(t){this.routeId=t.id||"bs-rte-"+We++,this.rawUri=t.rawUri||null,this.path=null,this.referralPath=null;let e=Bt(this.uri,this.rawUri||"");this.matchUri=e.uriPath,this.requiredHash=e.requiredHash,this.requiredQuery=e.requiredQuery,this.hasConditions=e.hasConditions;let r=Et(this.matchUri);this.uriQuery=new RegExp("^"+r),this.params=null,this.setupComponentHelper(t),this.callBack=t.callBack,this.title=t.title,this.preventScroll=t.preventScroll||!1,this.scrollTo=t.scrollTo||null}setTitle(t){this.title=t,this.titleCallBack(this,t)}deactivate(){this.set("active",!1);let t=this.controller;t&&t.remove()}getLayout(t){if(t.component)return t.component;let e=t.import;return e?Tt(e):null}setupComponentHelper(t){let e=this.getLayout(t);if(!e)return;let{container:r,persist:n,parent:i}=t,o={component:e,container:r,persist:n,parent:i},a=mt(this);this.controller=new Z(a,o)}resumeRoute(t){let e=this.controller;e&&(e.container=t)}setPath(t,e){this.path=t,this.referralPath=e}select(){this.set("active",!0);let t=this.stage,e=this.callBack;typeof e=="function"&&e(t);let r=this.controller;r&&r.focus(t);let n=this.path;if(!n)return;let i=n.split("#")[1];i&&this.scrollToId(i)}scrollToId(t){if(!t)return;let e=document.getElementById(t);e&&e.scrollIntoView(!0)}match(t){let e=!1,r=Ne(t),n=this.uriQuery||/$^/,i=r.match(n);return i===null?(this.resetParams(),e):Array.isArray(i)?this.matchConditions(t)?(this.setParams(i,1),e=i,e):(this.resetParams(),!1):e}matchConditions(t){if(!this.hasConditions)return!0;if(this.requiredHash!==null&&Fe(t)!==this.requiredHash)return!1;let e=this.requiredQuery||[];if(e.length>0){let r=Qe(t);if(!r)return!1;let n=new URLSearchParams(r);for(let i=0,o=e.length;i<o;i++){let a=e[i];if(!n.has(a.key)||n.get(a.key)!==a.value)return!1}}return!0}resetParams(){this.stage={}}setParams(t,e=0){if(!Array.isArray(t))return;let r=this.paramKeys;if(!r)return;let n={};for(let i=0,o=r.length;i<o;i++){let a=r[i];typeof a<"u"&&(n[a]=t[i+e])}this.set(n)}getParams(){return this.stage}};var ze=s=>{let t=/\w\S*/;return s.replace(t,e=>e.charAt(0).toUpperCase()+e.substring(1).toLowerCase())},je=s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),$e=(s,t)=>{if(s.indexOf(":")===-1)return s;let e=t.stage;for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let n=new RegExp(":"+je(r),"gi");s=s.replace(n,()=>e[r])}return s},Ye=(s,t)=>t&&(typeof t=="function"&&(t=t(s.stage)),t=$e(t,s),ze(t)),Je=(s,t)=>(t!==""&&(s+=" - "+t),s),Dt=(s,t,e)=>t&&(t=Ye(s,t),Je(t,e));var Ke=()=>typeof window<"u"?window.location:{},at=class{constructor(){this.version="1.0.2",this.baseURI="/",this.title="",this.lastPath=null,this.path=null,this.lastMatchedRoute=null,this.lastScrollGroup=null,this.currentGroupId=null,this.scrollWaitToken=0,this.history=null,this.callBackLink=null,this.location=Ke(),this.routes=[],this.switches=new Map,this.switchCount=0,this.data=new yt({path:""})}setupHistory(){this.history=X.setup(this)}createRoute(t){let e=t.uri||"*";return t.rawUri=e,t.baseUri=this.createURI(e),new tt(t,this.updateTitle.bind(this))}add(t){if(typeof t!="object"){let r=arguments;t={uri:r[0],component:r[1],callBack:r[2],title:r[3],id:r[4],container:r[5]}}let e=this.createRoute(t);return this.addRoute(e),e}addRoute(t){this.routes.push(t),this.checkRoute(t,this.getPath())}resume(t,e){t.resumeRoute(e),this.addRoute(t)}getBasePath(){if(!this.basePath){let t=this.baseURI||"";t[t.length-1]!=="/"&&(t+="/"),this.basePath=t}return this.basePath}createURI(t){let e=this.getBasePath(),r=K.removeSlashes(t);return r=r.replace(/^(?:\.\/)+/,""),r==="."&&(r=""),e+r}getRoute(t){let e=this.routes,r=e.length;if(r>0)for(let n=0;n<r;n++){let i=e[n];if(i.uri===t)return i}return null}getRouteById(t){let e=this.routes,r=e.length;if(r>0)for(let n=0;n<r;n++){let i=e[n];if(i.routeId===t)return i}return!1}removeRoute(t){let e=this.routes,r=e.indexOf(t);r>-1&&e.splice(r,1),this.lastMatchedRoute===t&&(this.lastMatchedRoute=null),t&&typeof t.deactivate=="function"&&t.deactivate()}addSwitch(t){let e=this.switchCount++,r=this.getSwitchGroup(e);for(let n=0,i=t.length;n<i;n++){let o=t[n];if(!o)continue;let a=this.createRoute(o);r.push(a)}return this.checkGroupForRegistration(e,r),e}resumeSwitch(t,e){let r=this.switchCount++,n=this.getSwitchGroup(r);for(let i=0,o=t.length;i<o;i++){let l=t[i].component.route;l.resumeRoute(e),n.push(l)}return this.checkGroupForRegistration(r,n),r}checkGroupForRegistration(t,e){let r=this.scrollIntent,n=this.currentGroupId;this.scrollIntent=null,this.currentGroupId=t,this.checkGroup(e,this.getPath()),this.currentGroupId=n;let i=this.scrollIntent;i&&i.type==="target"&&i.groupId!==null&&i.groupId!==void 0&&(this.lastScrollGroup=i.groupId),this.scrollIntent=r}getSwitchGroup(t){let e=this.switches.get(t);if(e)return e;let r=[];return this.switches.set(t,r),r}removeSwitch(t){this.switches.delete(t)}remove(t){t=this.createURI(t);let e=this.getRoute(t);return e&&this.removeRoute(e),this}setup(t,e){this.baseURI=t||"/",this.updateBaseTag(this.baseURI),this.title=typeof e<"u"?e:"",this.setupHistory(),this.data.path=this.getPath(),this.callBackLink=this.checkLink.bind(this),p.on("click",document,this.callBackLink);let r=this.getEndPoint();return this.navigate(r,null,!0),this}updateBaseTag(t){let e=document.getElementsByTagName("base");e.length&&(e[0].href=t)}getParentLink(t){return t.closest("a")}checkLink(t){if(t.ctrlKey===!0)return!0;let e=t.target.closest("a");if(!e||e.target==="_blank"||e.dataset.cancelRoute)return!0;let r=e.getAttribute("href");if(r!==null){let n=this.baseURI,i=n!=="/"?r.replace(n,""):r,o=e.dataset.replace==="true";return this.navigate(i,null,o),t.preventDefault(),t.stopPropagation(),!1}}reset(){let t=this.routes;for(let e=0,r=t.length;e<r;e++){let n=t[e];n&&typeof n.deactivate=="function"&&n.deactivate()}return this.routes=[],this.switches=new Map,this.switchCount=0,this.lastMatchedRoute=null,this}activate(){return this.checkActiveRoutes(),this}navigate(t,e,r){return t=this.createURI(t),this.history.addState(t,e,r),this.updatePath(),this.activate(),this}updatePath(){let t=this.getPath();this.data.path=t}updateTitle(t){if(!t||!t.title)return this;let e=t.title;return document.title=Dt(t,e,this.title),this}checkActiveRoutes(t){if(this.lastPath=this.path,t=t||this.getPath(),this.path=t,this.updatePath(),this.scrollIntent=null,this.scrollWaitToken++,this.lastMatchedRoute&&this.check(this.lastMatchedRoute,t))this.select(this.lastMatchedRoute);else{let e=this.routes,r=e.length;for(let n=0;n<r;n++){let i=e[n];typeof i>"u"||this.checkRoute(i,t)}}this.checkSwitches(t),this.applyScrollIntent()}checkSwitches(t){let e=this.switches;for(let[r,n]of e.entries())this.currentGroupId=r,this.checkGroup(n,t);this.currentGroupId=null}checkGroup(t,e){let r=t.length;if(!r)return;let n=null;for(let a=0;a<r;a++)if(t[a].get("active")){n=t[a];break}let i=!1;n&&(i=n.match(e)!==!1);let o;for(let a=0;a<r;a++){let l=t[a];if(typeof l>"u")continue;(l===n?i:l.match(e))!==!1&&o===void 0&&l.controller&&(o=l)}if(!o){n&&n!==t[0]&&n.deactivate(),this.select(t[0],!0);return}this.select(o),n&&n!==o&&n.deactivate();for(let a=0;a<r;a++){let l=t[a];l&&l!==o&&l!==n&&l.deactivate()}}checkRoute(t,e){let r=this.check(t,e);return r!==!1?(this.select(t),this.lastMatchedRoute=t):t.deactivate(),r}check(t,e){return t?(e=e||this.getPath(),t.match(e)!==!1):!1}select(t,e){t&&(t.setPath(this.path,this.lastPath),t.select(),this.updateTitle(t),e!==!0&&(t.scrollTo?this.scrollIntent={type:"target",selector:t.scrollTo,groupId:this.currentGroupId}:t.preventScroll!==!0&&!this.scrollIntent&&(this.scrollIntent={type:"top"})))}applyScrollIntent(){let t=this.scrollIntent;if(this.scrollIntent=null,!t)return;if(t.type==="top"){this.lastScrollGroup=null,this.checkToScroll(),this.reassertScrollTop();return}if(t.type!=="target")return;let e=t.groupId!==null&&t.groupId!==void 0,r=e&&this.lastScrollGroup===t.groupId;r||(typeof window<"u"&&window.scrollTo(0,0),this.reassertScrollTop()),this.lastScrollGroup=e?t.groupId:null,r&&this.scrollToTarget(t.selector)}reassertScrollTop(){if(typeof window>"u"||typeof requestAnimationFrame>"u")return;let t=++this.scrollWaitToken;requestAnimationFrame(()=>{t===this.scrollWaitToken&&(window.scrollY>0||window.pageYOffset>0)&&window.scrollTo(0,0)})}scrollToTarget(t){if(typeof t!="string"||typeof document>"u")return;let e=a=>{let l=window.getComputedStyle(a),c=l.position==="sticky",h;if(c){let g=a.style.position;a.style.position="static",h=a.getBoundingClientRect().top+window.scrollY,a.style.position=g}else h=a.getBoundingClientRect().top+window.scrollY;let d=c&&parseFloat(l.top)||0,m=h-d;window.scrollY>m&&window.scrollTo(0,m)};if(typeof requestAnimationFrame>"u"){let a=document.querySelector(t);a&&e(a);return}let r=++this.scrollWaitToken,n=30,i=0,o=()=>{if(r!==this.scrollWaitToken)return;let a=document.querySelector(t);if(a){e(a);return}++i<n&&requestAnimationFrame(o)};requestAnimationFrame(o)}checkToScroll(){this.shouldScrollToTop()&&window.scrollTo(0,0)}cleanPath(t){return t?t.split("?")[0].split("#")[0]:"/"}shouldScrollToTop(){let t=this.cleanPath(this.getPath()),r=this.cleanPath(this.lastPath).split("/"),n=t.split("/");if(r.length!==n.length)return!0;let i=r[r.length-1],o=n[n.length-1];return i!==o}getEndPoint(){return this.getPath().replace(this.baseURI,"")||"/"}destroy(){typeof this.callBackLink=="function"&&p.off("click",document,this.callBackLink);let t=this.history;t&&typeof t.removeEvent=="function"&&t.removeEvent()}getPath(){let t=this.location,e=this.path=t.pathname;return this.history.type==="hash"?t.hash.replace("#",""):e+t.search+t.hash}},w=new at;var Ot=(s,t)=>({attr:s,value:t}),Ve=(s,t)=>{if(!t.startsWith(s))return!1;let e=t[s.length];return e===void 0||e==="/"||e==="#"||e==="."||e==="?"},ct=class extends x{beforeSetup(){this.selectedClass=this.activeClass||"active"}render(){let t=this.href,e=this.text,r=this.setupWatchers(t,e);return{tag:"a",class:this.class||this.className||null,onState:["selected",{[this.selectedClass]:!0}],href:this.getString(t),text:this.getString(e),nest:this.nest||this.children,dataStateSet:this.dataSet,"data-replace":this.replace?"true":null,watch:r}}getLinkPath(){return this?.panel?.pathname||null}getString(t){let e=typeof t;return e!=="object"&&e!=="undefined"?t:null}setupWatchers(t,e){let r=this.exact===!0,n=w.data,i=[];t&&typeof t=="object"&&i.push(Ot("href",t)),e&&typeof e=="object"&&i.push(Ot("text",e));let o=null,a="",l="";return i.push({value:["[[path]]",n],callBack:(c,h)=>{if(typeof h.pathname>"u")return;let d=h.getAttribute("href");if(d!==o){o=d;let g=h.pathname+h.search+h.hash;a=g,l=h.hash||h.search?g:h.pathname}let m=r?c===a:Ve(l,c);this.update(m)}}),i}setupStates(){return{selected:!1}}update(t){this.state&&(this.state.selected=t)}};var _t=(s,t,e=null)=>{if(!s)return;let r=null,n=!1,i=()=>{n||(n=!0,r&&(clearTimeout(r),r=null),p.off("animationend",s,o),s&&s.classList.remove(t),e&&e())},o=a=>{a.target===s&&i()};p.on("animationend",s,o),requestAnimationFrame(()=>{if(!s){i();return}s.classList.add(t);try{let a=window.getComputedStyle(s),l=parseFloat(a.animationDuration)*1e3||1e3,c=parseFloat(a.animationDelay)*1e3||0;r=setTimeout(i,l+c+100)}catch{r=setTimeout(i,1e3)}})},Ut=(s,t,e)=>{_t(s,t)},Ht=(s,t,e)=>{let r=()=>{s&&s.remove&&s.remove()};Xe(s,()=>_t(s,t,r),e)};f.addType("manual-destroy",s=>{if(!s)return!1;s.callBack(s.ele,s.parent)});var Xe=(s,t,e)=>{f.add(s,"manual-destroy",{ele:s,callBack:t,parent:e})};var G=(s,t,e,r)=>{if(Array.isArray(e[0])){e.forEach(n=>{n&&G(s,t,n,r)});return}Ze(s,t,e,r)},Ze=(s,t,e,r)=>{let n,i;if(e.length<3?[n,i]=e:[t,n,i]=e,!t||!n)return;if(typeof t.on!="function"){console.warn('Watcher directive: Data source does not have an "on" method. Make sure your component has data, state, or context.data initialized before using watchers like onSet, watch, or [[prop]] syntax.',s,t);return}let o=tr(s,n,i,r);I.watch(s,t,n,o)},tr=(s,t,e,r)=>typeof e=="object"?n=>{sr(s,e,n)}:n=>{rr(s,e,t,n,r)},Lt=new WeakSet,er=(s,t,e)=>{!s||!s.isUnit&&!s.isComponent||Lt.has(e)||Lt.add(e)},rr=(s,t,e,r,n)=>{let i=t(r,s,n);switch(typeof i){case"object":if(i===null)break;er(i,e,s),u.rebuild(i,s,n);break;case"string":let o=dt(s);if(o!=="textContent"){s.setAttribute(o,i);break}M.addHtml(s,i);break}},sr=(s,t,e)=>{let r=Object.keys(t);for(let n=0,i=r.length;n<i;n++){let o=r[n];o&&(t[o]===e?s.classList.add(o):s.classList.remove(o))}};var U=(s,t,e)=>{let r=C(e);G(s,r,t,e)};var Mt=(s,t,e)=>{t&&s.setAttribute("role",t)},nr=s=>(t,e)=>{let r=t?"true":"false";e.setAttribute(s,r)},qt=(s,t,e)=>{if(!t)return;let r=t.role;r&&(s.setAttribute("role",r),t.role=null);let n=Object.keys(t);for(let i=0,o=n.length;i<o;i++){let a=n[i],l=t[a];if(l===null)continue;let c="aria-"+a;if(Array.isArray(l)){let h=l.slice();h.push(nr(c)),U(s,h,e)}else s.setAttribute(c,l)}};var Gt=(s,t,e)=>{if(!t)return;let r=v.parse(t,e);y.addAttributes(s,r.attr,e),u.setDirectives(s,r.directives,e)};f.addType("context",s=>{if(!s)return!1;s.parent.removeContextBranch(s.branch)});var lt=s=>s?s.getContext():null,Wt=(s,t,e)=>{if(typeof t!="function")return;let r=lt(e),n=t(r);Gt(s,n,e)},Nt=(s,t,e)=>{if(typeof t!="function")return;let r=lt(e);t(r)},Ft=(s,t,e)=>{if(typeof t!="function"||!e)return;let r=lt(e),n=t(r);if(!n)return;let i=n[0];i&&(e.addContextBranch(i,n[1]),ir(s,i,e))},ir=(s,t,e)=>{f.add(s,"context",{branch:t,parent:e})};var Qt=(s,t,e)=>{};var zt=(s,t,e)=>{if(!e)return;let r=e._layout?e._layout:e.render();console.log("Debug: ","ele: ",s),console.log("Data: ",t),console.log("Layout: ",r),console.log("parent: ",e)};var jt=(s,t,e)=>{},$t=(s,t,e)=>{if(!t||!e)return;let r=t(e,s);r&&u.build(r,s,e)},Yt=(s,t,e)=>{if(!t||!e)return;let r=e.getId(t);s.id=r},Jt=(s,t,e)=>{if(!t||!e)return;let r=t(e.data,s);r&&u.build(r,s,e)},Kt=(s,t,e)=>{if(!t||!e)return;let r=t(e.state,s);r&&u.build(r,s,e)},Vt=(s,t,e)=>{if(!t||!e)return;let r=e.state,n=t(r);if(!e.state){e.setStateHelper(n);return}e.addState(n)},Xt=(s,t,e)=>{if(!(!t||!e)){if(e.events||e.setEventHelper(),t[2]){let r=t[2];t[2]=n=>{r(n,e)}}e.events.on(t[0],t[1],t[2],t[3])}};var Zt=(s,t,e)=>{let r,n,i;if(typeof t=="string"){if(r=C(e),!r)return;n=t}else if(Array.isArray(t))if(typeof t[0]!="object"){let o=C(e);if(!o)return;r=o,n=t[0],i=t[1]}else[r,n,i]=t;I.bind(s,r,n,i)};var et=(s,t,e)=>{G(s,e.state,t,e)};var te=s=>(t,e)=>{let[r,n,i="active"]=s,o=t===n?i:"";e.dataset[r]=o},ee=(s,t,e)=>{if(!t)return;let r=t.length-1,n=t[r],i=t.slice(0,r);i.push(te(n)),U(s,i,e)},re=(s,t,e)=>{if(!t)return;let r=t.length-1,n=t[r],i=t.slice(0,r);i.push(te(n)),et(s,i,e)};var se=s=>{for(let t=0,e=s.length;t<e;t++){let r=s[t];r&&r.remove()}s.length=0};f.addType("forScopes",s=>{if(!s)return!1;se(s.scopes)});var ne=(s,t,e)=>{let r,n,i,o;if(typeof t[0]=="string"||t.length<3){let h=C(e);if(!h)return;r=h,[n,i,o]=t}else[r,n,i,o]=t;let a=o!==!1,l=n+"[",c=a?{scopes:[]}:null;c&&f.add(s,"forScopes",c),I.watch(s,r,n,h=>{if(u.removeAll(s),c&&se(c.scopes),!h||h.length<1)return;let d=[];for(let m=0,g=h.length;m<g;m++){let R=a?r.scope(l+m+"]"):null;R&&c&&c.scopes.push(R);let H=i(h[m],m,R,d);H!==null&&d.push(H)}return u.build(d,s,e)})};var ie=(s,t,e)=>{let r=t[0];if(!r||r.length<1)return;let n=t[1],i=[];for(let o=0,a=r.length;o<a;o++){let l=r[o];if(!l)continue;let c=n(l,o);c!==null&&i.push(c)}u.build(i,s,e)};var oe=(s,t,e)=>{t(s,e)};f.addType("destroyed",s=>{if(!s)return!1;s.callBack(s.ele,s.parent)});var ae=(s,t,e)=>{or(s,t,e)},or=(s,t,e)=>{f.add(s,"destroyed",{ele:s,callBack:t,parent:e})};var ce=(s,t,e)=>{if(t)if(Array.isArray(t)&&typeof t[0]!="string")for(let r=0,n=t.length;r<n;r++)A.setup(s,t[r],e);else A.setup(s,t,e)};f.addType("routes",s=>{if(!s)return!1;let t=s.route;t&&w.removeRoute(t)});var he=(s,t,e)=>{if(t)if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++){let i=t[r];i&&le(s,i,e)}else le(s,t,e)},le=(s,t,e)=>{t.container=s,t.parent=e;let r=w.add(t);ar(s,r)},ar=(s,t)=>{f.add(s,"routes",{route:t})};var ue=(s,t,e)=>{};f.addType("switch",s=>{if(!s)return!1;let t=s.id;w.removeSwitch(t)});var de=(s,t,e)=>{let r=t[0];for(let i=0,o=t.length;i<o;i++){let a=t[i];a&&(a.container=s,a.parent=e)}let n=w.addSwitch(t);cr(s,n)},cr=(s,t)=>{f.add(s,"switch",{id:t})};q.add("cache",jt).add("onCreated",oe).add("onDestroyed",ae).add("bind",Zt).add("data",Qt).add("state",ue).add("onSet",U).add("onState",et).add("animateIn",Ut).add("animateOut",Ht).add("watch",ce).add("useParent",$t).add("useData",Jt).add("useState",Kt).add("getId",Yt).add("addState",Vt).add("addEvent",Xt).add("map",ie).add("for",ne).add("useContext",Nt).add("addContext",Ft).add("context",Wt).add("role",Mt).add("aria",qt).add("route",he).add("debug",zt).add("dataSet",ee).add("dataStateSet",re).add("switch",de);export{q as a,W as b,x as c,xt as d,St as e,B as f,u as g,Tt as h,ct as i,at as j,w as k};
|
|
2
|
-
//# sourceMappingURL=chunk-6VPBF5VF.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as p,c as N}from"./chunk-GNJZ6CEA.js";import{a as _}from"./chunk-W37VRHGC.js";import{a as G,c as M}from"./chunk-TFVBKZUB.js";import{b as m}from"./chunk-VRFEYZE5.js";import{a as q}from"./chunk-KRDITJSA.js";import{b as I,c as E}from"./chunk-TDLN57VY.js";var C={items:new Map,add(s,t){return this.items.set(s,t),this},get(s){return this.items.get(s)??null}};var xt=(...s)=>{for(let t=0,e=s.length;t<e;t++){let r=s[t];if(r)for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&C.add(n,r[n])}return C};I.addType("components",s=>{if(!s)return;let t=s.component;!t||!t.isUnit||(t.persistToken&&t.parent&&t.parent.removePersistedChild(t.persistToken),t.rendered===!0&&(t.prepareDestroy(),t.cleanUpAfterDestroy()))});var j=0,A=class{constructor(t,e,r){this.isUnit=!0,this.data=null,this.persist=null,this.nest=null,this.state=null,this.panel=null,this.parent=null,this.unitType=null,this._classId,this.id="",this.cached=[],this.init();let n,i;if(t==null)n={},i=[];else{let o=typeof t;o==="string"||o==="number"?(n={},i=[{tag:"text",textContent:t}]):Array.isArray(t)?(n={},i=t):(n=t||{},i=typeof e=="string"?[{tag:"text",textContent:e}]:e)}this.setupProps(n),this.children=i||[],this.persistedChildren={},this.persistedCount=0,this.onCreated(),this.rendered=!1,this.container=null}init(){this.id="cp-"+j++,this.unitType=this._classId||this.constructor.name.toLowerCase()}declareProps(){}addPersistedChild(t){let e=t.key,r=t.cache,n;r!=null&&e!=null?n="pk:"+r+":"+e:r!=null?n="pk:"+r:e!=null?n="pk:"+e:n="pc"+this.persistedCount++;let i=this.persistedChildren[n];return i&&t.unitType===i.unitType&&t.resumeScope(i),t.persistToken=n,this.persistedChildren[n]=t,n}removePersistedChild(t){this.rendered&&(!t||!this.persistedChildren[t]||delete this.persistedChildren[t])}setupProps(t){if(this.declareProps(),!(!t||typeof t!="object"))for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this[e]=t[e],e==="data"&&(this._externalData=!0))}getChildScope(){return this}getParentContext(){return this.parent?this.parent.getContext():null}setupContext(){if(this._contextResumed)return;let t=this.getParentContext(),e=this.setContext(t);if(e){this.context=e;return}this.context=t,this.setupAddingContext()}setupAddingContext(){let t=this.context,e=this.addContext(t);if(!e)return;let r=e[0];r&&(this.addingContext=!0,this.contextBranchName=r,this.addContextBranch(r,e[1]))}addContextBranch(t,e){this.context??(this.context={}),this.context[t]=e}setContext(t){return null}addContext(t){return null}removeContext(){this.addingContext&&this.removeContextBranch(this.contextBranchName)}removeContextBranch(t){t&&delete this.context[t]}getContext(){return this.context}onCreated(){}render(){return{}}_cacheRoot(t){return t&&(t.id||(t.id=this.getId()),t.cache="panel",t)}_createLayout(){return this.render()}prepareLayout(){let t=this._createLayout();return this._cacheRoot(t)}afterBuild(){I.add(this.panel,"components",{component:this}),this.rendered=!0,this.afterLayout()}afterLayout(){this.afterSetup()}if(t,e){return t?e||t:null}map(t,e){let r=[];if(!t||t.length<1)return r;for(let n=0,i=t.length;n<i;n++){let o=e(t[n],n);r.push(o)}return r}removeAll(t){return M.removeAll(t)}getId(t){let e=this.id;return typeof t=="string"&&(e+="-"+t),e}cacheEle(t,e){e&&(this[e]=t,this.cached.push(e))}initialize(){this.setupContext(),this.beforeSetup()}beforeSetup(){}afterSetup(){}setup(t){this.setContainer(t),this.initialize()}setContainer(t){this.container=t}_remove(){this.prepareDestroy();let t=this.panel;t&&M.removeElement(t),this.cleanUpAfterDestroy()}cleanUpAfterDestroy(){this.panel=null,this.container=null;let t=this.cached;for(let e=0,r=t.length;e<r;e++)this[t[e]]=null;this.cached=[],this.persist!==!0&&(this.persistedChildren={},this.persistToken=null)}prepareDestroy(){this.persistedCount=0,this.rendered=!1;try{this.beforeDestroy()}catch(t){console.error("Error in beforeDestroy:",t)}this.removeContext(),this.data&&this.persist!==!0&&typeof this.data.unlink=="function"&&this.data.unlink()}beforeDestroy(){}destroy(){this._remove()}};var v=class{static resume(t,e){if(t._externalData){this._resumeExternal(t,e);return}this._resumeOwned(t,e)}static _releaseLinks(t,e){!t||t===e||typeof t.unlink!="function"||t.unlink()}static refresh(t){let e=t.setData();e&&t.data&&t.data.set(e.stage),this.refreshContext(t)}static refreshContext(t){let e=t.context;if(!e||!e.data)return;let r=t.getParentContext();if(!r||!r.data)return;let n=r.data.stage,i=e.data.stage,o=null;for(let a in n){if(!Object.prototype.hasOwnProperty.call(n,a))continue;let c=n[a];c!==i[a]&&(o===null&&(o={}),o[a]=c)}o!==null&&(typeof e.data._silentSet=="function"?e.data._silentSet(o):e.data.set(o))}static _resumeExternal(t,e){let r=t.setData();if(!r){t.data=e;return}if(this._releaseLinks(e,r),e&&e.stage){let n=e._retainState||r._retainState,i=!n&&(e._refreshState||r._refreshState),o=this._buildExternalUpdates(e.stage,r.stage,n,i);_.isEmpty(o)||r._silentSet(o)}typeof r.flushPending=="function"&&r.flushPending(),t.data=r}static _buildExternalUpdates(t,e,r,n){let i={};for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;if(n){Object.prototype.hasOwnProperty.call(e,o)||(i[o]=t[o]);continue}let a=t[o];!r&&a==null||a!==e[o]&&(i[o]=a)}return i}static _resumeOwned(t,e){let r=t.data;if(!r){this._releaseLinks(e),t.data=e;return}if(e&&e._retainState){this._releaseLinks(r,e),this._releaseLinks(e),t.data=e;return}if(this._releaseLinks(e,r),e&&e.stage){let n=e._refreshState||t.data._refreshState,i=this._buildOwnedUpdates(e.stage,t.data.stage,n);_.isEmpty(i)||t.data._silentSet(i)}t.data&&typeof t.data.flushPending=="function"&&t.data.flushPending()}static _buildOwnedUpdates(t,e,r){let n={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;if(r){Object.prototype.hasOwnProperty.call(e,i)||(n[i]=t[i]);continue}let o=t[i];o!=null&&o!==e[i]&&(n[i]=o)}return n}};var D=class{constructor(){this.events=[]}addEvents(t){let e=t.length;if(!(e<1))for(let r=0;r<e;r++){let n=t[r];this.on(n[0],n[1],n[2],n[3])}}on(t,e,r,n){E.on(t,e,r,n),this.events.push({event:t,obj:e,callBack:r,capture:n})}off(t,e,r,n){E.off(t,e,r,n);let i,o=this.events;for(let a=0,c=o.length;a<c;a++)if(i=o[a],i.event===t&&i.obj===e&&i.callBack===r&&i.capture===n){o.splice(a,1);break}}set(){let t=this.events;for(let e=0,r=t.length;e<r;e++){let n=t[e];E.on(n.event,n.obj,n.callBack,n.capture)}}unset(){let t=this.events;for(let e=0,r=t.length;e<r;e++){let n=t[e];E.off(n.event,n.obj,n.callBack,n.capture)}}reset(){this.unset(),this.events=[]}};var O=class{constructor(t,e){this.remoteStates=[],this.callBackStates=[];let r=this.convertStates(e);this.addStatesToTarget(t,r)}addStates(t,e){let r=this.convertStates(e);this.addStatesToTarget(t,r)}createState(t,e,r,n){return{action:t,state:e,callBack:r,targetId:n,token:null,callBackToken:null}}convertStates(t){let e=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if(r==="remotes"){this.setupRemoteStates(t[r],e);continue}let n=null,i=null,o=t[r];o&&typeof o=="object"&&(i=o.callBack,n=o.id||o.targetId,o=o.state),e.push(this.createState(r,o,i,n))}return e}setupRemoteStates(t,e){for(let r=0,n=t.length;r<n;r++){let i=t[r];if(i)for(let o in i){if(!Object.prototype.hasOwnProperty.call(i,o)||o==="id")continue;let a=null,c=i[o],l=c!==null?c:void 0;l&&typeof l=="object"&&(a=l.callBack,l=l.state),e.push(this.createState(o,l,a,i.id))}}}removeRemoteStates(t){let e=this.remoteStates;e&&this.removeActions(t,e)}removeLocalStates(t){let e=this.callBackStates;if(e)for(let r=0,n=e.length;r<n;r++){let i=e[r];i.callBackToken&&(t.off(i.action,i.callBackToken),i.callBackToken=null)}}removeActions(t,e){if(!(e.length<1))for(let r=0,n=e.length;r<n;r++){let i=e[r];i.token&&this.unbindRemoteState(t,i.token),i.targetId&&m.remove(i.targetId,i.action,i.token)}}restore(t){m.restore(t.id,t);let e=this.callBackStates;if(e)for(let n=0,i=e.length;n<i;n++){let o=e[n];o.callBackToken=t.on(o.action,o.callBack)}let r=this.remoteStates;if(r)for(let n=0,i=r.length;n<i;n++){let o=r[n];o.token=this.bindRemoteState(t,o.action,o.targetId)}}bindRemoteState(t,e,r){let n=m.getTarget(r);return t.link(n,e)}unbindRemoteState(t,e){t.unlink(e)}addStatesToTarget(t,e){let r=this.remoteStates;for(let n=0,i=e.length;n<i;n++){let o=e[n],a=this.addAction(t,o);o.targetId&&(o.token=a,r.push(o))}}addAction(t,e){let r,n=e.action,i=e.targetId;i&&(r=this.bindRemoteState(t,n,i)),typeof e.state<"u"&&t.addAction(n,e.state);let o=e.callBack;return typeof o=="function"&&(e.callBackToken=t.on(n,o),this.callBackStates.push(e)),r||null}};var S=class extends A{constructor(t,e,r){super(t,e,r),this.isComponent=!0,this.stateResumed=!1,this.stateTargetId=null,this._externalData=this._externalData??!1,this._setupData()}setData(){return null}_setupData(){if(this.data)return;let t=this.setData();t&&(this.data=t)}resumeScope(t){if(this._resumeData(t.data),this.state=t.state,this.stateHelper=t.stateHelper,this.persistedChildren=t.persistedChildren,t.context){let e=t.context.data;e&&e._refreshState===!0&&e._retainState!==!0||(this.context=t.context,this._contextResumed=!0)}this.id=t.id,this._refreshContextData()}_resumeData(t){v.resume(this,t)}_refreshData(){v.refresh(this)}_refreshContextData(){v.refreshContext(this)}initialize(){this.setupContext(),this.addStates(),this.beforeSetup()}afterLayout(){this.addEvents(),this.afterSetup()}setupStateTarget(t){let e=t||this.stateTargetId||this.id;this.state=m.attach(String(e))}setupStates(){return{}}addStates(){let t=this.state;if(t){this.stateResumed=!0,this.stateHelper?.restore(t);return}let e=this.setupStates();_.isEmpty(e)||this.setStateHelper(e)}setStateHelper(t={}){this.state||(this.setupStateTarget(),this.stateHelper=new O(this.state??{},t))}addState(t){!this.stateHelper||this.stateResumed===!0||this.stateHelper.addStates(this.state,t)}removeStates(){let t=this.state;if(!t)return;let e=this.stateHelper;e&&(e.removeRemoteStates(t),e.removeLocalStates(t)),m.detach(String(t.id)),this.stateResumed=!1}onFlush(t){let e=this.data??this?.context?.data??null;e&&e.onFlush(t)}setEventHelper(){this.events||(this.events=new D)}setupEvents(){return[]}addEvents(){let t=this.setupEvents();t.length<1||(this.setEventHelper(),this.events&&this.events.addEvents(t))}removeEvents(){let t=this.events;t&&t.reset()}prepareDestroy(){this.persistedCount=0,this.rendered=!1;try{this.beforeDestroy()}catch(t){console.error("Error in beforeDestroy:",t)}this.removeEvents(),this.removeStates(),this.removeContext(),this.data&&this.persist!==!0&&this.data.unlink()}};var K={created:"onCreated",setStates:"setupStates",state:"setupStates",events:"setupEvents",before:"beforeSetup",render:"render",after:"afterSetup",destroy:"beforeDestroy"},Q=(s,t)=>typeof s!="function"&&t==="setupStates"?()=>s:s;var U=(s,t)=>{if(!s)return t;let e=Object.keys(s);for(let r=0,n=e.length;r<n;r++){let i=e[r],o=s[i],a=K[i]||i;t[a]=Q(o,a)}return t},tt=s=>U(s,{}),et=0,V=(s,t)=>{class e extends s{}return Object.assign(e.prototype,t),e.prototype._classId="jot"+et++,e},R=(s,t=S)=>{s||(s={});let e,r=typeof s;return r==="object"&&s.render?(e=tt(s),V(t,e)):(e={render:r==="function"?s:()=>s},V(t,e))};var W=(s,t)=>({attr:s,directive:t});var d=(s,t)=>({key:s,value:t});var X=(s,t,e,r)=>({tag:s,attr:t,directives:e,children:r});var Y=null,rt=()=>Y||(Y=C.get("watch")),k=class{static getTag(t){return t.tag||"div"}static setupChildren(t){t.nest&&(t.children=t.nest,delete t.nest)}static setElementContent(t,e,r,n){return t==="text"?(n.push({tag:"text",textContent:e}),!0):t==="html"||t==="innerHTML"?(r.push(d("innerHTML",e)),!0):!1}static setTextAsWatcher(t,e,r){t.push(W(d(e,N.getWatcherSettings(r,G(e))),rt()))}static setButtonType(t,e,r){if(t==="button"){let n=e.type||"button";r.push(d("type",n))}}static parse(t,e){let r=[],n=[],i=t.tag||"div";i==="button"&&r.push(d("type",t.type||"button"));let o=[],a,c;for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l)||l==="tag"||(a=t[l],a==null))continue;if(l==="children"||l==="nest"){if(Array.isArray(a))for(let u=0;u<a.length;u++)o.push(a[u]);else o.push(a);continue}if((c=C.get(l))!==null){n.push(W(d(l,a),c));continue}let h=typeof a;if(h==="object"){if(N.isWatching(a)){this.setTextAsWatcher(n,l,a);continue}o.push(a);continue}if(h==="function"){let u=a,z=function($){u.call(this,$,e)};z.originalCallback=u,r.push(d(l,z));continue}if(h==="string"&&a.includes("[[")){this.setTextAsWatcher(n,l,a);continue}if(l==="text"){o.push({tag:"text",textContent:a});continue}if(l==="html"||l==="innerHTML"){r.push(d("innerHTML",a));continue}r.push(d(l,a))}return X(i,r,n,o)}};var T=class{build(t,e,r){}setupComponent(t,e,r){let n=r?.getChildScope();t.parent=n,n&&n.persist===!0&&t.persist!==!1&&(t.persist=!0,t.parent.addPersistedChild(t)),t.cache&&n&&(n[t.cache]=t),t.setup(e)}buildComponent(t){let e=t.prepareLayout(),r=this.build(e,t.container,t);return t.afterBuild(),t.component&&typeof t.onCreated=="function"&&t.onCreated(t),r}createComponent(t,e,r){return this.setupComponent(t,e,r),this.buildComponent(t),t}setDirectives(t,e,r){}removeNode(t){}removeAll(t){}};var nt=s=>{for(let e in s)if(e!=="tag"&&e!=="textContent")return!1;let t=s.textContent;return typeof t=="string"?t.indexOf("[[")===-1:typeof t!="object"},B=class extends T{build(t,e,r){let n=p.createDocFragment();if(Array.isArray(t))for(let i=0,o=t.length;i<o;i++)this.buildElement(t[i],n,r);else this.buildElement(t,n,r);return e&&typeof e=="object"&&e.appendChild(n),n}buildElement(t,e,r){if(t){if(t.isUnit===!0){this.createComponent(t,e,r);return}this.createElement(t,e,r)}}createElement(t,e,r){if(t.tag==="text"&&nt(t)){let l=t.textContent;p.createText(l??"",e);return}let n=r?.getChildScope();if(t.data||t.state){this.createTempComponent(t,e,n);return}let i=k.parse(t,n),o=this.createNode(i,e,n);this.cache(o,t.cache,r);let a=i.children;for(let l=0,h=a.length;l<h;l++){let u=a[l];u!==null&&this.buildElement(u,o,r)}let c=i.directives;c.length&&this.setDirectives(o,c,n)}createTempComponent(t,e,r){let n={cache:t.cache,key:t.key,persist:t.persist,_externalData:!0,setData:()=>t.data,...U(t.methods||{},{}),render(){return{...t,data:null,state:null,methods:null,key:null,persist:null}}};t.state&&(n.setupStateTarget=function(o){this.state=t.state});let i=new S(n);this.createComponent(i,e,r)}setDirectives(t,e,r){for(let n=0,i=e.length;n<i;n++)this.handleDirective(t,e[n],r)}handleDirective(t,e,r){e.directive(t,e.attr.value,r)}cache(t,e,r){r&&e&&r.cacheEle(t,e)}createNode(t,e,r){let n=t.tag;if(n==="text"){let i=t.attr[0],o=i?i.value:"";return p.createText(o,e)}else if(n==="comment"){let i=t.attr[0],o=i?i.value:"";return p.createComment(o,e)}return p.create(n,t.attr,e,r)}removeNode(t){p.removeElement(t)}removeAll(t){p.removeAll(t)}};var st=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source"]),it=/[&<>"]/,F=s=>{let t=typeof s=="string"?s:String(s);return it.test(t)?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t},b=class{static create(t,e=[],r=""){let n="",i="";for(let o=0,a=e.length;o<a;o++){let c=e[o],l=c.key,h=c.value;if(l==="text"||l==="textContent"){n+=F(h);continue}if(l==="html"||l==="innerHTML"){n+=h;continue}if(typeof h=="function")continue;let u=l+'="'+F(h)+'"';i?i+=" "+u:i=u}return st.has(t)?"<"+t+" "+i+" />":"<"+t+" "+i+">"+n+r+"</"+t+">"}static createText(t){return F(t)}static createComment(t){return"<!-- "+t+" -->"}};var P=class extends T{build(t,e,r){if(Array.isArray(t)){let n="";for(let i=0,o=t.length;i<o;i++)n+=this.buildElement(t[i],r);return n}return this.buildElement(t,r)}createComponent(t,e,r){return this.setupComponent(t,e,r),this.buildComponent(t)}buildElement(t,e){return t?t.isUnit===!0?this.createComponent(t,{},e):this.createElement(t,e):""}createElement(t,e){let r=k.parse(t,e),n=r.children,i="";for(let o=0,a=n.length;o<a;o++){let c=n[o];c!==null&&(i+=this.buildElement(c,e))}return this.createNode(r,i)}createNode(t,e){let r=t.tag;if(r==="text"){let n=t.attr[0],i=n?n.value:"";return b.createText(i)}else if(r==="comment"){let n=t.attr[0],i=n?n.value:"";return b.createComment(i)}return b.create(r,t.attr,e)}removeAll(t){}};var w=class{static browserIsSupported(){return typeof window<"u"&&typeof document=="object"}static setup(){return this.browserIsSupported()?new B:new P}};var g=w.setup(),ot=s=>typeof s=="object"&&s.isUnit===!0,at=s=>{let t=R(s);return t?new t:null},f=class{static render(t,e,r){return!t||(ot(t)||(t=at(t)),!t)?null:g.createComponent(t,e,r)}static build(t,e,r){return g.build(t,e,r)}static rebuild(t,e,r){return g.removeAll(e),this.build(t,e,r)}static setDirectives(t,e,r){g.setDirectives(t,e,r)}static createNode(t,e,r){return g.createNode(t,e,r)}static removeNode(t){g.removeNode(t)}static removeAll(t){g.removeAll(t)}};var J=[],lt=s=>J.indexOf(s)!==-1,ct=s=>({tag:"script",src:s.src,async:!1,load(t){J.push(s.src);let e=s.load;e&&e()}}),ut=s=>({tag:"link",rel:"stylesheet",type:"text/css",href:s.src,load(t){J.push(s.src);let e=s.load;e&&e()}}),H=class{constructor(t){this.percent=0,this.loaded=0,this.total=0,this.callBack=t||null}add(t){this.total++;let e,r=this.update.bind(this);t.indexOf(".css")!==-1?e=ut({load:r,src:t}):e=ct({load:r,src:t}),f.build(e,document.head)}addFiles(t){t&&t.forEach(e=>{lt(e)||this.add(e)})}update(){if(this.updateProgress()<100)return;let e=this.callBack;e&&e()}updateProgress(){return++this.loaded,this.percent=Math.floor(this.loaded/this.total*100)}};var ht=s=>s?typeof s?.prototype?.constructor=="function":!1,x=class{static process(t,e){let r=t.default;return r?e.callback?e.callback(r):(ht(r)?r=new r:r=r(),r.isUnit===!0&&(r.route=e.route,e.persist&&(r.persist=!0)),r):null}static render(t,e,r){let n=f.build(t,null,r),i=n.firstChild||t?.panel;return e.after(n),i}};var L=class{static load(t,e,r){return t.then(n=>(e&&e(n),n)).catch(n=>{console.error("Error loading module:",n),r&&r(n)})}};var dt=s=>({tag:"comment",textContent:"import placeholder",onCreated:s.onCreated}),y=new q(100),ft=s=>{if(y.has(s)){let r=y.get(s);return r&&typeof r.then!="function"?Promise.resolve(r):r}let t=typeof s,e;if(t==="string")e=import(s);else if(t==="function")e=s();else return s;return e.then(r=>{y.set(s,r)}).catch(()=>{y.delete(s)}),y.set(s,e),e},pt=s=>{if(!y.has(s))return null;let t=y.get(s);return t&&typeof t.then=="function"?null:t||null},Z=R({declareProps(){this.loaded=!1,this.errorRoot=null,this.generation=0},render(){return dt({onCreated:s=>{if(this.src){if(this.layout){this.layoutRoot=x.render(this.layout,this.panel,this.parent);return}if(this.depends){new H(()=>{this.loadAndRender(s)}).addFiles(this.depends);return}this.loadAndRender(s)}}})},loadAndRender(s){let t=this.generation,e=pt(this.src);if(e){this.renderModule(s,e);return}L.load(ft(this.src),r=>{t===this.generation&&this.renderModule(s,r)},r=>{t===this.generation&&(this.loaded=!1,this.renderError(s,r))})},renderError(s,t){let e=()=>this.retry(s),r=this.fallback,n=typeof r=="function"?r(t,e):r||{class:"base-import-error",children:[{tag:"span",text:"Failed to load content."},{tag:"button",type:"button",text:"Retry",click:e}]};n&&(this.errorRoot=x.render(n,s,this.parent))},retry(s){this.removeErrorLayout(),this.loadAndRender(s)},removeErrorLayout(){this.errorRoot&&(f.removeNode(this.errorRoot),this.errorRoot=null)},renderModule(s,t){this.loaded=!0;let e=this.layout||x.process(t,{callback:this.callback,route:this.route,persist:this.persist});this.layout=e,this.layoutRoot=x.render(e,s,this.parent)},shouldUpdate(s){return this.updateLayout===!0?!0:this.updateLayout=s&&s.isUnit&&typeof s.update=="function"},updateModuleLayout(s){let t=this.layout;this.shouldUpdate(t)&&t&&t.update(s)},update(s){this.loaded===!0&&this.updateModuleLayout(s)},destroy(){this.generation++,this.removeErrorLayout(),this.layoutRoot&&(f.removeNode(this.layoutRoot),this.persist!==!0&&(this.layoutRoot=null,this.layout=null,this.loaded=!1,this.updateLayout=!1))}});var Ee=s=>{let t=typeof s;return(t==="string"||t==="function"||s instanceof Promise)&&(s={src:s}),new Z(s)};export{C as a,xt as b,A as c,S as d,K as e,Q as f,R as g,k as h,f as i,Ee as j};
|
|
2
|
-
//# sourceMappingURL=chunk-CNIJE66G.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as g,b as k,c as y}from"./chunk-TFVBKZUB.js";import{a as A}from"./chunk-KRDITJSA.js";import{c as u}from"./chunk-T3WI7GCT.js";import{c as d}from"./chunk-TDLN57VY.js";var p=e=>e.data?e.data:e.context&&e.context.data?e.context.data:e.state?e.state:null;var f=class extends y{static create(r,t,a,n){let c=document.createElement(r);return this.addAttributes(c,t,n),a.appendChild(c),c}static addAttributes(r,t,a){if(!(!t||t.length<1))for(let n=0,c=t.length;n<c;n++){let s=t[n];this.addAttr(r,s.key,s.value,a)}}static addAttr(r,t,a,n){if(a===""||!t||t==="children")return;if(t==="innerHTML"){r.innerHTML=a;return}if(typeof a==="function"){if(t=k(t),a.originalCallback)d.add(t,r,a,!1,!0,a.originalCallback);else{let o=a,i=function(l){o.call(this,l,n)};d.add(t,r,i,!1,!0,o)}return}if(t.charCodeAt(4)===45){r.setAttribute(t,a);return}let s=g(t);r[s]=a}static addContent(r,t){t&&(t.textContent!==null?r.textContent=t.textContent:t.innerHTML&&(r.innerHTML=t.innerHTML))}static append(r,t){r.appendChild(t)}};var C=/(\[\[(.*?(?:\[\d+\])?)\]\])/g,x=new A(1e3),T={isWatching(e){if(Array.isArray(e)){let r=e[0];return typeof r=="string"&&r.includes("[[")}return this.hasParams(e)},hasParams(e){return typeof e=="string"&&e.includes("[[")},_getWatcherProps(e){let r=x.get(e);if(r!==void 0)return r;let t=e.match(C),a=t?t.map(n=>n.slice(2,-2)):null;return x.set(e,a),a},updateAttr(e,r,t){switch(r){case"text":case"textContent":e.textContent=t;break;case"disabled":e.disabled=!t;break;case"checked":e.checked=!!t;break;case"required":e.required=!!t;break;case"src":if(e.tagName==="IMG"){e.src=t&&(t.indexOf(".")!==-1||t.indexOf("blob:")!==-1)?t:"";break}e.src=t;break;default:f.addAttr(e,r,t);break}},replaceParams(e,r,t=!1){let a=0;return e.replace(C,function(n,c,s){let o=t?r[a]:r;a++;let i=o.get(s);return i??""})},_getWatcherCallBack(e,r,t,a,n){let c=this._getWatcherProps(t);if(c&&c.length===1&&t.length===c[0].length+4){let s=c[0],o=n?r[0]:r;return()=>{let i=o.get(s);this.updateAttr(e,a,i!=null?String(i):"")}}return()=>{let s=this.replaceParams(t,r,n);this.updateAttr(e,a,s)}},getValue(e,r){let t=e.value;return Array.isArray(t)===!1?[t,p(r)]:(t.length<2&&t.push(p(r)),t)},getPropValues(e,r,t){let a=[];for(let n=0,c=r.length;n<c;n++){let o=(t?e[n]:e).get(r[n])??"";a.push(o)}return a},getCallBack(e,r,t,a,n,c){let s=e.attr||"textContent",o=e.callBack;if(typeof o=="function"){let i=c||this._getWatcherProps(a)||[],l=i.length>1;return(h,P)=>{h=l!==!0?h:this.getPropValues(t,i,n);let m=o(h,r,P);typeof m<"u"&&this.updateAttr(r,s,m)}}return this._getWatcherCallBack(r,t,a,s,n)},addDataWatcher(e,r,t){let a=this.getValue(r,t),n=a[1]??t?.data??t?.context?.data??t?.state??null;if(!n)return;let c=a[0],s=Array.isArray(n),o=this._getWatcherProps(c);if(!o)return;let i=this.getCallBack(r,e,n,c,s,o);if(!s)o.length>1?u.watchMany(e,n,o,i):this.addWatcher(e,n,o[0],i);else for(let l=0,h=o.length;l<h;l++)this.addWatcher(e,n[l],o[l],i)},getWatcherSettings(e,r=null){if(typeof e=="string")return{attr:r,value:e};if(Array.isArray(e)){let t=e[e.length-1];t&&typeof t=="object"&&(t=r!==null?r:null);let a=e[1]&&typeof e[1]=="object"?[e[0],e[1]]:[e[0]];return typeof t=="function"?{attr:r,value:a,callBack:t}:{attr:t||"textContent",value:a}}return e},setup(e,r,t){r&&this.addDataWatcher(e,this.getWatcherSettings(r),t)},addWatcher(e,r,t,a){u.watch(e,r,t,a)}};export{p as a,f as b,T as c};
|
|
2
|
-
//# sourceMappingURL=chunk-GNJZ6CEA.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as k,c as x}from"./chunk-T3WI7GCT.js";import{a as b}from"./chunk-TDLN57VY.js";var a=class{constructor(e=1e3){this.cache=new Map,this.maxSize=e,this.evictCount=e>=8?e>>3:1}get(e){let t=this.cache.get(e);if(t!==void 0)return t.used=!0,t.value}has(e){return this.cache.has(e)}set(e,t){let s=this.cache,n=s.get(e);if(n!==void 0){n.value=t,n.used=!0;return}s.set(e,{value:t,used:!1}),s.size>this.maxSize&&this.evict()}evict(){let e=this.cache,t=this.maxSize-this.evictCount+1;for(let s=0;s<2&&e.size>t;s++){let n=e.keys(),r=e.size;for(;r-- >0&&e.size>t;){let o=n.next().value,h=e.get(o);if(h!==void 0&&h.used){h.used=!1;continue}e.delete(o)}}}delete(e){this.cache.delete(e)}clear(){this.cache.clear()}};var g=new WeakMap,y=new WeakMap;function D(i){if(!i||typeof i!="object")return i;let e=y.get(i);return e!==void 0?e:i}var _=new WeakMap;function C(i,e,t,s){let n=g.get(i);n||(n=new Map,g.set(i,n));let r=n.get(t);if(r)return r;let o=new Proxy(i,v(e,t,s));return n.set(t,o),y.set(o,i),o}function M(i){i&&typeof i=="object"&&g.delete(i)}function S(i,e){let t=e.charCodeAt(0),s=t>=48&&t<=57;return i===""?s?"["+e+"]":e:s?i+"["+e+"]":i+"."+e}function v(i,e="",t=""){return{get(s,n,r){let o=s[n];if(e===""&&n in s){if(typeof o=="function"){let c=_.get(s);c||(c=new Map,_.set(s,c));let u=c.get(n);if(u)return u;let m=o.bind(s);return c.set(n,m),m}return o}if(o=(s[t]||s)[n],o!==null&&typeof o=="object"){let c=S(e,n);return C(o,i,c,t)}return o},set(s,n,r,o){if(e===""&&n in s)return s[n]=r,!0;let c=(s[t]||s)[n],u=S(e,n);return i.set(u,r),c!==r&&c!==null&&typeof c=="object"&&M(c),!0}}}var w=(i,e="stage")=>{let t=new Proxy(i,v(i,"",e));return y.set(t,i),t};var f=class{static resume(e,t){if(!e)return null;let s=localStorage.getItem(e);if(s===null)return t!==void 0?t:void 0;try{let n=JSON.parse(s);return n===null&&t!==void 0?t:n}catch(n){return console.warn('[LocalData] Failed to parse stored value for key "'+e+'". Removing corrupted entry.',n),localStorage.removeItem(e),t!==void 0?t:void 0}}static store(e,t){if(!e||!t)return!1;try{let s=JSON.stringify(t);return localStorage.setItem(e,s),!0}catch(s){return console.error('[LocalData] Failed to store data for key "'+e+'".',s),!1}}static remove(e){return e?(localStorage.removeItem(e),!0):!1}};var E=(i={})=>{let e={};if(!b.isObject(i))return e;let t=Object.keys(i);for(let s=0,n=t.length;s<n;s++){let r=t[s],o=i[r];typeof o!="function"&&(e[r]=o)}return e};var P=0,L=new a(2e3),d={CHANGE:"change",DELETE:"delete"},p=(i,e)=>{let t=L.get(i);return t||(t={change:`${i}:change`,delete:`${i}:delete`},L.set(i,t)),e==="change"?t.change:t.delete},l=class{constructor(e={}){this.dirty=!1,this._retainState=!1,this._refreshState=!1,this.links=new Map,this._init(),this.setup(),this.dataTypeId="bd",this.eventSub=new k;let t=E(e);this.set(t);let s=w(this);return this._proxy=s,s}retainState(){return this._retainState=!0,this._proxy||this}refreshState(){return this._refreshState=!0,this._proxy||this}setup(){this.stage={}}_init(){let e=++P;this._dataNumber=e,this._id=`dt-${e}`,this._dataId=`${this._id}:`}onFlush(e){this.eventSub.onFlush(e)}flushPending(){this.eventSub.flush()}getDataId(){return String(this._id)}remove(){this.unlink(),this.eventSub.reset()}on(e,t){let s=p(e,d.CHANGE);return this.eventSub.on(s,t)}off(e,t){let s=p(e,d.CHANGE);this.eventSub.off(s,t)}_setAttr(e,t,s=this,n=!1){let r=this.stage[e];t!==r&&(this.stage[e]=t,this._publish(e,t,s,d.CHANGE))}publishLocalEvent(e,t,s,n){let r=p(e,n);this.eventSub.publish(r,t,s)}_publish(e,t,s,n){this.publishLocalEvent(e,t,s,n),s=s||this,x.publish(this._dataId+e,t,s)}set(e,t,s){if(typeof e!="object")return this._setAttr(e,t,s),this;let n=Object.keys(e);for(let r=0;r<n.length;r++){let o=n[r],h=e[o];typeof h!="function"&&this._setAttr(o,h,t,s)}return this}_silentSet(e){let t=this.stage,s=Object.keys(e);for(let n=0,r=s.length;n<r;n++){let o=s[n];t[o]=e[o]}}getModelData(){return this.stage}_deleteAttr(e,t,s=this){delete e[t],this.publishLocalEvent(t,null,s,d.DELETE)}toggle(e){return typeof e>"u"?this:(this.set(e,!this.get(e)),this)}increment(e,t=null){if(typeof e>"u")return this;t=t!==null&&typeof t=="number"?t:1;let s=this.get(e);return this.set(e,s+t),this}decrement(e,t=null){if(typeof e>"u")return this;t=t!==null&&typeof t=="number"?t:1;let s=this.get(e);return this.set(e,s-t),this}concat(e,t){if(typeof e>"u")return this;let s=this.get(e);return this.set(e,s+t),this}ifNull(e,t){return this.get(e)===null&&this.set(e,t),this}setKey(e,t){return this.key=t!=null?e+":v"+t:e,this}resume(e){let t=f.resume(String(this.key),e);return t?(this.set(t),this):this}store(){let e=this.get();return f.store(String(this.key),e)}delete(e){return typeof e=="string"?(this._deleteAttr(this.stage,e),this):(this.setup(),this)}_getAttr(e,t){return e[t]}get(e){return typeof e<"u"?this._getAttr(this.stage,e):this.getModelData()}link(e,t,s){if(arguments.length===1&&e.isData===!0&&(t=e.get()),typeof t!="object")return this.remoteLink(e,t,s);let n=[];return Object.entries(t).forEach(([r])=>{n.push(this.remoteLink(e,r))}),n}remoteLink(e,t,s){let n=s||t,r=e.get(t);typeof r<"u"&&this.get(t)!==r&&this.set(t,r);let o=e.on(t,(c,u)=>{if(u===this)return!1;this.set(n,c,e)}),h=this.on(n,(c,u)=>{if(u===e)return!1;e.set(t,c,this)});return this.addLink(o,e,t,h),e.addLink(h,this,n,o),o}addLink(e,t,s,n){this.links.set(e,{data:t,attr:s,pair:n})}unlink(e){if(e){this.removeLink(e);return}let t=this.links;t.size!==0&&(t.forEach((s,n)=>{this.removeLink(n,!1)}),t.clear())}removeLink(e,t=!0){let s=this.links.get(e);if(s){let n=s.data;s.attr&&n.off(s.attr,e);let r=s.pair,o=r&&n.links;if(o){let h=o.get(r);h&&(o.delete(r),h.attr&&this.off(h.attr,r))}}t!==!1&&this.links.delete(e)}};l.prototype.isData=!0;var A=class extends l{};export{a,D as b,w as c,E as d,d as e,l as f,A as g};
|
|
2
|
-
//# sourceMappingURL=chunk-KRDITJSA.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as C}from"./chunk-W37VRHGC.js";import{a as k,b as E,e as b,f as S}from"./chunk-KRDITJSA.js";import{c as m}from"./chunk-T3WI7GCT.js";import{a as x}from"./chunk-DWOYCZYJ.js";var L=new Set(["__proto__","prototype","constructor"]),w=o=>{let t=[],e=o.length,s=0;for(let i=0;i<e;i++){let n=o.charCodeAt(i);n!==46&&n!==91&&n!==93||(i>s&&t.push(o.substring(s,i)),s=i+1)}return e>s&&t.push(o.substring(s)),t.length>0?t:null},a={deepDataPattern:/(\w+)|(?:\[(\d)\))/g,segmentCache:new k(1e3),hasDeepData(o){return o.indexOf(".")!==-1||o.indexOf("[")!==-1},isSafeAttr(o){return!L.has(o)},getSegments(o){let t=this.segmentCache.get(o);if(t!==void 0)return t;if(t=w(o),t){for(let e=0,s=t.length;e<s;e++)if(L.has(t[e])){console.warn("[Data] Blocked unsafe path segment in: "+o),t=null;break}}return this.segmentCache.set(o,t),t}};var p=class{static set(t,e,s){if(!a.hasDeepData(e)){if(!a.isSafeAttr(e))return;t[e]=s;return}let i,n=a.getSegments(e);if(!n)return;let r=n.length,h=r-1;for(let c=0;c<r;c++){let l=n[c];if(c===h){t[l]=s;break}if(t[l]===void 0){let u=l.charCodeAt(0);t[l]=u<48||u>57?{}:[]}t=t[l]}}static delete(t,e){if(!a.hasDeepData(e)){if(!a.isSafeAttr(e))return;delete t[e];return}let s=a.getSegments(e);if(!s)return;let i=s.length,n=i-1;for(let r=0;r<i;r++){let h=s[r],c=t[h];if(c===void 0)break;if(r===n){if(Array.isArray(t)){let l=Number(h);Number.isInteger(l)&&l>=0&&l<t.length&&t.splice(l,1);break}delete t[h];break}t=c}}static get(t,e){if(!a.hasDeepData(e))return t[e]??void 0;let s=a.getSegments(e);if(!s)return;let i=s.length,n=i-1;for(let r=0;r<i;r++){let h=s[r],c=t[h]??void 0;if(c===void 0)break;if(t=c,r===n)return t}}};var O=new Set,y=class{static publishDeep(t,e,s,i){if(!a.hasDeepData(e)){this.publish(e,s,i);return}let n,r=a.getSegments(e);if(!r)return;let h=r.length,c=h-1,l="";for(let u=0;u<h;u++){let f=r[u];t=t[f];let g=f.charCodeAt(0);u>0?(g<48||g>57)&&(l+="."+f):l=f;let d;if(u===c)d=s;else{let A=r[u+1],_=A.charCodeAt(0);if(_>=48&&_<=57){l+="["+A+"]";continue}let D={};D[A]=t[A],d=D}this.publish(l,d,i)}}static publish(t,e,s,i=null,n=0){if(t=t||"",s(t,e),!(!e||typeof e!="object"||(e=E(e),i===null&&(O.clear(),i=O),!i))){if(i.has(e)){console.warn("[Publisher] Circular reference detected at path:",t);return}if(n>=this.MAX_DEPTH){console.warn("[Publisher] Max depth exceeded at path:",t,"- stopping recursion");return}i.add(e),Array.isArray(e)?this.publishArray(t,e,s,i,n):this.publishObject(t,e,s,i,n)}}static publishArray(t,e,s,i,n){let r=e.length;for(let h=0;h<r;h++){let c=e[h],l=t+"["+h+"]";this._checkPublish(l,c,s,i,n)}}static publishObject(t,e,s,i,n){let r=Object.keys(e);for(let h=0,c=r.length;h<c;h++){let l=r[h],u=e[l],f=t+"."+l;this._checkPublish(f,u,s,i,n)}}static _checkPublish(t,e,s,i,n){if(!e||typeof e!="object"){s(t,e);return}this.publish(t,e,s,i,n+1)}};x(y,"MAX_DEPTH",50);var P=class extends S{setup(){this.attributes={},this.stage={}}_setAttr(t,e,s,i){typeof e!="object"&&e===this.get(t)||(!s&&i!==!0?p.set(this.attributes,t,e):this.dirty===!1&&(this.dirty=!0),p.set(this.stage,t,e),s=s||this,this._publish(t,e,s,b.CHANGE))}_silentSet(t){let e=this.stage,s=this.attributes,i=Object.keys(t);for(let n=0,r=i.length;n<r;n++){let h=i[n],c=t[h];e[h]=c,s[h]=c}}linkAttr(t,e){let s=t.get(e);if(!s)return;let i=Object.keys(s);for(let n=0,r=i.length;n<r;n++){let h=i[n];this.link(t,e+"."+h,h)}}scope(t,e){let s=this.get(t);if(!s)return!1;e=e||this.constructor;let i=new e(s);return i.linkAttr(this,t),i}splice(t,e){return this.delete(t+"["+e+"]"),this.refresh(t),this}push(t,e){let s=this.get(t);return Array.isArray(s)===!1&&(s=[]),s.push(e),this.set(t,s),this}concat(t,e){let s=this.get(t);return Array.isArray(s)===!1&&(s=[]),s=s.concat(e),this.set(t,s),this}unshift(t,e){let s=this.get(t);return Array.isArray(s)===!1&&(s=[]),s.unshift(e),this.set(t,s),this}shift(t){let e=this.get(t);if(Array.isArray(e)===!1)return null;let s=e.shift();return this.set(t,e),s}getIndex(t,e,s){let i=this.get(t);return Array.isArray(i)===!1?-1:typeof i[0]!="object"?i.indexOf(e):i.findIndex(r=>r[e]===s)}pop(t){let e=this.get(t);if(Array.isArray(e)===!1)return null;let s=e.pop();return this.set(t,e),s}refresh(t){return this.set(t,this.get(t)),this}_publish(t,e,s,i){if(this._publishAttr(t,e,s,i),!e||typeof e!="object")return;let n=t.length,r=i===b.CHANGE?":change":":"+i,h=r.length,c=n+h;for(let u of this.eventSub.getMessages()){if(u.length<=c||!u.endsWith(r)||!u.startsWith(t))continue;let f=u.charCodeAt(n);if(f!==46&&f!==91)continue;let g=u.slice(0,u.length-h);this._publishAttr(g,this.get(g),s,i)}let l=m.getPrefixMessages(this._dataId);if(l){let u=this._dataId.length;for(let f of l){if(f.length-u<=n||!f.startsWith(t,u))continue;let d=f.charCodeAt(u+n);if(d!==46&&d!==91)continue;let A=f.slice(u);m.publish(f,this.get(A),s)}}}_publishAttr(t,e,s,i){let n=this._dataId+t;m.publish(n,e,s),this.publishLocalEvent(t,e,s,i)}mergeStage(){this.attributes=C.clone(this.stage),this.dirty=!1}getModelData(){return this.mergeStage(),this.attributes}revert(){this.set(this.attributes),this.dirty=!1}_deleteAttr(t,e,s=this){p.delete(t,e),this._delCommitter=s;let i=this._deleteCb||(this._deleteCb=n=>this._publishAttr(n,null,this._delCommitter,b.DELETE));y.publish(e,null,i)}_getAttr(t,e){return p.get(t,e)}};export{P as a};
|
|
2
|
-
//# sourceMappingURL=chunk-QXTQMPCM.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as k,c as v,d as g}from"./chunk-TDLN57VY.js";var M=class{constructor(){this.connections=new Map}add(t,e,s){let i=this.getOrCreate(t),n=i.get(e);return n?Array.isArray(n)?n.push(s):i.set(e,[n,s]):i.set(e,s),s}get(t,e){let s=this.connections.get(t)?.get(e);return s?Array.isArray(s)?s[s.length-1]||!1:s:!1}getOrCreate(t){let e=this.connections.get(t);return e||(e=new Map,this.connections.set(t,e)),e}remove(t,e){let s=this.connections.get(t);if(s)if(e)this.unsubscribe(s.get(e)),s.delete(e),s.size===0&&this.connections.delete(t);else{for(let i of s.values())this.unsubscribe(i);this.connections.delete(t)}}unsubscribe(t){if(t)if(Array.isArray(t))for(let e=0,s=t.length;e<s;e++)t[e]?.unsubscribe();else t.unsubscribe()}};var p=class{constructor(){this.msg=null,this.token=null}setToken(t){this.token=t}};var w=class extends p{constructor(t){super(),this.data=t}subscribe(t,e){if(!this.data||typeof this.data.on!="function"){console.warn('OneWaySource: Cannot subscribe - data source is null or does not have an "on" method. Make sure your component has data, state, or context.data initialized.',t,this.data);return}this.msg=t,this.token=this.data.on(t,e)}subscribeMany(t,e){if(!this.data||typeof this.data.on!="function"){console.warn('OneWaySource: Cannot subscribeMany - data source is null or does not have an "on" method.',t,this.data);return}let s=t.length,i=new Array(s);for(let n=0;n<s;n++){let u=t[n];i[n]={msg:u,token:this.data.on(u,e)}}this.subscriptions=i}unsubscribe(){if(this.data){let t=this.subscriptions;if(t){for(let e=0,s=t.length;e<s;e++)this.data.off(t[e].msg,t[e].token);this.subscriptions=null}else this.msg&&this.token&&this.data.off(this.msg,this.token)}this.data=null,this.msg=null,this.token=null}};var b=class{unsubscribe(){}};var y=class extends b{constructor(){super(),this.source=null}addSource(t){return this.source=new w(t)}unsubscribe(){this.source.unsubscribe(),this.source=null}};var m=class extends p{constructor(t){super(),this.pubSub=t}subscribe(t){this.msg=t;let e=this.callBack.bind(this);this.token=this.pubSub.on(t,e)}unsubscribe(){this.pubSub&&this.msg&&this.token&&this.pubSub.off(this.msg,this.token),this.pubSub=null,this.msg=null,this.token=null}callBack(){}};var C=class extends m{constructor(t,e,s){super(s),this.data=t,this.prop=e}set(t){this.data.set(this.prop,t)}get(){return this.data.get(this.prop)}callBack(t,e){this.data!==e&&this.data.set(this.prop,t,e)}unsubscribe(){super.unsubscribe(),this.data=null,this.prop=null}};var x=class{static getById(t){return typeof t!="string"?!1:document.getElementById(t)||!1}static getByName(t){if(typeof t!="string")return!1;let e=document.getElementsByName(t);return e?Array.from(e):!1}static getBySelector(t,e){if(typeof t!="string")return!1;if(e=e||!1,e===!0)return document.querySelector(t)||!1;let s=document.querySelectorAll(t);return s?s.length===1?s[0]:Array.from(s):!1}static html(t,e){return!t||typeof t!="object"?!1:typeof e<"u"?(t.innerHTML=e,this):t.innerHTML}static setCss(t,e,s){return!t||typeof t!="object"||typeof e>"u"?this:(e=g.uncamelCase(e),t.style[e]=s,this)}static getCss(t,e){if(!t||typeof e>"u")return!1;e=g.uncamelCase(e);let s=t.style[e];if(s!=="")return s;let i=null,n=t.currentStyle;if(n&&(i=n[e]))return i;let u=window.getComputedStyle(t,null);return u?u[e]:s}static css(t,e,s){return typeof s<"u"?(this.setCss(t,e,s),this):this.getCss(t,e)}static removeAttr(t,e){return typeof t=="object"&&t!==null&&t.removeAttribute(e),this}static setAttr(t,e,s){t.setAttribute(e,s)}static getAttr(t,e){return t.getAttribute(e)}static attr(t,e,s){return!t||typeof t!="object"?!1:typeof s<"u"?(this.setAttr(t,e,s),this):this.getAttr(t,e)}static _checkDataPrefix(t){return typeof t!="string"||(t=g.uncamelCase(t),t.substring(0,5)!=="data-"&&(t="data-"+t)),t}static removeDataPrefix(t){return typeof t=="string"&&t.substring(0,5)==="data-"&&(t=t.substring(5)),t}static setData(t,e,s){e=this.removeDataPrefix(e),e=g.camelCase(e),t.dataset[e]=s}static getData(t,e){return e=g.camelCase(this.removeDataPrefix(e)),t.dataset[e]}static data(t,e,s){return!t||typeof t!="object"?!1:typeof s<"u"?(this.setData(t,e,s),this):this.getData(t,e)}static find(t,e){return!t||typeof e!="string"?[]:t.querySelectorAll(e)}static show(t){if(!t||typeof t!="object")return this;let e=this.data(t,"style-display"),s=typeof e=="string"?e:"";return this.css(t,"display",s),this}static hide(t){if(!t||typeof t!="object")return this;let e=this.css(t,"display");return e!=="none"&&e&&this.data(t,"style-display",e),this.css(t,"display","none"),this}static toggle(t){return!t||typeof t!="object"?this:(this.css(t,"display")!=="none"?this.hide(t):this.show(t),this)}static getSize(t){return!t||typeof t!="object"?!1:{width:this.getWidth(t),height:this.getHeight(t)}}static getWidth(t){return typeof t=="object"&&t!==null?t.offsetWidth:!1}static getHeight(t){return typeof t=="object"&&t!==null?t.offsetHeight:!1}static getScrollPosition(t){let e=0,s=0;switch(typeof t){case"undefined":t=document.documentElement,e=t.scrollLeft,s=t.scrollTop;break;case"object":e=t.scrollLeft,s=t.scrollTop;break}return!t||typeof t!="object"?!1:{left:e-(t.clientLeft||0),top:s-(t.clientTop||0)}}static getScrollTop(t){return this.getScrollPosition(t).top}static getScrollLeft(t){return this.getScrollPosition(t).left}static getWindowSize(){let t=window,e=document,s=e.documentElement,i=e.getElementsByTagName("body")[0],n=t.innerWidth||s.clientWidth||i.clientWidth,u=t.innerHeight||s.clientHeight||i.clientHeight;return{width:n,height:u}}static getDocumentSize(){let t=document,e=t.body,s=t.documentElement,i=Math.max(e.scrollHeight,e.offsetHeight,s.clientHeight,s.scrollHeight,s.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth,s.clientWidth,s.scrollWidth,s.offsetWidth),height:i}}static getDocumentHeight(){return this.getDocumentSize().height}static position(t,e=1){let s={x:0,y:0};if(!t||typeof t!="object")return s;let i=0;for(;t&&(e===0||i<e);)i++,s.x+=t.offsetLeft+t.clientLeft,s.y+=t.offsetTop+t.clientTop,t=t.offsetParent;return s}static addClass(t,e){if(!t||typeof t!="object"||e==="")return this;if(typeof e=="string"){let s=e.split(" ");for(let i=0,n=s.length;i<n;i++)t.classList.add(s[i])}return this}static removeClass(t,e){return!t||typeof t!="object"||e===""?this:(typeof e>"u"?t.className="":t.classList.remove(e),this)}static hasClass(t,e){return!t||typeof t!="object"||e===""?!1:t.classList.contains(e)}static toggleClass(t,e){return!t||typeof t!="object"?this:(t.classList.toggle(e),this)}};var P=r=>{let t="textContent";if(!r||typeof r!="object")return t;let e=r.tagName.toLowerCase();if(e==="input"||e==="textarea"||e==="select"){let s=r.type;if(!s)return t="value",t;switch(s){case"checkbox":t="checked";break;case"file":t="files";break;default:t="value"}}return t};var W=(r,t,e)=>{x.setAttr(r,t,e)},L=(r,t,e)=>{r.checked=r.value==e},z=(r,t,e)=>{e=e==1,Q(r,t,e)},Q=(r,t,e)=>{r[t]=e},T=(r,t)=>x.getAttr(r,t),_=(r,t)=>r[t],I=class extends m{constructor(t,e,s,i){super(i),this.element=t,this.attr=this.getAttrBind(e),this.addSetMethod(t,this.attr),this.filter=typeof s=="string"?this.setupFilter(s):s}addSetMethod(t,e){if(e.charAt(4)==="-")return this.setValue=W,this.getValue=T,this;this.getValue=_;let s=t.type;if(s)switch(s){case"checkbox":return this.setValue=z,this;case"radio":return this.setValue=L,this}return this.setValue=Q,this}getAttrBind(t){return t||P(this.element)}setupFilter(t){let e=/\[\[[^\]]+\]\]/;return s=>t.replace(e,()=>s)}set(t){let e=this.element;return!e||typeof e!="object"?this:(this.filter&&(t=this.filter(t)),this.setValue(e,this.attr,t),this)}get(){let t=this.element;return!t||typeof t!="object"?"":this.getValue(t,this.attr)}callBack(t,e){return e!==this.element&&this.set(t),this}unsubscribe(){super.unsubscribe(),this.element={},this.attr="",this.filter=null,this.setValue=null,this.getValue=null}};var B=class extends b{constructor(t){super(),this.element=null,this.data=null,this.pubSub=t}addElement(t,e,s){return this.element=new I(t,e,s,this.pubSub)}addData(t,e){return this.data=new C(t,e,this.pubSub)}unsubscribeSource(t){return t&&t.unsubscribe(),this}unsubscribe(){return this.unsubscribeSource(this.element),this.unsubscribeSource(this.data),this.element=null,this.data=null,this}};var O=0,A=class{constructor(t=!1){this.callBacks=new Map,this.prefixIndex=t?new Map:null,this.updateQueue=new Map,this.flushScheduled=!1,this.isFlushing=!1,this.flushIterations=0,this.maxFlushIterations=2e3,this.batchingEnabled=!0,this.debugMode=!1,this.flushCompleteResolvers=[],this.flushCallbacks=[],this.deliveringMessage=null,this.reentrantMessages=null,this.suppressQueue=!1}get(t){return this.callBacks.has(t)||this.callBacks.set(t,new Map),this.callBacks.get(t)}reset(){this.callBacks.clear(),this.prefixIndex?.clear(),this.updateQueue.clear(),this.flushScheduled=!1,this.isFlushing=!1,this.flushIterations=0,this.reentrantMessages=null}on(t,e){let s=++O,i=this.callBacks.get(t);return i||(i=new Map,this.callBacks.set(t,i),this.prefixIndex&&this._indexMessage(t)),i.set(s,e),s}_indexMessage(t){let e=t.indexOf(":");if(e===-1)return;let s=t.substring(0,e+1),i=this.prefixIndex.get(s);i||(i=new Set,this.prefixIndex.set(s,i)),i.add(t)}_unindexMessage(t){let e=t.indexOf(":");if(e===-1)return;let s=t.substring(0,e+1),i=this.prefixIndex.get(s);i&&(i.delete(t),i.size===0&&this.prefixIndex.delete(s))}getPrefixMessages(t){return this.prefixIndex&&this.prefixIndex.get(t)||null}getMessages(){return this.callBacks.keys()}off(t,e){let s=this.callBacks.get(t);s&&(s.delete(e),s.size===0&&(this.callBacks.delete(t),this.prefixIndex&&this._unindexMessage(t)))}remove(t){this.callBacks.delete(t),this.prefixIndex&&this._unindexMessage(t)}publish(t,e,s){if(!this.batchingEnabled){this.publishImmediate(t,e,s);return}this.suppressQueue||(t===this.deliveringMessage&&(this.reentrantMessages??(this.reentrantMessages=new Set)).add(t),this.callBacks.has(t)&&(this.updateQueue.set(t,[e,s]),this.debugMode&&console.log("[DataPubSub] Queued update:",t,e),this.scheduleFlush()))}scheduleFlush(){this.isFlushing||this.flushScheduled||(this.flushScheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){if(this.updateQueue.size===0){this.flushScheduled=!1,this.isFlushing=!1,this.flushIterations=0,this._resolveFlushComplete();return}if(this.isFlushing||(this.flushIterations=0,this.reentrantMessages=null),this.isFlushing=!0,this.flushScheduled=!1,this.flushIterations++,this.flushIterations>this.maxFlushIterations){console.error("[DataPubSub] Infinite loop detected! Flush iterations exceeded",this.maxFlushIterations,"- Breaking to prevent memory exhaustion."),console.error("[DataPubSub] Queue size:",this.updateQueue.size),console.error("[DataPubSub] Queued messages:",Array.from(this.updateQueue.keys())),this._breakCascade(),this.flushScheduled=!1,this.isFlushing=!1,this._resolveFlushComplete(),this.flushIterations=0;return}this.debugMode&&console.log("[DataPubSub] Flushing",this.updateQueue.size,"updates (iteration",this.flushIterations+")");let t=this.updateQueue;this.updateQueue=new Map;try{for(let[e,s]of t)this.publishImmediate(e,s[0],s[1])}finally{this.debugMode&&console.log("[DataPubSub] Flush complete (iteration",this.flushIterations+")"),this.updateQueue.size>0?(this.debugMode&&console.log("[DataPubSub] New updates queued during flush, re-flushing..."),this.flush()):(this.isFlushing=!1,this.flushIterations=0,this._resolveFlushComplete())}}_breakCascade(){let t=this.updateQueue;this.updateQueue=new Map;let e=this.reentrantMessages;this.suppressQueue=!0;try{for(let[s,i]of t)e&&e.has(s)||this.publishImmediate(s,i[0],i[1])}finally{this.suppressQueue=!1,this.reentrantMessages=null,this.updateQueue.clear()}}_resolveFlushComplete(){if(this.flushCompleteResolvers.length>0){let t=this.flushCompleteResolvers;this.flushCompleteResolvers=[];let e=t.length;for(let s=0;s<e;s++)t[s]()}if(this.flushCallbacks.length>0){let t=this.flushCallbacks;this.flushCallbacks=[];let e=t.length;for(let s=0;s<e;s++)t[s]()}}nextFlush(){return new Promise(t=>{this.flushCompleteResolvers.push(t),!this.flushScheduled&&!this.isFlushing&&queueMicrotask(()=>t())})}onFlush(t){if(typeof t!="function"){console.warn("[DataPubSub] onFlush requires a function callback");return}this.flushCallbacks.push(t),!this.flushScheduled&&!this.isFlushing&&queueMicrotask(()=>{if(this.flushCallbacks.length>0){let e=this.flushCallbacks;this.flushCallbacks=[];let s=e.length;for(let i=0;i<s;i++)e[i]()}})}flushSync(){this.flush()}publishImmediate(t,e,s){let i=this.callBacks.get(t);if(!i)return;let n=this.deliveringMessage;this.deliveringMessage=t;for(let u of i.values())if(u)try{u(e,s)}catch(h){console.error('[DataPubSub] Subscriber error for "'+t+'":',h)}this.deliveringMessage=n}};var D=class{constructor(){this.version="1.0.1",this.attr="bindId",this.blockedKeys=new Set([20,37,38,39,40]),this.connections=new M,this.pubSub=new A(!0),this.idCount=0,this.setup()}setup(){this.setupEvents()}bind(t,e,s,i){let n=s,u=null,h=s.indexOf(":");h!==-1&&(u=s.substring(0,h),n=s.substring(h+1));let c=u??"",f=this.setupConnection(t,e,n,c,i),o=f.element,l=e.get(n);return typeof l<"u"?o.set(l):(l=o.get(),l!==""&&f.data.set(l)),this}setupConnection(t,e,s,i,n){let u=this.getBindId(t),h=new B(this.pubSub);h.addData(e,s).subscribe(u);let o=`${e.getDataId()}:${s}`;return h.addElement(t,i,n).subscribe(o),this.addConnection(u,"bind",h),h}addConnection(t,e,s){return this.connections.add(t,e,s),this}setBindId(t){let e="db-"+this.idCount++;return t[this.attr]=e,e}getBindId(t){return t[this.attr]||this.setBindId(t)}unbind(t){let e=t[this.attr];return e&&this.connections.remove(e),this}watch(t,e,s,i){if(k.isObject(t)===!1)return this;let n=new y,u=e.get(s),h=!0,c=d=>{h&&(h=!1,d===u&&(d===null||typeof d!="object"))||i(d)};n.addSource(e).subscribe(s,c);let o=this.getBindId(t),l=e.getDataId()+":"+s;return this.addConnection(o,l,n),i(u),this}watchMany(t,e,s,i){if(k.isObject(t)===!1)return this;let n=s?s.length:0;if(n===0)return this;if(n===1)return this.watch(t,e,s[0],i);let u=new y,h=u.addSource(e),c=new Array(n),f=new Array(n);for(let a=0;a<n;a++)c[a]=e.get(s[a]),f[a]=!0;let o=new Array(n);for(let a=0;a<n;a++){let F=a,E=c[a];o[a]=S=>{f[F]&&(f[F]=!1,S===E&&(S===null||typeof S!="object"))||i(S)}}if(typeof e.on!="function")return console.warn('DataBinder.watchMany: data source has no "on" method.',e),this;let l=new Array(n);for(let a=0;a<n;a++)l[a]={msg:s[a],token:e.on(s[a],o[a])};h.subscriptions=l;let d=this.getBindId(t),H=e.getDataId()+":"+s.join(",");return this.addConnection(d,H,u),i(c[0]),this}unwatch(t,e,s){if(k.isObject(t)===!1)return this;let i=t[this.attr];if(i){let n=e.getDataId()+":"+s;this.connections.remove(i,n)}return this}publish(t,e,s){return this.pubSub.publish(t,e,s),this}getPrefixMessages(t){return this.pubSub.getPrefixMessages(t)}isDataBound(t){if(!t)return null;let e=t[this.attr];return e||null}isBlocked(t){return t.type!=="keyup"?!1:this.blockedKeys.has(t.keyCode)}bindHandler(t){if(this.isBlocked(t))return!0;let e=t.target||t.srcElement,s=this.isDataBound(e);if(s!==null){let i=this.connections.get(s,"bind");if(i){let n=i.element.get();this.pubSub.publish(s,n,e)}}t.stopPropagation()}setupEvents(){this.changeHandler=this.bindHandler.bind(this),this.addEvents()}addEvents(){typeof document<"u"&&v.on(["change","paste","input"],document,this.changeHandler,!1)}removeEvents(){typeof document<"u"&&v.off(["change","paste","input"],document,this.changeHandler,!1)}},mt=new D;export{P as a,A as b,mt as c};
|
|
2
|
-
//# sourceMappingURL=chunk-T3WI7GCT.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as h}from"./chunk-DWOYCZYJ.js";var d=class{static getType(t){let e=typeof t;return e!=="object"?e:Array.isArray(t)?"array":"object"}static isUndefined(t){return typeof t>"u"}static isObject(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}static isFunction(t){return typeof t=="function"}static isString(t){return typeof t=="string"}static isArray(t){return Array.isArray(t)}};var o={types:{},add(r,t){this.types[r]=t},get(r){return this.types[r]||!1},remove(r){delete this.types[r]}};var l=class{constructor(){this.types=new Map}add(t,e){let s=this.types.get(t);s||(s=[],this.types.set(t,s)),s.push(e)}get(t){return this.types.get(t)||!1}has(t){return this.types.has(t)}removeType(t){let e=this.types.get(t);if(!e||!e.length)return;let s,i=o.get(t);if(i){for(let n=0,f=e.length;n<f;n++)s=e[n],s&&(e[n]=null,typeof i=="function"&&i(s));this.types.delete(t)}}remove(t){if(t){this.removeType(t);return}let e=this.types.keys();for(let s of e)s&&this.removeType(s);this.types.clear()}};var c=new WeakMap,a=class{static addType(t,e){o.add(t,e)}static removeType(t){o.remove(t)}static getTrackingId(t){if(!t||typeof t!="object")return"";let e=c.get(t);return e||(e="dt"+this.trackingCount++,c.set(t,e)),e}static add(t,e,s){let i=this.getTrackingId(t);this.find(i).add(e,s)}static get(t,e){let s=c.get(t),i=this.trackers.get(s);return i?e?i.get(e):i:!1}static has(t,e){let s=this.getTrackingId(t);if(!s)return!1;let i=this.trackers.get(s);return i&&e?i.has(e):!1}static find(t){let e=this.trackers.get(t);return e||(e=new l,this.trackers.set(t,e)),e}static isEmpty(t){return!t||typeof t!="object"?!0:t.size===0}static remove(t,e){let s=c.get(t);if(!s)return;let i=this.trackers.get(s);if(i){if(!e){i.remove(),this.trackers.delete(s),c.delete(t);return}i.remove(e),this.isEmpty(i.types)&&(this.trackers.delete(s),c.delete(t))}}};h(a,"trackers",new Map),h(a,"trackingCount",0);var m={getEvents(r){return typeof r!="object"||r===null?[]:a.get(r,"events")},create(r,t,e,s=!1,i=!1,n=null){return{event:r,obj:t,fn:e,capture:s,swapped:i,originalFn:n}},on(r,t,e,s){if(Array.isArray(r))for(let i=0,n=r.length;i<n;i++)this.add(r[i],t,e,s);else this.add(r,t,e,s);return this},off(r,t,e,s){if(Array.isArray(r))for(let i=0,n=r.length;i<n;i++)this.remove(r[i],t,e,s);else this.remove(r,t,e,s);return this},add(r,t,e,s=!1,i=!1,n=null){if(typeof t!="object"||t===null)return this;let f=this.create(r,t,e,s,i,n);return a.add(t,"events",f),t.addEventListener(r,e,s),this},remove(r,t,e,s=!1){let i=this.getEvent(r,t,e,s);return i===!1?this:(typeof i=="object"&&this.removeEvent(i),this)},removeEvent(r){return typeof r=="object"&&r.obj.removeEventListener(r.event,r.fn,r.capture),this},getEvent(r,t,e,s){if(typeof t!="object")return!1;let i=this.getEvents(t);if(!i||i.length<1)return!1;let n=this.create(r,t,e,s);return this.search(n,i)},search(r,t){let e,s=this.isSwappable(r.event);for(let i=0,n=t.length;i<n;i++)if(e=t[i],!(e.event!==r.event||e.obj!==r.obj)&&(e.fn===r.fn||s===!0&&e.originalFn===r.fn))return e;return!1},removeEvents(r){return typeof r!="object"||r===null?this:(a.remove(r,"events"),this)},swap:new Set(["DOMMouseScroll","wheel","mousewheel","mousemove","popstate"]),addSwapped(r){this.swap.add(r)},isSwappable(r){return this.swap.has(r)}};a.addType("events",r=>{m.removeEvent(r)});var g=class{static limit(t,e=1e6){return typeof t!="string"?"":t.substring(0,e)}static parseQueryString(t,e,s=!0){typeof t!="string"&&(t=window.location.search),t=this.limit(t);let i={},n=/([^?=&]+)(=([^&]*))?/g;return t.replace(n,function(f,u,v,y){let p=y===void 0?"":y;if(e!==!1)try{i[u]=decodeURIComponent(p)}catch{i[u]=p}else i[u]=p}),i}static camelCase(t){t=this.limit(t);let e=/(-|\s|_)+\w{1}/g;return t.replace(e,s=>s[1].toUpperCase())}static uncamelCase(t,e="-"){t=this.limit(t);let s=/([A-Z]{1,})/g;return t.replace(s,i=>e+i.toLowerCase()).toLowerCase()}static titleCase(t){if(!t)return"";t=this.limit(t);let e=/\w\S*/;return t.replace(e,s=>s.charAt(0).toUpperCase()+s.substring(1).toLowerCase())}};export{d as a,a as b,m as c,g as d};
|
|
2
|
-
//# sourceMappingURL=chunk-TDLN57VY.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as f}from"./chunk-T3WI7GCT.js";import{b as d,c as l}from"./chunk-TDLN57VY.js";var p=new Map([["class","className"],["text","textContent"],["for","htmlFor"],["readonly","readOnly"],["maxlength","maxLength"],["cellspacing","cellSpacing"],["rowspan","rowSpan"],["colspan","colSpan"],["tabindex","tabIndex"],["celpadding","cellPadding"],["useMap","useMap"],["frameborder","frameBorder"],["contenteditable","contentEditable"]]),m=s=>p.get(s)||s,u=s=>typeof s=="string"&&s.charCodeAt(0)===111&&s.charCodeAt(1)===110?s.substring(2):s,y=/(?:<[a-z][\s\S]*>)/i,h=class{static create(t,e,n,i){let r=document.createElement(t);return this.addAttributes(r,e),i===!0?this.prepend(n,r):this.append(n,r),r}static addAttributes(t,e){if(!e||typeof e!="object")return;let n=e.type;n!==void 0&&t.setAttribute("type",n);let i=Object.keys(e);for(let r=0,o=i.length;r<o;r++){let a=i[r],c=e[a];a==="innerHTML"?t.innerHTML=c:a.indexOf("-")!==-1?t.setAttribute(a,c):this.addAttr(t,a,c)}}static addHtml(t,e){return typeof e>"u"||e===""?this:(y.test(e)?t.innerHTML=e:t.textContent=e,this)}static addAttr(t,e,n){if(n===""||!e)return;if(typeof n==="function")e=u(e),n.originalCallback?l.add(e,t,n,!1,!0,n.originalCallback):l.add(e,t,n);else{let r=m(e);t[r]=n}}static createDocFragment(){return document.createDocumentFragment()}static createText(t,e){let n=document.createTextNode(t);return e&&this.append(e,n),n}static createComment(t,e){let n=document.createComment(t);return e&&this.append(e,n),n}static setupSelectOptions(t,e,n){if(!t||typeof t!="object"||!Array.isArray(e))return!1;e.forEach(i=>{let r=new Option(i.label,i.value);t.options.add(r),n!==null&&r.value==n&&(r.selected=!0)})}static removeElementData(t){let e=[t];for(;e.length>0;){let n=e.pop(),i=n.childNodes;if(i&&i.length>0)for(let r=i.length-1;r>=0;r--){let o=i[r];o.nodeType!==3&&e.push(o)}d.remove(n),n.bindId&&f.unbind(n)}}static removeElement(t){if(!t)return this;let e=d.has(t,"manual-destroy");return this.removeElementData(t),e===!1&&t.remove(),this}static removeChild(t){return this.removeElement(t),this}static removeAll(t){if(!t||typeof t!="object")return this;let e;for(;e=t.firstChild;)this.removeElementData(e),t.removeChild(e);return this}static changeParent(t,e){return e.appendChild(t),this}static append(t,e){return t.appendChild(e),this}static prepend(t,e,n){let i=n||t.firstChild;return t.insertBefore(e,i),this}static clone(t,e=!1){return!t||typeof t!="object"?!1:t.cloneNode(e)}};export{m as a,u as b,h as c};
|
|
2
|
-
//# sourceMappingURL=chunk-TFVBKZUB.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{g as u}from"./chunk-KRDITJSA.js";import{a as o}from"./chunk-DWOYCZYJ.js";var i=class extends u{setup(){this.stage={}}addAction(t,e){return typeof e<"u"&&this.set(t,e),this}getState(t){return this.get(t)}removeAction(t,e){if(e)return this.off(t,e),this;let s=this.stage;return typeof s[t]<"u"&&delete s[t],this}};var n=class extends i{constructor(t){super(),this.id=t}setup(){this.stage={},this.id=""}};var a=class{static restore(t,e){this.targets.set(t,e),this.addOwner(t)}static getTarget(t){return this.targets.has(t)||this.targets.set(t,new n(t)),this.targets.get(t)}static attach(t){let e=this.getTarget(t);return this.addOwner(t),e}static addOwner(t){this.ownerCounts.set(t,(this.ownerCounts.get(t)||0)+1)}static detach(t){let e=this.ownerCounts.get(t);if(e===void 0)return;if(e>1){this.ownerCounts.set(t,e-1);return}this.ownerCounts.delete(t);let s=this.targets.get(t);s&&(s.remove(),this.targets.delete(t))}static getActionState(t,e){return this.getTarget(t).get(e)}static add(t,e,s){let r=this.getTarget(t);return e&&r.addAction(e,s),r}static addAction(t,e,s){return this.add(t,e,s)}static removeAction(t,e,s){if(s){this.off(t,e,s);return}let r=this.getTarget(t);r&&e&&r.removeAction(e)}static on(t,e,s){let r=this.getTarget(t);return e?r.on(e,s):null}static off(t,e,s){this.remove(t,e,s)}static remove(t,e,s){let r=this.targets,h=r.get(t);if(h){if(e){h.off(e,s);return}this.targets.delete(t),this.ownerCounts.delete(t)}}static set(t,e,s){this.getTarget(t).set(e,s)}};o(a,"targets",new Map),o(a,"ownerCounts",new Map);export{i as a,a as b};
|
|
2
|
-
//# sourceMappingURL=chunk-VRFEYZE5.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var f=Object.prototype.toString,n=Object.prototype.hasOwnProperty,a={create(t){return Object.create(t||null)},extendObject(t,e){if(!t||typeof t!="object"||!e||typeof e!="object")return!1;for(let r in t)n.call(t,r)&&!n.call(e,r)&&(e[r]=t[r]);return e},clone(t){if(!t||typeof t!="object")return{};try{return structuredClone(t)}catch{return JSON.parse(JSON.stringify(t))}},getClassObject(t){return typeof t=="function"?t.prototype:t},extendClass(t,e){let r=this.getClassObject(t),c=this.getClassObject(e);if(typeof r!="object"||typeof c!="object")return!1;let s=Object.create(r);for(let o in c)s[o]=c[o];return s},hasOwnProp(t,e){return n.call(t,e)},isPlainObject(t){return!!t&&f.call(t)==="[object Object]"},isEmpty(t){if(!t||typeof t!="object"||Array.isArray(t))return!0;if(t instanceof Map||t instanceof Set)return t.size===0;for(let e in t)if(n.call(t,e))return!1;return!0}};export{a};
|
|
2
|
-
//# sourceMappingURL=chunk-W37VRHGC.js.map
|
package/dist/meta.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/shared/arrays.js":{"bytes":708,"imports":[],"format":"esm"},"src/shared/objects.js":{"bytes":4697,"imports":[],"format":"esm"},"src/shared/types.js":{"bytes":1719,"imports":[],"format":"esm"},"src/main/data-tracker/tracker-types.js":{"bytes":1030,"imports":[],"format":"esm"},"src/main/data-tracker/tracker.js":{"bytes":2201,"imports":[{"path":"src/main/data-tracker/tracker-types.js","kind":"import-statement","original":"./tracker-types.js"}],"format":"esm"},"src/main/data-tracker/data-tracker.js":{"bytes":4322,"imports":[{"path":"src/main/data-tracker/tracker-types.js","kind":"import-statement","original":"./tracker-types.js"},{"path":"src/main/data-tracker/tracker.js","kind":"import-statement","original":"./tracker.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/main/equals.js":{"bytes":2069,"imports":[],"format":"esm"},"src/main/events/events.js":{"bytes":5962,"imports":[{"path":"src/main/data-tracker/data-tracker.js","kind":"import-statement","original":"../data-tracker/data-tracker.js"}],"format":"esm"},"src/main/events/event-methods.js":{"bytes":7449,"imports":[{"path":"src/main/events/events.js","kind":"import-statement","original":"./events.js"}],"format":"esm"},"src/main/base.js":{"bytes":3969,"imports":[{"path":"src/shared/arrays.js","kind":"import-statement","original":"../shared/arrays.js"},{"path":"src/shared/objects.js","kind":"import-statement","original":"../shared/objects.js"},{"path":"src/shared/types.js","kind":"import-statement","original":"../shared/types.js"},{"path":"src/main/data-tracker/data-tracker.js","kind":"import-statement","original":"./data-tracker/data-tracker.js"},{"path":"src/main/equals.js","kind":"import-statement","original":"./equals.js"},{"path":"src/main/events/event-methods.js","kind":"import-statement","original":"./events/event-methods.js"}],"format":"esm"},"src/modules/data/types/model/model-request.js":{"bytes":1100,"imports":[],"format":"esm"},"src/modules/ajax/xhr-default-settings.js":{"bytes":1450,"imports":[],"format":"esm"},"src/modules/ajax/base-ajax-methods.js":{"bytes":1276,"imports":[{"path":"src/main/base.js","kind":"import-statement","original":"../../main/base.js"},{"path":"src/shared/objects.js","kind":"import-statement","original":"../../shared/objects.js"},{"path":"src/modules/ajax/xhr-default-settings.js","kind":"import-statement","original":"./xhr-default-settings.js"}],"format":"esm"},"src/shared/strings.js":{"bytes":2334,"imports":[],"format":"esm"},"src/modules/ajax/xhr-request.js":{"bytes":8554,"imports":[{"path":"src/main/base.js","kind":"import-statement","original":"../../main/base.js"},{"path":"src/main/events/events.js","kind":"import-statement","original":"../../main/events/events.js"},{"path":"src/shared/objects.js","kind":"import-statement","original":"../../shared/objects.js"},{"path":"src/shared/strings.js","kind":"import-statement","original":"../../shared/strings.js"},{"path":"src/modules/ajax/xhr-default-settings.js","kind":"import-statement","original":"./xhr-default-settings.js"}],"format":"esm"},"src/modules/ajax/ajax.js":{"bytes":1163,"imports":[{"path":"src/modules/data/types/model/model-request.js","kind":"import-statement","original":"../data/types/model/model-request.js"},{"path":"src/modules/ajax/base-ajax-methods.js","kind":"import-statement","original":"./base-ajax-methods.js"},{"path":"src/modules/ajax/xhr-request.js","kind":"import-statement","original":"./xhr-request.js"}],"format":"esm"},"src/modules/component/prop-utils.js":{"bytes":1713,"imports":[],"format":"esm"},"src/shared/lru-cache.js":{"bytes":3700,"imports":[],"format":"esm"},"src/modules/data-binder/connection-tracker/connection-tracker.js":{"bytes":2601,"imports":[],"format":"esm"},"src/modules/data-binder/sources/source.js":{"bytes":521,"imports":[],"format":"esm"},"src/modules/data-binder/sources/one-way-source.js":{"bytes":2296,"imports":[{"path":"src/modules/data-binder/sources/source.js","kind":"import-statement","original":"./source.js"}],"format":"esm"},"src/modules/data-binder/connection-tracker/connections/connection.js":{"bytes":211,"imports":[],"format":"esm"},"src/modules/data-binder/connection-tracker/connections/one-way-connection.js":{"bytes":832,"imports":[{"path":"src/modules/data-binder/sources/one-way-source.js","kind":"import-statement","original":"../../sources/one-way-source.js"},{"path":"src/modules/data-binder/connection-tracker/connections/connection.js","kind":"import-statement","original":"./connection.js"}],"format":"esm"},"src/modules/data-binder/sources/two-way-source.js":{"bytes":1054,"imports":[{"path":"src/modules/data-binder/sources/source.js","kind":"import-statement","original":"./source.js"}],"format":"esm"},"src/modules/data-binder/sources/data-source.js":{"bytes":1331,"imports":[{"path":"src/modules/data-binder/sources/two-way-source.js","kind":"import-statement","original":"./two-way-source.js"}],"format":"esm"},"src/shared/dom.js":{"bytes":14145,"imports":[{"path":"src/shared/strings.js","kind":"import-statement","original":"./strings.js"}],"format":"esm"},"src/modules/data-binder/sources/get-bind-attr.js":{"bytes":844,"imports":[],"format":"esm"},"src/modules/data-binder/sources/element-source.js":{"bytes":5059,"imports":[{"path":"src/shared/dom.js","kind":"import-statement","original":"../../../shared/dom.js"},{"path":"src/modules/data-binder/sources/get-bind-attr.js","kind":"import-statement","original":"./get-bind-attr.js"},{"path":"src/modules/data-binder/sources/two-way-source.js","kind":"import-statement","original":"./two-way-source.js"}],"format":"esm"},"src/modules/data-binder/connection-tracker/connections/two-way-connection.js":{"bytes":1703,"imports":[{"path":"src/modules/data-binder/sources/data-source.js","kind":"import-statement","original":"../../sources/data-source.js"},{"path":"src/modules/data-binder/sources/element-source.js","kind":"import-statement","original":"../../sources/element-source.js"},{"path":"src/modules/data-binder/connection-tracker/connections/connection.js","kind":"import-statement","original":"./connection.js"}],"format":"esm"},"src/modules/data-binder/data-pub-sub.js":{"bytes":15722,"imports":[],"format":"esm"},"src/modules/data-binder/data-binder.js":{"bytes":13009,"imports":[{"path":"src/main/events/events.js","kind":"import-statement","original":"../../main/events/events.js"},{"path":"src/shared/types.js","kind":"import-statement","original":"../../shared/types.js"},{"path":"src/modules/data-binder/connection-tracker/connection-tracker.js","kind":"import-statement","original":"./connection-tracker/connection-tracker.js"},{"path":"src/modules/data-binder/connection-tracker/connections/one-way-connection.js","kind":"import-statement","original":"./connection-tracker/connections/one-way-connection.js"},{"path":"src/modules/data-binder/connection-tracker/connections/two-way-connection.js","kind":"import-statement","original":"./connection-tracker/connections/two-way-connection.js"},{"path":"src/modules/data-binder/data-pub-sub.js","kind":"import-statement","original":"./data-pub-sub.js"}],"format":"esm"},"src/modules/layout/directives/core/reactive/get-parent-data.js":{"bytes":361,"imports":[],"format":"esm"},"src/modules/html/html.js":{"bytes":9948,"imports":[{"path":"src/main/data-tracker/data-tracker.js","kind":"import-statement","original":"../../main/data-tracker/data-tracker.js"},{"path":"src/main/events/events.js","kind":"import-statement","original":"../../main/events/events.js"},{"path":"src/modules/data-binder/data-binder.js","kind":"import-statement","original":"../data-binder/data-binder.js"}],"format":"esm"},"src/modules/layout/html-helper.js":{"bytes":3906,"imports":[{"path":"src/main/events/events.js","kind":"import-statement","original":"../../main/events/events.js"},{"path":"src/modules/html/html.js","kind":"import-statement","original":"../html/html.js"}],"format":"esm"},"src/modules/layout/watcher-helper.js":{"bytes":11146,"imports":[{"path":"src/shared/lru-cache.js","kind":"import-statement","original":"../../shared/lru-cache.js"},{"path":"src/modules/data-binder/data-binder.js","kind":"import-statement","original":"../data-binder/data-binder.js"},{"path":"src/modules/layout/directives/core/reactive/get-parent-data.js","kind":"import-statement","original":"./directives/core/reactive/get-parent-data.js"},{"path":"src/modules/layout/html-helper.js","kind":"import-statement","original":"./html-helper.js"}],"format":"esm"},"src/modules/atom/atom.js":{"bytes":3170,"imports":[{"path":"src/modules/component/prop-utils.js","kind":"import-statement","original":"../component/prop-utils.js"},{"path":"src/modules/layout/watcher-helper.js","kind":"import-statement","original":"../layout/watcher-helper.js"}],"format":"esm"},"src/modules/data/data-proxy.js":{"bytes":6507,"imports":[],"format":"esm"},"src/modules/data/local-data.js":{"bytes":1682,"imports":[],"format":"esm"},"src/modules/data/types/model/attrs.js":{"bytes":941,"imports":[{"path":"src/shared/types.js","kind":"import-statement","original":"../../../../shared/types.js"}],"format":"esm"},"src/modules/data/types/basic-data.js":{"bytes":17466,"imports":[{"path":"src/shared/lru-cache.js","kind":"import-statement","original":"../../../shared/lru-cache.js"},{"path":"src/modules/data-binder/data-binder.js","kind":"import-statement","original":"../../data-binder/data-binder.js"},{"path":"src/modules/data-binder/data-pub-sub.js","kind":"import-statement","original":"../../data-binder/data-pub-sub.js"},{"path":"src/modules/data/data-proxy.js","kind":"import-statement","original":"../data-proxy.js"},{"path":"src/modules/data/local-data.js","kind":"import-statement","original":"../local-data.js"},{"path":"src/modules/data/types/model/attrs.js","kind":"import-statement","original":"./model/attrs.js"}],"format":"esm"},"src/modules/data/types/simple-data.js":{"bytes":260,"imports":[{"path":"src/modules/data/types/basic-data.js","kind":"import-statement","original":"./basic-data.js"}],"format":"esm"},"src/modules/state/state.js":{"bytes":1347,"imports":[{"path":"src/modules/data/types/simple-data.js","kind":"import-statement","original":"../data/types/simple-data.js"}],"format":"esm"},"src/modules/state/state-target.js":{"bytes":546,"imports":[{"path":"src/modules/state/state.js","kind":"import-statement","original":"./state.js"}],"format":"esm"},"src/modules/state/state-tracker.js":{"bytes":5326,"imports":[{"path":"src/modules/state/state-target.js","kind":"import-statement","original":"./state-target.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/component/data-resume-helper.js":{"bytes":11167,"imports":[{"path":"src/shared/objects.js","kind":"import-statement","original":"../../shared/objects.js"}],"format":"esm"},"src/modules/component/event-helper.js":{"bytes":2404,"imports":[{"path":"src/main/events/events.js","kind":"import-statement","original":"../../main/events/events.js"}],"format":"esm"},"src/modules/component/state-helper.js":{"bytes":6965,"imports":[{"path":"src/modules/state/state-tracker.js","kind":"import-statement","original":"../state/state-tracker.js"}],"format":"esm"},"src/modules/component/unit.js":{"bytes":16362,"imports":[{"path":"src/main/data-tracker/data-tracker.js","kind":"import-statement","original":"../../main/data-tracker/data-tracker.js"},{"path":"src/modules/html/html.js","kind":"import-statement","original":"../html/html.js"}],"format":"esm"},"src/modules/component/component.js":{"bytes":9999,"imports":[{"path":"src/shared/objects.js","kind":"import-statement","original":"../../shared/objects.js"},{"path":"src/modules/state/state-tracker.js","kind":"import-statement","original":"../state/state-tracker.js"},{"path":"src/modules/component/data-resume-helper.js","kind":"import-statement","original":"./data-resume-helper.js"},{"path":"src/modules/component/event-helper.js","kind":"import-statement","original":"./event-helper.js"},{"path":"src/modules/component/state-helper.js","kind":"import-statement","original":"./state-helper.js"},{"path":"src/modules/component/unit.js","kind":"import-statement","original":"./unit.js"}],"format":"esm"},"src/modules/component/shorthand-methods.js":{"bytes":889,"imports":[],"format":"esm"},"src/modules/component/jot.js":{"bytes":2268,"imports":[{"path":"src/modules/component/component.js","kind":"import-statement","original":"./component.js"},{"path":"src/modules/component/shorthand-methods.js","kind":"import-statement","original":"./shorthand-methods.js"}],"format":"esm"},"src/modules/component/pod.js":{"bytes":1895,"imports":[{"path":"src/modules/component/component.js","kind":"import-statement","original":"./component.js"},{"path":"src/modules/component/shorthand-methods.js","kind":"import-statement","original":"./shorthand-methods.js"}],"format":"esm"},"src/modules/data/types/deep-data/data-utils.js":{"bytes":3177,"imports":[{"path":"src/shared/lru-cache.js","kind":"import-statement","original":"../../../../shared/lru-cache.js"}],"format":"esm"},"src/modules/data/types/deep-data/property-helper.js":{"bytes":2745,"imports":[{"path":"src/modules/data/types/deep-data/data-utils.js","kind":"import-statement","original":"./data-utils.js"}],"format":"esm"},"src/modules/data/types/deep-data/publisher.js":{"bytes":6678,"imports":[{"path":"src/modules/data/types/deep-data/data-utils.js","kind":"import-statement","original":"./data-utils.js"},{"path":"src/modules/data/data-proxy.js","kind":"import-statement","original":"../../data-proxy.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/data/types/deep-data/deep-data.js":{"bytes":10931,"imports":[{"path":"src/shared/objects.js","kind":"import-statement","original":"../../../../shared/objects.js"},{"path":"src/modules/data-binder/data-binder.js","kind":"import-statement","original":"../../../data-binder/data-binder.js"},{"path":"src/modules/data/types/basic-data.js","kind":"import-statement","original":"../basic-data.js"},{"path":"src/modules/data/types/deep-data/property-helper.js","kind":"import-statement","original":"./property-helper.js"},{"path":"src/modules/data/types/deep-data/publisher.js","kind":"import-statement","original":"./publisher.js"}],"format":"esm"},"src/shared/encode/json.js":{"bytes":2279,"imports":[],"format":"esm"},"src/shared/encode/encode.js":{"bytes":1220,"imports":[{"path":"src/shared/objects.js","kind":"import-statement","original":"../objects.js"},{"path":"src/shared/encode/json.js","kind":"import-statement","original":"./json.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/data/types/model/model-service.js":{"bytes":17590,"imports":[{"path":"src/shared/encode/encode.js","kind":"import-statement","original":"../../../../shared/encode/encode.js"},{"path":"src/shared/strings.js","kind":"import-statement","original":"../../../../shared/strings.js"},{"path":"src/modules/layout/watcher-helper.js","kind":"import-statement","original":"../../../layout/watcher-helper.js"},{"path":"src/modules/data/types/model/model-request.js","kind":"import-statement","original":"./model-request.js"}],"format":"esm"},"src/modules/data/types/model/model.js":{"bytes":5624,"imports":[{"path":"src/shared/types.js","kind":"import-statement","original":"../../../../shared/types.js"},{"path":"src/modules/data/types/deep-data/deep-data.js","kind":"import-statement","original":"../deep-data/deep-data.js"},{"path":"src/modules/data/types/model/attrs.js","kind":"import-statement","original":"./attrs.js"},{"path":"src/modules/data/types/model/model-service.js","kind":"import-statement","original":"./model-service.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/data/data.js":{"bytes":211,"imports":[{"path":"src/modules/data/types/deep-data/deep-data.js","kind":"import-statement","original":"./types/deep-data/deep-data.js"},{"path":"src/modules/data/types/model/model.js","kind":"import-statement","original":"./types/model/model.js"},{"path":"src/modules/data/types/simple-data.js","kind":"import-statement","original":"./types/simple-data.js"}],"format":"esm"},"src/modules/date/date-time.js":{"bytes":16744,"imports":[],"format":"esm"},"src/modules/layout/directives/directives.js":{"bytes":748,"imports":[],"format":"esm"},"src/modules/layout/element/attribute-directive.js":{"bytes":227,"imports":[],"format":"esm"},"src/modules/layout/element/attribute.js":{"bytes":192,"imports":[],"format":"esm"},"src/modules/layout/element/element.js":{"bytes":317,"imports":[],"format":"esm"},"src/modules/layout/element/parser.js":{"bytes":6098,"imports":[{"path":"src/modules/html/html.js","kind":"import-statement","original":"../../html/html.js"},{"path":"src/modules/layout/directives/directives.js","kind":"import-statement","original":"../directives/directives.js"},{"path":"src/modules/layout/watcher-helper.js","kind":"import-statement","original":"../watcher-helper.js"},{"path":"src/modules/layout/element/attribute-directive.js","kind":"import-statement","original":"./attribute-directive.js"},{"path":"src/modules/layout/element/attribute.js","kind":"import-statement","original":"./attribute.js"},{"path":"src/modules/layout/element/element.js","kind":"import-statement","original":"./element.js"}],"format":"esm"},"src/modules/layout/render/render.js":{"bytes":2789,"imports":[],"format":"esm"},"src/modules/layout/render/browser-render.js":{"bytes":7103,"imports":[{"path":"src/modules/component/component.js","kind":"import-statement","original":"../../component/component.js"},{"path":"src/modules/component/jot.js","kind":"import-statement","original":"../../component/jot.js"},{"path":"src/modules/layout/element/parser.js","kind":"import-statement","original":"../element/parser.js"},{"path":"src/modules/layout/html-helper.js","kind":"import-statement","original":"../html-helper.js"},{"path":"src/modules/layout/render/render.js","kind":"import-statement","original":"./render.js"}],"format":"esm"},"src/modules/layout/html-to-string.js":{"bytes":3289,"imports":[],"format":"esm"},"src/modules/layout/render/server-render.js":{"bytes":2936,"imports":[{"path":"src/modules/layout/element/parser.js","kind":"import-statement","original":"../element/parser.js"},{"path":"src/modules/layout/html-to-string.js","kind":"import-statement","original":"../html-to-string.js"},{"path":"src/modules/layout/render/render.js","kind":"import-statement","original":"./render.js"}],"format":"esm"},"src/modules/layout/render/render-controller.js":{"bytes":761,"imports":[{"path":"src/modules/layout/render/browser-render.js","kind":"import-statement","original":"./browser-render.js"},{"path":"src/modules/layout/render/server-render.js","kind":"import-statement","original":"./server-render.js"}],"format":"esm"},"src/modules/layout/builder.js":{"bytes":2751,"imports":[{"path":"src/modules/component/jot.js","kind":"import-statement","original":"../component/jot.js"},{"path":"src/modules/layout/render/render-controller.js","kind":"import-statement","original":"./render/render-controller.js"}],"format":"esm"},"src/modules/import/group.js":{"bytes":2669,"imports":[{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"../layout/builder.js"}],"format":"esm"},"src/modules/import/layout-manager.js":{"bytes":1516,"imports":[{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"../layout/builder.js"}],"format":"esm"},"src/modules/import/module-loader.js":{"bytes":633,"imports":[],"format":"esm"},"src/modules/import/import-wrapper.js":{"bytes":10380,"imports":[{"path":"src/shared/lru-cache.js","kind":"import-statement","original":"../../shared/lru-cache.js"},{"path":"src/modules/component/component.js","kind":"import-statement","original":"../component/component.js"},{"path":"src/modules/component/jot.js","kind":"import-statement","original":"../component/jot.js"},{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"../layout/builder.js"},{"path":"src/modules/import/group.js","kind":"import-statement","original":"./group.js"},{"path":"src/modules/import/layout-manager.js","kind":"import-statement","original":"./layout-manager.js"},{"path":"src/modules/import/module-loader.js","kind":"import-statement","original":"./module-loader.js"}],"format":"esm"},"src/modules/import/import.js":{"bytes":379,"imports":[{"path":"src/modules/import/import-wrapper.js","kind":"import-statement","original":"./import-wrapper.js"}],"format":"esm"},"src/modules/layout/base-layout-methods.js":{"bytes":744,"imports":[{"path":"src/main/base.js","kind":"import-statement","original":"../../main/base.js"},{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"./builder.js"}],"format":"esm"},"src/modules/layout/directives/directive-registry.js":{"bytes":1021,"imports":[{"path":"src/modules/layout/directives/directives.js","kind":"import-statement","original":"./directives.js"}],"format":"esm"},"src/modules/layout/directives/core/animate/animate.js":{"bytes":3219,"imports":[{"path":"src/main/data-tracker/data-tracker.js","kind":"import-statement","original":"../../../../../main/data-tracker/data-tracker.js"},{"path":"src/main/events/events.js","kind":"import-statement","original":"../../../../../main/events/events.js"}],"format":"esm"},"src/modules/layout/directives/core/dom-methods.js":{"bytes":4240,"imports":[{"path":"src/modules/data-binder/data-binder.js","kind":"import-statement","original":"../../../data-binder/data-binder.js"},{"path":"src/modules/data-binder/sources/get-bind-attr.js","kind":"import-statement","original":"../../../data-binder/sources/get-bind-attr.js"},{"path":"src/modules/html/html.js","kind":"import-statement","original":"../../../html/html.js"},{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"../../builder.js"}],"format":"esm"},"src/modules/layout/directives/core/reactive/on-set.js":{"bytes":382,"imports":[{"path":"src/modules/layout/directives/core/dom-methods.js","kind":"import-statement","original":"../dom-methods.js"},{"path":"src/modules/layout/directives/core/reactive/get-parent-data.js","kind":"import-statement","original":"./get-parent-data.js"}],"format":"esm"},"src/modules/layout/directives/core/aria/aria.js":{"bytes":1610,"imports":[{"path":"src/modules/layout/directives/core/reactive/on-set.js","kind":"import-statement","original":"../reactive/on-set.js"}],"format":"esm"},"src/modules/layout/directives/core/attribute-helpers.js":{"bytes":605,"imports":[{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"../../builder.js"},{"path":"src/modules/layout/element/parser.js","kind":"import-statement","original":"../../element/parser.js"},{"path":"src/modules/layout/html-helper.js","kind":"import-statement","original":"../../html-helper.js"}],"format":"esm"},"src/modules/layout/directives/core/context/context-directives.js":{"bytes":2408,"imports":[{"path":"src/main/data-tracker/data-tracker.js","kind":"import-statement","original":"../../../../../main/data-tracker/data-tracker.js"},{"path":"src/modules/layout/directives/core/attribute-helpers.js","kind":"import-statement","original":"../attribute-helpers.js"}],"format":"esm"},"src/modules/layout/directives/core/data.js":{"bytes":208,"imports":[],"format":"esm"},"src/modules/layout/directives/core/debug.js":{"bytes":480,"imports":[],"format":"esm"},"src/modules/layout/directives/core/parent/parent-directives.js":{"bytes":3209,"imports":[{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"../../../builder.js"}],"format":"esm"},"src/modules/layout/directives/core/reactive/on-created.js":{"bytes":270,"imports":[],"format":"esm"},"src/modules/layout/directives/core/reactive/on-destroyed.js":{"bytes":938,"imports":[{"path":"src/main/data-tracker/data-tracker.js","kind":"import-statement","original":"../../../../../main/data-tracker/data-tracker.js"}],"format":"esm"},"src/modules/layout/directives/core/state.js":{"bytes":210,"imports":[],"format":"esm"},"src/modules/layout/directives/core/core-directives.js":{"bytes":1004,"imports":[{"path":"src/modules/layout/directives/core/animate/animate.js","kind":"import-statement","original":"./animate/animate.js"},{"path":"src/modules/layout/directives/core/aria/aria.js","kind":"import-statement","original":"./aria/aria.js"},{"path":"src/modules/layout/directives/core/context/context-directives.js","kind":"import-statement","original":"./context/context-directives.js"},{"path":"src/modules/layout/directives/core/data.js","kind":"import-statement","original":"./data.js"},{"path":"src/modules/layout/directives/core/debug.js","kind":"import-statement","original":"./debug.js"},{"path":"src/modules/layout/directives/core/parent/parent-directives.js","kind":"import-statement","original":"./parent/parent-directives.js"},{"path":"src/modules/layout/directives/core/reactive/on-created.js","kind":"import-statement","original":"./reactive/on-created.js"},{"path":"src/modules/layout/directives/core/reactive/on-destroyed.js","kind":"import-statement","original":"./reactive/on-destroyed.js"},{"path":"src/modules/layout/directives/core/state.js","kind":"import-statement","original":"./state.js"}],"format":"esm"},"src/modules/layout/directives/core/reactive/bind.js":{"bytes":1023,"imports":[{"path":"src/modules/data-binder/data-binder.js","kind":"import-statement","original":"../../../../data-binder/data-binder.js"},{"path":"src/modules/layout/directives/core/reactive/get-parent-data.js","kind":"import-statement","original":"./get-parent-data.js"}],"format":"esm"},"src/modules/layout/directives/core/reactive/on-state.js":{"bytes":310,"imports":[{"path":"src/modules/layout/directives/core/dom-methods.js","kind":"import-statement","original":"../dom-methods.js"}],"format":"esm"},"src/modules/layout/directives/core/reactive/data-set.js":{"bytes":1999,"imports":[{"path":"src/modules/layout/directives/core/reactive/on-set.js","kind":"import-statement","original":"../reactive/on-set.js"},{"path":"src/modules/layout/directives/core/reactive/on-state.js","kind":"import-statement","original":"./on-state.js"}],"format":"esm"},"src/modules/layout/directives/core/reactive/for-each.js":{"bytes":3120,"imports":[{"path":"src/main/data-tracker/data-tracker.js","kind":"import-statement","original":"../../../../../main/data-tracker/data-tracker.js"},{"path":"src/modules/data-binder/data-binder.js","kind":"import-statement","original":"../../../../data-binder/data-binder.js"},{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"../../../builder.js"},{"path":"src/modules/layout/directives/core/reactive/get-parent-data.js","kind":"import-statement","original":"./get-parent-data.js"}],"format":"esm"},"src/modules/layout/directives/core/reactive/map.js":{"bytes":730,"imports":[{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"../../../builder.js"}],"format":"esm"},"src/modules/layout/directives/core/reactive/watch.js":{"bytes":640,"imports":[{"path":"src/modules/layout/watcher-helper.js","kind":"import-statement","original":"../../../watcher-helper.js"}],"format":"esm"},"src/modules/layout/directives/core/reactive-directives.js":{"bytes":632,"imports":[{"path":"src/modules/layout/directives/core/reactive/bind.js","kind":"import-statement","original":"./reactive/bind.js"},{"path":"src/modules/layout/directives/core/reactive/data-set.js","kind":"import-statement","original":"./reactive/data-set.js"},{"path":"src/modules/layout/directives/core/reactive/for-each.js","kind":"import-statement","original":"./reactive/for-each.js"},{"path":"src/modules/layout/directives/core/reactive/map.js","kind":"import-statement","original":"./reactive/map.js"},{"path":"src/modules/layout/directives/core/reactive/on-set.js","kind":"import-statement","original":"./reactive/on-set.js"},{"path":"src/modules/layout/directives/core/reactive/on-state.js","kind":"import-statement","original":"./reactive/on-state.js"},{"path":"src/modules/layout/directives/core/reactive/watch.js","kind":"import-statement","original":"./reactive/watch.js"}],"format":"esm"},"src/modules/router/router-registry.js":{"bytes":1214,"imports":[],"format":"esm"},"src/modules/layout/directives/core/route.js":{"bytes":2402,"imports":[{"path":"src/main/data-tracker/data-tracker.js","kind":"import-statement","original":"../../../../main/data-tracker/data-tracker.js"},{"path":"src/modules/router/router-registry.js","kind":"import-statement","original":"../../../router/router-registry.js"}],"format":"esm"},"src/modules/layout/directives/core/switch.js":{"bytes":1609,"imports":[{"path":"src/main/data-tracker/data-tracker.js","kind":"import-statement","original":"../../../../main/data-tracker/data-tracker.js"},{"path":"src/modules/router/router-registry.js","kind":"import-statement","original":"../../../router/router-registry.js"}],"format":"esm"},"src/modules/layout/directives/core/router-directives.js":{"bytes":564,"imports":[{"path":"src/modules/layout/directives/core/route.js","kind":"import-statement","original":"./route.js"},{"path":"src/modules/layout/directives/core/switch.js","kind":"import-statement","original":"./switch.js"}],"format":"esm"},"src/modules/layout/directives/core/default-directives.js":{"bytes":784,"imports":[{"path":"src/modules/layout/directives/directive-registry.js","kind":"import-statement","original":"../directive-registry.js"},{"path":"src/modules/layout/directives/core/core-directives.js","kind":"import-statement","original":"./core-directives.js"},{"path":"src/modules/layout/directives/core/reactive-directives.js","kind":"import-statement","original":"./reactive-directives.js"},{"path":"src/modules/layout/directives/core/router-directives.js","kind":"import-statement","original":"./router-directives.js"}],"format":"esm"},"src/modules/router/history/history.js":{"bytes":1203,"imports":[],"format":"esm"},"src/modules/router/history/browser-history.js":{"bytes":5315,"imports":[{"path":"src/main/events/events.js","kind":"import-statement","original":"../../../main/events/events.js"},{"path":"src/modules/router/history/history.js","kind":"import-statement","original":"./history.js"}],"format":"esm"},"src/modules/router/utils.js":{"bytes":1099,"imports":[],"format":"esm"},"src/modules/router/history/hash-history.js":{"bytes":1121,"imports":[{"path":"src/main/events/events.js","kind":"import-statement","original":"../../../main/events/events.js"},{"path":"src/modules/router/utils.js","kind":"import-statement","original":"../utils.js"},{"path":"src/modules/router/history/history.js","kind":"import-statement","original":"./history.js"}],"format":"esm"},"src/modules/router/history/history-controller.js":{"bytes":780,"imports":[{"path":"src/modules/router/history/browser-history.js","kind":"import-statement","original":"./browser-history.js"},{"path":"src/modules/router/history/hash-history.js","kind":"import-statement","original":"./hash-history.js"}],"format":"esm"},"src/modules/component/cloak.js":{"bytes":734,"imports":[{"path":"src/modules/component/component.js","kind":"import-statement","original":"./component.js"},{"path":"src/modules/component/jot.js","kind":"import-statement","original":"./jot.js"}],"format":"esm"},"src/modules/router/routes/component-helper.js":{"bytes":3908,"imports":[{"path":"src/modules/component/cloak.js","kind":"import-statement","original":"../../component/cloak.js"},{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"../../layout/builder.js"}],"format":"esm"},"src/modules/router/routes/param-pattern.js":{"bytes":1047,"imports":[],"format":"esm"},"src/modules/router/routes/route-pattern.js":{"bytes":2069,"imports":[],"format":"esm"},"src/modules/router/routes/route.js":{"bytes":11561,"imports":[{"path":"src/modules/data/data-proxy.js","kind":"import-statement","original":"../../data/data-proxy.js"},{"path":"src/modules/data/types/basic-data.js","kind":"import-statement","original":"../../data/types/basic-data.js"},{"path":"src/modules/import/import.js","kind":"import-statement","original":"../../import/import.js"},{"path":"src/modules/router/routes/component-helper.js","kind":"import-statement","original":"./component-helper.js"},{"path":"src/modules/router/routes/param-pattern.js","kind":"import-statement","original":"./param-pattern.js"},{"path":"src/modules/router/routes/route-pattern.js","kind":"import-statement","original":"./route-pattern.js"}],"format":"esm"},"src/modules/router/set-title.js":{"bytes":2200,"imports":[],"format":"esm"},"src/modules/router/nav-link.js":{"bytes":5172,"imports":[{"path":"src/modules/component/component.js","kind":"import-statement","original":"../component/component.js"},{"path":"src/modules/router/router.js","kind":"import-statement","original":"./router.js"}],"format":"esm"},"src/modules/router/router.js":{"bytes":27514,"imports":[{"path":"src/main/events/events.js","kind":"import-statement","original":"../../main/events/events.js"},{"path":"src/modules/data/types/deep-data/deep-data.js","kind":"import-statement","original":"../data/types/deep-data/deep-data.js"},{"path":"src/modules/router/history/history-controller.js","kind":"import-statement","original":"./history/history-controller.js"},{"path":"src/modules/router/router-registry.js","kind":"import-statement","original":"./router-registry.js"},{"path":"src/modules/router/routes/route.js","kind":"import-statement","original":"./routes/route.js"},{"path":"src/modules/router/set-title.js","kind":"import-statement","original":"./set-title.js"},{"path":"src/modules/router/utils.js","kind":"import-statement","original":"./utils.js"},{"path":"src/modules/router/nav-link.js","kind":"import-statement","original":"./nav-link.js"}],"format":"esm"},"src/base.js":{"bytes":2668,"imports":[{"path":"src/main/base.js","kind":"import-statement","original":"./main/base.js"},{"path":"src/main/data-tracker/data-tracker.js","kind":"import-statement","original":"./main/data-tracker/data-tracker.js"},{"path":"src/main/events/event-methods.js","kind":"import-statement","original":"./main/events/event-methods.js"},{"path":"src/modules/ajax/ajax.js","kind":"import-statement","original":"./modules/ajax/ajax.js"},{"path":"src/modules/atom/atom.js","kind":"import-statement","original":"./modules/atom/atom.js"},{"path":"src/modules/component/component.js","kind":"import-statement","original":"./modules/component/component.js"},{"path":"src/modules/component/jot.js","kind":"import-statement","original":"./modules/component/jot.js"},{"path":"src/modules/component/pod.js","kind":"import-statement","original":"./modules/component/pod.js"},{"path":"src/modules/component/unit.js","kind":"import-statement","original":"./modules/component/unit.js"},{"path":"src/modules/data-binder/data-binder.js","kind":"import-statement","original":"./modules/data-binder/data-binder.js"},{"path":"src/modules/data/data.js","kind":"import-statement","original":"./modules/data/data.js"},{"path":"src/modules/date/date-time.js","kind":"import-statement","original":"./modules/date/date-time.js"},{"path":"src/modules/html/html.js","kind":"import-statement","original":"./modules/html/html.js"},{"path":"src/modules/import/import.js","kind":"import-statement","original":"./modules/import/import.js"},{"path":"src/modules/layout/base-layout-methods.js","kind":"import-statement","original":"./modules/layout/base-layout-methods.js"},{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"./modules/layout/builder.js"},{"path":"src/modules/layout/directives/core/default-directives.js","kind":"import-statement","original":"./modules/layout/directives/core/default-directives.js"},{"path":"src/modules/layout/directives/directive-registry.js","kind":"import-statement","original":"./modules/layout/directives/directive-registry.js"},{"path":"src/modules/layout/directives/directives.js","kind":"import-statement","original":"./modules/layout/directives/directives.js"},{"path":"src/modules/router/router.js","kind":"import-statement","original":"./modules/router/router.js"},{"path":"src/modules/state/state-tracker.js","kind":"import-statement","original":"./modules/state/state-tracker.js"},{"path":"src/modules/state/state.js","kind":"import-statement","original":"./modules/state/state.js"},{"path":"src/shared/arrays.js","kind":"import-statement","original":"./shared/arrays.js"},{"path":"src/shared/dom.js","kind":"import-statement","original":"./shared/dom.js"},{"path":"src/shared/encode/encode.js","kind":"import-statement","original":"./shared/encode/encode.js"},{"path":"src/shared/objects.js","kind":"import-statement","original":"./shared/objects.js"},{"path":"src/shared/strings.js","kind":"import-statement","original":"./shared/strings.js"},{"path":"src/shared/types.js","kind":"import-statement","original":"./shared/types.js"}],"format":"esm"},"src/entries/ajax.js":{"bytes":241,"imports":[{"path":"src/modules/ajax/ajax.js","kind":"import-statement","original":"../modules/ajax/ajax.js"}],"format":"esm"},"src/entries/html.js":{"bytes":203,"imports":[{"path":"src/modules/html/html.js","kind":"import-statement","original":"../modules/html/html.js"}],"format":"esm"},"src/entries/date.js":{"bytes":218,"imports":[{"path":"src/modules/date/date-time.js","kind":"import-statement","original":"../modules/date/date-time.js"}],"format":"esm"},"src/entries/data.js":{"bytes":589,"imports":[{"path":"src/modules/data/data.js","kind":"import-statement","original":"../modules/data/data.js"},{"path":"src/modules/data/types/model/model-request.js","kind":"import-statement","original":"../modules/data/types/model/model-request.js"}],"format":"esm"},"src/entries/state.js":{"bytes":294,"imports":[{"path":"src/modules/state/state-tracker.js","kind":"import-statement","original":"../modules/state/state-tracker.js"},{"path":"src/modules/state/state.js","kind":"import-statement","original":"../modules/state/state.js"}],"format":"esm"},"src/entries/component.js":{"bytes":1631,"imports":[{"path":"src/modules/layout/directives/directive-registry.js","kind":"import-statement","original":"../modules/layout/directives/directive-registry.js"},{"path":"src/modules/layout/directives/core/core-directives.js","kind":"import-statement","original":"../modules/layout/directives/core/core-directives.js"},{"path":"src/modules/layout/directives/core/reactive-directives.js","kind":"import-statement","original":"../modules/layout/directives/core/reactive-directives.js"},{"path":"src/modules/atom/atom.js","kind":"import-statement","original":"../modules/atom/atom.js"},{"path":"src/modules/component/component.js","kind":"import-statement","original":"../modules/component/component.js"},{"path":"src/modules/component/jot.js","kind":"import-statement","original":"../modules/component/jot.js"},{"path":"src/modules/component/pod.js","kind":"import-statement","original":"../modules/component/pod.js"},{"path":"src/modules/component/unit.js","kind":"import-statement","original":"../modules/component/unit.js"},{"path":"src/modules/import/import.js","kind":"import-statement","original":"../modules/import/import.js"},{"path":"src/modules/layout/builder.js","kind":"import-statement","original":"../modules/layout/builder.js"},{"path":"src/modules/layout/directives/core/core-directives.js","kind":"import-statement","original":"../modules/layout/directives/core/core-directives.js"},{"path":"src/modules/layout/directives/core/reactive-directives.js","kind":"import-statement","original":"../modules/layout/directives/core/reactive-directives.js"},{"path":"src/modules/layout/directives/directive-registry.js","kind":"import-statement","original":"../modules/layout/directives/directive-registry.js"},{"path":"src/modules/layout/directives/directives.js","kind":"import-statement","original":"../modules/layout/directives/directives.js"}],"format":"esm"},"src/entries/router.js":{"bytes":946,"imports":[{"path":"src/modules/layout/directives/directive-registry.js","kind":"import-statement","original":"../modules/layout/directives/directive-registry.js"},{"path":"src/modules/layout/directives/core/router-directives.js","kind":"import-statement","original":"../modules/layout/directives/core/router-directives.js"},{"path":"src/modules/layout/directives/core/router-directives.js","kind":"import-statement","original":"../modules/layout/directives/core/router-directives.js"},{"path":"src/modules/layout/directives/directive-registry.js","kind":"import-statement","original":"../modules/layout/directives/directive-registry.js"},{"path":"src/modules/router/router.js","kind":"import-statement","original":"../modules/router/router.js"}],"format":"esm"}},"outputs":{"dist/base.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":669123},"dist/base.js":{"imports":[],"exports":["Ajax","Arrays","Atom","Builder","Component","Data","DataTracker","DateTime","Directives","Dom","Encode","Events","Html","Import","Jot","Model","NavLink","Objects","Pod","SimpleData","State","Store","Strings","Types","Unit","base","dataBinder","registerDirectives","router"],"entryPoint":"src/base.js","inputs":{"src/shared/arrays.js":{"bytesInOutput":118},"src/shared/objects.js":{"bytesInOutput":883},"src/shared/types.js":{"bytesInOutput":355},"src/main/data-tracker/tracker-types.js":{"bytesInOutput":109},"src/main/data-tracker/tracker.js":{"bytesInOutput":499},"src/main/data-tracker/data-tracker.js":{"bytesInOutput":889},"src/main/events/events.js":{"bytesInOutput":1408},"src/main/events/event-methods.js":{"bytesInOutput":2192},"src/main/base.js":{"bytesInOutput":672},"src/modules/data/types/model/model-request.js":{"bytesInOutput":104},"src/modules/ajax/xhr-default-settings.js":{"bytesInOutput":252},"src/modules/ajax/base-ajax-methods.js":{"bytesInOutput":270},"src/shared/strings.js":{"bytesInOutput":708},"src/modules/ajax/xhr-request.js":{"bytesInOutput":2832},"src/modules/ajax/ajax.js":{"bytesInOutput":41},"src/modules/component/prop-utils.js":{"bytesInOutput":211},"src/shared/lru-cache.js":{"bytesInOutput":620},"src/modules/data-binder/connection-tracker/connection-tracker.js":{"bytesInOutput":676},"src/modules/data-binder/sources/source.js":{"bytesInOutput":83},"src/modules/data-binder/sources/one-way-source.js":{"bytesInOutput":923},"src/modules/data-binder/connection-tracker/connections/connection.js":{"bytesInOutput":29},"src/modules/data-binder/connection-tracker/connections/one-way-connection.js":{"bytesInOutput":163},"src/modules/data-binder/sources/two-way-source.js":{"bytesInOutput":292},"src/modules/data-binder/sources/data-source.js":{"bytesInOutput":271},"src/shared/dom.js":{"bytesInOutput":4007},"src/modules/data-binder/sources/get-bind-attr.js":{"bytesInOutput":279},"src/modules/data-binder/sources/element-source.js":{"bytesInOutput":1081},"src/modules/data-binder/connection-tracker/connections/two-way-connection.js":{"bytesInOutput":395},"src/modules/data-binder/data-pub-sub.js":{"bytesInOutput":4465},"src/modules/data-binder/data-binder.js":{"bytesInOutput":2726},"src/modules/layout/directives/core/reactive/get-parent-data.js":{"bytesInOutput":85},"src/modules/html/html.js":{"bytesInOutput":2371},"src/modules/layout/html-helper.js":{"bytesInOutput":748},"src/modules/layout/watcher-helper.js":{"bytesInOutput":2342},"src/modules/atom/atom.js":{"bytesInOutput":386},"src/modules/data/data-proxy.js":{"bytesInOutput":974},"src/modules/data/local-data.js":{"bytesInOutput":594},"src/modules/data/types/model/attrs.js":{"bytesInOutput":164},"src/modules/data/types/basic-data.js":{"bytesInOutput":3297},"src/modules/data/types/simple-data.js":{"bytesInOutput":24},"src/modules/state/state.js":{"bytesInOutput":240},"src/modules/state/state-target.js":{"bytesInOutput":92},"src/modules/state/state-tracker.js":{"bytesInOutput":1125},"src/modules/component/data-resume-helper.js":{"bytesInOutput":1834},"src/modules/component/event-helper.js":{"bytesInOutput":647},"src/modules/component/state-helper.js":{"bytesInOutput":2030},"src/modules/component/unit.js":{"bytesInOutput":3529},"src/modules/component/component.js":{"bytesInOutput":1974},"src/modules/component/shorthand-methods.js":{"bytesInOutput":232},"src/modules/component/jot.js":{"bytesInOutput":388},"src/modules/component/pod.js":{"bytesInOutput":302},"src/modules/data/types/deep-data/data-utils.js":{"bytesInOutput":648},"src/modules/data/types/deep-data/property-helper.js":{"bytesInOutput":815},"src/modules/data/types/deep-data/publisher.js":{"bytesInOutput":1189},"src/modules/data/types/deep-data/deep-data.js":{"bytesInOutput":2413},"src/modules/data/data.js":{"bytesInOutput":0},"src/shared/encode/json.js":{"bytesInOutput":686},"src/shared/encode/encode.js":{"bytesInOutput":229},"src/modules/data/types/model/model-service.js":{"bytesInOutput":4256},"src/modules/data/types/model/model.js":{"bytesInOutput":879},"src/modules/date/date-time.js":{"bytesInOutput":5980},"src/modules/layout/directives/directives.js":{"bytesInOutput":103},"src/modules/layout/element/attribute-directive.js":{"bytesInOutput":37},"src/modules/layout/element/attribute.js":{"bytesInOutput":31},"src/modules/layout/element/element.js":{"bytesInOutput":59},"src/modules/layout/element/parser.js":{"bytesInOutput":1304},"src/modules/layout/render/render.js":{"bytesInOutput":494},"src/modules/layout/render/browser-render.js":{"bytesInOutput":1645},"src/modules/layout/html-to-string.js":{"bytesInOutput":688},"src/modules/layout/render/server-render.js":{"bytesInOutput":732},"src/modules/layout/render/render-controller.js":{"bytesInOutput":157},"src/modules/layout/builder.js":{"bytesInOutput":468},"src/modules/import/group.js":{"bytesInOutput":672},"src/modules/import/layout-manager.js":{"bytesInOutput":318},"src/modules/import/module-loader.js":{"bytesInOutput":125},"src/modules/import/import-wrapper.js":{"bytesInOutput":2029},"src/modules/import/import.js":{"bytesInOutput":109},"src/modules/layout/base-layout-methods.js":{"bytesInOutput":61},"src/modules/layout/directives/directive-registry.js":{"bytesInOutput":146},"src/modules/layout/directives/core/animate/animate.js":{"bytesInOutput":682},"src/modules/layout/directives/core/dom-methods.js":{"bytesInOutput":937},"src/modules/layout/directives/core/reactive/on-set.js":{"bytesInOutput":41},"src/modules/layout/directives/core/aria/aria.js":{"bytesInOutput":381},"src/modules/layout/directives/core/attribute-helpers.js":{"bytesInOutput":112},"src/modules/layout/directives/core/context/context-directives.js":{"bytesInOutput":435},"src/modules/layout/directives/core/data.js":{"bytesInOutput":19},"src/modules/layout/directives/core/debug.js":{"bytesInOutput":177},"src/modules/layout/directives/core/parent/parent-directives.js":{"bytesInOutput":505},"src/modules/layout/directives/core/reactive/on-created.js":{"bytesInOutput":25},"src/modules/layout/directives/core/reactive/on-destroyed.js":{"bytesInOutput":161},"src/modules/layout/directives/core/state.js":{"bytesInOutput":19},"src/modules/layout/directives/core/core-directives.js":{"bytesInOutput":223},"src/modules/layout/directives/core/reactive/bind.js":{"bytesInOutput":198},"src/modules/layout/directives/core/reactive/on-state.js":{"bytesInOutput":36},"src/modules/layout/directives/core/reactive/data-set.js":{"bytesInOutput":249},"src/modules/layout/directives/core/reactive/for-each.js":{"bytesInOutput":558},"src/modules/layout/directives/core/reactive/map.js":{"bytesInOutput":176},"src/modules/layout/directives/core/reactive/watch.js":{"bytesInOutput":135},"src/modules/layout/directives/core/reactive-directives.js":{"bytesInOutput":87},"src/modules/router/router-registry.js":{"bytesInOutput":220},"src/modules/layout/directives/core/route.js":{"bytesInOutput":332},"src/modules/layout/directives/core/switch.js":{"bytesInOutput":268},"src/modules/layout/directives/core/router-directives.js":{"bytesInOutput":28},"src/modules/layout/directives/core/default-directives.js":{"bytesInOutput":24},"src/modules/router/history/history.js":{"bytesInOutput":293},"src/modules/router/history/browser-history.js":{"bytesInOutput":1277},"src/modules/router/utils.js":{"bytesInOutput":243},"src/modules/router/history/hash-history.js":{"bytesInOutput":271},"src/modules/router/history/history-controller.js":{"bytesInOutput":209},"src/modules/component/cloak.js":{"bytesInOutput":74},"src/modules/router/routes/component-helper.js":{"bytesInOutput":1192},"src/modules/router/routes/param-pattern.js":{"bytesInOutput":305},"src/modules/router/routes/route-pattern.js":{"bytesInOutput":357},"src/modules/router/routes/route.js":{"bytesInOutput":3520},"src/modules/router/set-title.js":{"bytesInOutput":473},"src/modules/router/nav-link.js":{"bytesInOutput":1147},"src/modules/router/router.js":{"bytesInOutput":7089},"src/base.js":{"bytesInOutput":10}},"bytes":100277},"dist/modules/ajax.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":26400},"dist/modules/ajax.js":{"imports":[{"path":"dist/chunks/chunk-MNKLSGJQ.js","kind":"import-statement"},{"path":"dist/chunks/chunk-W37VRHGC.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TDLN57VY.js","kind":"import-statement"},{"path":"dist/chunks/chunk-DWOYCZYJ.js","kind":"import-statement"}],"exports":["Ajax","XhrRequest"],"entryPoint":"src/entries/ajax.js","inputs":{"src/shared/arrays.js":{"bytesInOutput":117},"src/main/base.js":{"bytesInOutput":667},"src/modules/ajax/xhr-default-settings.js":{"bytesInOutput":251},"src/modules/ajax/base-ajax-methods.js":{"bytesInOutput":267},"src/modules/ajax/xhr-request.js":{"bytesInOutput":2830},"src/modules/ajax/ajax.js":{"bytesInOutput":36},"src/entries/ajax.js":{"bytesInOutput":0}},"bytes":4437},"dist/modules/html.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/modules/html.js":{"imports":[{"path":"dist/chunks/chunk-TFVBKZUB.js","kind":"import-statement"},{"path":"dist/chunks/chunk-T3WI7GCT.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TDLN57VY.js","kind":"import-statement"},{"path":"dist/chunks/chunk-DWOYCZYJ.js","kind":"import-statement"}],"exports":["Html"],"entryPoint":"src/entries/html.js","inputs":{"src/entries/html.js":{"bytesInOutput":0}},"bytes":208},"dist/modules/date.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":28126},"dist/modules/date.js":{"imports":[{"path":"dist/chunks/chunk-DWOYCZYJ.js","kind":"import-statement"}],"exports":["DateTime"],"entryPoint":"src/entries/date.js","inputs":{"src/modules/date/date-time.js":{"bytesInOutput":5979},"src/entries/date.js":{"bytesInOutput":0}},"bytes":6071},"dist/modules/data.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":41258},"dist/modules/data.js":{"imports":[{"path":"dist/chunks/chunk-MNKLSGJQ.js","kind":"import-statement"},{"path":"dist/chunks/chunk-QXTQMPCM.js","kind":"import-statement"},{"path":"dist/chunks/chunk-GNJZ6CEA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-W37VRHGC.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TFVBKZUB.js","kind":"import-statement"},{"path":"dist/chunks/chunk-KRDITJSA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-T3WI7GCT.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TDLN57VY.js","kind":"import-statement"},{"path":"dist/chunks/chunk-DWOYCZYJ.js","kind":"import-statement"}],"exports":["Data","Model","SimpleData","setModelRequestHandler"],"entryPoint":"src/entries/data.js","inputs":{"src/modules/data/data.js":{"bytesInOutput":0},"src/shared/encode/json.js":{"bytesInOutput":675},"src/shared/encode/encode.js":{"bytesInOutput":223},"src/modules/data/types/model/model-service.js":{"bytesInOutput":4253},"src/modules/data/types/model/model.js":{"bytesInOutput":870},"src/entries/data.js":{"bytesInOutput":0}},"bytes":6557},"dist/chunks/chunk-MNKLSGJQ.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1569},"dist/chunks/chunk-MNKLSGJQ.js":{"imports":[],"exports":["a","b"],"inputs":{"src/modules/data/types/model/model-request.js":{"bytesInOutput":98}},"bytes":164},"dist/modules/state.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/modules/state.js":{"imports":[{"path":"dist/chunks/chunk-VRFEYZE5.js","kind":"import-statement"},{"path":"dist/chunks/chunk-KRDITJSA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-T3WI7GCT.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TDLN57VY.js","kind":"import-statement"},{"path":"dist/chunks/chunk-DWOYCZYJ.js","kind":"import-statement"}],"exports":["State","Store"],"entryPoint":"src/entries/state.js","inputs":{"src/entries/state.js":{"bytesInOutput":0}},"bytes":264},"dist/modules/component.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":55283},"dist/modules/component.js":{"imports":[{"path":"dist/chunks/chunk-CNIJE66G.js","kind":"import-statement"},{"path":"dist/chunks/chunk-GNJZ6CEA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-W37VRHGC.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TFVBKZUB.js","kind":"import-statement"},{"path":"dist/chunks/chunk-VRFEYZE5.js","kind":"import-statement"},{"path":"dist/chunks/chunk-KRDITJSA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-T3WI7GCT.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TDLN57VY.js","kind":"import-statement"},{"path":"dist/chunks/chunk-DWOYCZYJ.js","kind":"import-statement"}],"exports":["Atom","Builder","Component","Directives","Import","Jot","Pod","Unit","coreDirectives","reactiveDirectives","registerDirectives"],"entryPoint":"src/entries/component.js","inputs":{"src/modules/layout/directives/core/animate/animate.js":{"bytesInOutput":677},"src/modules/layout/directives/core/dom-methods.js":{"bytesInOutput":931},"src/modules/layout/directives/core/reactive/on-set.js":{"bytesInOutput":39},"src/modules/layout/directives/core/aria/aria.js":{"bytesInOutput":378},"src/modules/layout/directives/core/attribute-helpers.js":{"bytesInOutput":111},"src/modules/layout/directives/core/context/context-directives.js":{"bytesInOutput":427},"src/modules/layout/directives/core/data.js":{"bytesInOutput":18},"src/modules/layout/directives/core/debug.js":{"bytesInOutput":176},"src/modules/layout/directives/core/parent/parent-directives.js":{"bytesInOutput":498},"src/modules/layout/directives/core/reactive/on-created.js":{"bytesInOutput":25},"src/modules/layout/directives/core/reactive/on-destroyed.js":{"bytesInOutput":161},"src/modules/layout/directives/core/state.js":{"bytesInOutput":19},"src/modules/layout/directives/core/core-directives.js":{"bytesInOutput":206},"src/modules/layout/directives/core/reactive/bind.js":{"bytesInOutput":198},"src/modules/layout/directives/core/reactive/on-state.js":{"bytesInOutput":34},"src/modules/layout/directives/core/reactive/data-set.js":{"bytesInOutput":247},"src/modules/layout/directives/core/reactive/for-each.js":{"bytesInOutput":560},"src/modules/layout/directives/core/reactive/map.js":{"bytesInOutput":176},"src/modules/layout/directives/core/reactive/watch.js":{"bytesInOutput":135},"src/modules/layout/directives/core/reactive-directives.js":{"bytesInOutput":84},"src/modules/component/prop-utils.js":{"bytesInOutput":211},"src/modules/atom/atom.js":{"bytesInOutput":386},"src/entries/component.js":{"bytesInOutput":7},"src/modules/component/pod.js":{"bytesInOutput":300}},"bytes":6698},"dist/modules/router.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":107105},"dist/modules/router.js":{"imports":[{"path":"dist/chunks/chunk-QXTQMPCM.js","kind":"import-statement"},{"path":"dist/chunks/chunk-CNIJE66G.js","kind":"import-statement"},{"path":"dist/chunks/chunk-GNJZ6CEA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-W37VRHGC.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TFVBKZUB.js","kind":"import-statement"},{"path":"dist/chunks/chunk-VRFEYZE5.js","kind":"import-statement"},{"path":"dist/chunks/chunk-KRDITJSA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-T3WI7GCT.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TDLN57VY.js","kind":"import-statement"},{"path":"dist/chunks/chunk-DWOYCZYJ.js","kind":"import-statement"}],"exports":["NavLink","Router","registerDirectives","router","routerDirectives"],"entryPoint":"src/entries/router.js","inputs":{"src/modules/router/router-registry.js":{"bytesInOutput":214},"src/modules/layout/directives/core/route.js":{"bytesInOutput":326},"src/modules/layout/directives/core/switch.js":{"bytesInOutput":265},"src/modules/layout/directives/core/router-directives.js":{"bytesInOutput":25},"src/entries/router.js":{"bytesInOutput":5},"src/modules/router/history/history.js":{"bytesInOutput":292},"src/modules/router/history/browser-history.js":{"bytesInOutput":1269},"src/modules/router/utils.js":{"bytesInOutput":242},"src/modules/router/history/hash-history.js":{"bytesInOutput":268},"src/modules/router/history/history-controller.js":{"bytesInOutput":206},"src/modules/component/cloak.js":{"bytesInOutput":71},"src/modules/router/routes/component-helper.js":{"bytesInOutput":1190},"src/modules/router/routes/param-pattern.js":{"bytesInOutput":303},"src/modules/router/routes/route-pattern.js":{"bytesInOutput":356},"src/modules/router/routes/route.js":{"bytesInOutput":3511},"src/modules/router/set-title.js":{"bytesInOutput":472},"src/modules/router/nav-link.js":{"bytesInOutput":1142},"src/modules/router/router.js":{"bytesInOutput":7080}},"bytes":17814},"dist/chunks/chunk-QXTQMPCM.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":36433},"dist/chunks/chunk-QXTQMPCM.js":{"imports":[{"path":"dist/chunks/chunk-W37VRHGC.js","kind":"import-statement"},{"path":"dist/chunks/chunk-KRDITJSA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-T3WI7GCT.js","kind":"import-statement"},{"path":"dist/chunks/chunk-DWOYCZYJ.js","kind":"import-statement"}],"exports":["a"],"inputs":{"src/modules/data/types/deep-data/data-utils.js":{"bytesInOutput":643},"src/modules/data/types/deep-data/property-helper.js":{"bytesInOutput":815},"src/modules/data/types/deep-data/publisher.js":{"bytesInOutput":1183},"src/modules/data/types/deep-data/deep-data.js":{"bytesInOutput":2412}},"bytes":5293},"dist/chunks/chunk-CNIJE66G.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":140654},"dist/chunks/chunk-CNIJE66G.js":{"imports":[{"path":"dist/chunks/chunk-GNJZ6CEA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-W37VRHGC.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TFVBKZUB.js","kind":"import-statement"},{"path":"dist/chunks/chunk-VRFEYZE5.js","kind":"import-statement"},{"path":"dist/chunks/chunk-KRDITJSA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TDLN57VY.js","kind":"import-statement"}],"exports":["a","b","c","d","e","f","g","h","i","j"],"inputs":{"src/modules/layout/directives/directives.js":{"bytesInOutput":103},"src/modules/layout/directives/directive-registry.js":{"bytesInOutput":146},"src/modules/component/unit.js":{"bytesInOutput":3526},"src/modules/component/data-resume-helper.js":{"bytesInOutput":1834},"src/modules/component/event-helper.js":{"bytesInOutput":646},"src/modules/component/state-helper.js":{"bytesInOutput":2029},"src/modules/component/component.js":{"bytesInOutput":1971},"src/modules/component/shorthand-methods.js":{"bytesInOutput":230},"src/modules/component/jot.js":{"bytesInOutput":381},"src/modules/layout/element/attribute-directive.js":{"bytesInOutput":36},"src/modules/layout/element/attribute.js":{"bytesInOutput":31},"src/modules/layout/element/element.js":{"bytesInOutput":58},"src/modules/layout/element/parser.js":{"bytesInOutput":1297},"src/modules/layout/render/render.js":{"bytesInOutput":493},"src/modules/layout/render/browser-render.js":{"bytesInOutput":1642},"src/modules/layout/html-to-string.js":{"bytesInOutput":683},"src/modules/layout/render/server-render.js":{"bytesInOutput":727},"src/modules/layout/render/render-controller.js":{"bytesInOutput":154},"src/modules/layout/builder.js":{"bytesInOutput":467},"src/modules/import/group.js":{"bytesInOutput":667},"src/modules/import/layout-manager.js":{"bytesInOutput":318},"src/modules/import/module-loader.js":{"bytesInOutput":124},"src/modules/import/import-wrapper.js":{"bytesInOutput":2026},"src/modules/import/import.js":{"bytesInOutput":108}},"bytes":20082},"dist/chunks/chunk-GNJZ6CEA.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":23693},"dist/chunks/chunk-GNJZ6CEA.js":{"imports":[{"path":"dist/chunks/chunk-TFVBKZUB.js","kind":"import-statement"},{"path":"dist/chunks/chunk-KRDITJSA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-T3WI7GCT.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TDLN57VY.js","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/modules/layout/directives/core/reactive/get-parent-data.js":{"bytesInOutput":85},"src/modules/layout/html-helper.js":{"bytesInOutput":746},"src/modules/layout/watcher-helper.js":{"bytesInOutput":2336}},"bytes":3414},"dist/chunks/chunk-W37VRHGC.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":6703},"dist/chunks/chunk-W37VRHGC.js":{"imports":[],"exports":["a"],"inputs":{"src/shared/objects.js":{"bytesInOutput":876}},"bytes":930},"dist/chunks/chunk-TFVBKZUB.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":15246},"dist/chunks/chunk-TFVBKZUB.js":{"imports":[{"path":"dist/chunks/chunk-T3WI7GCT.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TDLN57VY.js","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/modules/html/html.js":{"bytesInOutput":2363}},"bytes":2523},"dist/chunks/chunk-VRFEYZE5.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":11015},"dist/chunks/chunk-VRFEYZE5.js":{"imports":[{"path":"dist/chunks/chunk-KRDITJSA.js","kind":"import-statement"},{"path":"dist/chunks/chunk-DWOYCZYJ.js","kind":"import-statement"}],"exports":["a","b"],"inputs":{"src/modules/state/state.js":{"bytesInOutput":239},"src/modules/state/state-target.js":{"bytesInOutput":90},"src/modules/state/state-tracker.js":{"bytesInOutput":1124}},"bytes":1599},"dist/chunks/chunk-KRDITJSA.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":45473},"dist/chunks/chunk-KRDITJSA.js":{"imports":[{"path":"dist/chunks/chunk-T3WI7GCT.js","kind":"import-statement"},{"path":"dist/chunks/chunk-TDLN57VY.js","kind":"import-statement"}],"exports":["a","b","c","d","e","f","g"],"inputs":{"src/shared/lru-cache.js":{"bytesInOutput":620},"src/modules/data/data-proxy.js":{"bytesInOutput":951},"src/modules/data/local-data.js":{"bytesInOutput":593},"src/modules/data/types/model/attrs.js":{"bytesInOutput":163},"src/modules/data/types/basic-data.js":{"bytesInOutput":3284},"src/modules/data/types/simple-data.js":{"bytesInOutput":24}},"bytes":5818},"dist/chunks/chunk-T3WI7GCT.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":90710},"dist/chunks/chunk-T3WI7GCT.js":{"imports":[{"path":"dist/chunks/chunk-TDLN57VY.js","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/modules/data-binder/connection-tracker/connection-tracker.js":{"bytesInOutput":675},"src/modules/data-binder/sources/source.js":{"bytesInOutput":83},"src/modules/data-binder/sources/one-way-source.js":{"bytesInOutput":922},"src/modules/data-binder/connection-tracker/connections/connection.js":{"bytesInOutput":29},"src/modules/data-binder/connection-tracker/connections/one-way-connection.js":{"bytesInOutput":161},"src/modules/data-binder/sources/two-way-source.js":{"bytesInOutput":292},"src/modules/data-binder/sources/data-source.js":{"bytesInOutput":270},"src/shared/dom.js":{"bytesInOutput":4007},"src/modules/data-binder/sources/get-bind-attr.js":{"bytesInOutput":278},"src/modules/data-binder/sources/element-source.js":{"bytesInOutput":1066},"src/modules/data-binder/connection-tracker/connections/two-way-connection.js":{"bytesInOutput":392},"src/modules/data-binder/data-pub-sub.js":{"bytesInOutput":4463},"src/modules/data-binder/data-binder.js":{"bytesInOutput":2721}},"bytes":15487},"dist/chunks/chunk-TDLN57VY.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":27259},"dist/chunks/chunk-TDLN57VY.js":{"imports":[{"path":"dist/chunks/chunk-DWOYCZYJ.js","kind":"import-statement"}],"exports":["a","b","c","d"],"inputs":{"src/shared/types.js":{"bytesInOutput":355},"src/main/data-tracker/tracker-types.js":{"bytesInOutput":108},"src/main/data-tracker/tracker.js":{"bytesInOutput":497},"src/main/data-tracker/data-tracker.js":{"bytesInOutput":886},"src/main/events/events.js":{"bytesInOutput":1408},"src/shared/strings.js":{"bytesInOutput":708}},"bytes":4082},"dist/chunks/chunk-DWOYCZYJ.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/chunks/chunk-DWOYCZYJ.js":{"imports":[],"exports":["a"],"inputs":{},"bytes":223}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function setupBaseLayoutMethods(): void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The directives that hand a layout to the router.
|
|
3
|
-
*
|
|
4
|
-
* Both resolve the router through the router registry at call time, so
|
|
5
|
-
* registering this set does not pull the Router class into a bundle. The
|
|
6
|
-
* "router" subpath and the package root register it for you; importing the
|
|
7
|
-
* router from anywhere is what makes these directives functional.
|
|
8
|
-
*
|
|
9
|
-
* @type {Record<string, function>}
|
|
10
|
-
*/
|
|
11
|
-
export const routerDirectives: Record<string, Function>;
|