|
var t,e;t=this,e=function(t){"use strict";const e=new Map,n=Symbol("riot-component"),r=new Set,o="mount",s="update",i="unmount",u=Symbol.for("pure"),a=Symbol("parent"),c=Symbol("attributes"),l=Symbol("template");var h=Object.freeze({__proto__:null,COMPONENTS_IMPLEMENTATION_MAP:e,DOM_COMPONENT_INSTANCE_PROPERTY:n,PLUGINS_SET:r,IS_DIRECTIVE:"is",VALUE_ATTRIBUTE:"value",MOUNT_METHOD_KEY:o,UPDATE_METHOD_KEY:s,UNMOUNT_METHOD_KEY:i,SHOULD_UPDATE_KEY:"shouldUpdate",ON_BEFORE_MOUNT_KEY:"onBeforeMount",ON_MOUNTED_KEY:"onMounted",ON_BEFORE_UPDATE_KEY:"onBeforeUpdate",ON_UPDATED_KEY:"onUpdated",ON_BEFORE_UNMOUNT_KEY:"onBeforeUnmount",ON_UNMOUNTED_KEY:"onUnmounted",PROPS_KEY:"props",STATE_KEY:"state",SLOTS_KEY:"slots",ROOT_KEY:"root",IS_PURE_SYMBOL:u,PARENT_KEY_SYMBOL:a,ATTRIBUTES_KEY_SYMBOL:c,TEMPLATE_KEY_SYMBOL:l});function p(t){return"function"==typeof t}function d(){return this}function f(t){return p(t)?t.prototype&&t.prototype.constructor?new t:t():t}function m(t){Array.from(t).forEach(b)}function b(t){const{parentNode:e}=t;t.remove?t.remove():e&&e.removeChild(t)}var O={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4},g={ATTRIBUTE:0,EVENT:1,TEXT:2,VALUE:3};const{indexOf:E}=[],v=(t,e,n,r,o,s)=>{const i="selectedIndex"in e;let u=i;for(;r<o;){const o=t(n[r],1);if(e.insertBefore(o,s),i&&u&&o.selected){u=!u;let{selectedIndex:t}=e;e.selectedIndex=t<0?r:E.call(e.querySelectorAll("option"),o)}r++}},N=(t,e)=>t==e,T=t=>t,y=(t,e,n,r,o,s,i)=>{const u=s-o;if(u<1)return-1;for(;n-e>=u;){let u=e,a=o;for(;u<n&&a<s&&i(t[u],r[a]);)u++,a++;if(a===s)return e;e=u+1}return-1},M=(t,e,n,r,o)=>n<r?t(e[n],0):0<n?t(e[n-1],-0).nextSibling:o,j=(t,e,n,r)=>{for(;n<r;)w(t(e[n++],-1))},_=(t,e,n)=>{let r=1,o=e;for(;r<o;){const e=(r+o)/2>>>0;n<t[e]?o=e:r=e+1}return r},A=(t,e,n,r,o,s,i,u,a,c,l,h,p)=>{((t,e,n,r,o,s,i,u,a)=>{const c=[],l=t.length;let h=i,p=0;for(;p<l;)switch(t[p++]){case 0:o++,h++;break;case 1:c.push(r[o]),v(e,n,r,o++,o,h<u?e(s[h],0):a);break;case-1:h++}for(p=0;p<l;)switch(t[p++]){case 0:i++;break;case-1:-1<c.indexOf(s[i])?i++:j(e,s,i++,i)}})(((t,e,n,r,o,s,i)=>{const u=n+s,a=[];let c,l,h,p,d,f,m;t:for(c=0;c<=u;c++){if(c>50)return null;for(m=c-1,d=c?a[c-1]:[0,0],f=a[c]=[],l=-c;l<=c;l+=2){for(p=l===-c||l!==c&&d[m+l-1]<d[m+l+1]?d[m+l+1]:d[m+l-1]+1,h=p-l;p<s&&h<n&&i(r[o+p],t[e+h]);)p++,h++;if(p===s&&h===n)break t;f[c+l]=p}}const b=Array(c/2+u/2);let O=b.length-1;for(c=a.length-1;c>=0;c--){for(;p>0&&h>0&&i(r[o+p-1],t[e+h-1]);)b[O--]=0,p--,h--;if(!c)break;m=c-1,d=c?a[c-1]:[0,0],l=p-h,l===-c||l!==c&&d[m+l-1]<d[m+l+1]?(h--,b[O--]=1):(p--,b[O--]=-1)}return b})(n,r,s,i,u,c,h)||((t,e,n,r,o,s,i,u)=>{let a=0,c=r<u?r:u;const l=Array(c++),h=Array(c);h[0]=-1;for(let t=1;t<c;t++)h[t]=i;const p=o.slice(s,i);for(let r=e;r<n;r++){const e=p.indexOf(t[r]);if(-1<e){const t=e+s;a=_(h,c,t),-1<a&&(h[a]=t,l[a]={newi:r,oldi:t,prev:l[a-1]})}}for(a=--c,--i;h[a]>i;)--a;c=u+r-a;const d=Array(c);let f=l[a];for(--n;f;){const{newi:t,oldi:e}=f;for(;n>t;)d[--c]=1,--n;for(;i>e;)d[--c]=-1,--i;d[--c]=0,--n,--i,f=f.prev}for(;n>=e;)d[--c]=1,--n;for(;i>=s;)d[--c]=-1,--i;return d})(n,r,o,s,i,u,a,c),t,e,n,r,i,u,l,p)},w=t=>(t.remove||S).call(t);function S(){const{parentNode:t}=this;t&&t.removeChild(this)}
|
|
/*! (c) 2018 Andrea Giammarchi (ISC) */function x(t,e){return typeof t===e}function U(t){const e=t.ownerSVGElement;return!!e||null===e}function P(t){return!I(t.content)}function C(t){return x(t,"function")}function D(t){return!I(t)&&x(t,"object")}function I(t){return null==t}const B=Symbol("unmount"),Y=Object.seal({nodes:[],mount(t,e){return this.update(t,e)},update(t,e){const{placeholder:n,nodes:r,childrenMap:o}=this,s=t===B?null:this.evaluate(t),i=s?Array.from(s):[],u=n.parentNode,{newChildrenMap:a,batches:c,futureNodes:l}=function(t,e,n,r){const{condition:o,template:s,childrenMap:i,itemName:u,getKey:a,indexName:c,root:l,isTemplateTag:h}=r,p=new Map,d=[],f=[];return t.forEach((t,r)=>{const m=function(t,e){let{itemName:n,indexName:r,index:o,item:s}=e;return t[n]=s,r&&(t[r]=o),t}(Object.create(e),{itemName:u,indexName:c,index:r,item:t}),b=a?a(m):r,O=i.get(b);if(function(t,e){return!!t&&!1===Boolean(t(e))}(o,m))return;const g=O?O.template:s.clone(),E=O?g.el:l.cloneNode(),v=!O,N=h&&v?function(t){const e=t.dom.cloneNode(!0);return{avoidDOMInjection:!0,fragment:e,children:Array.from(e.childNodes)}}(g):{};if(v?d.push(()=>g.mount(E,m,n,N)):d.push(()=>g.update(m,n)),h){const t=N.children||g.children;f.push(...t),t.forEach(t=>p.set(t,null))}else f.push(E);i.delete(b),p.set(b,{template:g,context:m,index:r})}),{newChildrenMap:p,batches:d,futureNodes:f}}(i,t,e,this);return((t,e,n,r)=>{r||(r={});const o=r.compare||N,s=r.node||T,i=null==r.before?null:s(r.before,0),u=e.length;let a=u,c=0,l=n.length,h=0;for(;c<a&&h<l&&o(e[c],n[h]);)c++,h++;for(;c<a&&h<l&&o(e[a-1],n[l-1]);)a--,l--;const p=c===a,d=h===l;if(p&&d)return n;if(p&&h<l)return v(s,t,n,h,l,M(s,e,c,u,i)),n;if(d&&c<a)return j(s,e,c,a),n;const f=a-c,m=l-h;let b=-1;if(f<m){if(b=y(n,h,l,e,c,a,o),-1<b)return v(s,t,n,h,b,s(e[c],0)),v(s,t,n,b+f,l,M(s,e,a,u,i)),n}else if(m<f&&(b=y(e,c,a,n,h,l,o),-1<b))return j(s,e,c,b),j(s,e,b+m,a),n;f<2||m<2?(v(s,t,n,h,l,s(e[c],0)),j(s,e,c,a)):f===m&&((t,e,n,r,o,s)=>{for(;r<o&&s(n[r],t[e-1]);)r++,e--;return 0===e})(n,l,e,c,a,o)?v(s,t,n,h,l,M(s,e,a,u,i)):A(s,t,n,h,l,m,e,c,a,f,u,o,i)})(u,r,l,{before:n,node:L(Array.from(o.values()),e)}),c.forEach(t=>t()),this.childrenMap=a,this.nodes=l,this},unmount(t,e){return this.update(B,e),this}});function L(t,e){return(n,r)=>{if(r<0){const n=t.pop();if(n){const{template:t,context:r}=n;t.unmount(r,e,null)}}return n}}const K=Object.seal({mount(t,e){return this.update(t,e)},update(t,e){const n=!!this.evaluate(t),r=!this.value&&n,o=this.value&&!n,s=()=>{const n=this.node.cloneNode();this.placeholder.parentNode.insertBefore(n,this.placeholder),this.template=this.template.clone(),this.template.mount(n,t,e)};switch(!0){case r:s();break;case o:this.unmount(t);break;default:n&&this.template.update(t,e)}return this.value=n,this},unmount(t,e){return this.template.unmount(t,e,!0),this}}),k="undefined"==typeof Element?{}:Element.prototype,R=function(t){const e=new Map,n=n=>e.has(n)?e.get(n):e.set(n,t.call(this,n))&&e.get(n);return n.cache=e,n}(t=>k.hasOwnProperty(t));function $(t,e,n,r){let{name:o}=e;o?(!R(o)&&(function(t){return x(t,"boolean")}(n)||D(n)||C(n))&&(t[o]=n),t[function(t){return I(t)||!1===t||""===t||D(t)||C(t)?"removeAttribute":"setAttribute"}(n)](o,function(t,e){return!0===e?t:e}(o,n))):n?function(t,e){Object.entries(e).forEach(e=>{let[n,r]=e;return $(t,{name:n},r)})}(t,n):r&&function(t,e){Object.keys(e).forEach(e=>t.removeAttribute(e))}(t,r)}const z=/^on/;function H(t){return I(t)?"":t}const F=(t,e)=>{const n=t.childNodes[e];if(n.nodeType===Node.COMMENT_NODE){const e=document.createTextNode("");return t.replaceChild(e,n),e}return n};var V={0:$,1:function(t,e,n,r){let{name:o}=e;const s=o.replace(z,"");r&&t.removeEventListener(s,r),n&&t.addEventListener(s,n,!1)},2:function(t,e,n){t.data=H(n)},3:function(t,e,n){t.value=H(n)}};const G=Object.seal({mount(t){return this.value=this.evaluate(t),q(this,this.value),this},update(t){const e=this.evaluate(t);return this.value!==e&&(q(this,e),this.value=e),this},unmount(){return 1===this.type&&q(this,null),this}});function q(t,e){return V[t.type](t.node,t,e,t.value)}function W(t,e){return Object.assign({},G,{},e,{node:2===e.type?F(t,e.childNodeIndex):t})}function X(t,e,n){if(!t||!t.length)return n;const r=t.map(t=>Object.assign({},t,{value:t.evaluate(e)}));return Object.assign(Object.create(n||null),function(t){return t.reduce((t,e)=>{const{value:n,type:r}=e;switch(!0){case!e.name&&0===r:return Object.assign({},t,{},n);case 3===r:t.value=e.value;break;default:t[(o=e.name,o.replace(/-(\w)/g,(t,e)=>e.toUpperCase()))]=e.value}var o;return t},{})}(r))}const Z=Object.seal({attributes:[],getTemplateScope(t,e){return X(this.attributes,t,e)},mount(t,e){const n=!!t.slots&&t.slots.find(t=>{let{id:e}=t;return e===this.name}),{parentNode:r}=this.node;return this.template=n&&st(n.html,n.bindings).createDOM(r),this.template&&(this.template.mount(this.node,this.getTemplateScope(t,e)),this.template.children=function t(e,n){void 0===n&&(n=[]);const r=e.firstChild;return r?(e.parentNode.insertBefore(r,e),[r,...t(e)]):n}(this.node)),b(this.node),this},update(t,e){return this.template&&this.template.update(this.getTemplateScope(t,e)),this},unmount(t,e,n){return this.template&&this.template.unmount(this.getTemplateScope(t,e),null,n),this}});function J(t){return t.reduce((t,e)=>{let{bindings:n}=e;return t.concat(n)},[])}const Q=Object.seal({mount(t){return this.update(t)},update(t,e){const n=this.evaluate(t);return n===this.name?this.tag.update(t):(this.unmount(t,e,!0),this.name=n,this.tag=function(t,e,n){return void 0===e&&(e=[]),void 0===n&&(n=[]),t?t({slots:e,attributes:n}):st(function(t){return t.reduce((t,e)=>t+e.html,"")}(e),[...J(e),{expressions:n.map(t=>Object.assign({type:0},t))}])}(this.getComponent(n),this.slots,this.attributes),this.tag.mount(this.node,t)),this},unmount(t,e,n){return this.tag&&this.tag.unmount(n),this}});var tt={1:function(t,e){let{evaluate:n,template:r}=e;const o=t.parentNode,s=document.createTextNode("");return o.insertBefore(s,t),b(t),Object.assign({},K,{node:t,evaluate:n,placeholder:s,template:r.createDOM(t)})},2:function(t,e){let{expressions:n}=e;return Object.assign({},(r=n.map(e=>W(t,e)),["mount","update","unmount"].reduce((t,e)=>Object.assign({},t,{[e]:t=>r.map(n=>n[e](t))&&o}),{})));var r,o},0:function(t,e){let{evaluate:n,condition:r,itemName:o,indexName:s,getKey:i,template:u}=e;const a=document.createTextNode(""),c=t.parentNode,l=t.cloneNode();return c.insertBefore(a,t),b(t),Object.assign({},Y,{childrenMap:new Map,node:t,root:l,condition:r,evaluate:n,isTemplateTag:P(l),template:u.createDOM(t),getKey:i,indexName:s,itemName:o,placeholder:a})},3:function(t,e){let{evaluate:n,getComponent:r,slots:o,attributes:s}=e;return Object.assign({},Q,{node:t,evaluate:n,slots:o,attributes:s,getComponent:r})},4:function(t,e){let{name:n,attributes:r}=e;return Object.assign({},Z,{attributes:r,node:t,name:n})}};function et(t,e){return t.map(t=>2===t.type?Object.assign({},t,{childNodeIndex:t.childNodeIndex+e}):t)}function nt(t,e){return U(t)?function(t,e){return e.ownerDocument.importNode((new window.DOMParser).parseFromString(`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,"application/xml").documentElement,!0)}(e,t):function(t,e){const n=P(e)?e:document.createElement("template");return n.innerHTML=t,n.content}(e,t)}function rt(t,e){switch(!0){case U(t):!function t(e,n){e.firstChild&&(n.appendChild(e.firstChild),t(e,n))}(e,t);break;case P(t):t.parentNode.replaceChild(e,t);break;default:t.appendChild(e)}}const ot=Object.freeze({createDOM(t){return this.dom=this.dom||function(t,e){return e&&("string"==typeof e?nt(t,e):e)}(t,this.html),this},mount(t,e,n,r){if(void 0===r&&(r={}),!t)throw new Error("Please provide DOM node to mount properly your template");this.el&&this.unmount(e);const{fragment:o,children:s,avoidDOMInjection:i}=r,{parentNode:u}=s?s[0]:t,a=P(t),c=a?Math.max(Array.from(u.children).indexOf(t),0):null;return this.isTemplateTag=a,this.createDOM(t),this.dom&&(this.fragment=o||this.dom.cloneNode(!0)),this.el=this.isTemplateTag?u:t,this.children=this.isTemplateTag?s||Array.from(this.fragment.childNodes):null,!i&&this.fragment&&rt(t,this.fragment),this.bindings=this.bindingsData.map(t=>function(t,e,n){const{selector:r,type:o,redundantAttribute:s,expressions:i}=e,u=r?t.querySelector(r):t;s&&u.removeAttribute(s);const a=i||[];return(tt[o]||tt[2])(u,Object.assign({},e,{expressions:n&&!r?et(a,n):a}))}(this.el,t,c)),this.bindings.forEach(t=>t.mount(e,n)),this},update(t,e){return this.bindings.forEach(n=>n.update(t,e)),this},unmount(t,e,n){if(this.el){switch(this.bindings.forEach(r=>r.unmount(t,e,n)),!0){case this.children&&null!==n:m(this.children);break;case!0===n:b(this.el);break;case null!==n:m(this.el.childNodes)}this.el=null}return this},clone(){return Object.assign({},this,{el:null})}});function st(t,e){return void 0===e&&(e=[]),Object.assign({},ot,{html:t,bindingsData:e})}function it(t,e,n,r){return void 0===r&&(r={}),Object.defineProperty(t,e,Object.assign({value:n,enumerable:!1,writable:!1,configurable:!0},r)),t}function ut(t,e,n){return Object.entries(e).forEach(e=>{let[r,o]=e;it(t,r,o,n)}),t}function at(t,e){return Object.entries(e).forEach(e=>{let[n,r]=e;t[n]||(t[n]=r)}),t}function ct(t){return t.replace(/-(\w)/g,(t,e)=>e.toUpperCase())}function lt(t){throw new Error(t)}function ht(t){return t.reduce((t,e)=>{const{value:n,type:r}=e;switch(!0){case!e.name&&0===r:return Object.assign({},t,{},n);case 3===r:t.value=e.value;break;default:t[ct(e.name)]=e.value}return t},{})}function pt(t){return Array.isArray(t)?t:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&"number"==typeof t.length?Array.from(t):[t]}function dt(t,e){return pt("string"==typeof t?(e||document).querySelectorAll(t):t)}const ft=t=>1===t.length?t[0]:t;function mt(t,e,n){const r="object"==typeof e?e:{[e]:n},o=Object.keys(r);return pt(t).forEach(t=>{o.forEach(e=>t.setAttribute(e,r[e]))}),t}function bt(t,e){return function(t,e,n){const r="string"==typeof e?[e]:e;return ft(pt(t).map(t=>ft(r.map(e=>t[n](e)))))}(t,e,"getAttribute")}const Ot=new Map,gt=()=>Et||(mt(Et=dt("style[riot]")[0]||document.createElement("style"),"type","text/css"),Et.parentNode||document.head.appendChild(Et),Et);var Et,vt={CSS_BY_NAME:Ot,add(t,e){return Ot.has(t)||(Ot.set(t,e),this.inject()),this},inject(){return gt().innerHTML=[...Ot.values()].join("\n"),this},remove(t){return Ot.has(t)&&(Ot.delete(t),this.inject()),this}};function Nt(t){return bt(t,"is")||t.tagName.toLowerCase()}const Tt=Object.freeze({$(t){return dt(t,this.root)[0]},$$(t){return dt(t,this.root)}}),yt=Object.freeze({[o]:d,[s]:d,[i]:d}),Mt=Object.freeze({shouldUpdate:d,onBeforeMount:d,onMounted:d,onBeforeUpdate:d,onUpdated:d,onBeforeUnmount:d,onUnmounted:d}),jt=Object.assign({},yt,{clone:d,createDOM:d});function _t(t){return[o,s,i].reduce((e,n)=>(e[n]=t(n),e),{})}function At(t){let{css:n,template:r,exports:o,name:s}=t;const i=r?function(t,n){return t(st,g,O,t=>n[t]||e.get(t))}(r,o?(void 0===(a=o.components)&&(a={}),Object.entries(f(a)).reduce((t,e)=>{let[n,r]=e;var o;return t[(o=n,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=At(r),t},{})):{}):jt;var a;return t=>{let{slots:e,attributes:a,props:c}=t;if(o&&o[u])return function(t,e){let{slots:n,attributes:r,props:o,css:s,template:i}=e;i&<("Pure components can not have html"),s&<("Pure components do not have css");const u=at(t({slots:n,attributes:r,props:o}),yt);return _t(t=>function(){return u[t](...arguments),u})}(o,{slots:e,attributes:a,props:c,css:n,template:r});const l=f(o)||{},h=wt({css:n,template:i,componentAPI:l,name:s})({slots:e,attributes:a,props:c});return{mount:(t,e,n)=>h.mount(t,n,e),update:(t,e)=>h.update(e,t),unmount:t=>h.unmount(t)}}}function wt(t){let{css:e,template:n,componentAPI:r,name:o}=t;return e&&o&&vt.add(o,e),function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(o=[...r,...o]).length<e.length?t(e,...o):e(...o)}}(xt)(ut(at(r,Object.assign({},Mt,{state:{}})),Object.assign({slots:null,root:null},Tt,{name:o,css:e,template:n})))}function St(t,e){return Object.assign({},t,{},f(e))}function xt(t,e){let{slots:o,attributes:s,props:i}=e;return u=function(t){return[...r].reduce((t,e)=>e(t)||t,t)}(ut(Object.create(t),{mount(e,r,u){return void 0===r&&(r={}),this[c]=function(t,e){void 0===e&&(e=[]);const n=e.map(e=>W(t,e)),r={};return Object.assign(r,Object.assign({expressions:n},_t(t=>e=>(n.forEach(n=>n[t](e)),r))))}(e,s).mount(u),it(this,"props",Object.freeze(Object.assign({},i,{},ht(this[c].expressions)))),this.state=St(this.state,r),this[l]=this.template.createDOM(e).clone(),e[n]=this,t.name&&function(t,e){Nt(t)!==e&&mt(t,"is",e)}(e,t.name),it(this,"root",e),it(this,"slots",o),this.onBeforeMount(this.props,this.state),this[l].mount(e,this,u),this[a]=u,this.onMounted(this.props,this.state),this},update(t,e){void 0===t&&(t={}),e&&this[c].update(e);const n=ht(this[c].expressions);if(!1!==this.shouldUpdate(n,this.props))return it(this,"props",Object.freeze(Object.assign({},i,{},n))),this.state=St(this.state,t),this.onBeforeUpdate(this.props,this.state),this[l].update(this,this[a]),this.onUpdated(this.props,this.state),this},unmount(t){return this.onBeforeUnmount(this.props,this.state),this[c].unmount(),this[l].unmount(this,this[a],null===t?null:!t),this.onUnmounted(this.props,this.state),this}})),Object.keys(t).filter(e=>p(t[e])).forEach(t=>{u[t]=u[t].bind(u)}),u;var u}const{DOM_COMPONENT_INSTANCE_PROPERTY:Ut,COMPONENTS_IMPLEMENTATION_MAP:Pt,PLUGINS_SET:Ct}=h;function Dt(t,e){return void 0===e&&(e=[]),Object.assign({},function(t){return Array.from(t.attributes).reduce((t,e)=>(t[ct(e.name)]=e.value,t),{})}(t),{},f(e))}const It={cssManager:vt,createComponent:At,defineComponent:wt,globals:h};t.__=It,t.component=function(t){return function(e,n,r){let{slots:o,attributes:s}=void 0===r?{}:r;return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((t,e)=>function(){return t(e(...arguments))})}(t=>t.mount(e),t=>t({props:Dt(e,n),slots:o,attributes:s}),At)(t)}},t.install=function(t){return p(t)||lt("Plugins must be of type function"),Ct.has(t)&<("This plugin was already install"),Ct.add(t),Ct},t.mount=function(t,n,r){return dt(t).map(t=>function(t,n,r){const o=r||Nt(t);return e.has(o)||lt(`The component named "${o}" was never registered`),e.get(o)({props:n}).mount(t)}(t,Dt(t,n),r))},t.pure=function(t){return p(t)||lt('riot.pure accepts only arguments of type "function"'),t[u]=!0,t},t.register=function(t,e){let{css:n,template:r,exports:o}=e;return Pt.has(t)&<(`The component "${t}" was already registered`),Pt.set(t,At({name:t,css:n,template:r,exports:o})),Pt},t.uninstall=function(t){return Ct.has(t)||lt("This plugin was never installed"),Ct.delete(t),Ct},t.unmount=function(t,e){return dt(t).map(t=>(t[Ut]&&t[Ut].unmount(e),t))},t.unregister=function(t){return Pt.has(t)||lt(`The component "${t}" was never registered`),Pt.delete(t),vt.remove(t),Pt},t.version="v4.8.6",Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).riot={});
|