(function(){function p(c){var b=0;return function(){return b<c.length?{done:!1,value:c[b++]}:{done:!0}}}function r(c){var b=typeof Symbol!="undefined"&&Symbol.iterator&&c[Symbol.iterator];if(b)return b.call(c);if(typeof c.length=="number")return{next:p(c)};throw Error(String(c)+" is not an iterable or ArrayLike");};/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
function t(c){var b=0,d;for(d in c)b++;return b}function v(c,b){return c!==null&&b in c}function w(c,b){b in c&&delete c[b]};function x(c){c&&c.parentNode&&c.parentNode.removeChild(c)};function y(c,b,d,e){var a={v:d,index:e.index,o:e.index};e.m[d]=a;e.l.push(a);e.u[d]=!0;e.index++;d=b[d];for(var g=d.i.length-1;g>=0;g--){var f=d.i[g];v(e.m,f.h)?v(e.u,f.h)&&a.o>e.m[f.h].o&&(x(f.instance.g),d.i.splice(g,1)):y(c,b,f.h,e)}if(a.index==a.o)for(;c=e.l[e.l.length-1],w(e.u,c.v),e.l.pop(),c!=a;);}function A(c,b){c=r(c.childNodes);for(var d=c.next();!d.done;d=c.next())b.appendChild(d.value.cloneNode(!0))};document.addEventListener("DOMContentLoaded",function B(){document.removeEventListener("DOMContentLoaded",B,!1);var b=document,d={},e;if("content"in document.createElement("template")){var a=b.getElementById("gwd-group-definitions");a&&(e=document.importNode(a.content,!0).querySelectorAll("[data-gwd-group-def]"))}e||(e=b.querySelectorAll("[data-gwd-group-def]"));e=r(e);for(a=e.next();!a.done;a=e.next()){a=a.value;var g=a.getAttribute("data-gwd-group-def");g?d[g]?x(a):d[g]={g:a,i:[]}:x(a)}e=[];a=Array.prototype.slice.call(b.querySelectorAll("[data-gwd-group]"));
if("content"in document.createElement("template")&&b.getElementById("gwd-group-definitions"))for(var f in d){var n=Array.prototype.slice.call(d[f].g.querySelectorAll("[data-gwd-group]"));if(n.length>0){g=a.push;var l=g.apply;if(!(n instanceof Array)){for(var u=r(n),z=[];!(n=u.next()).done;)z.push(n.value);n=z}l.call(g,a,n)}}f=r(a);for(a=f.next();!a.done;a=f.next()){a=a.value;g=a.childNodes;for(l=g.length-1;l>=0;l--)g[l].nodeType!=8&&a.removeChild(g[l]);a={g:a,j:a.getAttribute("data-gwd-group")};if(g=
d[a.j]){l=a.g.parentNode;for(n=!1;l&&l!=b;){if((u=l.getAttribute("data-gwd-group-def"))&&d[u]){g.i.push({instance:a,h:u});n=!0;break}l=l.parentNode}n||e.push(a)}else x(a.g)}f={index:0,m:{},l:[],u:{}};for(var h in d)v(f.m,h)||y(b,d,h,f);b={};for(var m in d)b[m]={};for(var q in d)for(m=r(d[q].i),h=m.next();!h.done;h=m.next())h=b[h.value.h],q in h?h[q]++:h[q]=1;q=[];for(var k in b)t(b[k])==0&&(q.push(k),w(b,k));k=r(q);for(m=k.next();!m.done;m=k.next())for(m=d[m.value],h=r(m.i),f=h.next();!f.done;f=h.next())f=
f.value,A(m.g,f.instance.g),a=b[f.h],a[f.instance.j]--,a[f.instance.j]==0&&(w(a,f.instance.j),t(a)==0&&(q.push(f.h),w(b,f.h)));e=r(e);for(k=e.next();!k.done;k=e.next())k=k.value,A(d[k.j].g,k.g)},!1);}).call(this);
