UNPKG

yox

Version:

A lightweight mvvm framework

3 lines 71.2 kB
const e=/^!(?:\s|--)/,t="undefined"!=typeof window?window:undefined,n="undefined"!=typeof document?document:undefined,r=function(){},i=Object.freeze({}),o=Object.freeze([]),s=/yox/.test(r.toString())?2:3,c={leftDelimiter:"{",rightDelimiter:"}",uglifyCompiled:false,minifyCompiled:false,logLevel:s};function a(e){return"function"==typeof e}function u(e){return Array.isArray(e)}function f(e){return null!==e&&"object"==typeof e}function l(e){return"string"==typeof e}function d(e){return"number"==typeof e&&!isNaN(e)}function p(e){return true===e||false===e}function h(e){return!isNaN(e-parseFloat(e))}var g=Object.freeze({__proto__:null,func:a,array:u,object:f,string:l,number:d,boolean:p,numeric:h});function m(e,t,n){return u(n)?e.apply(t,n):undefined!==t?e.call(t,n):undefined!==n?e(n):e()}class y{constructor(e,t){this.type=e,this.phase=y.PHASE_CURRENT,t&&(this.originalEvent=t)}static is(e){return e instanceof y}preventDefault(){const e=this;if(!e.isPrevented){const{originalEvent:t}=e;t&&t.preventDefault(),e.isPrevented=true}return e}stopPropagation(){const e=this;if(!e.isStoped){const{originalEvent:t}=e;t&&t.stopPropagation(),e.isStoped=true}return e}prevent(){return this.preventDefault()}stop(){return this.stopPropagation()}}function v(e,t,n){const{length:r}=e;if(r)if(n)for(let n=r-1;n>=0&&false!==t(e[n],n);n--);else for(let n=0;n<r&&false!==t(e[n],n);n++);}function x(e,t){e[e.length]=t}function $(e,t){e.unshift(t)}function b(e,t,n){u(t)?v(t,(function(t){n(e,t)})):n(e,t)}function k(e,t){b(e,t,x)}function w(e,t){b(e,t,$)}function S(e,t,n){let r=-1;return v(e,(function(e,i){if(false===n?e==t:e===t)return r=i,false})),r}function _(e){const{length:t}=e;if(t>0)return e[t-1]}function N(e){const{length:t}=e;if(t>0)return e.pop()}function C(e,t,n){let r=0;return v(e,(function(i,o){(false===n?i==t:i===t)&&(e.splice(o,1),r++)}),true),r}function E(e,t,n){return S(e,t,n)>=0}function T(e){return u(e)?e:m(o.slice,e)}function A(e,t,n){let r={};return v(e,(function(e){r[t?e[t]:e]=n||e})),r}function O(e,t){return e.join(t)}function D(e){return!u(e)||!e.length}y.PHASE_CURRENT=0,y.PHASE_UPWARD=1,y.PHASE_DOWNWARD=-1;var z=Object.freeze({__proto__:null,each:v,push:k,unshift:w,indexOf:S,last:_,pop:N,remove:C,has:E,toArray:T,toObject:A,join:O,falsy:D});function P(e,t){return null!=e&&e.toString?e.toString():undefined!==t?t:""}function L(e){return a(e)&&P(e).indexOf("[native code]")>=0}let V=function(){const e=Object.create(null);return{get:t=>e[t],set(t,n){e[t]=n},has:t=>t in e,keys:()=>Object.keys(e)}};L(Object.create)||(V=function(){const e={};return{get:t=>e.hasOwnProperty(t)?e[t]:undefined,set(t,n){e[t]=n},has:t=>e.hasOwnProperty(t),keys:()=>Object.keys(e)}});var j=V;function U(e){const t=j();return function(n){const r=t.get(n);if(undefined!==r)return r;const i=e(n);return t.set(n,i),i}}function I(e){const t=j();return function(n,r){let i=t.get(n);if(i){const e=i.get(r);if(e)return e}else i=j(),t.set(n,i);const o=e(n,r);return i.set(r,o),o}}const R=/-([a-z])/gi,M=/\B([A-Z])/g,H=/^[a-z]/,F=U((function(e){return e.replace(R,(function(e,t){return te(t)}))})),K=U((function(e){return e.replace(M,(function(e,t){return"-"+ne(t)}))})),W=U((function(e){return e.replace(H,te)}));function B(e,t){return O(new Array(t+1),e)}function q(e){return oe(e)?"":e.trim()}function Y(e,t,n){return d(n)?t===n?"":e.slice(t,n):e.slice(t)}function G(e,t,n){return e.indexOf(t,undefined!==n?n:0)}function Z(e,t,n){return e.lastIndexOf(t,undefined!==n?n:e.length)}function J(e,t){return 0===G(e,t)}function Q(e,t){const n=e.length-t.length;return n>=0&&Z(e,t)===n}function X(e,t){return e.charAt(t||0)}function ee(e,t){return e.charCodeAt(t||0)}function te(e){return e.toUpperCase()}function ne(e){return e.toLowerCase()}function re(e,t){return G(e,t)>=0}function ie(e,t){const n=Object.create(null);return v(e.split(t||","),(function(e){n[e]=true})),n}function oe(e){return!l(e)||!e.length}var se=Object.freeze({__proto__:null,camelize:F,hyphenate:K,capitalize:W,repeat:B,trim:q,slice:Y,indexOf:G,lastIndexOf:Z,startsWith:J,endsWith:Q,charAt:X,codeAt:ee,upper:te,lower:ne,has:re,toMap:ie,falsy:oe});const ce=/\./g,ae=/\*/g,ue=/\*\*/g,fe=I((function(e,t){return e===t||J(e,t+=".")?t.length:-1})),le=U((function(e){return G(e,".")<0?[e]:e.split(".")}));function de(e,t){const n=l(e)?le(e):e;for(let e=0,r=n.length-1;e<=r&&false!==t(n[e],e,r);e++);}const pe=I((function(e,t){return e&&t?e+"."+t:e||t})),he=U((function(e){return re(e,"*")})),ge=U((function(e){return new RegExp(`^${e.replace(ce,"\\.").replace(ae,"(\\w+)").replace(ue,"([.\\w]+?)")}$`)})),me=I((function(e,t){const n=e.match(ge(t));return n?n[1]:undefined})),ye={value:undefined};function ve(e){return Object.keys(e)}function xe(e,t){for(let n in e)if(false===t(e[n],n))break}function $e(e,t){return xe(t,(function(t,n){e[n]=t})),e}function be(e,t){let n=e;return u(e)?t?(n=[],v(e,(function(e,r){n[r]=be(e,t)}))):n=e.slice():f(e)&&(n={},xe(e,(function(e,r){n[r]=t?be(e,t):e}))),n}function ke(e){return a(e.get)?e.get():e}function we(e,t,n){let r=e;return de(t,(function(e,t,i){if(null==r)return r=undefined,false;{let o=r[e],s=undefined!==o;o&&(o=(n||ke)(o)),t===i?s?(ye.value=o,r=ye):r=undefined:r=o}})),r}function Se(e,t){return undefined!==e[t]}var _e=Object.freeze({__proto__:null,keys:ve,each:xe,extend:$e,merge:function(e,t){return e&&t?$e($e({},e),t):e||t},copy:be,get:we,set:function(e,t,n,r){let i=e;de(t,(function(e,t,o){if(t===o)i[e]=n;else if(i[e])i=i[e];else{if(!r)return false;i=i[e]={}}}))},has:Se,falsy:function(e){return!f(e)||u(e)||!ve(e).length}});const Ne="undefined"!=typeof console?console:null,Ce=t&&/edge|msie|trident/i.test(t.navigator.userAgent)?"":"%c",Ee=Ne?Ce?function(e,t,n){Ne.log(Ce+e,n,t)}:function(e,t){Ne.log(e,t)}:r;function Te(){const{logLevel:e}=c;return e>=1&&e<=5?e:s}function Ae(e){return`background-color:${e};border-radius:12px;color:#fff;font-size:10px;padding:3px 6px;`}var Oe=Object.freeze({__proto__:null,DEBUG:1,INFO:2,WARN:3,ERROR:4,FATAL:5,debug:function(e,t){Te()<=1&&Ee(t||"Yox debug",e,Ae("#999"))},info:function(e,t){Te()<=2&&Ee(t||"Yox info",e,Ae("#2db7f5"))},warn:function(e,t){Te()<=3&&Ee(t||"Yox warn",e,Ae("#f90"))},error:function(e,t){Te()<=4&&Ee(t||"Yox error",e,Ae("#ed4014"))},fatal:function(e,t){if(Te()<=5)throw new Error(`[${t||"Yox fatal"}]: ${e}`)}});class De{constructor(e){this.ns=e||false,this.listeners={}}fire(e,t,n){let r=this,i=l(e)?r.toEvent(e):e,o=r.listeners[i.type],s=true;if(o){o=o.slice();const e=t&&y.is(t[0])?t[0]:undefined;for(let c=0,a=o.length;c<a;c++){let a=o[c];if(!Pe(i.ns,a)||!E(o,a)||n&&!n(i,t,a))continue;let u=m(a.listener,a.ctx,t);if(a.num=a.num?a.num+1:1,a.num===a.max&&r.off(i.type,{ns:i.ns,listener:a.listener}),e&&(false===u?e.prevent().stop():e.isStoped&&(u=false)),false===u){s=false;break}}}return s}on(e,t){const n=this,r=n.listeners,i=a(t)?{listener:t}:t;if(f(i)&&a(i.listener)){if(!l(i.ns)){const t=n.toEvent(e);i.ns=t.ns,e=t.type}k(r[e]||(r[e]=[]),i)}}off(e,t){const n=this,r=n.listeners;if(e){const i=n.toFilter(e,t),o=function(e,t){v(e,(function(t,n){ze(i.listener,t)&&Pe(i.ns,t)&&e.splice(n,1)}),true),e.length||delete r[t]};i.type?r[i.type]&&o(r[i.type],i.type):i.ns&&xe(r,o)}else n.listeners={}}has(e,t){let n=this.listeners,r=this.toFilter(e,t),i=true,o=function(e){return v(e,(function(e){if(ze(r.listener,e)&&Pe(r.ns,e))return i=false})),i};return r.type?n[r.type]&&o(n[r.type]):r.ns&&xe(n,o),!i}toEvent(e){const t={type:e,ns:""};if(this.ns){const n=G(e,".");n>=0&&(t.type=Y(e,0,n),t.ns=Y(e,n+1))}return t}toFilter(e,t){let n;if(n=t?a(t)?{listener:t}:t:{},l(n.ns))n.type=e;else{const t=this.toEvent(e);n.type=t.type,n.ns=t.ns}return n}}function ze(e,t){return!e||e===t.listener}function Pe(e,t){const{ns:n}=t;return!n||!e||n===e}let Le;"function"==typeof setImmediate&&L(setImmediate)&&(Le=setImmediate),Le="function"==typeof MessageChannel&&L(MessageChannel)?function(e){const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(1)}:setTimeout;var Ve=Le;let je;class Ue{constructor(e){this.tasks=[],this.hooks=e||i}static shared(){return je||(je=new Ue)}append(e,t){const n=this,{tasks:r}=n;k(r,{fn:e,ctx:t}),1===r.length&&Ve((function(){n.run()}))}prepend(e,t){const n=this,{tasks:r}=n;w(r,{fn:e,ctx:t}),1===r.length&&Ve((function(){n.run()}))}clear(){this.tasks.length=0}run(){const e=this,{tasks:t,hooks:n}=e,{length:r}=t;if(r){e.tasks=[],n.beforeTask&&n.beforeTask();for(let e=0;e<r;e++)m(t[e].fn,t[e].ctx);n.afterTask&&n.afterTask()}}}function Ie(e,t,n){let r;return function(){if(!r){const i=T(arguments);n&&m(e,undefined,i),r=setTimeout((function(){r=undefined,n||m(e,undefined,i)}),t)}}}function Re(e,t,n,r,i,o,s){let{name:c,listener:a}=s;if(o){const e=o[c]||o[""];true===e?c="change":e>0&&(a=Ie(a,e,"click"===c||"tap"===c))}if(n){if(s.isNative){const t=n.$el;return e.on(t,c,a),function(){e.off(t,c,a)}}n.on(c,s),r["$event_destroy"+i]=function(){n.off(c,s),delete r["$event_destroy"+i]}}else e.on(t,c,a),r["$event_destroy"+i]=function(){e.off(t,i,a),delete r["$event_destroy"+i]}}var Me=Object.freeze({__proto__:null,afterCreate:function(e,t){const{events:n}=t;if(n){const r=t.node,i=t.component,o=t.lazy,s=t.data;for(let t in n)Re(e,r,i,s,t,o,n[t])}},afterUpdate:function(e,t,n){const r=t.events,o=n.events;if(r!==o){const n=t.node,s=t.component,c=t.lazy,a=t.data;if(o){const e=r||i;for(let t in o)if(!e[t]){const e=a["$event_destroy"+t];e&&e()}}if(r){const t=o||i;for(let i in r){const o=r[i],u=t[i];if(u)if(o.value!==u.value){const t=a["$event_destroy"+i];t&&t(),Re(e,n,s,a,i,c,o)}else u.runtime&&o.runtime&&(u.runtime.execute=o.runtime.execute,o.runtime=u.runtime);else Re(e,n,s,a,i,c,o)}}}},beforeDestroy:function(e,t){const n=t.events,r=t.data;if(n)for(let e in n){const t=r["$event_destroy"+e];t&&t()}}});function He(e,t){return t&&true!==t?Ie(e,t):e}const Fe={set(e,t){e.value=P(t)},sync(e,t,n){n.set(t,e.value)}},Ke={set(e,t){e.checked=e.value===P(t)},sync(e,t,n){e.checked&&n.set(t,e.value)}},We={set(e,t){e.checked=u(t)?E(t,e.value,false):!!t},sync(e,t,n){const r=n.get(t);u(r)?e.checked?n.append(t,e.value):n.removeAt(t,S(r,e.value,false)):n.set(t,e.checked)}},Be={set(e,t){const{multiple:n,options:r}=e;for(let i=0,o=r.length;i<o;i++)if(n)r[i].selected=E(t,r[i].value,false);else if(r[i].value==t)return void(e.selectedIndex=i);n||(e.selectedIndex=-1)},sync(e,t,n){const{multiple:r,options:i}=e;if(r){const e=[];for(let t=0,n=i.length;t<n;t++)i[t].selected&&e.push(i[t].value);n.set(t,e)}else n.set(t,i[e.selectedIndex].value)}};function qe(e,t,n,r,i){let{context:o,model:s,lazy:c,nativeAttrs:a}=i,{keypath:u,value:f}=s,l=c&&(c.model||c[""]);if(n){let e=n.$model,t=He((function(e){o.set(u,e)}),l);n.watch(e,t),r.$model_destroy=function(){n.unwatch(e,t),delete r.$model_destroy}}else{let n="select"===i.tag?Be:Fe,s="change";if(n===Fe){const e=a&&a.type;"radio"===e?n=Ke:"checkbox"===e?n=We:true!==l&&(s="model")}const c=He((function(){n.sync(t,u,o)}),l);e.on(t,s,c),n.set(t,f),r.$model_control=n,r.$model_destroy=function(){e.off(t,s,c),delete r.$model_destroy,delete r.$model_control}}}var Ye=Object.freeze({__proto__:null,afterCreate:function(e,t){t.model&&qe(e,t.node,t.component,t.data,t)},afterUpdate:function(e,t,n){const r=t.data,i=t.model,o=n.model;if(i){const n=t.node,s=t.component;if(o)if(i.keypath!==o.keypath)r.$model_destroy(),qe(e,n,s,r,t);else if(s)s.set(s.$model,i.value);else{const e=r.$model_control;e&&e.set(n,i.value)}else qe(e,n,s,r,t)}else o&&r.$model_destroy()},beforeDestroy:function(e,t){const n=t.data.$model_destroy;n&&n()}});var Ge=Object.freeze({__proto__:null,afterCreate:function(e,t){const{nativeAttrs:n}=t;if(n){const r=t.node;for(let t in n)e.setAttr(r,t,n[t])}},afterUpdate:function(e,t,n){const r=t.nativeAttrs,o=n.nativeAttrs;if(r!==o){const n=t.node;if(r){const t=o||i;for(let i in r)undefined!==t[i]&&r[i]===t[i]||e.setAttr(n,i,r[i])}if(o){const t=r||i;for(let r in o)undefined===t[r]&&e.removeAttr(n,r)}}}});var Ze=Object.freeze({__proto__:null,afterCreate:function(e,t){const{nativeStyles:n}=t;if(n){const r=t.node.style;for(let t in n)e.setStyle(r,t,n[t])}},afterUpdate:function(e,t,n){const r=t.nativeStyles,o=n.nativeStyles;if(r!==o){const n=t.node.style;if(r){const t=o||i;for(let i in r)undefined!==t[i]&&r[i]===t[i]||e.setStyle(n,i,r[i])}if(o){const t=r||i;for(let r in o)undefined===t[r]&&e.removeStyle(n,r)}}}});function Je(e,t,n){e["$directive_hooks"+n.name]=n.create(t.component||t.node,n,t)}function Qe(e,t,n,r){const i=e["$directive_hooks"+n.name],o=i&&i[r];o&&o(n,t)}function Xe(e){return function(t,n){const{directives:r}=n;if(r){const t=n.data;for(let i in r)Qe(t,n,r[i],e)}}}const et=Xe("afterMount"),tt=Xe("beforeDestroy");var nt=Object.freeze({__proto__:null,afterCreate:function(e,t){const{directives:n}=t;if(n){const e=t.data;for(let r in n)Je(e,t,n[r])}},beforeUpdate:function(e,t,n){const r=t.directives,o=n.directives,s=t.data;if(o){const e=r||i;for(let n in o)undefined===e[n]&&Qe(s,t,o[n],"beforeDestroy")}if(r){const e=o||i,n=[];for(let i in r){const o=r[i];undefined===e[i]?Je(s,t,o):o.value!==e[i].value&&(Qe(s,t,o,"beforeUpdate"),n.push(o))}s.$directive_updating=n}},afterUpdate:function(e,t,n){const{data:r}=t;if(r){const e=r.$directive_updating;if(e){for(let n=0,i=e.length;n<i;n++)Qe(r,t,e[n],"afterUpdate");r.$directive_updating=undefined}}},afterMount:et,beforeDestroy:tt});function rt(e,t){if(5===t.type||7===t.type){const n=t.children[0];return n?rt(e,n):e.createComment("")}return t.node}function it(e,t,n,r){r?e.before(t,n,r):e.append(t,n)}function ot(e,t,n){const r=n.node;t.node=r,t.parentNode=n.parentNode,t.text!==n.text&&e.setNodeText(r,t.text)}function st(e){e.data&&Lt(e,e.node)}function ct(e,t){e.data&&Vt(e,e.node,t)||t()}function at(e,t,n,r){r?e.before(t,n.node,r.node):e.append(t,n.node)}function ut(e,t){e.remove(t.parentNode,t.node)}function ft(e,t){t()}function lt(e,t){const n=t.children;for(let t=0,r=n.length;t<r;t++)Tt(e,n[t])}function dt(e,t,n,r){jt(e,t,n.children,r.children)}function pt(e,t){const n=t.children;for(let t=0,r=n.length;t<r;t++)zt(e,n[t])}function ht(e,t,n,r){const i=n.children;for(let n=0,o=i.length;n<o;n++)Ot(e,t,i[n],r)}function gt(e,t){const n=t.children;for(let t=0,r=n.length;t<r;t++)Pt(e,n[t])}const mt={create(e,t){t.node=e.createText(t.text)},update:ot,destroy:r,insert:at,remove:ut,enter:r,leave:ft},yt={create(e,t){t.node=e.createComment(t.text)},update:ot,destroy:r,insert:at,remove:ut,enter:r,leave:ft},vt=[Ge,Ze,Object.freeze({__proto__:null,afterCreate:function(e,t){const n=t.ref;if(n){const e=t.context;let r=e.$refs;r||(r=e.$refs={}),r[n]=t.component||t.node}},beforeUpdate:function(e,t,n){const r=t.ref,i=n.ref;if(r||i){const e=t.context,n=t.component||t.node;let o=e.$refs;r?i?r!==i&&(o?o[r]===n&&delete o[r]:o=e.$refs={},o[r]=n):(o||(o=e.$refs={}),o[r]=n):o&&i&&o[i]===n&&delete o[i]}},beforeDestroy:function(e,t){const{ref:n}=t;if(n){const{$refs:e}=t.context,r=t.component||t.node;e&&e[n]===r&&delete e[n]}}}),Me,Ye,nt],xt=vt.length;function $t(e,t){for(let n=0;n<xt;n++){const r=vt[n][e];r&&r.apply(undefined,t)}}const bt={create(e,t){const n=t.node=e.createElement(t.tag,t.isSvg);t.children?At(e,n,t.children):t.text?e.setElementText(n,t.text):t.html&&e.setHtml(n,t.html),t.isPure||(t.data={}),$t("afterCreate",[e,t])},update(e,t,n){const r=n.node;t.node=r,t.parentNode=n.parentNode,t.data=n.data,!t.isPure&&n.isPure&&(t.data={}),$t("beforeUpdate",[e,t,n]);const{text:i,html:o,children:s}=t,c=n.text,a=n.html,u=n.children;l(i)?(u&&Dt(e,u),i!==c&&e.setElementText(r,i)):l(o)?(u&&Dt(e,u),o!==a&&e.setHtml(r,o)):s?u?s!==u&&jt(e,r,s,u):((c||a)&&e.setElementText(r,""),At(e,r,s)):u?Dt(e,u):(c||a)&&e.setElementText(r,""),$t("afterUpdate",[e,t,n])},destroy(e,t){if(t.isPure)return;$t("beforeDestroy",[e,t]);const{children:n}=t;if(n)for(let t=0,r=n.length;t<r;t++)zt(e,n[t])},insert:at,remove:ut,enter:st,leave:ct},kt={create(e,t){const n=t.data={};let r=undefined;t.tag&&t.context.loadComponent(t.tag,(function(i){Se(n,"$loading")?n.$loading&&(n.$vnode&&(t=n.$vnode,delete n.$vnode),Et(e,t,i),t.operator.enter(t)):r=i})),t.node=e.createComment("component"),r?Et(e,t,r):n.$loading=true},update(e,t,n){const r=n.data;if(t.data=r,t.node=n.node,t.parentNode=n.parentNode,t.component=n.component,r.$loading)return void(r.$vnode=t);$t("beforeUpdate",[e,t,n]);const{component:i,slots:o}=t;if(i){let e=t.props;o&&(e=$e(e||{},o)),e&&i.forceUpdate(e)}$t("afterUpdate",[e,t,n])},destroy(e,t){const{component:n}=t;n?($t("beforeDestroy",[e,t]),n.destroy(),t.shadow=n.$vnode,t.component=undefined):t.data.$loading=false},insert(e,t,n,r){const{shadow:i}=n;i?(i.operator.insert(e,t,i,r),i.parentNode=t):at(e,t,n,r)},remove(e,t){const{shadow:n}=t;n?(n.operator.remove(e,n),n.parentNode=undefined):ut(e,t)},enter(e){const{shadow:t}=e;t&&(e.transition?Lt(e,t.node):t.operator.enter(t))},leave(e,t){const{shadow:n}=e;if(n){if(!e.transition)return void n.operator.leave(n,t);if(Vt(e,n.node,t))return}t()}},wt={create(e,t){lt(e,t),t.node=rt(e,t)},update(e,t,n){const{parentNode:r}=n;t.node=n.node,t.parentNode=r,dt(e,r,t,n)},destroy:pt,insert:ht,remove:gt,enter:r,leave:ft},St={create(e,t){let n=undefined;t.to&&(n=e.find(t.to)),n||(n=e.getBodyElement()),t.target=n,t.node=e.createComment("");const r=t.children;for(let t=0,i=r.length;t<i;t++)Tt(e,r[t]),Ot(e,n,r[t])},update(e,t,n){const{target:r}=n;t.node=n.node,t.parentNode=n.parentNode,t.target=r,dt(e,r,t,n)},destroy(e,t){const n=t.children;for(let t=0,r=n.length;t<r;t++)zt(e,n[t]),Pt(e,n[t])},insert:at,remove:ut,enter:r,leave:ft},_t={create(e,t){lt(e,t),t.data={},t.node=rt(e,t),$t("afterCreate",[e,t])},update(e,t,n){const{parentNode:r}=n;t.node=n.node,t.parentNode=r,t.data=n.data,$t("beforeUpdate",[e,t,n]),dt(e,r,t,n),$t("afterUpdate",[e,t,n])},destroy(e,t){$t("beforeDestroy",[e,t]),pt(e,t)},insert:ht,remove:gt,enter:st,leave:ct};function Nt(e,t){return e.type===t.type&&e.tag===t.tag&&e.key===t.key}function Ct(e,t,n){let r,o,s;for(;t<=n;)o=e[t],o&&(s=o.key)&&(r||(r={}),r[s]=t),t++;return r||i}function Et(e,t,n){const r=t.data,i=(t.parent||t.context).createComponent(n,t);return t.component=i,t.shadow=i.$vnode,r.$loading=false,$t("afterCreate",[e,t]),i}function Tt(e,t){t.node||t.operator.create(e,t)}function At(e,t,n,r,i,o){let s,c=r||0,a=undefined!==i?i:n.length-1;for(;c<=a;)s=n[c],Tt(e,s),Ot(e,t,s,o),c++}function Ot(e,t,n,r){const{operator:i}=n;i.insert(e,t,n,r),n.parentNode=t,$t("afterMount",[e,n]),i.enter(n)}function Dt(e,t,n,r){let i,o=n||0,s=undefined!==r?r:t.length-1;for(;o<=s;)i=t[o],i&&(zt(e,i),Pt(e,i)),o++}function zt(e,t){t.operator.destroy(e,t)}function Pt(e,t){const{operator:n}=t;n.leave(t,(function(){n.remove(e,t),t.parentNode=undefined}))}function Lt(e,t){const{context:n,transition:r}=e,i=e.data.$leaving;if(i&&i(),r){const{enter:e}=r;e&&e.call(n,t)}}function Vt(e,t,n){const{context:r,transition:i}=e,o=e.data,s=o.$leaving;if(s&&s(),i){const{leave:e}=i;if(e)return e.call(r,t,o.$leaving=function(){o.$leaving&&(n(),o.$leaving=undefined)}),true}}function jt(e,t,n,r){let i,o,s=0,c=n.length-1,a=n[s],u=n[c],f=0,l=r.length-1,d=r[f],p=r[l];for(;f<=l&&s<=c;)a?u?d?p?Nt(a,d)?(Ut(e,a,d),a=n[++s],d=r[++f]):Nt(u,p)?(Ut(e,u,p),u=n[--c],p=r[--l]):Nt(u,d)?(Ut(e,u,d),it(e,t,d.node,e.next(p.node)),u=n[--c],d=r[++f]):Nt(a,p)?(Ut(e,a,p),it(e,t,p.node,d.node),a=n[++s],p=r[--l]):(i||(i=Ct(r,f,l)),o=a.key?i[a.key]:undefined,undefined!==o?(It(e,a,r[o]),r[o]=undefined):Tt(e,a),Ot(e,t,a,d),a=n[++s]):p=r[--l]:d=r[++f]:u=n[--c]:a=n[++s];f>l?At(e,t,n,s,c,n[c+1]):s>c&&Dt(e,r,f,l)}function Ut(e,t,n){t!==n&&t.operator.update(e,t,n)}function It(e,t,n){if(t!==n){if(!Nt(t,n)){const r=n.parentNode;return Tt(e,t),void(r&&(Ot(e,r,t,n),zt(e,n),Pt(e,n)))}Ut(e,t,n)}}function Rt(e){const{children:t}=e;return{type:e.type,data:e.data,node:e.node,parentNode:e.parentNode,target:e.target,shadow:e.shadow,parent:e.parent,component:e.component,context:e.context,operator:e.operator,tag:e.tag,isSvg:e.isSvg,isStatic:e.isStatic,isPure:e.isPure,slots:e.slots,props:e.props,nativeAttrs:e.nativeAttrs,nativeStyles:e.nativeStyles,directives:e.directives,events:e.events,lazy:e.lazy,transition:e.transition,model:e.model,to:e.to,ref:e.ref,key:e.key,text:e.text,html:e.html,children:t?t.map(Rt):t}}const Mt={},Ht={},Ft={},Kt={};function Wt(e,t){return Ht[t.name]||"portal"===e.tag&&"to"===t.name||"slot"===e.tag&&"name"===t.name}function Bt(e,t){const n=e.split(";");for(let e=0,r=n.length;e<r;e++){const r=n[e],i=r.indexOf(":");if(i>0){const e=q(r.substring(0,i)),n=q(r.substring(i+1));e&&n&&t(F(e),n)}}}function qt(e,t){return{type:2,isStatic:true,name:e,ns:t}}function Yt(e,t,n){return{type:3,ns:t,name:e,modifier:n}}function Gt(e,t,n,r){return{type:9,from:e,to:t,equal:n||undefined,index:r,isVirtual:true}}function Zt(e){return{type:5,text:e,isStatic:true,isLeaf:true}}Mt.slot=Mt.portal=Mt.fragment=Mt.template=Ht.key=Ht.ref=Ht.slot=true,Ft["if"]=6,Ft.each=9,Kt.fragment=5,Kt.portal=6,Kt.slot=7;const Jt=/^[A-Z]|-/,Qt=/&[#\w\d]{2,6};/,Xt=ie("area,base,embed,track,source,param,input,col,img,br,hr"),en=ie("svg,g,defs,desc,metadata,symbol,use,image,path,rect,circle,line,ellipse,polyline,polygon,text,tspan,tref,textpath,marker,pattern,clippath,mask,filter,cursor,view,animate,font,font-face,glyph,missing-glyph,animateColor,animateMotion,animateTransform,textPath,foreignObject"),tn=ie("min,minlength,max,maxlength,step,size,rows,cols,tabindex,colspan,rowspan,frameborder"),nn=ie("disabled,checked,required,multiple,readonly,autofocus,autoplay,reversed,selected,controls,default,loop,muted,novalidate,draggable,contenteditable,hidden,spellcheck,allowfullscreen");function rn(e,t,n){if(e.isComponent)return qt(F(t),n);if("style"===t)return{type:4,isStatic:!0};const r=qt(t,n);return cn(t)&&(r.defaultValue="spellcheck"===t||"img"===e.tag&&"draggable"===t),r}function on(e,t,n){return sn(e)?an(e,t):cn(e)?un(e,t,n):t}function sn(e){return tn[e]}function cn(e){return nn[e]}function an(e,t){return P(t)}function un(e,t,n){const r=true===t||"true"===t||t===e;return r===n?undefined:r?"true":"false"}function fn(e,t){let n=false,r=false,i=false;return t?i=true:(n=undefined!==en[e],!n&&Jt.test(e)?i=true:"style"===e&&(r=true)),function(e,t,n,r,i){const o="slot"===e,s=!i&&!o&&!!Mt[e],c=!i&&!o&&!s;return{type:1,tag:e,dynamicTag:t,isSvg:n,isStyle:r,isStatic:c,isNative:c,isVirtual:s,isComponent:i}}(e,t,n,r,i)}function ln(e,t){return l(t)&&Qt.test(t)?e.html=t:e.text=t,true}function dn(e){return undefined!==e}const pn={};function hn(e){return e>0&&e<33||160===e}function gn(e){return e>47&&e<58}function mn(e){return 64===e}function yn(e){return 36===e||95===e||e>96&&e<123||e>64&&e<91}function vn(e){return yn(e)||gn(e)}function xn(e,t,n,r){return{type:5,raw:r,left:e,operator:t,right:n,isStatic:Nn([e,n])}}function $n(e,t,n){let r=false,i=true,o=0;return"this"===t?(t="",i=false):".."===t?(t="",i=false,o=1):"~"===t?(t="",r=true,i=false):t=_n(t),n?bn(t,e):wn(e,t,r,i,o)}function bn(e,t){return{type:1,raw:t,value:e,isStatic:true}}function kn(e,t){let n=t.shift(),r=false,i=true,o=0;if(t.length>0){let s=true,c=[],a="",u=[];if(v(t,(function(e){if(s)if(1===e.type){const t=e;if(".."===t.raw)return o+=1,void(a=a?a+"/..":"..");if("this"!==t.raw){const e=P(t.value);k(c,e),a&&(a+=Q(a,"..")?"/":"."),a+=e}}else s=false;s||k(u,e)})),2===n.type){const t=n;r=t.root,i=t.lookup,o+=t.offset;let f=t.name;if(f&&(f=_n(f,t),w(c,f)),f=O(c,"."),s)n=wn(e,f,r,i,o,c);else{let s=t.raw;if(a){let e=".";"~"!==s&&".."!==s||(e="/"),s+=e+a}n=Sn(e,wn(s,f,r,i,o,c),undefined,u,r,i,o)}}else n=s?Sn(e,n,O(c,"."),undefined,r,i,o):Sn(e,n,undefined,u,r,i,o)}return n}function wn(e,t,n,r,i,o){return{type:2,raw:e,name:t,root:n,lookup:r,offset:i,literals:o&&o.length>1?o:undefined}}function Sn(e,t,n,r,i,o,s){return{type:3,raw:e,lead:t,keypath:n,nodes:r,root:i,lookup:o,offset:s,isStatic:t.isStatic&&(!r||Nn(r))}}function _n(e,t){return mn(ee(e,0))&&(e="$slot_"+Y(e,1),t&&(t.name=e)),e}function Nn(e){let t=true;return v(e,(function(e){if(!e.isStatic)return t=false})),t}pn["true"]=true,pn["false"]=false,pn["null"]=null,pn[void 0]=undefined;const Cn={"+":true,"-":true,"~":true,"!":true,"!!":true},En={"*":15,"/":15,"%":15,"+":14,"-":14,"<<":13,">>":13,">>>":13,"<":12,"<=":12,">":12,">=":12,"==":11,"!=":11,"===":11,"!==":11,"&":10,"^":9,"|":8,"&&":7,"||":6};class Tn{constructor(e){const t=this;t.index=-1,t.end=e.length,t.code=0,t.content=e,t.go()}go(e){let t=this,{index:n,end:r}=t;n+=e||1,n>=0&&n<r?(t.code=t.codeAt(n),t.index=n):(t.code=0,t.index=n<0?-1:r)}skip(e){const t=this,n=e&&e<0;if(0===t.code){const n=t.index;if(t.go(e),!hn(t.code))return void t.go(n-t.index)}else if(!hn(t.code))return;for(;;){if(!hn(t.code)){n&&t.go();break}t.go(e)}}is(e){return this.code===e}pick(e,t){return Y(this.content,e,dn(t)?t:this.index)}codeAt(e){return ee(this.content,e)}scanToken(){const e=this,{code:t,index:n}=e;let r=false;if(mn(t)&&(r=true,e.go()),yn(e.code))return e.scanTail(n,[e.scanIdentifier(n,r)]);if(r&&e.go(-1),gn(t))return e.scanNumber(n);switch(t){case 0:return;case 39:case 34:return e.scanTail(n,[e.scanString(n,t)]);case 46:return e.go(),gn(e.code)?e.scanNumber(n):e.scanPath(n);case 126:if(47===e.codeAt(n+1))return e.scanPath(n);break;case 40:return e.go(),e.scanTernary(41);case 91:return e.scanTail(n,[(i=e.scanTuple(n,93),o=e.pick(n),{type:7,raw:o,nodes:i,isStatic:Nn(i)})]);case 123:return e.scanObject(n)}var i,o;const s=e.scanOperator(n);if(s&&Cn[s]){const t=e.scanTernary();if(t){if(1===t.type){const r=t.value;if(d(r))return e.skip(-1),bn(-r,e.pick(n))}return e.skip(-1),function(e,t,n){return{type:4,raw:n,operator:e,node:t,isStatic:t.isStatic}}(s,t,e.pick(n))}}}scanNumber(e){const t=this;for(;gn(n=t.code)||46===n;)t.go();var n;const r=t.pick(e);if(h(r))return bn(+r,r)}scanString(e,t){const n=this;e:for(;;)switch(n.go(),n.code){case 92:n.go();break;case t:n.go();break e;case 0:break e}const r=n.pick(e);return bn(new Function("return "+r)(),r)}scanObject(e){let t,n=this,r=[],i=[],o=true;n.go();e:for(;;)switch(n.code){case 125:n.go();break e;case 0:break e;case 58:n.go(),o=false;break;case 44:n.go(),o=true;break;default:if(t=n.scanTernary(),o){if(t)if(n.skip(),2===t.type)k(r,t.name);else{if(1!==t.type)break e;k(r,t.value)}}else{if(!t)break e;n.skip(),k(i,t)}}return function(e,t,n){return{type:8,raw:n,keys:e,values:t,isStatic:Nn(t)}}(r,i,n.pick(e))}scanTuple(e,t){let n,r=this,i=[];r.go();e:for(;;)switch(r.code){case t:r.go();break e;case 0:break e;case 44:r.go();break;default:n=r.scanTernary(),n&&(r.skip(),k(i,n))}return i}scanPath(e){let t,n=this,r=[];for(;t="this",n.is(46)?(n.go(),t=".."):n.is(126)&&(n.go(),t="~"),k(r,$n(t,t,r.length>0)),n.is(47);){n.go();const{index:t,code:i}=n;let o=false;if(mn(i)&&(o=true,n.go()),yn(n.code))return k(r,n.scanIdentifier(t,o,true)),n.scanTail(e,r);if(o&&n.go(-1),!n.is(46))break;n.go()}}scanTail(e,t){let n,r=this;e:for(;;)switch(r.code){case 40:t=[(i=kn(r.pick(e),t),o=r.scanTuple(r.index,41),s=r.pick(e),{type:9,raw:s,name:i,args:o})];break;case 46:if(r.go(),vn(r.code)){k(t,r.scanIdentifier(r.index,false,true));break}break e;case 91:if(r.go(),n=r.scanTernary(93),n){k(t,n);break}break e;default:break e}var i,o,s;return kn(r.pick(e),t)}scanIdentifier(e,t,n){const r=this;do{r.go()}while(vn(r.code));const i=r.pick(e);return t&&1===i.length&&r.fatal(e,"A slot identifier must be followed by its name."),!n&&i in pn?bn(pn[i],i):$n(i,i,n)}scanOperator(e){const t=this;switch(t.code){case 47:case 37:case 126:case 94:case 42:case 43:case 45:t.go();break;case 33:t.go(),t.is(33)?t.go():t.is(61)&&(t.go(),t.is(61)&&t.go());break;case 38:t.go(),t.is(38)&&t.go();break;case 124:t.go(),t.is(124)&&t.go();break;case 61:t.go(),t.is(61)&&(t.go(),t.is(61)&&t.go());break;case 60:t.go(),(t.is(61)||t.is(60))&&t.go();break;case 62:t.go(),t.is(61)?t.go():t.is(62)&&(t.go(),t.is(62)&&t.go())}if(t.index>e)return t.pick(e)}scanBinary(e){let t,n,r,i,o,s,c=this,a=[];for(;;){if(c.skip(),k(a,c.index),t=c.scanToken(),t){if(k(a,t),k(a,c.index),c.skip(),r=c.scanOperator(c.index),r&&(i=En[r])){for(;n=a.length-4,(o=a[n])&&(s=En[o])&&s>=i;)a.splice(n-2,5,xn(a[n-2],o,a[n+2],c.pick(a[n-3],a[n+3])));k(a,r);continue}r=undefined}break}for(;;){if(!(a.length>=7))return a[1];n=a.length-4,a.splice(n-2,5,xn(a[n-2],a[n],a[n+2],c.pick(a[n-3],a[n+3])))}}scanTernary(e){const t=this;t.skip();let n,r,i=t.index,o=t.scanBinary(i);return t.is(63)&&(t.go(),n=t.scanTernary(),t.is(58)&&(t.go(),r=t.scanTernary()),o&&n&&r&&(t.skip(-1),o=function(e,t,n,r){return{type:6,raw:r,test:e,yes:t,no:n,isStatic:Nn([e,t,n])}}(o,n,r,t.pick(i)))),dn(e)&&(t.skip(),t.is(e)&&t.go()),o}fatal(e,t){}}const An=U((function(e){return new Tn(e).scanTernary(0)})),On={},Dn=/\s*:\s*([_$a-z]+)$/i,zn=/^\s*[\n\r]\s*|\s*[\n\r]\s*$/g,Pn=/\s*(=>|->)\s*/,Ln=/<(\/)?([a-z][-a-z0-9]*|\$[^\s]*)/i,Vn=/^\s*([-$.:\w]+)(?:=(['"]))?/,jn=/^\s*(\/)?>/;function Un(e,t){return q(Y(e,t.length))}function In(e){if(e.safe&&1===e.expr.type)return Zt(P(e.expr.value))}function Rn(e,t){return e>=0&&t>=0?e<t?-1:1:e>=0?-1:t>=0?1:0}function Mn(e,t,n,r){for(;;){const i=t.text.indexOf("\x3c!--",t.position),o=t.text.indexOf("--\x3e",t.position);switch(Rn(i,o)){case-1:t.position=i+1;const s={startIndex:i};k(e,s),n&&n(t,s);break;case 1:t.position=o+1;const{length:c}=e;if(c>0){const n=N(e);n.endIndex=o+"--\x3e".length;const i=1===c;if(r){if(false===r(t,n,i))return}if(i)return}break;case 0:return}}}function Hn(e){const t=[];let n=false;for(let r=0;r<e.length;r++){const i=e[r];if(5===i.type){const o=i;Mn(t,{text:o.text,position:0},(function(e,t){t.index=r,t.text=Y(o.text,0,t.startIndex)}),(function(t,i){const s=i.index,c=r,a=i.text,u=Y(o.text,i.endIndex);if(s===c)return t.text=o.text=a+u,void(t.position=i.startIndex);let f=s,l=c;a&&(e[s].text=a,f++),u&&(e[c].text=u,l--);const d=l-f+1;return d>0&&(n=true,e.splice(f,d),r=f-1),false}))}}if(n)for(let t=0;t<e.length;t++){const n=e[t];if(5===n.type){const r=e[t+1];r&&5===r.type&&(n.text+=r.text,e.splice(t+1,1))}}}function Fn(t){let n,r,i,o,s,a=B(c.leftDelimiter,2),u=B(c.rightDelimiter,2),f=c.leftDelimiter,l=c.rightDelimiter,d=[],p=[],h=[],g=[],m=[],y=[],x=t.length,$=0,b=0,w=0,C=0,E=1,T=[],A=[],O=function(e){const t=_(p);if(t&&1===t.type){const r=t;r.tag!==e&&(n=r.tag,void 0!==Xt[n])&&D(r.type,r.tag)}var n},D=function(e,t){const n=N(p),i=1===e,o=2===e,s=4===e,c=3===e,a=_(p);let{children:u}=n;if(u&&u.length>1&&(r||(Hn(u),u.length||(u=n.children=undefined))),u){const e=1===u.length&&u[0];if(e)switch(e.type){case 5:i?z(n,e):r&&(o?U(r,n,e):s?V(r,n,e):c&&M(r,n,e));break;case 11:i?P(n,e):r&&(o||s||c)&&I(r,n,e)}}else r&&(o?j(r,n):s?L(r,n):c&&R(r,n));return n.isVirtual&&!n.children&&Z(n),i?K(n):r&&o&&W(r,n),a&&a.isStatic&&!n.isStatic&&(a.isStatic=false),n},z=function(e,t){e.isNative&&ln(e,t.text)&&(e.children=undefined)},P=function(e,t){e.isNative&&(t.safe&&ln(e,t.expr)||!t.safe&&function(e,t){return e.html=t,!0}(e,t.expr))&&(e.children=undefined)},L=function(e,t){Z(t)},V=function(e,t,n){n.text?(t.value=n.text,t.children=undefined):Z(t)},j=function(e,t){Wt(e,t)||(t.value=function(e,t,n){return!!e.isComponent||(sn(t)?void 0:cn(t)?un(t,!0,n):"")}(e,t.name,t.defaultValue))},U=function(e,t,n){const{text:r}=n;e.isNative?t.value=on(t.name,r,t.defaultValue):t.value=r,t.children=undefined},I=function(e,t,n){const{expr:r}=n;if(1===r.type){let n=r.value;e.isNative&&2===t.type&&(n=on(t.name,n,t.defaultValue)),t.value=n}else t.expr=r;t.children=undefined},R=function(e,t){t.value=true},M=function(e,t,n){let r,i,{ns:o}=t,{text:s}=n,c="o"===o;try{r=An(s)}catch(a){i=a}if(r)t.expr=r,t.value=1===r.type?r.value:s;else{if(!c)throw i;t.value=s}t.children=undefined},H=function(e){let t=e,n=[],r=false,i=false;for(;k(n,t),t.next;)t=t.next;v(n,(function(e){e.children&&(!r&&e.next&&delete e.next,i=r=true)}),true),i||Z(e)},K=function(e){const{tag:t,slot:n}=e;("template"===t||"fragment"===t||"portal"===t)&&!e.children?Z(e):e.isNative&&function(e){let{attrs:t}=e,n=!1;if(t&&v(t,(function(e){"type"===(2===e.type?e.name:void 0)&&(n=!0)})),e.isStyle&&!n){const t=qt("type");t.value="text/css",k(e.attrs||(e.attrs=[]),t)}}(e)},W=function(e,t){const{name:n,value:r}=t,i="slot"===n;if(Wt(e,t)){const o=i;e[n]=o?r:t,Z(t),t.isStatic&&(t.isStatic=false)}},Z=function(e,t){let n,i,o,s=_(p);s?(n=r&&r===s,i=n?s.attrs:s.children):i=d,i&&(o=S(i,e),o>=0&&(t?i[o]=t:(i.splice(o,1),s&&!i.length&&(n?delete s.attrs:s.children=undefined))))},Q=function(e){r||O();let t=e.type,n=_(p),o=undefined,s=undefined,c=undefined;if(7===t){const e=_(g);e&&(6===e.type?o=e:7===e.type&&(s=e))}else if(8===t){const e=_(g),t=_(y);e&&n===e?6===e.type?o=e:7===e.type&&(s=e):t&&n===t&&9===t.type&&(c=t)}else if(n)if(r&&1===n.type)k(r.attrs||(r.attrs=[]),e);else{const o=n.children||(n.children=[]),s=_(o);if(11===t&&(!r||i&&o.length>0)){const n=In(e);n&&(e=n,t=n.type)}if(s&&5===t){if(5===s.type)return void(s.text+=e.text);if(11===s.type){const t=In(s);if(t)return o[o.length-1]=t,void(t.text+=e.text)}}k(o,e)}else k(d,e);6===t?(k(h,e),k(g,e)):9===t?(k(m,e),k(y,e)):o?(o.next=e,g[g.length-1]=e,D(o.type)):s?(s.next=e,g[g.length-1]=e,D(s.type)):c&&(c.next=e,y[y.length-1]=e,D(c.type)),e.isLeaf?n&&n.isStatic&&!e.isStatic&&(n.isStatic=false):k(p,e)},ee=function(e){(e=e.replace(zn,""))&&Q(Zt(e))},te=[function(e){if(!n&&!r){const t=e.match(Ln);if(t&&0===t.index){let e=t[2];if("/"===t[1])O(e),r=D(1);else{let t;"$"===X(e)&&(e=Y(e,1),t=An(e));const n=fn(e,t);Q(n),r=n}return t[0]}}},function(e){if(n)return;const t=e.match(jn);return t&&r&&!i?("/"===t[1]&&D(r.type,r.tag),r=undefined,t[0]):void 0},function(e){if(!n&&r&&!i){const t=e.match(Vn);if(t){let e,n=t[1];if("model"===n||"transition"===n)e=Yt("",n);else if(J(n,"on-")){const t=Un(n,"on-"),r=F(t).split(".");e=Yt(r[0],"event",r[1])}else if("lazy"===n)e=Yt("","lazy");else if(J(n,"lazy-")){const t=Un(n,"lazy-");e=Yt(F(t),"lazy")}else if(J(n,"o-")){const t=Un(n,"o-"),r=F(t).split(".");e=Yt(r[0],"o",r[1])}else{const t=n.split(":");e=2===t.length?rn(r,t[1],t[0]):rn(r,n)}return Q(e),s=t[2],s?i=e:D(e.type),t[0]}}},function(e){let t,o=undefined;if(!n&&i&&s)t=e.match(On[s]||(On[s]=new RegExp(s))),t?(o=Y(e,0,t.index),ee(o),i.children||Q(Zt("")),o+=s,D(i.type),i=undefined):(o=e,ee(o));else if(r)o=e;else{let r="";if(!n&&(t=e.match(Ln),t)){const n=t.index;Rn(n,e.indexOf("\x3c!--"))<0&&(o=Y(e,0,n),r=o)}if(!dn(o)){let t=-1,i=-1;const s=n,c=n||[];n=undefined,Mn(c,{text:e,position:0},(function(i,s){t<0&&(t=s.startIndex,o=e,r=e,n=c)}),(function(c,a,u){u&&(n=undefined,i=a.endIndex,t>=0?s?(o=Y(e,0,i),r=o):(o=Y(e,0,i),r=Y(e,0,t)):(o=Y(e,0,i),r=o))}))}dn(o)||(o=e,r=e),ee(r)}return o}],ne=[function(e){if(J(e,"#each")){let t=e=q(Un(e,"#each")),n=undefined,r=e.match(Dn);if(r&&(n=r[1],t=Y(e,0,-1*r[0].length)),r=t.match(Pn),r){const e=t.split(Pn),i=An(e[0]),o=An(e[2]);if(i&&o)return Gt(i,o,"=>"===r[1],n)}else{const e=An(t);if(e)return Gt(e,undefined,false,n)}}},function(e){if(J(e,">")){e=Un(e,">");return function(e){return{type:10,expr:e,isLeaf:!0}}(An(e))}},function(e){if(J(e,"#if")){e=Un(e,"#if");return function(e){return{type:6,expr:e,isVirtual:!0}}(An(e))}},function(e){if(J(e,"else if")){e=Un(e,"else if");return function(e){return{type:7,expr:e,isVirtual:!0}}(An(e))}},function(e){if(J(e,"else"))return e=Un(e,"else"),{type:8,isVirtual:!0}},function(e){if(J(e,"...")){e=Un(e,"...");const t=An(e);if(r&&r.isComponent)return function(e){return{type:12,expr:e,isLeaf:!0}}(t)}},function(t){if(!e.test(t)){t=q(t);return function(e,t){return{type:11,expr:e,safe:t,isLeaf:!0,isStatic:e.isStatic}}(An(t),2===E)}}],re=function(e){for(;e;)v(te,(function(t){const n=t(e);if(n)return e=Y(e,n.length),false}))},ie=function(e){if("/"===X(e)){O();const t=Y(e,1);let n=Ft[t],r=undefined,i=undefined;if(6===n){const e=N(g);e&&(n=e.type,r=N(h))}else if(9===n){const e=N(y);e&&(n=e.type,i=N(m))}D(n),r?H(r):i&&H(i)}else v(ne,(function(t){const n=t(e);if(n)return Q(n),false}))},oe=function(){if($=C+u.length,!($<=x))return true;$<x&&X(t,$)===l?3===E&&(b=$+1):2===E&&(b=$),N(T),se(C)},se=function(e){T.length||k(A,e)};for(;;)if(se(b),w=G(t,a,b),C=G(t,u,b),C>=b&&(w<0||C<w)){if(oe())break}else{if(!(w>=b))break;if(E=2,se(w),w+=a.length,w<x&&(X(t,w)===f&&(E=3,w++),se(w),se(E),k(T,true),w<x&&(C=G(t,u,w),C>=w&&(b=G(t,a,w),(b<0||C<b)&&oe()))))break}E=1;for(let e=0,n=A.length;e<n;e+=5)$=A[e],w=A[e+1],dn(w)?(re(Y(t,$,w)),w=A[e+2],E=A[e+3],C=A[e+4],o=q(Y(t,w,C)),o&&ie(o)):(E=1,re(Y(t,$)));return p.length&&O(),d.length>0&&Hn(d),d}let Kn=undefined,Wn=undefined,Bn=ie("abstract,goto,native,static,enum,implements,package,super,byte,export,import,private,protected,public,synchronized,char,extends,int,throws,class,final,interface,transient,yield,let,const,float,double,boolean,long,short,volatile,default"),qn=0,Yn={},Gn={},Zn="",Jn="",Qn="",Xn="",er="",tr="",nr="",rr="",ir="";class or{constructor(e){this.value=e}toString(){const{value:e}=this;return true===e?er:false===e?tr:null===e?Xn:undefined===e?Qn:l(e)?Lr(e):""+e}}class sr{constructor(e,t,n,r,i,o){this.left=e,this.right=t,this.separator=n,this.breakLine=r,this.offset=i,this.items=o||[]}unshift(e){w(this.items,e)}push(e){k(this.items,e)}toString(e){let{left:t,right:n,separator:r,breakLine:i,offset:o,items:s}=this,{length:c}=s;if(!c)return`${t}${n}`;const a=e||0,u=a+o,f=B(rr,a),l=B(rr,u),d=s.map((function(e){return e.toString(u)}));return t&&i&&(t+=ir+l),n&&i&&(n=ir+f+n),`${t}${O(d,i?r+ir+l:r+nr)}${n}`}}class cr{constructor(e){this.items=e||[]}add(e){k(this.items,e)}toString(e){const{items:t}=this;return 1===t.length?t[0].toString(e):new sr("(",")",",",true,1,t).toString(e)}}class ar{constructor(e){if(this.fields={},e){const t=this;xe(e,(function(e,n){t.set(n,e)}))}}set(e,t){t instanceof or&&undefined===t.value||(this.fields[e]=t)}isNotEmpty(){return ve(this.fields).length>0}toString(e){const{fields:t}=this;return br("{","}",",",true,1,ve(t).sort().map((function(e){return{toString:n=>function(e,t){/^[\w$]+$/.test(e)&&!Bn[e]||(e=Lr(e));return`${e}:${nr}${t}`}(e,t[e].toString(n))}}))).toString(e)}}class ur{constructor(e,t){this.name=e,this.args=t}toString(e){const{name:t,args:n}=this,r=n?function(e){let t=[],n=true;return v(e,(function(e){!(e instanceof or)||undefined!==e.value?(n=false,w(t,e)):n||w(t,$r(undefined))}),true),t}(n):[];return r.length?`${t.toString(e)}${br("(",")",",",true,1,r).toString(e)}`:t.toString(e)+"()"}}class fr{constructor(e){this.value=e}toString(e){return`(${this.value.toString(e)})`}}class lr{append(e){const{buffer:t}=this;this.buffer=t?Er(t instanceof hr?Nr(t):t,"+",e instanceof hr?Nr(e):e):e}toString(e){return this.buffer.toString(e)}}class dr{constructor(e,t){this.operator=e,this.value=t}toString(e){return`${this.operator}${this.value.toString(e)}`}}class pr{constructor(e,t,n){this.left=e,this.operator=t,this.right=n}toString(e){return`${this.left.toString(e)}${nr}${this.operator}${nr}${this.right.toString(e)}`}}class hr{constructor(e,t,n){this.test=e,this.yes=t,this.no=n}toString(e){return`${this.test.toString(e)}${nr}?${nr}${this.yes.toString(e)}${nr}:${nr}${this.no.toString(e)}`}}class gr{constructor(e,t,n){this.args=e,this.body=t,this.returnValue=n}toString(e){const{args:t,body:n,returnValue:r}=this,i=e||0,o=i+1,s=B(rr,i),c=B(rr,o),a=t?br("","",",",false,1,t).toString(i):"",u=[];return n&&k(u,n.toString(o)+(r?";":"")),r&&k(u,"return "+r.toString(o)),`function${nr}(${a})${nr}{${ir}${c}${O(u,ir+c)}${ir}${s}}`}}class mr{constructor(e,t){this.base=e,this.props=t}toString(e){const{base:t,props:n}=this;let r=t.toString(e);return v(n,(function(t){t instanceof or?h(t.value)?r+=`[${nr}${t.value}${nr}]`:r+="."+t.value:r+=`[${nr}${t.toString(e)}${nr}]`})),r}}class yr{constructor(e,t,n){this.name=e,this.value=t,this.isDeclaration=n}toString(e){const{name:t,value:n,isDeclaration:r}=this,i=`${t.toString(e)}${nr}=${nr}${n.toString(e)}`;return r?"var "+i:i}}class vr{constructor(e,t){this.array=e,this.item=t}toString(e){const{array:t,item:n}=this;return _r(Or(t,[$r("push")]),[n]).toString(e)}}class xr{constructor(e,t){this.value=e,this.type=t}toString(e){const{value:t,type:n}=this;return`typeof ${t.toString(e)}${nr}===${nr}${Lr(n)}`}}function $r(e){return new or(e)}function br(e,t,n,r,i,o){return new sr(e,t,n,r,i,o)}function kr(e){return new cr(e)}function wr(e,t){let n=br("[","]",",",true,1,e);return l(t)?{toString:e=>`${n.toString(e)}.join(${$r(t).toString()})`}:n}function Sr(e){return new ar(e)}function _r(e,t){return new ur(e,t)}function Nr(e){return new fr(e)}function Cr(){return new lr}function Er(e,t,n){return new pr(e,t,n)}function Tr(e,t,n){return new hr(e,t,n)}function Ar(e,t,n){return new gr(e,t,n)}function Or(e,t){return new mr(e,t)}function Dr(e,t,n){return new yr(e,t,n)}function zr(e,t){return new vr(e,t)}function Pr(){return Jn}function Lr(e){return`"${e=e.replace(/\\?'/g,"\\'").replace(/\\?"/g,'\\"').replace(/\n\s*/g,"\\n")}"`}function Vr(e,t){const n=e?e.toString():undefined;if(t&&n&&Gn[n])return Gn[n];const r=Zn+qn++;return Yn[r]=e,t&&n&&(Gn[n]=r),r}function jr(e){return e.split(".").filter((function(e){return e.length>0})).map($r)}function Ur(e,t){const n=[];xe(Yn,(function(e,t){k(n,{toString:n=>function(e,t){return void 0!==t?`${e}${nr}=${nr}${t}`:e}(t,e?e.toString(n):undefined)})}));return`(${Ar(undefined,br("var ","",",",false,0,n),Ar(e,t)).toString()})()`}function Ir(e){return 6===e.type||5===e.type}function Rr(e,t,n,r,i,o,s){let c,a=false,u=function(e,o){return Rr(e,t,n,r,i,false,o)},f=function(e,t){return e.map((function(e){return u(e,t)}))};switch(e.type){case 1:c=$r(e.value);break;case 4:const l=e;c=function(e,t){return new dr(e,t)}(l.operator,u(l.node));break;case 5:let d=e,p=u(d.left),h=u(d.right);c=Er(Ir(d.left)?Nr(p):p,d.operator,Ir(d.right)?Nr(h):h);break;case 6:const g=e;c=Tr(u(g.test),u(g.yes),u(g.no));break;case 7:c=wr(f(e.nodes,s));break;case 8:const m=e,y=Sr();v(m.keys,(function(e,t){const n=m.values[t];y.set(e,u(n))})),c=y;break;case 2:a=true;const x=e;c=t(x)||n(x,x.name?jr(x.name):[],x.name,o,s);break;case 3:a=true;const $=e;if($.isStatic)c=$.raw;else if(2===$.lead.type){const e=$.lead,i=t(e),a=f($.nodes||[]);i?c=r(i,a,o):(e.name&&v(jr(e.name),(function(e){a.unshift(e)}),true),c=n($,a,undefined,o,s))}else c=$.nodes?r(u($.lead),f($.nodes||[]),o):r(u($.lead),jr($.keypath),o);break;default:a=true;const b=e;c=i(b,u(b.name,b),b.args.length?f(b.args):undefined,o)}return!o||a?c:Sr({value:c})}const Mr=[true],Hr=[],Fr=[],Kr=[],Wr=[true],Br=[],qr=[],Yr=["$keypath","$length","$event","$data"],Gr={},Zr=$r(undefined),Jr=$r(true);let Qr=undefined,Xr=undefined,ei="",ti="",ni="",ri="",ii="",oi="",si="",ci="",ai="",ui="",fi="",li="",di="",pi="",hi="",gi="",mi="",yi="",vi="",xi="",$i="",bi="",ki="",wi="",Si="",_i="",Ni="",Ci="",Ei="",Ti="",Ai="",Oi="",Di="",zi="",Pi="",Li="",Vi="",ji="",Ui="",Ii="",Ri="",Mi="",Hi="";class Fi{constructor(e){this.text=e}toString(e){return Sr({type:$r(2),isPure:Jr,operator:$i,text:this.text}).toString(e)}}class Ki{constructor(e){this.buffer=Cr(),this.append(e)}append(e){this.buffer.append(e)}toString(e){return Sr({type:$r(1),isPure:Jr,operator:xi,text:this.buffer}).toString(e)}}function Wi(e){if(E(Yr,e))switch(e){case"$keypath":return Ii;case"$length":return Ri;case"$event":return Mi;case"$data":return Hi;default:return e}}function Bi(e){const{name:t,root:n,lookup:r,offset:i,literals:o}=e;if(o){const e=Wi(o[0]);if(dn(e)){const t=be(o);return t[0]=e,O(t,".")}}else{const e=Wi(t);if(dn(e))return e}if(_(Fr)&&false===n&&false===r&&0===i)return""===t?Ui:Or(Ui,jr(t))}function qi(e,t){return t?e:Or(e,[$r("value")])}function Yi(e,t,n,r,i){const{root:o,lookup:s,offset:c}=e,{length:a}=t,u=function(e,t){return e?$r(0):Er(Or(Pi,[$r("length")]),"-",$r(1+(t||0)))}(o,c);let f=Zr;i&&9===i.type&&s&&n&&a>0&&(f=a>1?Or(Ti,t):ro(Ei,Ti,n));let d=_r(hi,[Pi,u,l(n)?$r(n):wr(t,"."),wr(t),s?Jr:Zr,f]);if(n&&1===a)if(o||c||s)if(o||c){const e=kr(),t=Pr();e.add(Dr(t,Or(Pi,[u]))),e.add(_r(yi,[Or(_r(Or(t,[$r("getScope")])),[$r(n)]),_r(Or(t,[$r("getKeypath")]),[$r(n)])])),d=e}else d=_r(gi,[Pi,u,$r(n),f]);else d=_r(yi,[Or(Ui,t),_r(Or(Or(Pi,[u]),[$r("getKeypath")]),[$r(n)])]);else if(!n&&!a){const e=kr(),t=Pr();e.add(Dr(t,Or(Pi,[u]))),e.add(_r(yi,[_r(Or(t,[$r("getScope")])),Or(t,[$r("keypath")])])),d=e}return qi(d,r)}function Gi(e,t,n){let r;switch(t.length){case 0:r=_r(yi,[e]);break;case 1:r=_r(yi,[Or(e,t)]);break;default:r=_r(mi,[e,wr(t)])}return qi(r,n)}function Zi(e,t,n,r){const i=kr(),o=Pr();return i.add(Dr(o,t)),i.add(Tr(new xr(o,"function"),_r(o,n),_r(Or(Ci,[$r("fatal")]),[$r(`[${e.raw}] is not a function.`)]))),qi(_r(yi,[i]),r)}function Ji(e,t){const n=Rr(e,Bi,Yi,Gi,Zi,t);return e.isStatic?Vr(n,true):n}function Qi(e){const t=Cr();return k(Br,t),v(e,(function(e){Gr[e.type](e)})),N(Br),t}function Xi(e){return dn(e.value)?$r(e.value):e.expr?Ji(e.expr):e.children?Qi(e.children):Zr}function eo(e){Xr=undefined;const t=[];return v(e,(function(e){const n=Gr[e.type](e);n instanceof or&&undefined===n.value||k(t,n)})),Xr=undefined,t}function to(e){return br("","",";",true,0,eo(e))}function no(e,t){const n=to(e);return n.unshift(Dr(ji,wr(),true)),Ar(t,n,Tr(Or(ji,[$r("length")]),ji,$r(undefined)))}function ro(e,t,n){return Er(Er(e,"&&",Or(e,[$r(n)])),"||",Or(t,[$r(n)]))}function io(e){return _(Wr)?function(e){return Xr=e instanceof Ki?e:void 0,zr(ji,e)}(e):e}function oo(e){return Xr?(Xr.append(e),Zr):io(new Ki(e))}function so(e,t){let n=[],r=[],i=undefined,o=[],s=undefined,c=undefined,a=[],u=[],f=[];for(let l=0,d=e.length;l<d;l++){const d=e[l];if(2===d.type){const e=d;k(4===t||7===t?r:n,e)}else if(4===d.type)i=d;else if(3===d.type){const e=d;switch(e.ns){case"lazy":k(o,e);break;case"transition":s=e;break;case"model":c=e;break;case"event":k(a,e);break;default:k(u,e)}}else k(f,d)}return{nativeAttributeList:n,propertyList:r,style:i,lazyList:o,transition:s,model:c,eventList:a,customDirectiveList:u,otherList:f}}function co(e){const{name:t}=e;let n=Xi(e);return n instanceof or||(sn(t)?n=_r(di,[$r(t),n]):cn(t)&&(n=_r(pi,[$r(t),n,$r(e.defaultValue)]))),n}function ao(e,t){let n=undefined,r=undefined,i=t||false;return i||v(e,(function(e){if(!e.isStatic)return i=true,false})),k(Wr,i),i?n=_r(no(e)):r=wr(eo(e)),N(Wr),{dynamicChildren:n,staticChildren:r}}function uo(e){if(dn(e.value)){const t=Sr();return Bt(e.value,(function(e,n){t.set(e,$r(n))})),Vr(t,true)}return e.expr?8===e.expr.type?Ji(e.expr):_r(ti,[Ji(e.expr)]):_r(ei,[Qi(e.children)])}function fo(e){return $r(e.value)}function lo(e){return _r(ni,[$r(e.value),ro(Di,zi,e.value)])}function po(e){return _r(ri,[Ji(e.expr,true)])}function ho(e,t){k(e,Zr),k(e,Zr),4===_(qr)&&("native"===t.modifier?e[e.length-1]=Jr:e[e.length-2]=Jr)}function go(e){const t=[];k(t,$r(mo(e))),k(t,$r(e.value)),k(t,$r(e.name)),k(t,$r(e.modifier||""));const n=e.expr,{raw:r}=n;if(9===n.type){const r=n;return k(t,$r(r.name.name)),D(r.args)?k(t,Zr):k(t,Sr({execute:Ar([Mi,Hi],undefined,wr(r.args.map((function(e){return Ji(e)}))))})),ho(t,e),{name:ii,args:t}}const i=r.split(".");return k(t,$r(i[0])),k(t,$r(i[1])),ho(t,e),{name:oi,args:t}}function mo(e){return pe(e.name,e.modifier||"")}function yo(e){const t=[];return k(t,$r(mo(e))),k(t,$r(e.name)),k(t,$r(e.modifier)),k(t,e.expr?Ji(e.expr):$r(e.value)),k(t,ro(Ai,Oi,e.name)),t}function vo(){return _(Mr)?io(new Fi($r(""))):_(Br)?$r(""):Zr}function xo(e){if(e)return _(Hr)&&(e=function(e,t){const{nativeAttributeList:n,propertyList:r,style:i,lazyList:o,transition:s,model:c,eventList:a,customDirectiveList:u,otherList:f}=so(e,t),l=[];return k(l,n),k(l,r),i&&k(l,i),k(l,o),s&&k(l,s),c&&k(l,c),k(l,a),k(l,u),k(l,f),l}(e,_(qr))),_(Br)?Qi(e):kr(eo(e))}function $o(e){return Qr!==c.uglifyCompiled&&(c.uglifyCompiled?(ei="_a",ti="_b",ni="_c",ri="_d",ii="_e",oi="_f",si="_g",ci="_h",ai="_i",ui="_j",fi="_k",li="_l",di="_m",pi="_n",hi="_o",gi="_p",mi="_q",yi="_r",vi="_s",xi="_t",$i="_u",bi="_v",ki="_w",wi="_x",Si="_y",_i="_z",Ni="_A",Ci="_B",Ei="_C",Ti="_D",Ai="_E",Oi="_F",Di="_G",zi="_H",Pi="_I",Li="_J",Vi="_K",ji="_L",Ui="_M",Ii="_N",Ri="_O",Mi="_P",Hi="_Q"):(ei="renderStyleStyle",ti="renderStyleExpr",ni="renderTransition",ri="renderModel",ii="renderEventMethod",oi="renderEventName",si="renderDirective",ci="renderSpread",ai="renderEach",ui="renderRange",fi="renderSlot",li="appendVNodeProperty",di="formatNativeAttributeNumberValue",pi="formatNativeAttributeBooleanValue",hi="lookupKeypath",gi="lookupProp",mi="readKeypath",yi="setValueHolder",vi="toString",xi="textVNodeOperator",$i="commentVNodeOperator",bi="elementVNodeOperator",ki="componentVNodeOperator",wi="fragmentVNodeOperator",Si="portalVNodeOperator",_i="slotVNodeOperator",Ni="instance",Ci="logger",Ei="filters",Ti="globalFilters",Ai="directives",Oi="globalDirectives",Di="transition",zi="globalTransitions",Pi="stack",Li="parent",Vi="vnode",ji="children",Ui="$scope",Ii="$keypath",Ri="$length",Mi="$event",Hi="$data"),Qr=c.uglifyCompiled),Kn!==c.uglifyCompiled&&(Kn=c.uglifyCompiled,Zn=Kn?"$":"var"),Wn!==c.minifyCompiled&&(Wn=c.minifyCompiled,Wn?nr=rr=ir="":(nr=" ",rr="  ",ir="\n")),qn=0,Yn={},Gn={},Jn=Vr(),Qn=Vr("void 0"),Xn=Vr("null"),er=Vr("!0"),tr=Vr("!1"),Ur([ei,ti,ni,ri,ii,oi,si,ci,ai,ui,fi,li,di,pi,hi,gi,mi,yi,vi,xi,$i,bi,ki,wi,Si,_i,Ni,Ci,Ei,Ti,Ai,Oi,Di,zi,Pi,Ui,Ii,ji],Gr[e.type](e))}Gr[1]=function(e){let{tag:t,dynamicTag:n,isComponent:r,to:i,ref:o,key:s,html:c,text:a,attrs:u,children:f}=e,d=r?4:Kt[t]||3,p=Sr({context:Ni,type:$r(d),tag:n?Ji(n):$r(t)}),h=5===d,g=6===d,m=7===d,y=undefined,x=undefined,$=undefined,b=undefined;if(k(Mr,true),k(Hr,false),k(qr,d),f)if(r)$=function(e){const t=Sr(),n={},r=function(e,t){D(t)||k(n[e="$slot_"+e]||(n[e]=[]),t)};if(k(Kr,!0),v(e,(function(e){if(1===e.type){const t=e;if(t.slot)return void r(t.slot,"template"===t.tag?t.children:[t])}r("children",[e])})),xe(n,(function(e,n){t.set(n,no(e,[Li]))})),N(Kr),t.isNotEmpty())return t}(f);else{const{dynamicChildren:e,staticChildren:t}=ao(f);e?x=e:t&&(m?x=t:p.set("children",t))}if(Mr[Mr.length-1]=false,Hr[Hr.length-1]=true,i&&p.set("to",Xi(i)),o&&p.set("ref",Xi(o)),s&&p.set("key",Xi(s)),c&&p.set("html",l(c)?$r(c):_r(vi,[Ji(c)])),a&&p.set("text",l(a)?$r(a):_r(vi,[Ji(a)])),u){const{nativeAttributeList:e,propertyList:t,style:n,lazyList:r,transition:i,model:o,eventList:s,customDirectiveList:c,otherList:a}=so(u,d),f=a.length>0;if(e.length){let t=Sr(),n=f;v(e,(function(e){e.isStatic||(n=true),t.set(e.name,co(e))})),p.set("nativeAttrs",n?t:Vr(t,true))}if(t.length){const e=Sr();v(t,(function(t){e.set(t.name,Xi(t))})),p.set("props",e)}if(n&&p.set("nativeStyles",uo(n)),r.length){const e=Sr();v(r,(function(t){e.set(t.name,fo(t))})),p.set("lazy",Vr(e,true))}if(i&&p.set("transition",lo(i)),o&&p.set("model",po(o)),s.length){const e=Sr();v(s,(function(t){const n=go(t);e.set(mo(t),_r(n.name,n.args))})),p.set("events",e)}if(c.length){const e=Sr();v(c,(function(t){e.set(mo(t),_r(si,yo(t)))})),p.set("directives",e)}a.length&&(y=Ar([Vi],to(a),Vi))}if(m){const t=e.name;let n=$r("$slot_children");t&&(n=dn(t.value)?$r("$slot_"+t.value):Er($r("$slot_"),"+",Nr(Xi(t)))),b=_r(fi,[n,_(Kr)?Li:Zr])}N(Mr),N(Hr),N(qr),3===d?p.set("operator",bi):h?p.set("operator",wi):g?p.set("operator",Si):r?(p.set("operator",ki),_(Kr)&&p.set("parent",Li)):m&&(p.set("operator",_i),x=x?Er(b,"||",x):b),e.isSvg&&p.set("isSvg",Jr),e.isStatic&&(p.set("isStatic",Jr),p.set("isPure",Jr)),x&&p.set("children",x),$&&p.set("slots",$);const w=y?_r(y,[p]):p;if(h||g||m){const e=kr(),t=Pr();return e.add(Dr(t,w)),e.add(Er(Er(Or(t,[$r("children")]),"&&",Or(t,[$r("children"),$r("length")])),"&&",zr(ji,t))),e}return io(w)},Gr[2]=function(e){const t=_(qr);return _r(li,[Vi,$r(4===t||7===t?"props":"nativeAttrs"),$r(e.name),co(e)])},Gr[4]=function(e){return Dr(Or(Vi,[$r("nativeStyles")]),uo(e))},Gr[3]=function(e){switch(e.ns){case"lazy":return _r(li,[Vi,$r("lazy"),$r(e.name),fo(e)]);case"transition":return Dr(Or(Vi,[$r("transition")]),lo(e));case"model":return Dr(Or(Vi,[$r("model")]),po(e));case"event":const t=go(e);return _r(li,[Vi,$r("events"),$r(mo(e)),_r(t.name,t.args)]);default:return _r(li,[Vi,$r("directives"),$r(mo(e)),_r(si,yo(e))])}},Gr[12]=function(e){return _r(ci,[Vi,$r("props"),Ji(e.expr)])},Gr[5]=function(e){const t=$r(e.text);if(_(Mr))return oo(t);const n=_(Br);return n?(n.append(t),Zr):t},Gr[11]=function(e){const t=Ji(e.expr);if(_(Mr))return oo(_r(vi,[t]));const n=_(Br);return n?(n.append(_r(vi,[t])),Zr):t},Gr[6]=function(e){const{next:t}=e,n=_(Br),r=vo(),i=Tr(Ji(e.expr),xo(e.children)||r,t?Gr[t.type](t):r);return n?(n.append(i),Zr):i},Gr[7]=function(e){const{next:t}=e,n=vo();return Tr(Ji(e.expr),xo(e.children)||n,t?Gr[t.type](t):n)},Gr[8]=function(e){return xo(e.children)||vo()},Gr[9]=function(e){const{index:t,from:n,to:r,equal:i,next:o}=e,s=r||7===n.type||8===n.type,c=[Pi,Ui,Ii,Ri];t&&(k(c,t),k(Yr,t)),k(Fr,s);const a=Ar(c,to(e.children));t&&N(Yr),N(Fr);const u=o?Ar(undefined,to(o.children)):Zr;return r?_r(ui,[Ji(n),Ji(r),$r(i),a,u]):_r(ai,[Ji(n,true),a,u])},Gr[10]=function(e){const t=Pr(),n=kr();return n.add(Dr(t,Ji(e.expr))),n.add(Tr(t,io(t),Zr)),n};function bo(e){const{input:t,getter:n}=e;e.value=t?n.apply(undefined,t):n()}class ko{constructor(){this.map={},this.list=[]}add(e,t){const n=this.map[e.id]||(this.map[e.id]={});n[t]||(n[t]=e,this.list.push([e,t]))}watch(e){const{list:t}=this;if(t)for(let n=0,r=t.length;n<r;n++)t[n][0].watch(t[n][1],e)}unwatch(e){const{list:t}=this;if(t)for(let n=0,r=t.length;n<r;n++)t[n][0].unwatch(t[n][1],e)}}class wo{constructor(e,t,n,r,i,o,s,c){const a=this;a.status=1,a.keypath=e,a.cache=t,a.input=r,a.output=i,a.setter=s,a.getter=o,a.onChange=c,a.watcherOptions={sync:n,watcher(){a.refresh()}}}get(){const e=this,{status:t,watcherOptions:n}=e;if(e.cache){if(2!==t)if(e.staticDeps)bo(e);else{let{dynamicDeps:t}=e;t&&t.unwatch(n.watcher),e.dynamicDeps=undefined;const r=wo.current;wo.current=e,bo(e),wo.current=r,t=e.dynamicDeps,t&&t.watch(n)}}else bo(e);return 2!==t&&(e.status=2),function(e){const{value:t,output:n}=e;return n?n(t):t}(e)}set(e){const{setter:t}=this;t?t(e):a(e)&&(this.getter=e,this.refresh())}refresh(){const e=this.value;this.status=3;const t=this.get();t!==e&&this.onChange(this.keypath,t,e)}addStaticDeps(e,t){const n=this.staticDeps||(this.staticDeps=new ko);for(let r=0,i=t.length;r<i;r++)n.add(e,t[r]);n.watch(this.watcherOptions)}addDynamicDep(e,t){(this.dynamicDeps||(this.dynamicDeps=new ko)).add(e,t)}}class So{constructor(e,t,n){this.keypath=e,this.scopeValue=t,this.scopeKey=n}getScope(){const{scopeValue:e,scopeKey:t}=this;return undefined!==t?e[t]:e}getKeypath(e){const{keypath:t}=this;return t?t+"."+e:e}}let _o=0,No="textContent",Co=No,Eo="cssFloat",To=function(e,t){return e},Ao=function(e){const t=n.querySelector(e);if(t)return t},Oo=function(e,t,n){e.addEventListener(t,n,false)},Do=function(e,t,n){e.removeEventListener(t,n,false)},zo=function(e,t){e.classList.add(t)},Po=function(e,t){e.classList.remove(t)};if(n){let e=n.documentElement;if(Eo in e.style||(Eo="styleFloat"),e.classList||(zo=function(e,t){const n=e.className.split(Lo);E(n,t)||(k(n,t),e.className=O(n,Lo))},Po=function(e,t){const n=e.className.split(Lo);C(n,t)&&(e.className=O(n,Lo))}),!e.addEventListener){const e="propertychange",t=function(e){return"INPUT"===e.tagName&&("radio"===e.type||"checkbox"===e.type)};class r{constructor(e,t){$e(this,e),this.currentTarget=t,this.target=e.srcElement||t,this.originalEvent=e}preventDefault(){this.originalEvent.returnValue=false}stopPropagation(){this.originalEvent.cancelBubble=true}}No="nodeValue",Co="innerText",To=function(e,t){return new r(e,t)},Ao=function(e){35===ee(e,0)&&(e=Y(e,1));const t=n.getElementById(e);if(t)return t},Oo=function(n,r,i){"input"===r?Oo(n,e,i[Vo]=function(e){"value"===e.propertyName&&i(new y("input",To(e,n)))}):"change"===r&&t(n)?Oo(n,"click",i[Vo]=function(e){i(new y("change",To(e,n)))}):n.attachEvent("on"+r,i)},Do=function(n,r,i){"input"===r?(Do(n,e,i[Vo]),delete i[Vo]):"change"===r&&t(n)?(Do(n,"click",i[Vo]),delete i[Vo]):n.detachEvent("on"+r,i)}}e=undefined}const Lo=" ",Vo="$event",jo={svg:"http://www.w3.org/2000/svg"},Uo={},Io={},Ro={},Mo={};function Ho(e){return n.createComment(e)}function Fo(e,t){e.appendChild(t)}Mo.model={on(e,t){let n=false;Go(e,"compositionstart",t.compositionstart=function(){n=true}),Go(e,"compositionend",t.compositionend=function(e){n=false,t(e)}),Oo(e,"input",t.input=function(e){n||t(e)})},off(e,t){Zo(e,"compositionstart",t.compositionstart),Zo(e,"compositionend",t.compositionend),Do(e,"input",t.input),t.compositionstart=t.compositionend=t.input=undefined}};const Ko=Ao;function Wo(e){if(1===e.nodeType)return ne(e.tagName)}function Bo(e){return"style"===Wo(e)&&Se(e,"styleSheet")?e.styleSheet.cssText:e.innerHTML}const qo=zo,Yo=Po;function Go(e,t,n){const r=e[Vo]||(e[Vo]=++_o),i=Io[r]||(Io[r]={}),o=Ro[r]||(Ro[r]={}),s=o[t]||(o[t]=[]);if(!i[t]){const n=Mo[t],o=function(n){let r;y.is(n)?(r=n,r.type!==t&&(r.type=t)):r=new y(t,To(n,e));const i=s.slice();for(let e=0,t=i.length;e<t;e++)i[e](r,undefined,true)};i[t]=o,Uo[r]?Uo[r]++:Uo[r]=1,n?n.on(e,o):Oo(e,t,o)}s.push(n)}function Zo(e,t,n){let r=e[Vo],i=Io[r],o=Ro[r],s=o&&o[t];if(s&&(C(s,n),s.length||(s=undefined,delete o[t])),i&&i[t]&&!s){const n=Mo[t],o=i[t];n?n.off(e,o):Do(e,t,o),delete i[t],Uo[r]&&Uo[r]--}Uo[r]||(e[Vo]=undefined,delete Io[r],delete Ro[r])}var Jo=Object.freeze({__proto__:null,getBodyElement:function(){return n.body},createElement:function(e,t){return t?n.createElementNS(jo.svg,e):n.createElement(e)},createText:function(e){return n.createTextNode(e)},createComment:Ho,getAttr:function(e,t){const n=e.getAttribute(t);if(null!=n)return n},setAttr:function(e,t,n){undefined===n?e.removeAttribute(t):e.setAttribute(t,n)},removeAttr:function(e,t){e.removeAttribute(t)},setStyle:function(e,t,n){null!=n?e["float"===t?Eo:t]=n:e[t]=""},removeStyle:function(e,t){e[t]=""},before:function(e,t,n){e.insertBefore(t,n)},append:Fo,replace:function(e,t,n){e.replaceChild(t,n)},remove:function(e,t){e.removeChild(t)},parent:function(e){const{parentNode:t}=e;if(t)return t},next:function(e){const{nextSibling:t}=e;if(t)return t},find:Ko,tag:Wo,getNodeText:function(e){return e[No]},setNodeText:function(e,t){e[No]=t},getElementText:function(e){return"style"===Wo(e)&&Se(e,"styleSheet")?e.styleSheet.cssText:e[Co]},setElementText:function(e,t){"style"===Wo(e)&&Se(e,"styleSheet")?e.styleSheet.cssText=t:e[Co]=t},getHtml:Bo,setHtml:function(e,t){"style"===Wo(e)&&Se(e,"styleSheet")?e.styleSheet.cssText=t:e.innerHTML=t},addClass:qo,removeClass:Yo,on:Go,off:Zo,addSpecialEvent:function(e,t){Mo[e]=t}});function Qo(e,t){return h(e)?+e:undefined!==t?t:0}function Xo(e,t){if(null==e||""===t)return e;const n=we(e,t);return n?n.value:void 0}function es(e,t,n,r,o,s){const c=function(t,n,i){if(n!==i){const c=pe(e,t);for(let e=0;e<o;e++){const t=r[e];undefined!==me(c,t)&&s(t,c,n,i)}es(c,n,i,r,o,s)}};(function(e,t,n){const r=l(e),i=l(t);if(r||i)return n("length",r?e.length:void 0,i?t.length:void 0),!0})(t,n,c)||function(e,t,n){const r=u(e),i=u(t);if(r||i){const o=r?e.length:void 0,s=i?t.length:void 0;n("length",o,s);for(let c=0,a=Math.max(o||0,s||0);c<a;c++)n(""+c,r?e[c]:void 0,i?t[c]:void 0);return!0}}(t,n,c)||function(e,t,n){const r=f(e),o=f(t);if(r||o){const s=j(),c=r?e:i,a=o?t:i;if(r)for(let e in c){const t=c[e];t!==a[e]&&(s.set(e,!0),n(e,t,a[e]))}if(o)for(let e in a){const t=a[e];void 0===s.get(e)&&t!==c[e]&&n(e,c[e],t)}}}(t,n,c)}function ts(e,t,n,r,i,o){let s;for(const c in r)if(he(c))undefined!==me(e,c)?o(c,e,t,n):i&&(s?s.push(c):s=[c]);else{const r=fe(c,e);if(r>=0){const e=Y(c,r),i=Xo(t,e),s=Xo(n,e);i!==s&&o(c,c,i,s)}}s&&es(e,t,n,s,s.length,o)}const ns={watcher:r};function rs(e,t){return a(e)?(ns.watcher=e,ns.immediate=true===t,ns):e}let is=0;class os{constructor(e,t,n){const r=this;r.id=is++,r.data=e||{},r.context=t||r,r.nextTask=n||new Ue,r.syncEmitter=new De,r.asyncEmitter=new De,r.asyncOldValues={},r.asyncKeypaths={},r.onComputedChange=function(e,t,n){r.diff(e,t,n)}}get(e,t,n){const r=this,{data:i}=r,o=wo.current;if(""===e)return i;o&&!n&&o.addDynamicDep(r,e);const s=we(i,e);return s?s.value:t}set(e,t){const n=this,{data:r}=n,i=function(e,t){const i=n.get(e);if(t===i)return;let o;de(e,(function(e,n,i){if(0!==n)o&&(n===i?o[e]=t:o=o[e]||(o[e]={}));else{const n=r[e];n&&n instanceof wo?0===i?n.set(t):o=n.get():0===i?r[e]=t:o=r[e]||(r[e]={})}})),n.diff(e,t,i)};if(l(e))i(e,t);else if(f(e))for(let t in e)i(t,e[t])}diff(e,t,n){let r=this,{syncEmitter:i,asyncEmitter:o,asyncOldValues:s,asyncKeypaths:c}=r,a=36!==ee(e);ts(e,t,n,i.listeners,a,(function(e,t,n,r){i.fire({type:e,ns:""},[n,r,t])})),ts(e,t,n,o.listeners,a,(function(e,t,n,i){const a=o.listeners[e];for(let e=0,t=a.length;e<t;e++)a[e].count++;c[t]||(s[t]=i,c[t]={}),c[t][e]=true,r.pending||(r.pending=true,r.nextTask.append((function(){r.pending&&r.diffAsync()})))}))}diffAsync(){const e=this,{asyncEmitter:t,asyncOldValues:n,asyncKeypaths:r}=e;e.pending=undefined,e.asyncOldValues={},e.asyncKeypaths={};for(let i in n){const o=[e.get(i),n[i],i],s=r[i],c=o[0]!==o[1],a=function(e,t,n){if(n.count)return n.count--,c};for(let e in s)t.fire({type:e,ns:""},o,a)}}addComputed(e,t){let n,r,i,o,s,c=this,l=c.context,d=true,h=true;if(a(t))i=t.bind(l);else if(f(t)){const e=t;p(e.cache)&&(d=e.cache),p(e.sync)&&(h=e.sync),u(e.deps)&&(n=e.deps),D(e.input)||(r=e.input),a(e.output)&&(s=e.output),a(e.get)&&(i=e.get.bind(l)),a(e.set)&&(o=e.set.bind(l))}if(i){const t=new wo(e,d,h,r,s,i,o,c.onComputedChange);return d&&n&&t.addStaticDeps(c,n),c.data[e]=t}}removeComputed(e){delete this.data[e]}watch(e,t,n){const r=this,{context:i,syncEmitter:o,asyncEmitter:s}=r,c=function(e,t){const n=t.sync?o:s,c={ns:"",listener:t.watcher,ctx:i,count:0};t.once&&(c.max=1),n.on(e,c),t.immediate&&t.watcher.call(i,r.get(e),undefined,e)};if(l(e))c(e,rs(t,n));else for(let t in e)c(t,rs(e[t]))}unwatch(e,t){this.syncEmitter.off(e,t),this.asyncEmitter.off(e,t)}toggle(e){const t=!this.get(e);return this.set(e,t),t}increase(e,t,n){const r=Qo(this.get(e),0)+(t||1);if(!d(n)||r<=n)return this.set(e,r),r}decrease(e,t,n){const r=Qo(this.get(e),0)-(t||1);if(!d(n)||r>=n)return this.set(e,r),r}insert(e,t,n){let r=this.get(e);r=u(r)?r.slice():[];const{length:i}=r;if(true===n||n===i)r.push(t);else if(false===n||0===n)r.unshift(t);else{if(!(n>0&&n<i))return;r.splice(n,0,t)}return this.set(e,r),true}append(e,t){return this.insert(e,t,true)}prepend(e,t){return this.insert(e,t,false)}removeAt(e,t){let n=this.get(e);if(u(n)&&t>=0&&t<n.length)return n=n.slice(),n.splice(t,1),this.set(e,n),true}remove(e,t){let n=this.get(e);if(u(n)&&(n=n.slice(),C(n,t)))return this.set(e,n),true}copy(e,t){return be(e,t)}destroy(){const e=this;e.syncEmitter.off(),e.asyncEmitter.off(),e.nextTask.clear(),e.data={}}}const ss={},cs={},as={},us={},fs=/^[#.][-\w+]+$/,ls=new class{constructor(){this.$emitter=new De}fire(e,t,n){this.$emitter.fire(t,[e,n])}on(e,t){return this.$emitter.on(e,t),this}off(e,t){return this.$emitter.off(e,t),this}},ds=U((function(e){return $o(Fn(e)[0])})),ps={watcher(e){this.update(e,this.$vnode)},sync:true},hs=function(e){return e?e.map(Rt):e};class gs{constructor(e){const t=this,n=e||i;t.$emitter=new De(true),n.events&&t.on(n.events);{n.parent&&(t.$parent=n.parent);const e=n.beforeCreate;e&&e.call(t,n),ls.fire(t,"beforeCreate",{options:n})}let{data:r,props:o,vnode:s,propTypes:c,computed:u,methods:d,watchers:p,extensions:h}=n;t.$options=n,h&&$e(t,h);const g=o?be(o):{};c&&xe(c,(function(e,t){let n=g[t];undefined===n&&(n=e.value,undefined!==n&&(g[t]="function"===e.type?n:a(n)?n():n))}));const m=t.$observer=new os(g,t,t.$nextTask=new Ue);u&&xe(u,(function(e,t){m.addComputed(t,e)}));const y=a(r)?r.call(t,e):r;f(y)&&xe(y,(function(e,t){g[t]=e})),d&&xe(d,(function(e,n){t[n]=e}));{let e=undefined,{el:r,root:i,model:o,context:c,replace:a,template:u,transitions:f,components:d,directives:h,filters:g,slots:y}=n;if(o&&(t.$model=o),l(u)&&fs.test(u)&&(e=Ko(u),e&&(u=Bo(e),e=undefined)),r){if(l(r)){const t=r;fs.test(t)&&(e=Ko(t))}else e=r;a||Fo(e,e=Ho(""))}if(i&&(t.$root=i),c&&(t.$context=c),bs(t,"transition",f),bs(t,"component",d),bs(t,"directive",h),bs(t,"filter",g),u){if(p&&m.watch(p),y)for(let e in y)m.addComputed(e,{get:y[e],input:[t],output:hs});m.addComputed("$$template",{get:t.render,sync:false}),m.watch("$$template",ps);{const e=n.afterCreate;e&&e.call(t),ls.fire(t,"afterCreate")}return t.$template=l(u)?gs.compile(u):u,s||(s=function(e,t,n){const r={context:n,node:t,parentNode:e.parent(t)};switch(t.nodeType){case 1:r.data={},r.tag=e.tag(t),r.type=3,r.operator=bt;break;case 3:r.isPure=!0,r.text=t.nodeValue,r.type=1,r.operator=mt;break;case 8:r.isPure=!0,r.text=t.nodeValue,r.type=2,r.operator=yt}return r}(Jo,e,t)),void t.update(t.get("$$template"),s)}}p&&m.watch(p);{const e=n.afterCreate;e&&e.call(t),ls.fire(t,"afterCreate")}}static define(e){return e}static use(e){e.install(gs)}static nextTick(e,t){Ue.shared().append(e,t)}static compile(e,t){return a(e)?e:(e=ds(e),t?e:new Function("return "+e)())}static directive(e,t){if(l(e)&&!t)return vs(ss,e);$s(ss,e,t)}static transition(e,t){if(l(e)&&!t)return vs(cs,e);$s(cs,e,t)}static component(e,t){if(l(e)&&!t)return vs(as,e);$s(as,e,t)}static filter(e,t){if(l(e)&&!t)return vs(us,e);$s(us,e,t)}static method(e,t){if(l(e)&&!t)return ms[e];$s(ms,e,t)}get(e,t){return this.$observer.get(e,t)}set(e,t){const{$observer:n}=this;n&&n.set(e,t)}on(e,t){return ws(this,e,t),this}once(e,t){return ws(this,e,t,true),this}off(e,t){return this.$emitter.off(e,t),this}fire(e,t,n){const r=this,{$emitter:i,$parent:o,$children:s}=r;let c;if(y.is(e))c=e;else if(l(e))c=new y(e);else{const t=e;c=new y(t.type),c.ns=t.ns}if(undefined===c.ns){const e=i.toEvent(c.type);c.type=e.type,c.ns=e.ns}c.target||(c.target=r);let a,u=[c];return f(t)?k(u,t):true===t&&(n=true),a=!(!n||c.target!==r)||i.fire(c,u),a&&(n?s&&(c.phase=y.PHASE_DOWNWARD,v(s,(function(e){return a=e.fire(c,t,true)}))):o&&(c.phase=y.PHASE_UPWARD,a=o.fire(c,t))),a}watch(e,t,n){return this.$observer.watch(e,t,n),this}unwatch(e,t){return this.$observer.unwatch(e,t),this}loadComponent(e,t){ys(this.$components,e,t)||ys(as,e,t)}createComponent(e,t){{const n=this;(e=be(e)).root=n.$root||n,e.parent=n,e.context=t.context,e.vnode=t,e.replace=true;let{props:r,slots:i,model:o}=t;if(o){r||(r={});const t=e.model||"value";r[t]=o.value,e.model=t}r&&(e.props=r),i&&(e.slots=i);const s=new gs(e);k(n.$children||(n.$children=[]),s);const c=s.$el;return c&&(t.node=c),s}}directive(e,t){{const n=this,{$directives:r}=n;if(l(e)&&!t)return vs(r,e,gs.directive);$s(r||(n.$directives={}),e,t)}}transition(e,t){{const n=this,{$transitions:r}=n;if(l(e)&&!t)return vs(r,e,gs.transition);$s(r||(n.$transitions={}),e,t)}}component(e,t){{const n=this,{$components:r}=n;if(l(e)&&!t)return vs(r,e,gs.component);$s(r||(n.$components={}),e,t)}}filter(e,t){{const n=this,{$filters:r}=n;if(l(e)&&!t)return vs(r,e,gs.filter);$s(r||(n.$filters={}),e,t)}}forceUpdate(e){{const t=this,{$options:n,$vnode:r,$nextTask:i}=t;if(r){if(e){const r=n.beforePropsUpdate;r&&r.call(t,e),t.set(e)}i.run(),e||r!==t.$vnode||t.update(t.get("$$template"),r)}}}render(){{const e=this,{$options:t,$observer:n}=e,{data:r}=n,i=t.beforeRender,o=t.afterRender;i&&i.call(e,r),ls.fire(e,"beforeRender",{props:r});const s=function(e,t,n,r,i,o,s,c,d,p){let h=[new So("",n)],g=[],v=function(e,t,n,r){if(e[t])e[t][n]=r;else{const i={};i[n]=r,e[t]=i}},x=function(e){const t={};return Bt(e,(function(e,n){t[e]=n})),t},$=function(e){if(u(e)){const t={};for(let n=0,r=e.length;n<r;n++){const r=$(e[n]);if(r)for(let e in r)t[e]=r[e]}return t}return f(e)?e:l(e)?x(e):void 0},b=function(e,t){return t},k=function(e){return{keypath:e.keypath,value:e.value}},w=function(t,n,r){return function(i,o,s){r&&i.phase===y.PHASE_DOWNWARD||(t===i.type&&n===i.ns||((i=new y(t,s?i.originalEvent:i)).ns=n),e.fire(i,o))}},S=function(e,t,n){return function(r,i){n&&r.phase===y.PHASE_DOWNWARD||!1===T(e,t?t.execute(r,i):i?[r,i]:[r])&&r.prevent().stop()}},N=function(e,t,n,r,i,o,s,c){return{key:e,value:t,name:n,ns:r,isNative:c,runtime:o,listener:S(i,o,s)}},C=function(e,t,n,r,i,o,s,c){return{key:e,value:t,name:n,ns:r,isNative:c,listener:w(i,o,s)}},E=function(e,t,n,r,i){return{ns:"o",name:t,value:r,modifier:n,create:i}},T=function(t,n){const r=e[t];return n&&n.length>0?m(r,e,n):e[t]()},A=function(e,t,n){if(f(n))for(let r in n)v(e,t,r,n[r])},O=function(e,t,n){let{keypath:r,value:i}=e,o=0,s=!!r,c=h,a=_(h).keypath;if(u(i)){o=i.length;for(let e=0;e<o;e++)s&&(a=r+"."+e,h=c.slice(),h.push(new So(a,i,e))),t(h,i[e],a,o,e)}else if(f(i)){const e=ve(i);o=e.length;for(let n=0;n<o;n++){const u=e[n];s&&(a=r+"."+u,h=c.slice(),h.push(new So(a,i,u))),t(h,i[u],a,o,u)}}h!==c&&(h=c),n&&0===o&&n()},D=function(e,t,n,r,i){let o=0,s=0,c=_(h).keypath;if(e<t)if(s=t-e,n)for(let n=e;n<=t;n++)r(h,n,c,s,o++);else for(let n=e;n<t;n++)r(h,n,c,s,o++);else if(s=e-t,n)for(let n=e;n>=t;n--)r(h,n,c,s,o++);else for(let n=e;n>t;n--)r(h,n,c,s,o++);i&&0===s&&i()},z=function(e,t){p(e);const r=n[e];if(r)return r instanceof wo?t?r.getter(t):r.get():r},L=function(e,t,n,r,i,o){let s;for(;t>=0;){const o=e[t],c=o.getKeypath(n),a=we(o.getScope(),r),u=U(a?a.value:void 0,c);if(a)return u;if(s||(s=u),!(i&&t>0))break;t--}return o?U(o):s},V=function(e,t,n,r){return L(e,t,n,[n],!0,r)},j=function(e,t){const n=we(e,t);return U(n?n.value:void 0)},U=function(e,t){return e&&a(e.get)&&(e=e.get()),ye.keypath=t,ye.value=e,void 0!==t&&p(t),ye};return function(t,n,a,u){t(x,$,b,k,N,C,E,A,O,D,z,v,an,un,L,V,j,U,P,mt,yt,bt,kt,wt,St,_t,e,Oe,r,i,o,s,c,d,h,n,"",u)}(t,n,0,g),g[0]}(e,e.$template,r,e.$filters,us,e.$directives,ss,e.$transitions,cs,(function(e){const{current:t}=wo;t&&t.addDynamicDep(n,e)}));return o&&o.call(e),ls.fire(e,"afterRender"),s}}update(e,t){{let n,r=this,{$vnode:i,$options:o}=r;if(i){const i=o.beforeUpdate;i&&i.call(r),ls.fire(r,"beforeUpdate"),It(Jo,e,t),n="afterUpdate"}else{const i=o.beforeMount;i&&i.call(r),ls.fire(r,"beforeMount"),It(Jo,e,t),r.$el=e.node,n="afterMount"}r.$vnode=e,gs.nextTick((function(){if(r.$vnode){const e=o[n];e&&e.call(r),ls.fire(r,n)}}))}}checkProp(e,t){}destroy(){const e=this,{$parent:t,$options:n,$emitter:r,$observer:i}=e;{const r=n.beforeDestroy;r&&r.call(e),ls.fire(e,"beforeDestroy"),t&&t.$children&&C(t.$children,e);const{$vnode:i}=e;i&&(c=!t,zt(o=Jo,s=i),c&&Pt(o,s))}var o,s,c;i.destroy();{const t=n.afterDestroy;t&&t.call(e),ls.fire(e,"afterDestroy")}r.off(),e.$el=undefined}nextTick(e){this.$nextTask.append(e,this)}toggle(e){return this.$observer.toggle(e)}increase(e,t,n){return this.$observer.increase(e,t,n)}decrease(e,t,n){return this.$observer.decrease(e,t,n)}insert(e,t,n){return this.$observer.insert(e,t,n)}append(e,t){return this.$observer.append(e,t)}prepend(e,t){return this.$observer.prepend(e,t)}removeAt(e,t){return this.$observer.removeAt(e,t)}remove(e,t){return this.$observer.remove(e,t)}copy(e,t){return this.$observer.copy(e,t)}}gs.version="1.0.0-alpha.408",gs.is=g,gs.dom=Jo,gs.array=z,gs.object=_e,gs.string=se,gs.logger=Oe,gs.Event=y,gs.Emitter=De,gs.lifeCycle=ls,gs.config=c;const ms=gs.prototype;function ys(e,t,n){if(e&&e[t]){const r=e[t];if(a(r)){e[t]=[n];const i=function(n){const r=e[t],i=n["default"]||n;e[t]=i,v(r,(function(e){e(i)}))},o=r(i);o&&o.then(i)}else u(r)?k(r,n):n(r);return true}}function vs(e,t,n){return e&&e[t]?e[t]:n?n(t):void 0}function xs(e,t,n,r){r&&r.format&&(n=r.format(n)),e[t]=n}function $s(e,t,n,r){l(t)?xs(e,t,n,r):xe(t,(function(t,n){xs(e,n,t,r)}))}function bs(e,t,n){a(n)?e[t](n.call(e)):f(n)&&e[t](n)}function ks(e,t,n){e.$emitter.on(t.type,{listener:t.listener,ns:t.ns,max:n?1:-1,ctx:e})}function ws(e,t,n,r){const{$emitter:i}=e;l(t)?ks(e,i.toFilter(t,n),r):u(t)?v(t,(function(t){ks(e,t,r)})):xe(t,(function(t,n){ks(e,i.toFilter(n,t),r)}))}A(ve(ms));export default gs;
//# sourceMappingURL=yox.esm.min.js.map