@skedulo/breeze-ui 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,11 +38,11 @@
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const kv=(o,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,o)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,o)}},Ov=(o,t,n)=>{t.constructor.createProperty(n,o)};function R(o){return(t,n)=>n!==void 0?Ov(o,t,n):kv(o,t)}/**
41
+ */const kv=(o,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,o)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,o)}},Ov=(o,t,n)=>{t.constructor.createProperty(n,o)};function N(o){return(t,n)=>n!==void 0?Ov(o,t,n):kv(o,t)}/**
42
42
  * @license
43
43
  * Copyright 2017 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
45
- */function Re(o){return R({...o,state:!0})}/**
45
+ */function Re(o){return N({...o,state:!0})}/**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
@@ -79,7 +79,7 @@
79
79
  opacity: 1;
80
80
  }
81
81
  }
82
- `;Eh([R({type:Boolean,reflect:!0})],exports.FadeInOut.prototype,"shown",2);Eh([Re()],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Eh([ee(N5)],exports.FadeInOut);/**
82
+ `;Eh([N({type:Boolean,reflect:!0})],exports.FadeInOut.prototype,"shown",2);Eh([Re()],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Eh([ee(N5)],exports.FadeInOut);/**
83
83
  * @license
84
84
  * Copyright 2017 Google LLC
85
85
  * SPDX-License-Identifier: BSD-3-Clause
@@ -136,7 +136,7 @@
136
136
 
137
137
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
138
138
 
139
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var E={placement:Di(t.placement),variation:p1(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:c,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,vp(Object.assign({},E,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:z})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,vp(Object.assign({},E,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:z})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ob={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ib,data:{}};var L0={passive:!0};function ab(o){var t=o.state,n=o.instance,l=o.options,c=l.scroll,g=c===void 0?!0:c,h=l.resize,w=h===void 0?!0:h,z=gi(t.elements.popper),S=[].concat(t.scrollParents.reference,t.scrollParents.popper);return g&&S.forEach(function(E){E.addEventListener("scroll",n.update,L0)}),w&&z.addEventListener("resize",n.update,L0),function(){g&&S.forEach(function(E){E.removeEventListener("scroll",n.update,L0)}),w&&z.removeEventListener("resize",n.update,L0)}}const sb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ab,data:{}};var lb={left:"right",right:"left",bottom:"top",top:"bottom"};function P0(o){return o.replace(/left|right|bottom|top/g,function(t){return lb[t]})}var ub={start:"end",end:"start"};function bp(o){return o.replace(/start|end/g,function(t){return ub[t]})}function Ph(o){var t=gi(o),n=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:n,scrollTop:l}}function Dh(o){return h1(Ga(o)).left+Ph(o).scrollLeft}function cb(o,t){var n=gi(o),l=Ga(o),c=n.visualViewport,g=l.clientWidth,h=l.clientHeight,w=0,z=0;if(c){g=c.width,h=c.height;var S=V5();(S||!S&&t==="fixed")&&(w=c.offsetLeft,z=c.offsetTop)}return{width:g,height:h,x:w+Dh(o),y:z}}function db(o){var t,n=Ga(o),l=Ph(o),c=(t=o.ownerDocument)==null?void 0:t.body,g=Us(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=Us(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),w=-l.scrollLeft+Dh(o),z=-l.scrollTop;return Ni(c||n).direction==="rtl"&&(w+=Us(n.clientWidth,c?c.clientWidth:0)-g),{width:g,height:h,x:w,y:z}}function Nh(o){var t=Ni(o),n=t.overflow,l=t.overflowX,c=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+c+l)}function q5(o){return["html","body","#document"].indexOf(vo(o))>=0?o.ownerDocument.body:Kn(o)&&Nh(o)?o:q5(hd(o))}function Ou(o,t){var n;t===void 0&&(t=[]);var l=q5(o),c=l===((n=o.ownerDocument)==null?void 0:n.body),g=gi(l),h=c?[g].concat(g.visualViewport||[],Nh(l)?l:[]):l,w=t.concat(h);return c?w:w.concat(Ou(hd(h)))}function dh(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function fb(o,t){var n=h1(o,!1,t==="fixed");return n.top=n.top+o.clientTop,n.left=n.left+o.clientLeft,n.bottom=n.top+o.clientHeight,n.right=n.left+o.clientWidth,n.width=o.clientWidth,n.height=o.clientHeight,n.x=n.left,n.y=n.top,n}function mp(o,t,n){return t===F5?dh(cb(o,n)):Xs(t)?fb(t,n):dh(db(Ga(o)))}function hb(o){var t=Ou(hd(o)),n=["absolute","fixed"].indexOf(Ni(o).position)>=0,l=n&&Kn(o)?Uu(o):o;return Xs(l)?t.filter(function(c){return Xs(c)&&W5(c,l)&&vo(c)!=="body"}):[]}function pb(o,t,n,l){var c=t==="clippingParents"?hb(o):[].concat(t),g=[].concat(c,[n]),h=g[0],w=g.reduce(function(z,S){var E=mp(o,S,l);return z.top=Us(E.top,z.top),z.right=Z0(E.right,z.right),z.bottom=Z0(E.bottom,z.bottom),z.left=Us(E.left,z.left),z},mp(o,h,l));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}function j5(o){var t=o.reference,n=o.element,l=o.placement,c=l?Di(l):null,g=l?p1(l):null,h=t.x+t.width/2-n.width/2,w=t.y+t.height/2-n.height/2,z;switch(c){case En:z={x:h,y:t.y-n.height};break;case hi:z={x:h,y:t.y+t.height};break;case pi:z={x:t.x+t.width,y:w};break;case In:z={x:t.x-n.width,y:w};break;default:z={x:t.x,y:t.y}}var S=c?$h(c):null;if(S!=null){var E=S==="y"?"height":"width";switch(g){case d1:z[S]=z[S]-(t[E]/2-n[E]/2);break;case Ru:z[S]=z[S]+(t[E]/2-n[E]/2);break}}return z}function Hu(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=l===void 0?o.placement:l,g=n.strategy,h=g===void 0?o.strategy:g,w=n.boundary,z=w===void 0?Pv:w,S=n.rootBoundary,E=S===void 0?F5:S,D=n.elementContext,B=D===void 0?Cu:D,H=n.altBoundary,J=H===void 0?!1:H,pe=n.padding,ge=pe===void 0?0:pe,Te=U5(typeof ge!="number"?ge:G5(ge,Zu)),Ie=B===Cu?Dv:Cu,be=o.rects.popper,ve=o.elements[J?Ie:B],ke=pb(Xs(ve)?ve:ve.contextElement||Ga(o.elements.popper),z,E,h),$e=h1(o.elements.reference),De=j5({reference:$e,element:be,strategy:"absolute",placement:c}),je=dh(Object.assign({},be,De)),Ye=B===Cu?je:$e,Ce={top:ke.top-Ye.top+Te.top,bottom:Ye.bottom-ke.bottom+Te.bottom,left:ke.left-Ye.left+Te.left,right:Ye.right-ke.right+Te.right},ue=o.modifiersData.offset;if(B===Cu&&ue){var Q=ue[c];Object.keys(Ce).forEach(function($){var k=[pi,hi].indexOf($)>=0?1:-1,O=[En,hi].indexOf($)>=0?"y":"x";Ce[$]+=Q[O]*k})}return Ce}function gb(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=n.boundary,g=n.rootBoundary,h=n.padding,w=n.flipVariations,z=n.allowedAutoPlacements,S=z===void 0?B5:z,E=p1(l),D=E?w?pp:pp.filter(function(J){return p1(J)===E}):Zu,B=D.filter(function(J){return S.indexOf(J)>=0});B.length===0&&(B=D,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var H=B.reduce(function(J,pe){return J[pe]=Hu(o,{placement:pe,boundary:c,rootBoundary:g,padding:h})[Di(pe)],J},{});return Object.keys(H).sort(function(J,pe){return H[J]-H[pe]})}function vb(o){if(Di(o)===fd)return[];var t=P0(o);return[bp(o),t,bp(t)]}function bb(o){var t=o.state,n=o.options,l=o.name;if(!t.modifiersData[l]._skip){for(var c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,w=h===void 0?!0:h,z=n.fallbackPlacements,S=n.padding,E=n.boundary,D=n.rootBoundary,B=n.altBoundary,H=n.flipVariations,J=H===void 0?!0:H,pe=n.allowedAutoPlacements,ge=t.options.placement,Te=Di(ge),Ie=Te===ge,be=z||(Ie||!J?[P0(ge)]:vb(ge)),ve=[ge].concat(be).reduce(function(zt,rt){return zt.concat(Di(rt)===fd?gb(t,{placement:rt,boundary:E,rootBoundary:D,padding:S,flipVariations:J,allowedAutoPlacements:pe}):rt)},[]),ke=t.rects.reference,$e=t.rects.popper,De=new Map,je=!0,Ye=ve[0],Ce=0;Ce<ve.length;Ce++){var ue=ve[Ce],Q=Di(ue),$=p1(ue)===d1,k=[En,hi].indexOf(Q)>=0,O=k?"width":"height",X=Hu(t,{placement:ue,boundary:E,rootBoundary:D,altBoundary:B,padding:S}),ce=k?$?pi:In:$?hi:En;ke[O]>$e[O]&&(ce=P0(ce));var Ae=P0(ce),et=[];if(g&&et.push(X[Q]<=0),w&&et.push(X[ce]<=0,X[Ae]<=0),et.every(function(zt){return zt})){Ye=ue,je=!1;break}De.set(ue,et)}if(je)for(var pt=J?3:1,yt=function(rt){var Le=ve.find(function(Ne){var Ge=De.get(Ne);if(Ge)return Ge.slice(0,rt).every(function(st){return st})});if(Le)return Ye=Le,"break"},or=pt;or>0;or--){var Tt=yt(or);if(Tt==="break")break}t.placement!==Ye&&(t.modifiersData[l]._skip=!0,t.placement=Ye,t.reset=!0)}}const mb={name:"flip",enabled:!0,phase:"main",fn:bb,requiresIfExists:["offset"],data:{_skip:!1}};function yp(o,t,n){return n===void 0&&(n={x:0,y:0}),{top:o.top-t.height-n.y,right:o.right-t.width+n.x,bottom:o.bottom-t.height+n.y,left:o.left-t.width-n.x}}function Cp(o){return[En,pi,hi,In].some(function(t){return o[t]>=0})}function yb(o){var t=o.state,n=o.name,l=t.rects.reference,c=t.rects.popper,g=t.modifiersData.preventOverflow,h=Hu(t,{elementContext:"reference"}),w=Hu(t,{altBoundary:!0}),z=yp(h,l),S=yp(w,c,g),E=Cp(z),D=Cp(S);t.modifiersData[n]={referenceClippingOffsets:z,popperEscapeOffsets:S,isReferenceHidden:E,hasPopperEscaped:D},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":E,"data-popper-escaped":D})}const Cb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yb};function wb(o,t,n){var l=Di(o),c=[In,En].indexOf(l)>=0?-1:1,g=typeof n=="function"?n(Object.assign({},t,{placement:o})):n,h=g[0],w=g[1];return h=h||0,w=(w||0)*c,[In,pi].indexOf(l)>=0?{x:w,y:h}:{x:h,y:w}}function xb(o){var t=o.state,n=o.options,l=o.name,c=n.offset,g=c===void 0?[0,0]:c,h=B5.reduce(function(E,D){return E[D]=wb(D,t.rects,g),E},{}),w=h[t.placement],z=w.x,S=w.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=z,t.modifiersData.popperOffsets.y+=S),t.modifiersData[l]=h}const zb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xb};function Lb(o){var t=o.state,n=o.name;t.modifiersData[n]=j5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Sb={name:"popperOffsets",enabled:!0,phase:"read",fn:Lb,data:{}};function Mb(o){return o==="x"?"y":"x"}function _b(o){var t=o.state,n=o.options,l=o.name,c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,w=h===void 0?!1:h,z=n.boundary,S=n.rootBoundary,E=n.altBoundary,D=n.padding,B=n.tether,H=B===void 0?!0:B,J=n.tetherOffset,pe=J===void 0?0:J,ge=Hu(t,{boundary:z,rootBoundary:S,padding:D,altBoundary:E}),Te=Di(t.placement),Ie=p1(t.placement),be=!Ie,ve=$h(Te),ke=Mb(ve),$e=t.modifiersData.popperOffsets,De=t.rects.reference,je=t.rects.popper,Ye=typeof pe=="function"?pe(Object.assign({},t.rects,{placement:t.placement})):pe,Ce=typeof Ye=="number"?{mainAxis:Ye,altAxis:Ye}:Object.assign({mainAxis:0,altAxis:0},Ye),ue=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if($e){if(g){var $,k=ve==="y"?En:In,O=ve==="y"?hi:pi,X=ve==="y"?"height":"width",ce=$e[ve],Ae=ce+ge[k],et=ce-ge[O],pt=H?-je[X]/2:0,yt=Ie===d1?De[X]:je[X],or=Ie===d1?-je[X]:-De[X],Tt=t.elements.arrow,zt=H&&Tt?Ah(Tt):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Z5(),Le=rt[k],Ne=rt[O],Ge=ku(0,De[X],zt[X]),st=be?De[X]/2-pt-Ge-Le-Ce.mainAxis:yt-Ge-Le-Ce.mainAxis,lt=be?-De[X]/2+pt+Ge+Ne+Ce.mainAxis:or+Ge+Ne+Ce.mainAxis,Ue=t.elements.arrow&&Uu(t.elements.arrow),Zt=Ue?ve==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,Ur=($=ue==null?void 0:ue[ve])!=null?$:0,tr=ce+st-Ur-Zt,Qe=ce+lt-Ur,bt=ku(H?Z0(Ae,tr):Ae,ce,H?Us(et,Qe):et);$e[ve]=bt,Q[ve]=bt-ce}if(w){var Et,Pr=ve==="x"?En:In,en=ve==="x"?hi:pi,ar=$e[ke],it=ke==="y"?"height":"width",U=ar+ge[Pr],se=ar-ge[en],Y=[En,In].indexOf(Te)!==-1,tt=(Et=ue==null?void 0:ue[ke])!=null?Et:0,sr=Y?U:ar-De[it]-je[it]-tt+Ce.altAxis,Lr=Y?ar+De[it]+je[it]-tt-Ce.altAxis:se,Pn=H&&Y?Xv(sr,ar,Lr):ku(H?sr:U,ar,H?Lr:se);$e[ke]=Pn,Q[ke]=Pn-ar}t.modifiersData[l]=Q}}const Tb={name:"preventOverflow",enabled:!0,phase:"main",fn:_b,requiresIfExists:["offset"]};function kb(o){return{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}}function Ob(o){return o===gi(o)||!Kn(o)?Ph(o):kb(o)}function Eb(o){var t=o.getBoundingClientRect(),n=f1(t.width)/o.offsetWidth||1,l=f1(t.height)/o.offsetHeight||1;return n!==1||l!==1}function Ib(o,t,n){n===void 0&&(n=!1);var l=Kn(t),c=Kn(t)&&Eb(t),g=Ga(t),h=h1(o,c,n),w={scrollLeft:0,scrollTop:0},z={x:0,y:0};return(l||!l&&!n)&&((vo(t)!=="body"||Nh(g))&&(w=Ob(t)),Kn(t)?(z=h1(t,!0),z.x+=t.clientLeft,z.y+=t.clientTop):g&&(z.x=Dh(g))),{x:h.left+w.scrollLeft-z.x,y:h.top+w.scrollTop-z.y,width:h.width,height:h.height}}function Ab(o){var t=new Map,n=new Set,l=[];o.forEach(function(g){t.set(g.name,g)});function c(g){n.add(g.name);var h=[].concat(g.requires||[],g.requiresIfExists||[]);h.forEach(function(w){if(!n.has(w)){var z=t.get(w);z&&c(z)}}),l.push(g)}return o.forEach(function(g){n.has(g.name)||c(g)}),l}function $b(o){var t=Ab(o);return uh.reduce(function(n,l){return n.concat(t.filter(function(c){return c.phase===l}))},[])}function Pb(o){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(o())})})),t}}function Ha(o){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];return[].concat(n).reduce(function(c,g){return c.replace(/%s/,g)},o)}var Ds='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Db='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',wp=["name","enabled","phase","fn","effect","requires","options"];function Nb(o){o.forEach(function(t){[].concat(Object.keys(t),wp).filter(function(n,l,c){return c.indexOf(n)===l}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Ha(Ds,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Ha(Ds,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":uh.indexOf(t.phase)<0&&console.error(Ha(Ds,t.name,'"phase"',"either "+uh.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Ha(Ds,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Ha(Ds,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Ha(Ds,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Ha(Ds,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+wp.map(function(l){return'"'+l+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(l){o.find(function(c){return c.name===l})==null&&console.error(Ha(Db,String(t.name),l,l))})})})}function Rb(o,t){var n=new Set;return o.filter(function(l){var c=t(l);if(!n.has(c))return n.add(c),!0})}function Hb(o){var t=o.reduce(function(n,l){var c=n[l.name];return n[l.name]=c?Object.assign({},c,l,{options:Object.assign({},c.options,l.options),data:Object.assign({},c.data,l.data)}):l,n},{});return Object.keys(t).map(function(n){return t[n]})}var xp="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Fb="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",zp={placement:"bottom",modifiers:[],strategy:"absolute"};function Lp(){for(var o=arguments.length,t=new Array(o),n=0;n<o;n++)t[n]=arguments[n];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Bb(o){o===void 0&&(o={});var t=o,n=t.defaultModifiers,l=n===void 0?[]:n,c=t.defaultOptions,g=c===void 0?zp:c;return function(w,z,S){S===void 0&&(S=g);var E={placement:"bottom",orderedModifiers:[],options:Object.assign({},zp,g),modifiersData:{},elements:{reference:w,popper:z},attributes:{},styles:{}},D=[],B=!1,H={state:E,setOptions:function(Te){var Ie=typeof Te=="function"?Te(E.options):Te;pe(),E.options=Object.assign({},g,E.options,Ie),E.scrollParents={reference:Xs(w)?Ou(w):w.contextElement?Ou(w.contextElement):[],popper:Ou(z)};var be=$b(Hb([].concat(l,E.options.modifiers)));if(E.orderedModifiers=be.filter(function(ue){return ue.enabled}),{}.NODE_ENV!=="production"){var ve=Rb([].concat(be,E.options.modifiers),function(ue){var Q=ue.name;return Q});if(Nb(ve),Di(E.options.placement)===fd){var ke=E.orderedModifiers.find(function(ue){var Q=ue.name;return Q==="flip"});ke||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var $e=Ni(z),De=$e.marginTop,je=$e.marginRight,Ye=$e.marginBottom,Ce=$e.marginLeft;[De,je,Ye,Ce].some(function(ue){return parseFloat(ue)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return J(),H.update()},forceUpdate:function(){if(!B){var Te=E.elements,Ie=Te.reference,be=Te.popper;if(!Lp(Ie,be)){({}).NODE_ENV!=="production"&&console.error(xp);return}E.rects={reference:Ib(Ie,Uu(be),E.options.strategy==="fixed"),popper:Ah(be)},E.reset=!1,E.placement=E.options.placement,E.orderedModifiers.forEach(function(ue){return E.modifiersData[ue.name]=Object.assign({},ue.data)});for(var ve=0,ke=0;ke<E.orderedModifiers.length;ke++){if({}.NODE_ENV!=="production"&&(ve+=1,ve>100)){console.error(Fb);break}if(E.reset===!0){E.reset=!1,ke=-1;continue}var $e=E.orderedModifiers[ke],De=$e.fn,je=$e.options,Ye=je===void 0?{}:je,Ce=$e.name;typeof De=="function"&&(E=De({state:E,options:Ye,name:Ce,instance:H})||E)}}},update:Pb(function(){return new Promise(function(ge){H.forceUpdate(),ge(E)})}),destroy:function(){pe(),B=!0}};if(!Lp(w,z))return{}.NODE_ENV!=="production"&&console.error(xp),H;H.setOptions(S).then(function(ge){!B&&S.onFirstUpdate&&S.onFirstUpdate(ge)});function J(){E.orderedModifiers.forEach(function(ge){var Te=ge.name,Ie=ge.options,be=Ie===void 0?{}:Ie,ve=ge.effect;if(typeof ve=="function"){var ke=ve({state:E,name:Te,instance:H,options:be}),$e=function(){};D.push(ke||$e)}})}function pe(){D.forEach(function(ge){return ge()}),D=[]}return H}}var Vb=[sb,Sb,ob,jv,zb,mb,Tb,tb,Cb],Wb=Bb({defaultModifiers:Vb}),Zb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,Jr=(o,t,n,l)=>{for(var c=l>1?void 0:l?Ub(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Zb(t,n,c),c};let Gb=0;const Rh=ze("popover"),K5=ze("pure-popover"),Y5=["click","hover","focus"],[U0,fh,Bs]=Y5,Hh=["dialog","tooltip","menu"],[qb]=Hh;class X5 extends CustomEvent{constructor(t){super(`${Rh}-${t}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends We{constructor(){super(...arguments),this.distance=4,this.skidding=0,this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.isOpen=!1,this.placement="top",this.popoverRole=qb,this.disabled=!1,this.popoverId=`popover-${++Gb}`,this.delayTimeout=0}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.popperInstance)==null||t.destroy()}updatePosition(){var t;(t=this.popperInstance)==null||t.update()}async updated(t){super.updated(t),this.popperInstance=this.popperInstance||Wb(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){this.popperInstance&&await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return t==null?void 0:t.assignedElements({flatten:!0})[0]}get contentElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return t==null?void 0:t.assignedNodes({flatten:!0})[0]}get popoverElement(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector(".popover-container")}emit(t){this.dispatchEvent(new X5(t))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return G`
139
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var E={placement:Di(t.placement),variation:p1(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:c,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,vp(Object.assign({},E,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:z})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,vp(Object.assign({},E,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:z})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ob={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ib,data:{}};var L0={passive:!0};function ab(o){var t=o.state,n=o.instance,l=o.options,c=l.scroll,g=c===void 0?!0:c,h=l.resize,w=h===void 0?!0:h,z=gi(t.elements.popper),S=[].concat(t.scrollParents.reference,t.scrollParents.popper);return g&&S.forEach(function(E){E.addEventListener("scroll",n.update,L0)}),w&&z.addEventListener("resize",n.update,L0),function(){g&&S.forEach(function(E){E.removeEventListener("scroll",n.update,L0)}),w&&z.removeEventListener("resize",n.update,L0)}}const sb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ab,data:{}};var lb={left:"right",right:"left",bottom:"top",top:"bottom"};function P0(o){return o.replace(/left|right|bottom|top/g,function(t){return lb[t]})}var ub={start:"end",end:"start"};function bp(o){return o.replace(/start|end/g,function(t){return ub[t]})}function Ph(o){var t=gi(o),n=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:n,scrollTop:l}}function Dh(o){return h1(Ga(o)).left+Ph(o).scrollLeft}function cb(o,t){var n=gi(o),l=Ga(o),c=n.visualViewport,g=l.clientWidth,h=l.clientHeight,w=0,z=0;if(c){g=c.width,h=c.height;var S=V5();(S||!S&&t==="fixed")&&(w=c.offsetLeft,z=c.offsetTop)}return{width:g,height:h,x:w+Dh(o),y:z}}function db(o){var t,n=Ga(o),l=Ph(o),c=(t=o.ownerDocument)==null?void 0:t.body,g=Us(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=Us(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),w=-l.scrollLeft+Dh(o),z=-l.scrollTop;return Ni(c||n).direction==="rtl"&&(w+=Us(n.clientWidth,c?c.clientWidth:0)-g),{width:g,height:h,x:w,y:z}}function Nh(o){var t=Ni(o),n=t.overflow,l=t.overflowX,c=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+c+l)}function q5(o){return["html","body","#document"].indexOf(vo(o))>=0?o.ownerDocument.body:Kn(o)&&Nh(o)?o:q5(hd(o))}function Ou(o,t){var n;t===void 0&&(t=[]);var l=q5(o),c=l===((n=o.ownerDocument)==null?void 0:n.body),g=gi(l),h=c?[g].concat(g.visualViewport||[],Nh(l)?l:[]):l,w=t.concat(h);return c?w:w.concat(Ou(hd(h)))}function dh(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function fb(o,t){var n=h1(o,!1,t==="fixed");return n.top=n.top+o.clientTop,n.left=n.left+o.clientLeft,n.bottom=n.top+o.clientHeight,n.right=n.left+o.clientWidth,n.width=o.clientWidth,n.height=o.clientHeight,n.x=n.left,n.y=n.top,n}function mp(o,t,n){return t===F5?dh(cb(o,n)):Xs(t)?fb(t,n):dh(db(Ga(o)))}function hb(o){var t=Ou(hd(o)),n=["absolute","fixed"].indexOf(Ni(o).position)>=0,l=n&&Kn(o)?Uu(o):o;return Xs(l)?t.filter(function(c){return Xs(c)&&W5(c,l)&&vo(c)!=="body"}):[]}function pb(o,t,n,l){var c=t==="clippingParents"?hb(o):[].concat(t),g=[].concat(c,[n]),h=g[0],w=g.reduce(function(z,S){var E=mp(o,S,l);return z.top=Us(E.top,z.top),z.right=Z0(E.right,z.right),z.bottom=Z0(E.bottom,z.bottom),z.left=Us(E.left,z.left),z},mp(o,h,l));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}function j5(o){var t=o.reference,n=o.element,l=o.placement,c=l?Di(l):null,g=l?p1(l):null,h=t.x+t.width/2-n.width/2,w=t.y+t.height/2-n.height/2,z;switch(c){case En:z={x:h,y:t.y-n.height};break;case hi:z={x:h,y:t.y+t.height};break;case pi:z={x:t.x+t.width,y:w};break;case In:z={x:t.x-n.width,y:w};break;default:z={x:t.x,y:t.y}}var S=c?$h(c):null;if(S!=null){var E=S==="y"?"height":"width";switch(g){case d1:z[S]=z[S]-(t[E]/2-n[E]/2);break;case Ru:z[S]=z[S]+(t[E]/2-n[E]/2);break}}return z}function Hu(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=l===void 0?o.placement:l,g=n.strategy,h=g===void 0?o.strategy:g,w=n.boundary,z=w===void 0?Pv:w,S=n.rootBoundary,E=S===void 0?F5:S,D=n.elementContext,B=D===void 0?Cu:D,H=n.altBoundary,J=H===void 0?!1:H,pe=n.padding,ge=pe===void 0?0:pe,Te=U5(typeof ge!="number"?ge:G5(ge,Zu)),Ie=B===Cu?Dv:Cu,be=o.rects.popper,ve=o.elements[J?Ie:B],ke=pb(Xs(ve)?ve:ve.contextElement||Ga(o.elements.popper),z,E,h),$e=h1(o.elements.reference),De=j5({reference:$e,element:be,strategy:"absolute",placement:c}),je=dh(Object.assign({},be,De)),Ye=B===Cu?je:$e,Ce={top:ke.top-Ye.top+Te.top,bottom:Ye.bottom-ke.bottom+Te.bottom,left:ke.left-Ye.left+Te.left,right:Ye.right-ke.right+Te.right},ue=o.modifiersData.offset;if(B===Cu&&ue){var Q=ue[c];Object.keys(Ce).forEach(function($){var k=[pi,hi].indexOf($)>=0?1:-1,O=[En,hi].indexOf($)>=0?"y":"x";Ce[$]+=Q[O]*k})}return Ce}function gb(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=n.boundary,g=n.rootBoundary,h=n.padding,w=n.flipVariations,z=n.allowedAutoPlacements,S=z===void 0?B5:z,E=p1(l),D=E?w?pp:pp.filter(function(J){return p1(J)===E}):Zu,B=D.filter(function(J){return S.indexOf(J)>=0});B.length===0&&(B=D,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var H=B.reduce(function(J,pe){return J[pe]=Hu(o,{placement:pe,boundary:c,rootBoundary:g,padding:h})[Di(pe)],J},{});return Object.keys(H).sort(function(J,pe){return H[J]-H[pe]})}function vb(o){if(Di(o)===fd)return[];var t=P0(o);return[bp(o),t,bp(t)]}function bb(o){var t=o.state,n=o.options,l=o.name;if(!t.modifiersData[l]._skip){for(var c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,w=h===void 0?!0:h,z=n.fallbackPlacements,S=n.padding,E=n.boundary,D=n.rootBoundary,B=n.altBoundary,H=n.flipVariations,J=H===void 0?!0:H,pe=n.allowedAutoPlacements,ge=t.options.placement,Te=Di(ge),Ie=Te===ge,be=z||(Ie||!J?[P0(ge)]:vb(ge)),ve=[ge].concat(be).reduce(function(zt,rt){return zt.concat(Di(rt)===fd?gb(t,{placement:rt,boundary:E,rootBoundary:D,padding:S,flipVariations:J,allowedAutoPlacements:pe}):rt)},[]),ke=t.rects.reference,$e=t.rects.popper,De=new Map,je=!0,Ye=ve[0],Ce=0;Ce<ve.length;Ce++){var ue=ve[Ce],Q=Di(ue),$=p1(ue)===d1,k=[En,hi].indexOf(Q)>=0,O=k?"width":"height",X=Hu(t,{placement:ue,boundary:E,rootBoundary:D,altBoundary:B,padding:S}),ce=k?$?pi:In:$?hi:En;ke[O]>$e[O]&&(ce=P0(ce));var Ae=P0(ce),et=[];if(g&&et.push(X[Q]<=0),w&&et.push(X[ce]<=0,X[Ae]<=0),et.every(function(zt){return zt})){Ye=ue,je=!1;break}De.set(ue,et)}if(je)for(var pt=J?3:1,yt=function(rt){var Le=ve.find(function(Ne){var Ge=De.get(Ne);if(Ge)return Ge.slice(0,rt).every(function(st){return st})});if(Le)return Ye=Le,"break"},or=pt;or>0;or--){var Tt=yt(or);if(Tt==="break")break}t.placement!==Ye&&(t.modifiersData[l]._skip=!0,t.placement=Ye,t.reset=!0)}}const mb={name:"flip",enabled:!0,phase:"main",fn:bb,requiresIfExists:["offset"],data:{_skip:!1}};function yp(o,t,n){return n===void 0&&(n={x:0,y:0}),{top:o.top-t.height-n.y,right:o.right-t.width+n.x,bottom:o.bottom-t.height+n.y,left:o.left-t.width-n.x}}function Cp(o){return[En,pi,hi,In].some(function(t){return o[t]>=0})}function yb(o){var t=o.state,n=o.name,l=t.rects.reference,c=t.rects.popper,g=t.modifiersData.preventOverflow,h=Hu(t,{elementContext:"reference"}),w=Hu(t,{altBoundary:!0}),z=yp(h,l),S=yp(w,c,g),E=Cp(z),D=Cp(S);t.modifiersData[n]={referenceClippingOffsets:z,popperEscapeOffsets:S,isReferenceHidden:E,hasPopperEscaped:D},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":E,"data-popper-escaped":D})}const Cb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yb};function wb(o,t,n){var l=Di(o),c=[In,En].indexOf(l)>=0?-1:1,g=typeof n=="function"?n(Object.assign({},t,{placement:o})):n,h=g[0],w=g[1];return h=h||0,w=(w||0)*c,[In,pi].indexOf(l)>=0?{x:w,y:h}:{x:h,y:w}}function xb(o){var t=o.state,n=o.options,l=o.name,c=n.offset,g=c===void 0?[0,0]:c,h=B5.reduce(function(E,D){return E[D]=wb(D,t.rects,g),E},{}),w=h[t.placement],z=w.x,S=w.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=z,t.modifiersData.popperOffsets.y+=S),t.modifiersData[l]=h}const zb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xb};function Lb(o){var t=o.state,n=o.name;t.modifiersData[n]=j5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Sb={name:"popperOffsets",enabled:!0,phase:"read",fn:Lb,data:{}};function Mb(o){return o==="x"?"y":"x"}function _b(o){var t=o.state,n=o.options,l=o.name,c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,w=h===void 0?!1:h,z=n.boundary,S=n.rootBoundary,E=n.altBoundary,D=n.padding,B=n.tether,H=B===void 0?!0:B,J=n.tetherOffset,pe=J===void 0?0:J,ge=Hu(t,{boundary:z,rootBoundary:S,padding:D,altBoundary:E}),Te=Di(t.placement),Ie=p1(t.placement),be=!Ie,ve=$h(Te),ke=Mb(ve),$e=t.modifiersData.popperOffsets,De=t.rects.reference,je=t.rects.popper,Ye=typeof pe=="function"?pe(Object.assign({},t.rects,{placement:t.placement})):pe,Ce=typeof Ye=="number"?{mainAxis:Ye,altAxis:Ye}:Object.assign({mainAxis:0,altAxis:0},Ye),ue=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if($e){if(g){var $,k=ve==="y"?En:In,O=ve==="y"?hi:pi,X=ve==="y"?"height":"width",ce=$e[ve],Ae=ce+ge[k],et=ce-ge[O],pt=H?-je[X]/2:0,yt=Ie===d1?De[X]:je[X],or=Ie===d1?-je[X]:-De[X],Tt=t.elements.arrow,zt=H&&Tt?Ah(Tt):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Z5(),Le=rt[k],Ne=rt[O],Ge=ku(0,De[X],zt[X]),st=be?De[X]/2-pt-Ge-Le-Ce.mainAxis:yt-Ge-Le-Ce.mainAxis,lt=be?-De[X]/2+pt+Ge+Ne+Ce.mainAxis:or+Ge+Ne+Ce.mainAxis,Ue=t.elements.arrow&&Uu(t.elements.arrow),Zt=Ue?ve==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,Gr=($=ue==null?void 0:ue[ve])!=null?$:0,tr=ce+st-Gr-Zt,Qe=ce+lt-Gr,bt=ku(H?Z0(Ae,tr):Ae,ce,H?Us(et,Qe):et);$e[ve]=bt,Q[ve]=bt-ce}if(w){var Et,Pr=ve==="x"?En:In,en=ve==="x"?hi:pi,ar=$e[ke],it=ke==="y"?"height":"width",U=ar+ge[Pr],se=ar-ge[en],Y=[En,In].indexOf(Te)!==-1,tt=(Et=ue==null?void 0:ue[ke])!=null?Et:0,sr=Y?U:ar-De[it]-je[it]-tt+Ce.altAxis,Lr=Y?ar+De[it]+je[it]-tt-Ce.altAxis:se,Pn=H&&Y?Xv(sr,ar,Lr):ku(H?sr:U,ar,H?Lr:se);$e[ke]=Pn,Q[ke]=Pn-ar}t.modifiersData[l]=Q}}const Tb={name:"preventOverflow",enabled:!0,phase:"main",fn:_b,requiresIfExists:["offset"]};function kb(o){return{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}}function Ob(o){return o===gi(o)||!Kn(o)?Ph(o):kb(o)}function Eb(o){var t=o.getBoundingClientRect(),n=f1(t.width)/o.offsetWidth||1,l=f1(t.height)/o.offsetHeight||1;return n!==1||l!==1}function Ib(o,t,n){n===void 0&&(n=!1);var l=Kn(t),c=Kn(t)&&Eb(t),g=Ga(t),h=h1(o,c,n),w={scrollLeft:0,scrollTop:0},z={x:0,y:0};return(l||!l&&!n)&&((vo(t)!=="body"||Nh(g))&&(w=Ob(t)),Kn(t)?(z=h1(t,!0),z.x+=t.clientLeft,z.y+=t.clientTop):g&&(z.x=Dh(g))),{x:h.left+w.scrollLeft-z.x,y:h.top+w.scrollTop-z.y,width:h.width,height:h.height}}function Ab(o){var t=new Map,n=new Set,l=[];o.forEach(function(g){t.set(g.name,g)});function c(g){n.add(g.name);var h=[].concat(g.requires||[],g.requiresIfExists||[]);h.forEach(function(w){if(!n.has(w)){var z=t.get(w);z&&c(z)}}),l.push(g)}return o.forEach(function(g){n.has(g.name)||c(g)}),l}function $b(o){var t=Ab(o);return uh.reduce(function(n,l){return n.concat(t.filter(function(c){return c.phase===l}))},[])}function Pb(o){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(o())})})),t}}function Ha(o){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];return[].concat(n).reduce(function(c,g){return c.replace(/%s/,g)},o)}var Ds='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Db='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',wp=["name","enabled","phase","fn","effect","requires","options"];function Nb(o){o.forEach(function(t){[].concat(Object.keys(t),wp).filter(function(n,l,c){return c.indexOf(n)===l}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Ha(Ds,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Ha(Ds,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":uh.indexOf(t.phase)<0&&console.error(Ha(Ds,t.name,'"phase"',"either "+uh.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Ha(Ds,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Ha(Ds,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Ha(Ds,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Ha(Ds,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+wp.map(function(l){return'"'+l+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(l){o.find(function(c){return c.name===l})==null&&console.error(Ha(Db,String(t.name),l,l))})})})}function Rb(o,t){var n=new Set;return o.filter(function(l){var c=t(l);if(!n.has(c))return n.add(c),!0})}function Hb(o){var t=o.reduce(function(n,l){var c=n[l.name];return n[l.name]=c?Object.assign({},c,l,{options:Object.assign({},c.options,l.options),data:Object.assign({},c.data,l.data)}):l,n},{});return Object.keys(t).map(function(n){return t[n]})}var xp="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Fb="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",zp={placement:"bottom",modifiers:[],strategy:"absolute"};function Lp(){for(var o=arguments.length,t=new Array(o),n=0;n<o;n++)t[n]=arguments[n];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Bb(o){o===void 0&&(o={});var t=o,n=t.defaultModifiers,l=n===void 0?[]:n,c=t.defaultOptions,g=c===void 0?zp:c;return function(w,z,S){S===void 0&&(S=g);var E={placement:"bottom",orderedModifiers:[],options:Object.assign({},zp,g),modifiersData:{},elements:{reference:w,popper:z},attributes:{},styles:{}},D=[],B=!1,H={state:E,setOptions:function(Te){var Ie=typeof Te=="function"?Te(E.options):Te;pe(),E.options=Object.assign({},g,E.options,Ie),E.scrollParents={reference:Xs(w)?Ou(w):w.contextElement?Ou(w.contextElement):[],popper:Ou(z)};var be=$b(Hb([].concat(l,E.options.modifiers)));if(E.orderedModifiers=be.filter(function(ue){return ue.enabled}),{}.NODE_ENV!=="production"){var ve=Rb([].concat(be,E.options.modifiers),function(ue){var Q=ue.name;return Q});if(Nb(ve),Di(E.options.placement)===fd){var ke=E.orderedModifiers.find(function(ue){var Q=ue.name;return Q==="flip"});ke||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var $e=Ni(z),De=$e.marginTop,je=$e.marginRight,Ye=$e.marginBottom,Ce=$e.marginLeft;[De,je,Ye,Ce].some(function(ue){return parseFloat(ue)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return J(),H.update()},forceUpdate:function(){if(!B){var Te=E.elements,Ie=Te.reference,be=Te.popper;if(!Lp(Ie,be)){({}).NODE_ENV!=="production"&&console.error(xp);return}E.rects={reference:Ib(Ie,Uu(be),E.options.strategy==="fixed"),popper:Ah(be)},E.reset=!1,E.placement=E.options.placement,E.orderedModifiers.forEach(function(ue){return E.modifiersData[ue.name]=Object.assign({},ue.data)});for(var ve=0,ke=0;ke<E.orderedModifiers.length;ke++){if({}.NODE_ENV!=="production"&&(ve+=1,ve>100)){console.error(Fb);break}if(E.reset===!0){E.reset=!1,ke=-1;continue}var $e=E.orderedModifiers[ke],De=$e.fn,je=$e.options,Ye=je===void 0?{}:je,Ce=$e.name;typeof De=="function"&&(E=De({state:E,options:Ye,name:Ce,instance:H})||E)}}},update:Pb(function(){return new Promise(function(ge){H.forceUpdate(),ge(E)})}),destroy:function(){pe(),B=!0}};if(!Lp(w,z))return{}.NODE_ENV!=="production"&&console.error(xp),H;H.setOptions(S).then(function(ge){!B&&S.onFirstUpdate&&S.onFirstUpdate(ge)});function J(){E.orderedModifiers.forEach(function(ge){var Te=ge.name,Ie=ge.options,be=Ie===void 0?{}:Ie,ve=ge.effect;if(typeof ve=="function"){var ke=ve({state:E,name:Te,instance:H,options:be}),$e=function(){};D.push(ke||$e)}})}function pe(){D.forEach(function(ge){return ge()}),D=[]}return H}}var Vb=[sb,Sb,ob,jv,zb,mb,Tb,tb,Cb],Wb=Bb({defaultModifiers:Vb}),Zb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,Qr=(o,t,n,l)=>{for(var c=l>1?void 0:l?Ub(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Zb(t,n,c),c};let Gb=0;const Rh=ze("popover"),K5=ze("pure-popover"),Y5=["click","hover","focus"],[U0,fh,Bs]=Y5,Hh=["dialog","tooltip","menu"],[qb]=Hh;class X5 extends CustomEvent{constructor(t){super(`${Rh}-${t}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends We{constructor(){super(...arguments),this.distance=4,this.skidding=0,this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.isOpen=!1,this.placement="top",this.popoverRole=qb,this.disabled=!1,this.popoverId=`popover-${++Gb}`,this.delayTimeout=0}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.popperInstance)==null||t.destroy()}updatePosition(){var t;(t=this.popperInstance)==null||t.update()}async updated(t){super.updated(t),this.popperInstance=this.popperInstance||Wb(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){this.popperInstance&&await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return t==null?void 0:t.assignedElements({flatten:!0})[0]}get contentElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return t==null?void 0:t.assignedNodes({flatten:!0})[0]}get popoverElement(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector(".popover-container")}emit(t){this.dispatchEvent(new X5(t))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return G`
140
140
  <slot></slot>
141
141
 
142
142
  <brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
@@ -155,7 +155,7 @@
155
155
  .popover-container {
156
156
  z-index: var(--brz-z-index-dialog);
157
157
  }
158
- `;Jr([R({type:Number})],exports.PurePopover.prototype,"distance",2);Jr([R({type:Number})],exports.PurePopover.prototype,"skidding",2);Jr([R({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Jr([R({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Jr([R({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Jr([R({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Jr([R({type:String})],exports.PurePopover.prototype,"placement",2);Jr([R({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Jr([R({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Jr([Re()],exports.PurePopover.prototype,"popoverId",2);Jr([Re()],exports.PurePopover.prototype,"popperInstance",2);Jr([Re()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Jr([ee(K5)],exports.PurePopover);const G0=["blur","mouseenter","mouseleave","keydown",U0,Bs],[Gf,jb,Kb,Yb]=G0;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[U0]:this.handleClick,[Bs]:this.handleFocus,[Gf]:this.handleBlur,[jb]:this.handleMouseEnter,[Kb]:this.handleMouseLeave,[Yb]:this.handleKeyDown},this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this)}async connectedCallback(){await super.connectedCallback(),await this.updateComplete,this.prepareListeners()}async disconnectedCallback(){super.disconnectedCallback(),this.teardownListeners()}prepareListeners(){G0.forEach(t=>this.addEventListener(t,this.listenableEventHandlers[t],{capture:[Bs,Gf].includes(t)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){G0.forEach(t=>this.removeEventListener(t,this.listenableEventHandlers[t],{capture:[Bs,Gf].includes(t)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(t){return this.triggers.includes(t)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(t){!this.isOpen||this.contains(t.target)||this.hasPointer||await this.close()}async handleClick(t){var n;if(!(this.isOpen&&((n=this.contentElement)!=null&&n.contains(t.target)))){if(!this.hasTrigger(U0))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(Bs)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Bs)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(fh)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(fh)||this.hasFocus)&&await this.close()}async handleKeyDown(t){t.stopPropagation(),["Escape","Esc"].includes(t.key)&&await this.close()}};Jr([R({type:String})],exports.Popover.prototype,"trigger",2);Jr([Re()],exports.Popover.prototype,"hasFocus",2);Jr([Re()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Jr([ee(Rh)],exports.Popover);var Xb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,Qo=(o,t,n,l)=>{for(var c=l>1?void 0:l?Jb(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Xb(t,n,c),c};const J5=ze("tooltip"),[,Qb]=Hh;var Q5=(o=>(o[o.dark=0]="dark",o[o.light=1]="light",o))(Q5||{});exports.Tooltip=class extends We{constructor(){super(...arguments),this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.placement="top",this.trigger="hover focus",this.disabled=!1,this.content="",this.theme="dark"}render(){return G`
158
+ `;Qr([N({type:Number})],exports.PurePopover.prototype,"distance",2);Qr([N({type:Number})],exports.PurePopover.prototype,"skidding",2);Qr([N({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Qr([N({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Qr([N({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Qr([N({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Qr([N({type:String})],exports.PurePopover.prototype,"placement",2);Qr([N({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Qr([N({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Qr([Re()],exports.PurePopover.prototype,"popoverId",2);Qr([Re()],exports.PurePopover.prototype,"popperInstance",2);Qr([Re()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Qr([ee(K5)],exports.PurePopover);const G0=["blur","mouseenter","mouseleave","keydown",U0,Bs],[Gf,jb,Kb,Yb]=G0;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[U0]:this.handleClick,[Bs]:this.handleFocus,[Gf]:this.handleBlur,[jb]:this.handleMouseEnter,[Kb]:this.handleMouseLeave,[Yb]:this.handleKeyDown},this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this)}async connectedCallback(){await super.connectedCallback(),await this.updateComplete,this.prepareListeners()}async disconnectedCallback(){super.disconnectedCallback(),this.teardownListeners()}prepareListeners(){G0.forEach(t=>this.addEventListener(t,this.listenableEventHandlers[t],{capture:[Bs,Gf].includes(t)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){G0.forEach(t=>this.removeEventListener(t,this.listenableEventHandlers[t],{capture:[Bs,Gf].includes(t)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(t){return this.triggers.includes(t)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(t){!this.isOpen||this.contains(t.target)||this.hasPointer||await this.close()}async handleClick(t){var n;if(!(this.isOpen&&((n=this.contentElement)!=null&&n.contains(t.target)))){if(!this.hasTrigger(U0))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(Bs)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Bs)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(fh)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(fh)||this.hasFocus)&&await this.close()}async handleKeyDown(t){t.stopPropagation(),["Escape","Esc"].includes(t.key)&&await this.close()}};Qr([N({type:String})],exports.Popover.prototype,"trigger",2);Qr([Re()],exports.Popover.prototype,"hasFocus",2);Qr([Re()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Qr([ee(Rh)],exports.Popover);var Xb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,Qo=(o,t,n,l)=>{for(var c=l>1?void 0:l?Jb(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Xb(t,n,c),c};const J5=ze("tooltip"),[,Qb]=Hh;var Q5=(o=>(o[o.dark=0]="dark",o[o.light=1]="light",o))(Q5||{});exports.Tooltip=class extends We{constructor(){super(...arguments),this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.placement="top",this.trigger="hover focus",this.disabled=!1,this.content="",this.theme="dark"}render(){return G`
159
159
  <brz-popover
160
160
  .popoverRole=${Qb}
161
161
  .distance=${8}
@@ -189,7 +189,7 @@
189
189
  background-color: var(--brz-color-white);
190
190
  color: var(--brz-color-text);
191
191
  }
192
- `;Qo([R({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Qo([R({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Qo([R({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);Qo([R({type:String})],exports.Tooltip.prototype,"placement",2);Qo([R({type:String})],exports.Tooltip.prototype,"trigger",2);Qo([R({type:Boolean})],exports.Tooltip.prototype,"disabled",2);Qo([R({type:String})],exports.Tooltip.prototype,"content",2);Qo([R({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Qo([ee(J5)],exports.Tooltip);var em=Object.defineProperty,tm=Object.getOwnPropertyDescriptor,vi=(o,t,n,l)=>{for(var c=l>1?void 0:l?tm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&em(t,n,c),c};const e6=ze("avatar"),t6=ze("avatar-group");var q0=(o=>(o[o.tiny=0]="tiny",o[o.small=1]="small",o[o.medium=2]="medium",o[o.large=3]="large",o))(q0||{}),r6=(o=>(o[o.solid=0]="solid",o[o.subtle=1]="subtle",o[o.border=2]="border",o))(r6||{});exports.Avatar=class extends We{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.noTooltip=!1,this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:t}){const n=t==null?void 0:t.assignedElements({flatten:!0});this.slottedElementsCount=n.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const n=q0[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(l=>l.charAt(0)).join("").toUpperCase()}get iconTemplate(){const t=q0[this.size],n=()=>{switch(t){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return G`
192
+ `;Qo([N({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Qo([N({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Qo([N({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);Qo([N({type:String})],exports.Tooltip.prototype,"placement",2);Qo([N({type:String})],exports.Tooltip.prototype,"trigger",2);Qo([N({type:Boolean})],exports.Tooltip.prototype,"disabled",2);Qo([N({type:String})],exports.Tooltip.prototype,"content",2);Qo([N({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Qo([ee(J5)],exports.Tooltip);var em=Object.defineProperty,tm=Object.getOwnPropertyDescriptor,vi=(o,t,n,l)=>{for(var c=l>1?void 0:l?tm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&em(t,n,c),c};const e6=ze("avatar"),t6=ze("avatar-group");var q0=(o=>(o[o.tiny=0]="tiny",o[o.small=1]="small",o[o.medium=2]="medium",o[o.large=3]="large",o))(q0||{}),r6=(o=>(o[o.solid=0]="solid",o[o.subtle=1]="subtle",o[o.border=2]="border",o))(r6||{});exports.Avatar=class extends We{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.noTooltip=!1,this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:t}){const n=t==null?void 0:t.assignedElements({flatten:!0});this.slottedElementsCount=n.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const n=q0[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(l=>l.charAt(0)).join("").toUpperCase()}get iconTemplate(){const t=q0[this.size],n=()=>{switch(t){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return G`
193
193
  <span class="icon" aria-label=${this.label}>
194
194
  <brz-icon size=${n()} icon=${Ct(this.icon)}></brz-icon>
195
195
  </span>
@@ -366,7 +366,7 @@
366
366
  :host brz-link .container {
367
367
  cursor: pointer;
368
368
  }
369
- `;vi([R({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);vi([R({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);vi([R({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);vi([R({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);vi([R({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);vi([R({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);vi([R({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);vi([R({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);vi([R({type:String,reflect:!0})],exports.Avatar.prototype,"hyperlink",2);vi([Re()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=vi([ee(e6)],exports.Avatar);exports.AvatarGroup=class extends We{render(){return G` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=le`
369
+ `;vi([N({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);vi([N({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);vi([N({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);vi([N({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);vi([N({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);vi([N({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);vi([N({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);vi([N({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);vi([N({type:String,reflect:!0})],exports.Avatar.prototype,"hyperlink",2);vi([Re()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=vi([ee(e6)],exports.Avatar);exports.AvatarGroup=class extends We{render(){return G` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=le`
370
370
  :host .container {
371
371
  align-items: center;
372
372
  display: inline-flex;
@@ -1120,6 +1120,9 @@
1120
1120
  `,search:q`
1121
1121
  <path class="st0" d="M8,13c2.8,0,5-2.2,5-5s-2.2-5-5-5S3,5.2,3,8S5.2,13,8,13z M13.6,12.2l3,3c0.4,0.4,0.4,1,0,1.4l0,0
1122
1122
  c-0.4,0.4-1,0.4-1.4,0l-3-3C11,14.5,9.6,15,8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7C15,9.6,14.5,11,13.6,12.2z"/>
1123
+ `,select:q`
1124
+ <path d="M3.2 2C2.53726 2 2 2.53726 2 3.2V10.8C2 11.4627 2.53726 12 3.2 12H7.96324L7.75171 10H4V4H14V7.32836L16 8.78345V3.2C16 2.53726 15.4627 2 14.8 2H3.2Z"/>
1125
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.9818 10.7353L12.4879 15.5202L13.3611 14.1976C13.5692 13.8824 13.9136 13.6836 14.2906 13.661L15.8725 13.566L11.9818 10.7353ZM9.80355 9.15567C9.69419 8.12164 10.8621 7.44737 11.7029 8.05909L18.8523 13.2606C19.7627 13.923 19.342 15.3614 18.2182 15.4288L14.8097 15.6334L12.9282 18.483C12.3079 19.4225 10.8519 19.0676 10.7335 17.948L9.80355 9.15567Z"/>
1123
1126
  `,settings:q`
1124
1127
  <path d="M9,18 C7.7,18 6.6,17.1 6.2,15.9 C6.2,15.9 6.1,15.9 6.1,15.8 C5,16.4 3.6,16.3 2.7,15.4 C1.8,14.5 1.6,13 2.2,11.9 L2.2,11.8 C0.9,11.4 0,10.3 0,9 C0,7.7 0.9,6.5 2.1,6.2 C2.1,6.2 2.1,6.1 2.2,6.1 C1.6,5 1.7,3.5 2.6,2.6 C3.6,1.7 5,1.5 6.1,2.1 L6.2,2.1 C6.6,0.8 7.7,0 9,0 C10.3,0 11.5,0.9 11.8,2.2 L11.9,2.2 C12.3,1.9 12.8,1.8 13.3,1.8 C14.1,1.8 14.8,2.1 15.3,2.6 C15.8,3.1 16.1,3.9 16.1,4.6 C16.1,5.1 16,5.6 15.7,6 L15.7,6.1 C17.1,6.5 18,7.6 18,9 C18,10.3 17.1,11.4 15.9,11.8 L15.9,11.9 C16.5,13 16.4,14.4 15.4,15.4 C14.5,16.3 13,16.5 11.9,15.8 L11.8,15.8 C11.5,17 10.3,18 9,18 M6,13.6 C6.2,13.6 6.3,13.6 6.5,13.7 C6.8,13.9 7.1,14 7.5,14.1 C7.9,14.2 8.2,14.6 8.2,15 C8.2,15.5 8.6,15.9 9.1,15.9 C9.6,15.9 10,15.5 10,15 L10,14.9 C10,14.5 10.3,14.1 10.7,14 C11,13.9 11.3,13.8 11.6,13.6 C12,13.4 12.4,13.5 12.7,13.8 L12.8,13.9 C13.2,14.2 13.7,14.2 14,13.9 C14.3,13.6 14.4,13 14,12.7 C13.7,12.4 13.6,11.9 13.8,11.5 C14,11.2 14.1,10.9 14.2,10.6 C14.3,10.2 14.7,9.9 15.1,9.9 C15.6,9.9 16,9.5 16,9 C16,8.5 15.6,8.1 15.1,8.1 C14.7,8.1 14.3,7.8 14.2,7.4 C14.1,7.1 14,6.7 13.8,6.4 C13.6,6 13.7,5.5 14,5.2 C14.2,5 14.2,4.8 14.2,4.6 C14.2,4.4 14.1,4.1 14,4 C13.8,3.8 13.6,3.7 13.4,3.7 C13.2,3.7 13,3.8 12.8,3.9 C12.5,4.2 12,4.3 11.6,4.1 C11.3,3.9 11,3.8 10.7,3.7 C10.3,3.6 10,3.2 10,2.8 C10,2.3 9.6,1.9 9.1,1.9 C8.6,1.9 8.2,2.3 8.2,2.8 C8.2,3.2 7.9,3.6 7.5,3.7 C7.1,3.8 6.8,4 6.5,4.1 C6.1,4.3 5.6,4.3 5.3,4 C5,3.7 4.4,3.7 4,4 C3.7,4.3 3.7,4.9 4,5.2 C4.3,5.5 4.4,6 4.2,6.4 C4,6.7 3.9,7 3.8,7.4 C3.7,7.8 3.3,8.1 2.8,8.1 C2.4,8.1 2,8.5 2,9 C2,9.5 2.4,9.9 2.8,9.9 C3.3,9.9 3.7,10.2 3.8,10.6 C3.9,10.9 4,11.3 4.2,11.6 C4.4,12 4.3,12.5 4,12.8 C3.7,13.1 3.7,13.7 4,14.1 C4.3,14.4 4.9,14.4 5.2,14.1 C5.5,13.7 5.7,13.6 6,13.6"></path>
1125
1128
  <path d="M9,10.9531 C7.9,10.9531 7,10.0541 7,8.9531 C7,7.8531 7.9,6.9531 9,6.9531 C9.4,6.9531 9.8,7.0541 10.2,7.3531 C10.4,7.4531 10.6,7.6531 10.7,7.8531 C11.6,9.3531 10.4,10.9531 9,10.9531 M12.4,6.8531 C12.1,6.3531 11.7,5.9531 11.2,5.6531 C10.5,5.2531 9.7,4.9531 9,4.9531 C6.8,4.9531 5,6.7531 5,8.9531 C5,11.1531 6.8,12.9531 8.9,12.9531 C10.3,12.9531 11.7,12.1531 12.4,10.9531 C13.2,9.6531 13.1,8.1531 12.4,6.8531"></path>`,shift:q`
@@ -1231,7 +1234,7 @@
1231
1234
  svg {
1232
1235
  fill: currentColor;
1233
1236
  }
1234
- `;Vh([R({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Vh([R({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Vh([ee(o6)],exports.Icon);var bm=Object.defineProperty,mm=Object.getOwnPropertyDescriptor,ea=(o,t,n,l)=>{for(var c=l>1?void 0:l?mm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&bm(t,n,c),c};const a6=ze("link"),s6=ze("link-button"),ym=["a","button"],Cm=le`
1237
+ `;Vh([N({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Vh([N({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Vh([ee(o6)],exports.Icon);var bm=Object.defineProperty,mm=Object.getOwnPropertyDescriptor,ea=(o,t,n,l)=>{for(var c=l>1?void 0:l?mm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&bm(t,n,c),c};const a6=ze("link"),s6=ze("link-button"),ym=["a","button"],Cm=le`
1235
1238
  :host {
1236
1239
  display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
1237
1240
  align-items: center;
@@ -1299,7 +1302,7 @@
1299
1302
  </button>
1300
1303
 
1301
1304
  ${this.externalIcon}
1302
- `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[Wh,wm,Cm];ea([R()],exports.Link.prototype,"element",2);ea([R({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);ea([R({type:String,reflect:!0})],exports.Link.prototype,"href",2);ea([R({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);ea([R({type:String,reflect:!0})],exports.Link.prototype,"target",2);ea([R({type:String,reflect:!0})],exports.Link.prototype,"rel",2);ea([R({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=ea([ee(a6)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=ea([ee(s6)],exports.LinkButton);var zm=Object.defineProperty,Lm=Object.getOwnPropertyDescriptor,pd=(o,t,n,l)=>{for(var c=l>1?void 0:l?Lm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&zm(t,n,c),c};const l6=ze("row"),u6=ze("column");exports.Row=class extends We{render(){return G`<slot></slot>`}};exports.Row.styles=le`
1305
+ `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[Wh,wm,Cm];ea([N()],exports.Link.prototype,"element",2);ea([N({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);ea([N({type:String,reflect:!0})],exports.Link.prototype,"href",2);ea([N({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);ea([N({type:String,reflect:!0})],exports.Link.prototype,"target",2);ea([N({type:String,reflect:!0})],exports.Link.prototype,"rel",2);ea([N({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=ea([ee(a6)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=ea([ee(s6)],exports.LinkButton);var zm=Object.defineProperty,Lm=Object.getOwnPropertyDescriptor,pd=(o,t,n,l)=>{for(var c=l>1?void 0:l?Lm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&zm(t,n,c),c};const l6=ze("row"),u6=ze("column");exports.Row=class extends We{render(){return G`<slot></slot>`}};exports.Row.styles=le`
1303
1306
  :host {
1304
1307
  display: flex;
1305
1308
  flex-direction: row;
@@ -1318,7 +1321,7 @@
1318
1321
  :host([vertical-align='bottom']) {
1319
1322
  align-items: flex-end;
1320
1323
  }
1321
- `;pd([R({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=pd([ee(l6)],exports.Row);exports.Column=class extends We{render(){return G`<slot></slot>`}};exports.Column.styles=le`
1324
+ `;pd([N({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=pd([ee(l6)],exports.Row);exports.Column=class extends We{render(){return G`<slot></slot>`}};exports.Column.styles=le`
1322
1325
  :host {
1323
1326
  display: flex;
1324
1327
  flex-direction: column;
@@ -1337,7 +1340,7 @@
1337
1340
  :host([align='right']) {
1338
1341
  align-items: flex-end;
1339
1342
  }
1340
- `;pd([R({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=pd([ee(u6)],exports.Column);var Sm=Object.defineProperty,Mm=Object.getOwnPropertyDescriptor,c6=(o,t,n,l)=>{for(var c=l>1?void 0:l?Mm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Sm(t,n,c),c};const d6=ze("loading-spinner");exports.LoadingSpinner=class extends We{constructor(){super(...arguments),this.size=24}render(){return G`
1343
+ `;pd([N({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=pd([ee(u6)],exports.Column);var Sm=Object.defineProperty,Mm=Object.getOwnPropertyDescriptor,c6=(o,t,n,l)=>{for(var c=l>1?void 0:l?Mm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Sm(t,n,c),c};const d6=ze("loading-spinner");exports.LoadingSpinner=class extends We{constructor(){super(...arguments),this.size=24}render(){return G`
1341
1344
  <div class="loading-spinner">
1342
1345
  <svg
1343
1346
  class="loading-spinner--circular"
@@ -1392,7 +1395,7 @@
1392
1395
  stroke-dashoffset: -124px;
1393
1396
  }
1394
1397
  }
1395
- `;c6([R({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=c6([ee(d6)],exports.LoadingSpinner);var _m=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,Qr=(o,t,n,l)=>{for(var c=l>1?void 0:l?Tm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&_m(t,n,c),c};const Zh=ze("button"),f6=ze("button-group");class h6 extends CustomEvent{constructor(t){super(`${Zh}-${t}`,{bubbles:!0,composed:!0})}}const km=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends v1{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(n=>{var l;return!!((l=n.textContent)!=null&&l.replace(`
1398
+ `;c6([N({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=c6([ee(d6)],exports.LoadingSpinner);var _m=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,Ur=(o,t,n,l)=>{for(var c=l>1?void 0:l?Tm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&_m(t,n,c),c};const Zh=ze("button"),f6=ze("button-group");class h6 extends CustomEvent{constructor(t){super(`${Zh}-${t}`,{bubbles:!0,composed:!0})}}const km=["primary","secondary","transparent","transparent-primary"],Om=["button","submit","reset"];exports.Button=class extends v1{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.type="button",this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(n=>{var l;return!!((l=n.textContent)!=null&&l.replace(`
1396
1399
  `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(t){this.buttonElement.focus(t)}emit(t){this.dispatchEvent(new h6(t))}get classes(){return On({button:!0,primary:this.buttonType==="primary"&&!this.disabled,secondary:this.buttonType==="secondary"&&!this.disabled,transparent:this.buttonType==="transparent"||this.buttonType==="transparent-primary",transparentPrimary:this.buttonType==="transparent-primary",compact:this.compact,loading:this.loading,disabled:this.disabled})}handleClick(){this.disabled||this.emit("click")}get anchorTemplate(){return G`
1397
1400
  <a
1398
1401
  part="button"
@@ -1411,7 +1414,7 @@
1411
1414
  <button
1412
1415
  part="button"
1413
1416
  @click=${this.handleClick}
1414
- type="button"
1417
+ type=${this.type}
1415
1418
  ?disabled=${this.disabled}
1416
1419
  class=${this.classes}
1417
1420
  >
@@ -1631,7 +1634,7 @@
1631
1634
  color: var(--brz-button-icon-color);
1632
1635
  padding: var(--brz-spacing-px);
1633
1636
  }
1634
- `];Qr([R()],exports.Button.prototype,"element",2);Qr([R({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);Qr([R({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Qr([R({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Qr([R({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Qr([R({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Qr([R({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Qr([R({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Qr([R()],exports.Button.prototype,"href",2);Qr([R()],exports.Button.prototype,"target",2);Qr([R()],exports.Button.prototype,"rel",2);Qr([R({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Qr([Hi("button")],exports.Button.prototype,"buttonElement",2);Qr([Oh()],exports.Button.prototype,"defaultSlot",2);exports.Button=Qr([ee(Zh)],exports.Button);exports.ButtonGroup=class extends We{constructor(){super(...arguments),this.compact=!1}render(){return G`<brz-row class=${On({compact:this.compact})}
1637
+ `];Ur([N()],exports.Button.prototype,"element",2);Ur([N({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);Ur([N({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Ur([N({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Ur([N({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Ur([N({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Ur([N({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Ur([N({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Ur([N()],exports.Button.prototype,"href",2);Ur([N({reflect:!0})],exports.Button.prototype,"type",2);Ur([N()],exports.Button.prototype,"target",2);Ur([N()],exports.Button.prototype,"rel",2);Ur([N({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Ur([Hi("button")],exports.Button.prototype,"buttonElement",2);Ur([Oh()],exports.Button.prototype,"defaultSlot",2);exports.Button=Ur([ee(Zh)],exports.Button);exports.ButtonGroup=class extends We{constructor(){super(...arguments),this.compact=!1}render(){return G`<brz-row class=${On({compact:this.compact})}
1635
1638
  ><slot></slot
1636
1639
  ></brz-row>`}};exports.ButtonGroup.styles=le`
1637
1640
  brz-row {
@@ -1650,7 +1653,7 @@
1650
1653
  --brz-button-r-radius: 0;
1651
1654
  --brz-border-r-width: 0;
1652
1655
  }
1653
- `;Qr([R({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Qr([ee(f6)],exports.ButtonGroup);const Om=["small","medium","large"];var Em=Object.defineProperty,Im=Object.getOwnPropertyDescriptor,bo=(o,t,n,l)=>{for(var c=l>1?void 0:l?Im(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Em(t,n,c),c};const p6=ze("dropdown-menu"),Am=[...Om,"fluid"];exports.DropdownMenu=class extends We{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(t){super.updated(t),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:t,offsetWidth:n}=this.referenceElement,l=window.getComputedStyle(this.referenceElement);this.fluidWidth=l.boxSizing==="border-box"&&l.width!==void 0?t:n}handleOpen(){this.size==="fluid"&&this.fluidWidth===0&&this.applyFluidWidth(),this.menu.focus()}handleClose(){this.referenceElement.focus(),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}handleSlotChange(){this.disabled=this.referenceElement.hasAttribute("disabled")}get referenceElement(){return this.slottedElements[0]}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var t;(t=this.popover)==null||t.updatePosition()}render(){return G`
1656
+ `;Ur([N({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Ur([ee(f6)],exports.ButtonGroup);const Em=["small","medium","large"];var Im=Object.defineProperty,Am=Object.getOwnPropertyDescriptor,bo=(o,t,n,l)=>{for(var c=l>1?void 0:l?Am(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Im(t,n,c),c};const p6=ze("dropdown-menu"),$m=[...Em,"fluid"];exports.DropdownMenu=class extends We{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(t){super.updated(t),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:t,offsetWidth:n}=this.referenceElement,l=window.getComputedStyle(this.referenceElement);this.fluidWidth=l.boxSizing==="border-box"&&l.width!==void 0?t:n}handleOpen(){this.size==="fluid"&&this.fluidWidth===0&&this.applyFluidWidth(),this.menu.focus()}handleClose(){this.referenceElement.focus(),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}handleSlotChange(){this.disabled=this.referenceElement.hasAttribute("disabled")}get referenceElement(){return this.slottedElements[0]}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var t;(t=this.popover)==null||t.updatePosition()}render(){return G`
1654
1657
  <brz-popover
1655
1658
  trigger="click"
1656
1659
  placement="bottom-start"
@@ -1676,17 +1679,17 @@
1676
1679
  </brz-popover>
1677
1680
  `}};exports.DropdownMenu.styles=le`
1678
1681
  ${Ys(":focus-within brz-menu:focus-visible")};
1679
- `;bo([R({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);bo([R({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);bo([R({type:Array})],exports.DropdownMenu.prototype,"selected",2);bo([R()],exports.DropdownMenu.prototype,"size",2);bo([Re()],exports.DropdownMenu.prototype,"fluidWidth",2);bo([Re()],exports.DropdownMenu.prototype,"disabled",2);bo([Hi("brz-menu")],exports.DropdownMenu.prototype,"menu",2);bo([Hi("brz-popover")],exports.DropdownMenu.prototype,"popover",2);bo([Jo()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=bo([ee(p6)],exports.DropdownMenu);var o1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function g6(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var j0={exports:{}};/**
1682
+ `;bo([N({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);bo([N({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);bo([N({type:Array})],exports.DropdownMenu.prototype,"selected",2);bo([N()],exports.DropdownMenu.prototype,"size",2);bo([Re()],exports.DropdownMenu.prototype,"fluidWidth",2);bo([Re()],exports.DropdownMenu.prototype,"disabled",2);bo([Hi("brz-menu")],exports.DropdownMenu.prototype,"menu",2);bo([Hi("brz-popover")],exports.DropdownMenu.prototype,"popover",2);bo([Jo()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=bo([ee(p6)],exports.DropdownMenu);var o1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function g6(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var j0={exports:{}};/**
1680
1683
  * @license
1681
1684
  * Lodash <https://lodash.com/>
1682
1685
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1683
1686
  * Released under MIT license <https://lodash.com/license>
1684
1687
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1685
1688
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1686
- */j0.exports;(function(o,t){(function(){var n,l="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",w="Invalid `variable` option passed into `_.template`",z="__lodash_hash_undefined__",S=500,E="__lodash_placeholder__",D=1,B=2,H=4,J=1,pe=2,ge=1,Te=2,Ie=4,be=8,ve=16,ke=32,$e=64,De=128,je=256,Ye=512,Ce=30,ue="...",Q=800,$=16,k=1,O=2,X=3,ce=1/0,Ae=9007199254740991,et=17976931348623157e292,pt=0/0,yt=4294967295,or=yt-1,Tt=yt>>>1,zt=[["ary",De],["bind",ge],["bindKey",Te],["curry",be],["curryRight",ve],["flip",Ye],["partial",ke],["partialRight",$e],["rearg",je]],rt="[object Arguments]",Le="[object Array]",Ne="[object AsyncFunction]",Ge="[object Boolean]",st="[object Date]",lt="[object DOMException]",Ue="[object Error]",Zt="[object Function]",Ur="[object GeneratorFunction]",tr="[object Map]",Qe="[object Number]",bt="[object Null]",Et="[object Object]",Pr="[object Promise]",en="[object Proxy]",ar="[object RegExp]",it="[object Set]",U="[object String]",se="[object Symbol]",Y="[object Undefined]",tt="[object WeakMap]",sr="[object WeakSet]",Lr="[object ArrayBuffer]",Pn="[object DataView]",Gr="[object Float32Array]",Wt="[object Float64Array]",mi="[object Int8Array]",Dr="[object Int16Array]",Dn="[object Int32Array]",Ve="[object Uint8Array]",Vi="[object Uint8ClampedArray]",Sr="[object Uint16Array]",qe="[object Uint32Array]",Jt=/\b__p \+= '';/g,oa=/\b(__p \+=) '' \+/g,gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Nn=/&(?:amp|lt|gt|quot|#39);/g,vr=/[&<>"']/g,aa=RegExp(Nn.source),ln=RegExp(vr.source),wo=/<%-([\s\S]+?)%>/g,Wi=/<%([\s\S]+?)%>/g,Xa=/<%=([\s\S]+?)%>/g,Ja=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,nl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xo=/[\\^$.*+?()[\]{}|]/g,Xn=RegExp(xo.source),zo=/^\s+/,il=/\s/,ol=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qa=/\{\n\/\* \[wrapped with (.+)\] \*/,Zi=/,? & /,Cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,un=/[()=,{}\[\]\/\s]/,al=/\\(\\)?/g,yi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lo=/\w*$/,sa=/^[-+]0x[0-9a-f]+$/i,Rn=/^0b[01]+$/i,Hn=/^\[object .+?Constructor\]$/,cn=/^0o[0-7]+$/i,es=/^(?:0|[1-9]\d*)$/,ts=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,dn="\\ud800-\\udfff",rs="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",Lt="\\u20d0-\\u20ff",Fn=rs+tn+Lt,Ui="\\u2700-\\u27bf",la="a-z\\xdf-\\xf6\\xf8-\\xff",ae="\\xac\\xb1\\xd7\\xf7",x="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",A="\\u2000-\\u206f",te=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",de="A-Z\\xc0-\\xd6\\xd8-\\xde",Ke="\\ufe0e\\ufe0f",gt=ae+x+A+te,we="['’]",Mr="["+dn+"]",rn="["+gt+"]",Ci="["+Fn+"]",Bn="\\d+",nc="["+Ui+"]",z1="["+la+"]",ua="[^"+dn+gt+Bn+Ui+la+de+"]",ns="\\ud83c[\\udffb-\\udfff]",ic="(?:"+Ci+"|"+ns+")",sl="[^"+dn+"]",ll="(?:\\ud83c[\\udde6-\\uddff]){2}",ul="[\\ud800-\\udbff][\\udc00-\\udfff]",So="["+de+"]",L1="\\u200d",oc="(?:"+z1+"|"+ua+")",$d="(?:"+So+"|"+ua+")",S1="(?:"+we+"(?:d|ll|m|re|s|t|ve))?",Jn="(?:"+we+"(?:D|LL|M|RE|S|T|VE))?",ac=ic+"?",sc="["+Ke+"]?",cl="(?:"+L1+"(?:"+[sl,ll,ul].join("|")+")"+sc+ac+")*",is="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lc=sc+ac+cl,Dd="(?:"+[nc,ll,ul].join("|")+")"+lc,Nd="(?:"+[sl+Ci+"?",Ci,ll,ul,Mr].join("|")+")",M1=RegExp(we,"g"),uc=RegExp(Ci,"g"),_1=RegExp(ns+"(?="+ns+")|"+Nd+lc,"g"),cc=RegExp([So+"?"+z1+"+"+S1+"(?="+[rn,So,"$"].join("|")+")",$d+"+"+Jn+"(?="+[rn,So+oc,"$"].join("|")+")",So+"?"+oc+"+"+S1,So+"+"+Jn,Pd,is,Bn,Dd].join("|"),"g"),dc=RegExp("["+L1+dn+Fn+Ke+"]"),dl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],T1=-1,Vt={};Vt[Gr]=Vt[Wt]=Vt[mi]=Vt[Dr]=Vt[Dn]=Vt[Ve]=Vt[Vi]=Vt[Sr]=Vt[qe]=!0,Vt[rt]=Vt[Le]=Vt[Lr]=Vt[Ge]=Vt[Pn]=Vt[st]=Vt[Ue]=Vt[Zt]=Vt[tr]=Vt[Qe]=Vt[Et]=Vt[ar]=Vt[it]=Vt[U]=Vt[tt]=!1;var Ht={};Ht[rt]=Ht[Le]=Ht[Lr]=Ht[Pn]=Ht[Ge]=Ht[st]=Ht[Gr]=Ht[Wt]=Ht[mi]=Ht[Dr]=Ht[Dn]=Ht[tr]=Ht[Qe]=Ht[Et]=Ht[ar]=Ht[it]=Ht[U]=Ht[se]=Ht[Ve]=Ht[Vi]=Ht[Sr]=Ht[qe]=!0,Ht[Ue]=Ht[Zt]=Ht[tt]=!1;var hl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Rd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fc={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Qn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Hd=parseFloat,Fd=parseInt,pl=typeof o1=="object"&&o1&&o1.Object===Object&&o1,hc=typeof self=="object"&&self&&self.Object===Object&&self,Ut=pl||hc||Function("return this")(),os=t&&!t.nodeType&&t,jr=os&&!0&&o&&!o.nodeType&&o,as=jr&&jr.exports===os,ss=as&&pl.process,_r=function(){try{var W=jr&&jr.require&&jr.require("util").types;return W||ss&&ss.binding&&ss.binding("util")}catch{}}(),pc=_r&&_r.isArrayBuffer,gc=_r&&_r.isDate,vc=_r&&_r.isMap,bc=_r&&_r.isRegExp,k1=_r&&_r.isSet,O1=_r&&_r.isTypedArray;function fn(W,re,j){switch(j.length){case 0:return W.call(re);case 1:return W.call(re,j[0]);case 2:return W.call(re,j[0],j[1]);case 3:return W.call(re,j[0],j[1],j[2])}return W.apply(re,j)}function Bd(W,re,j,Oe){for(var nt=-1,kt=W==null?0:W.length;++nt<kt;){var ur=W[nt];re(Oe,ur,j(ur),W)}return Oe}function wn(W,re){for(var j=-1,Oe=W==null?0:W.length;++j<Oe&&re(W[j],j,W)!==!1;);return W}function Vd(W,re){for(var j=W==null?0:W.length;j--&&re(W[j],j,W)!==!1;);return W}function E1(W,re){for(var j=-1,Oe=W==null?0:W.length;++j<Oe;)if(!re(W[j],j,W))return!1;return!0}function Gi(W,re){for(var j=-1,Oe=W==null?0:W.length,nt=0,kt=[];++j<Oe;){var ur=W[j];re(ur,j,W)&&(kt[nt++]=ur)}return kt}function ls(W,re){var j=W==null?0:W.length;return!!j&&_o(W,re,0)>-1}function ca(W,re,j){for(var Oe=-1,nt=W==null?0:W.length;++Oe<nt;)if(j(re,W[Oe]))return!0;return!1}function At(W,re){for(var j=-1,Oe=W==null?0:W.length,nt=Array(Oe);++j<Oe;)nt[j]=re(W[j],j,W);return nt}function qi(W,re){for(var j=-1,Oe=re.length,nt=W.length;++j<Oe;)W[nt+j]=re[j];return W}function I1(W,re,j,Oe){var nt=-1,kt=W==null?0:W.length;for(Oe&&kt&&(j=W[++nt]);++nt<kt;)j=re(j,W[nt],nt,W);return j}function Wd(W,re,j,Oe){var nt=W==null?0:W.length;for(Oe&&nt&&(j=W[--nt]);nt--;)j=re(j,W[nt],nt,W);return j}function Mo(W,re){for(var j=-1,Oe=W==null?0:W.length;++j<Oe;)if(re(W[j],j,W))return!0;return!1}var lr=$1("length");function Zd(W){return W.split("")}function mc(W){return W.match(Cn)||[]}function da(W,re,j){var Oe;return j(W,function(nt,kt,ur){if(re(nt,kt,ur))return Oe=kt,!1}),Oe}function gl(W,re,j,Oe){for(var nt=W.length,kt=j+(Oe?1:-1);Oe?kt--:++kt<nt;)if(re(W[kt],kt,W))return kt;return-1}function _o(W,re,j){return re===re?Sc(W,re,j):gl(W,vl,j)}function Ud(W,re,j,Oe){for(var nt=j-1,kt=W.length;++nt<kt;)if(Oe(W[nt],re))return nt;return-1}function vl(W){return W!==W}function A1(W,re){var j=W==null?0:W.length;return j?N1(W,re)/j:pt}function $1(W){return function(re){return re==null?n:re[W]}}function P1(W){return function(re){return W==null?n:W[re]}}function D1(W,re,j,Oe,nt){return nt(W,function(kt,ur,wt){j=Oe?(Oe=!1,kt):re(j,kt,ur,wt)}),j}function yc(W,re){var j=W.length;for(W.sort(re);j--;)W[j]=W[j].value;return W}function N1(W,re){for(var j,Oe=-1,nt=W.length;++Oe<nt;){var kt=re(W[Oe]);kt!==n&&(j=j===n?kt:j+kt)}return j}function To(W,re){for(var j=-1,Oe=Array(W);++j<W;)Oe[j]=re(j);return Oe}function wi(W,re){return At(re,function(j){return[j,W[j]]})}function us(W){return W&&W.slice(0,wl(W)+1).replace(zo,"")}function Kr(W){return function(re){return W(re)}}function bl(W,re){return At(re,function(j){return W[j]})}function nn(W,re){return W.has(re)}function ji(W,re){for(var j=-1,Oe=W.length;++j<Oe&&_o(re,W[j],0)>-1;);return j}function ml(W,re){for(var j=W.length;j--&&_o(re,W[j],0)>-1;);return j}function Gd(W,re){for(var j=W.length,Oe=0;j--;)W[j]===re&&++Oe;return Oe}var Cc=P1(hl),qd=P1(Rd);function wc(W){return"\\"+Qn[W]}function R1(W,re){return W==null?n:W[re]}function Vn(W){return dc.test(W)}function ei(W){return dl.test(W)}function xc(W){for(var re,j=[];!(re=W.next()).done;)j.push(re.value);return j}function yl(W){var re=-1,j=Array(W.size);return W.forEach(function(Oe,nt){j[++re]=[nt,Oe]}),j}function zc(W,re){return function(j){return W(re(j))}}function Ki(W,re){for(var j=-1,Oe=W.length,nt=0,kt=[];++j<Oe;){var ur=W[j];(ur===re||ur===E)&&(W[j]=E,kt[nt++]=j)}return kt}function Cl(W){var re=-1,j=Array(W.size);return W.forEach(function(Oe){j[++re]=Oe}),j}function Lc(W){var re=-1,j=Array(W.size);return W.forEach(function(Oe){j[++re]=[Oe,Oe]}),j}function Sc(W,re,j){for(var Oe=j-1,nt=W.length;++Oe<nt;)if(W[Oe]===re)return Oe;return-1}function cs(W,re,j){for(var Oe=j+1;Oe--;)if(W[Oe]===re)return Oe;return Oe}function ko(W){return Vn(W)?Mc(W):lr(W)}function xn(W){return Vn(W)?zl(W):Zd(W)}function wl(W){for(var re=W.length;re--&&il.test(W.charAt(re)););return re}var xl=P1(fc);function Mc(W){for(var re=_1.lastIndex=0;_1.test(W);)++re;return re}function zl(W){return W.match(_1)||[]}function Wn(W){return W.match(cc)||[]}var _c=function W(re){re=re==null?Ut:Yi.defaults(Ut.Object(),re,Yi.pick(Ut,fl));var j=re.Array,Oe=re.Date,nt=re.Error,kt=re.Function,ur=re.Math,wt=re.Object,Xi=re.RegExp,fa=re.String,on=re.TypeError,ha=j.prototype,Tc=kt.prototype,Ji=wt.prototype,ti=re["__core-js_shared__"],ri=Tc.toString,ot=Ji.hasOwnProperty,Qi=0,xi=function(){var i=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Oo=Ji.toString,jd=ri.call(wt),kc=Ut._,ds=Xi("^"+ri.call(ot).replace(xo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fs=as?re.Buffer:n,zi=re.Symbol,Eo=re.Uint8Array,Oc=fs?fs.allocUnsafe:n,pa=zc(wt.getPrototypeOf,wt),H1=wt.create,Ll=Ji.propertyIsEnumerable,ga=ha.splice,Io=zi?zi.isConcatSpreadable:n,eo=zi?zi.iterator:n,to=zi?zi.toStringTag:n,Ao=function(){try{var i=Vo(wt,"defineProperty");return i({},"",{}),i}catch{}}(),Kd=re.clearTimeout!==Ut.clearTimeout&&re.clearTimeout,Yd=Oe&&Oe.now!==Ut.Date.now&&Oe.now,Xd=re.setTimeout!==Ut.setTimeout&&re.setTimeout,va=ur.ceil,ba=ur.floor,ro=wt.getOwnPropertySymbols,hs=fs?fs.isBuffer:n,Ec=re.isFinite,Sl=ha.join,Ic=zc(wt.keys,wt),Gt=ur.max,Tr=ur.min,$o=Oe.now,ps=re.parseInt,no=ur.random,gs=ha.reverse,io=Vo(re,"DataView"),ma=Vo(re,"Map"),Ml=Vo(re,"Promise"),Po=Vo(re,"Set"),vs=Vo(re,"WeakMap"),Zn=Vo(wt,"create"),ni=vs&&new vs,ya={},Jd=Ft(io),Qd=Ft(ma),ef=Ft(Ml),tf=Ft(Po),rf=Ft(vs),kr=zi?zi.prototype:n,qt=kr?kr.valueOf:n,Or=kr?kr.toString:n;function M(i){if(nr(i)&&!ct(i)&&!(i instanceof vt)){if(i instanceof Yr)return i;if(ot.call(i,"__wrapped__"))return Vr(i)}return new Yr(i)}var ii=function(){function i(){}return function(u){if(!er(u))return{};if(H1)return H1(u);i.prototype=u;var f=new i;return i.prototype=n,f}}();function _l(){}function Yr(i,u){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}M.templateSettings={escape:wo,evaluate:Wi,interpolate:Xa,variable:"",imports:{_:M}},M.prototype=_l.prototype,M.prototype.constructor=M,Yr.prototype=ii(_l.prototype),Yr.prototype.constructor=Yr;function vt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=yt,this.__views__=[]}function nf(){var i=new vt(this.__wrapped__);return i.__actions__=yr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=yr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=yr(this.__views__),i}function of(){if(this.__filtered__){var i=new vt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function F1(){var i=this.__wrapped__.value(),u=this.__dir__,f=ct(i),b=u<0,L=f?i.length:0,_=Xl(0,L,this.__views__),P=_.start,N=_.end,Z=N-P,ie=b?N:P-1,oe=this.__iteratees__,fe=oe.length,Me=0,Be=Tr(Z,this.__takeCount__);if(!f||!b&&L==Z&&Be==Z)return Qc(i,this.__actions__);var Xe=[];e:for(;Z--&&Me<Be;){ie+=u;for(var ht=-1,Je=i[ie];++ht<fe;){var mt=oe[ht],xt=mt.iteratee,qn=mt.type,bn=xt(Je);if(qn==O)Je=bn;else if(!bn){if(qn==k)continue e;break e}}Xe[Me++]=Je}return Xe}vt.prototype=ii(_l.prototype),vt.prototype.constructor=vt;function oo(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function B1(){this.__data__=Zn?Zn(null):{},this.size=0}function af(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function V1(i){var u=this.__data__;if(Zn){var f=u[i];return f===z?n:f}return ot.call(u,i)?u[i]:n}function W1(i){var u=this.__data__;return Zn?u[i]!==n:ot.call(u,i)}function Ac(i,u){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Zn&&u===n?z:u,this}oo.prototype.clear=B1,oo.prototype.delete=af,oo.prototype.get=V1,oo.prototype.has=W1,oo.prototype.set=Ac;function oi(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function Z1(){this.__data__=[],this.size=0}function $c(i){var u=this.__data__,f=Do(u,i);if(f<0)return!1;var b=u.length-1;return f==b?u.pop():ga.call(u,f,1),--this.size,!0}function bs(i){var u=this.__data__,f=Do(u,i);return f<0?n:u[f][1]}function sf(i){return Do(this.__data__,i)>-1}function Tl(i,u){var f=this.__data__,b=Do(f,i);return b<0?(++this.size,f.push([i,u])):f[b][1]=u,this}oi.prototype.clear=Z1,oi.prototype.delete=$c,oi.prototype.get=bs,oi.prototype.has=sf,oi.prototype.set=Tl;function Qt(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function Pc(){this.size=0,this.__data__={hash:new oo,map:new(ma||oi),string:new oo}}function lf(i){var u=Yl(this,i).delete(i);return this.size-=u?1:0,u}function Dc(i){return Yl(this,i).get(i)}function hn(i){return Yl(this,i).has(i)}function St(i,u){var f=Yl(this,i),b=f.size;return f.set(i,u),this.size+=f.size==b?0:1,this}Qt.prototype.clear=Pc,Qt.prototype.delete=lf,Qt.prototype.get=Dc,Qt.prototype.has=hn,Qt.prototype.set=St;function Er(i){var u=-1,f=i==null?0:i.length;for(this.__data__=new Qt;++u<f;)this.add(i[u])}function ao(i){return this.__data__.set(i,z),this}function so(i){return this.__data__.has(i)}Er.prototype.add=Er.prototype.push=ao,Er.prototype.has=so;function zn(i){var u=this.__data__=new oi(i);this.size=u.size}function U1(){this.__data__=new oi,this.size=0}function Nc(i){var u=this.__data__,f=u.delete(i);return this.size=u.size,f}function uf(i){return this.__data__.get(i)}function G1(i){return this.__data__.has(i)}function ms(i,u){var f=this.__data__;if(f instanceof oi){var b=f.__data__;if(!ma||b.length<c-1)return b.push([i,u]),this.size=++f.size,this;f=this.__data__=new Qt(b)}return f.set(i,u),this.size=f.size,this}zn.prototype.clear=U1,zn.prototype.delete=Nc,zn.prototype.get=uf,zn.prototype.has=G1,zn.prototype.set=ms;function q1(i,u){var f=ct(i),b=!f&&As(i),L=!f&&!b&&Ra(i),_=!f&&!b&&!L&&Ql(i),P=f||b||L||_,N=P?To(i.length,fa):[],Z=N.length;for(var ie in i)(u||ot.call(i,ie))&&!(P&&(ie=="length"||L&&(ie=="offset"||ie=="parent")||_&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||m(ie,Z)))&&N.push(ie);return N}function kl(i){var u=i.length;return u?i[Fl(0,u-1)]:n}function lo(i,u){return Cr(yr(i),No(u,0,i.length))}function Rc(i){return Cr(yr(i))}function Ol(i,u,f){(f!==n&&!ki(i[u],f)||f===n&&!(u in i))&&ai(i,u,f)}function ys(i,u,f){var b=i[u];(!(ot.call(i,u)&&ki(b,f))||f===n&&!(u in i))&&ai(i,u,f)}function Do(i,u){for(var f=i.length;f--;)if(ki(i[f][0],u))return f;return-1}function j1(i,u,f,b){return pn(i,function(L,_,P){u(b,L,f(L),P)}),b}function K1(i,u){return i&&an(u,Zr(u),i)}function cf(i,u){return i&&an(u,Tn(u),i)}function ai(i,u,f){u=="__proto__"&&Ao?Ao(i,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[u]=f}function Y1(i,u){for(var f=-1,b=u.length,L=j(b),_=i==null;++f<b;)L[f]=_?n:Mf(i,u[f]);return L}function No(i,u,f){return i===i&&(f!==n&&(i=i<=f?i:f),u!==n&&(i=i>=u?i:u)),i}function Xr(i,u,f,b,L,_){var P,N=u&D,Z=u&B,ie=u&H;if(f&&(P=L?f(i,b,L,_):f(i)),P!==n)return P;if(!er(i))return i;var oe=ct(i);if(oe){if(P=s(i),!N)return yr(i,P)}else{var fe=Hr(i),Me=fe==Zt||fe==Ur;if(Ra(i))return su(i,N);if(fe==Et||fe==rt||Me&&!L){if(P=Z||Me?{}:a(i),!N)return Z?i0(i,cf(P,i)):mf(i,K1(P,i))}else{if(!Ht[fe])return L?i:{};P=d(i,fe,N)}}_||(_=new zn);var Be=_.get(i);if(Be)return Be;_.set(i,P),O2(i)?i.forEach(function(Je){P.add(Xr(Je,u,f,Je,i,_))}):T2(i)&&i.forEach(function(Je,mt){P.set(mt,Xr(Je,u,f,mt,i,_))});var Xe=ie?Z?Kl:Es:Z?Tn:Zr,ht=oe?n:Xe(i);return wn(ht||i,function(Je,mt){ht&&(mt=Je,Je=i[mt]),ys(P,mt,Xr(Je,u,f,mt,i,_))}),P}function Hc(i){var u=Zr(i);return function(f){return Fc(f,i,u)}}function Fc(i,u,f){var b=f.length;if(i==null)return!b;for(i=wt(i);b--;){var L=f[b],_=u[L],P=i[L];if(P===n&&!(L in i)||!_(P))return!1}return!0}function Bc(i,u,f){if(typeof i!="function")throw new on(h);return Nt(function(){i.apply(n,f)},u)}function Ca(i,u,f,b){var L=-1,_=ls,P=!0,N=i.length,Z=[],ie=u.length;if(!N)return Z;f&&(u=At(u,Kr(f))),b?(_=ca,P=!1):u.length>=c&&(_=nn,P=!1,u=new Er(u));e:for(;++L<N;){var oe=i[L],fe=f==null?oe:f(oe);if(oe=b||oe!==0?oe:0,P&&fe===fe){for(var Me=ie;Me--;)if(u[Me]===fe)continue e;Z.push(oe)}else _(u,fe,b)||Z.push(oe)}return Z}var pn=o0(gn),El=o0($l,!0);function Il(i,u){var f=!0;return pn(i,function(b,L,_){return f=!!u(b,L,_),f}),f}function Cs(i,u,f){for(var b=-1,L=i.length;++b<L;){var _=i[b],P=u(_);if(P!=null&&(N===n?P===P&&!Gn(P):f(P,N)))var N=P,Z=_}return Z}function X1(i,u,f,b){var L=i.length;for(f=ft(f),f<0&&(f=-f>L?0:L+f),b=b===n||b>L?L:ft(b),b<0&&(b+=L),b=f>b?0:I2(b);f<b;)i[f++]=u;return i}function J1(i,u){var f=[];return pn(i,function(b,L,_){u(b,L,_)&&f.push(b)}),f}function Ir(i,u,f,b,L){var _=-1,P=i.length;for(f||(f=v),L||(L=[]);++_<P;){var N=i[_];u>0&&f(N)?u>1?Ir(N,u-1,f,b,L):qi(L,N):b||(L[L.length]=N)}return L}var Al=a0(),br=a0(!0);function gn(i,u){return i&&Al(i,u,Zr)}function $l(i,u){return i&&br(i,u,Zr)}function ws(i,u){return Gi(u,function(f){return Uo(i[f])})}function uo(i,u){u=Un(u,i);for(var f=0,b=u.length;i!=null&&f<b;)i=i[$t(u[f++])];return f&&f==b?i:n}function Ro(i,u,f){var b=u(i);return ct(i)?b:qi(b,f(i))}function mr(i){return i==null?i===n?Y:bt:to&&to in wt(i)?Yt(i):Se(i)}function Pl(i,u){return i>u}function Vc(i,u){return i!=null&&ot.call(i,u)}function Wc(i,u){return i!=null&&u in wt(i)}function wa(i,u,f){return i>=Tr(u,f)&&i<Gt(u,f)}function Dl(i,u,f){for(var b=f?ca:ls,L=i[0].length,_=i.length,P=_,N=j(_),Z=1/0,ie=[];P--;){var oe=i[P];P&&u&&(oe=At(oe,Kr(u))),Z=Tr(oe.length,Z),N[P]=!f&&(u||L>=120&&oe.length>=120)?new Er(P&&oe):n}oe=i[0];var fe=-1,Me=N[0];e:for(;++fe<L&&ie.length<Z;){var Be=oe[fe],Xe=u?u(Be):Be;if(Be=f||Be!==0?Be:0,!(Me?nn(Me,Xe):b(ie,Xe,f))){for(P=_;--P;){var ht=N[P];if(!(ht?nn(ht,Xe):b(i[P],Xe,f)))continue e}Me&&Me.push(Xe),ie.push(Be)}}return ie}function Nl(i,u,f,b){return gn(i,function(L,_,P){u(b,f(L),_,P)}),b}function xa(i,u,f){u=Un(u,i),i=Pe(i,u);var b=i==null?i:i[$t(li(u))];return b==null?n:fn(b,i,f)}function za(i){return nr(i)&&mr(i)==rt}function df(i){return nr(i)&&mr(i)==Lr}function La(i){return nr(i)&&mr(i)==st}function Sa(i,u,f,b,L){return i===u?!0:i==null||u==null||!nr(i)&&!nr(u)?i!==i&&u!==u:Zc(i,u,f,b,Sa,L)}function Zc(i,u,f,b,L,_){var P=ct(i),N=ct(u),Z=P?Le:Hr(i),ie=N?Le:Hr(u);Z=Z==rt?Et:Z,ie=ie==rt?Et:ie;var oe=Z==Et,fe=ie==Et,Me=Z==ie;if(Me&&Ra(i)){if(!Ra(u))return!1;P=!0,oe=!1}if(Me&&!oe)return _||(_=new zn),P||Ql(i)?hu(i,u,f,b,L,_):h0(i,u,Z,f,b,L,_);if(!(f&J)){var Be=oe&&ot.call(i,"__wrapped__"),Xe=fe&&ot.call(u,"__wrapped__");if(Be||Xe){var ht=Be?i.value():i,Je=Xe?u.value():u;return _||(_=new zn),L(ht,Je,f,b,_)}}return Me?(_||(_=new zn),p0(i,u,f,b,L,_)):!1}function Uc(i){return nr(i)&&Hr(i)==tr}function Ho(i,u,f,b){var L=f.length,_=L,P=!b;if(i==null)return!_;for(i=wt(i);L--;){var N=f[L];if(P&&N[2]?N[1]!==i[N[0]]:!(N[0]in i))return!1}for(;++L<_;){N=f[L];var Z=N[0],ie=i[Z],oe=N[1];if(P&&N[2]){if(ie===n&&!(Z in i))return!1}else{var fe=new zn;if(b)var Me=b(ie,oe,Z,i,u,fe);if(!(Me===n?Sa(oe,ie,J|pe,b,fe):Me))return!1}}return!0}function Ma(i){if(!er(i)||V(i))return!1;var u=Uo(i)?ds:Hn;return u.test(Ft(i))}function xs(i){return nr(i)&&mr(i)==ar}function zs(i){return nr(i)&&Hr(i)==it}function Gc(i){return nr(i)&&w0(i.length)&&!!Vt[mr(i)]}function qc(i){return typeof i=="function"?i:i==null?kn:typeof i=="object"?ct(i)?Q1(i[0],i[1]):jc(i):W2(i)}function Rl(i){if(!K(i))return Ic(i);var u=[];for(var f in wt(i))ot.call(i,f)&&f!="constructor"&&u.push(f);return u}function co(i){if(!er(i))return ye(i);var u=K(i),f=[];for(var b in i)b=="constructor"&&(u||!ot.call(i,b))||f.push(b);return f}function fo(i,u){return i<u}function _a(i,u){var f=-1,b=_n(i)?j(i.length):[];return pn(i,function(L,_,P){b[++f]=u(L,_,P)}),b}function jc(i){var u=Pa(i);return u.length==1&&u[0][2]?he(u[0][0],u[0][1]):function(f){return f===i||Ho(f,i,u)}}function Q1(i,u){return C(i)&&ne(u)?he($t(i),u):function(f){var b=Mf(f,i);return b===n&&b===u?_f(f,i):Sa(u,b,J|pe)}}function Hl(i,u,f,b,L){i!==u&&Al(u,function(_,P){if(L||(L=new zn),er(_))ff(i,u,P,f,Hl,b,L);else{var N=b?b(It(i,P),_,P+"",i,u,L):n;N===n&&(N=_),Ol(i,P,N)}},Tn)}function ff(i,u,f,b,L,_,P){var N=It(i,f),Z=It(u,f),ie=P.get(Z);if(ie){Ol(i,f,ie);return}var oe=_?_(N,Z,f+"",i,u,P):n,fe=oe===n;if(fe){var Me=ct(Z),Be=!Me&&Ra(Z),Xe=!Me&&!Be&&Ql(Z);oe=Z,Me||Be||Xe?ct(N)?oe=N:fr(N)?oe=yr(N):Be?(fe=!1,oe=su(Z,!0)):Xe?(fe=!1,oe=t0(Z,!0)):oe=[]:vu(Z)||As(Z)?(oe=N,As(N)?oe=A2(N):(!er(N)||Uo(N))&&(oe=a(Z))):fe=!1}fe&&(P.set(Z,oe),L(oe,Z,b,_,P),P.delete(Z)),Ol(i,f,oe)}function Kc(i,u){var f=i.length;if(f)return u+=u<0?f:0,m(u,f)?i[u]:n}function Nr(i,u,f){u.length?u=At(u,function(_){return ct(_)?function(P){return uo(P,_.length===1?_[0]:_)}:_}):u=[kn];var b=-1;u=At(u,Kr(Ze()));var L=_a(i,function(_,P,N){var Z=At(u,function(ie){return ie(_)});return{criteria:Z,index:++b,value:_}});return yc(L,function(_,P){return r0(_,P,f)})}function Yc(i,u){return Xc(i,u,function(f,b){return _f(i,b)})}function Xc(i,u,f){for(var b=-1,L=u.length,_={};++b<L;){var P=u[b],N=uo(i,P);f(N,P)&&Li(_,Un(P,i),N)}return _}function hf(i){return function(u){return uo(u,i)}}function eu(i,u,f,b){var L=b?Ud:_o,_=-1,P=u.length,N=i;for(i===u&&(u=yr(u)),f&&(N=At(i,Kr(f)));++_<P;)for(var Z=0,ie=u[_],oe=f?f(ie):ie;(Z=L(N,oe,Z,b))>-1;)N!==i&&ga.call(N,Z,1),ga.call(i,Z,1);return i}function tu(i,u){for(var f=i?u.length:0,b=f-1;f--;){var L=u[f];if(f==b||L!==_){var _=L;m(L)?ga.call(i,L,1):Ms(i,L)}}return i}function Fl(i,u){return i+ba(no()*(u-i+1))}function Jc(i,u,f,b){for(var L=-1,_=Gt(va((u-i)/(f||1)),0),P=j(_);_--;)P[b?_:++L]=i,i+=f;return P}function ru(i,u){var f="";if(!i||u<1||u>Ae)return f;do u%2&&(f+=i),u=ba(u/2),u&&(i+=i);while(u);return f}function dt(i,u){return Fr(Fe(i,u,kn),i+"")}function pf(i){return kl(e1(i))}function ho(i,u){var f=e1(i);return Cr(f,No(u,0,f.length))}function Li(i,u,f,b){if(!er(i))return i;u=Un(u,i);for(var L=-1,_=u.length,P=_-1,N=i;N!=null&&++L<_;){var Z=$t(u[L]),ie=f;if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return i;if(L!=P){var oe=N[Z];ie=b?b(oe,Z,N):n,ie===n&&(ie=er(oe)?oe:m(u[L+1])?[]:{})}ys(N,Z,ie),N=N[Z]}return i}var Ls=ni?function(i,u){return ni.set(i,u),i}:kn,Ss=Ao?function(i,u){return Ao(i,"toString",{configurable:!0,enumerable:!1,value:kf(u),writable:!0})}:kn;function Si(i){return Cr(e1(i))}function Ln(i,u,f){var b=-1,L=i.length;u<0&&(u=-u>L?0:L+u),f=f>L?L:f,f<0&&(f+=L),L=u>f?0:f-u>>>0,u>>>=0;for(var _=j(L);++b<L;)_[b]=i[b+u];return _}function gf(i,u){var f;return pn(i,function(b,L,_){return f=u(b,L,_),!f}),!!f}function Mi(i,u,f){var b=0,L=i==null?b:i.length;if(typeof u=="number"&&u===u&&L<=Tt){for(;b<L;){var _=b+L>>>1,P=i[_];P!==null&&!Gn(P)&&(f?P<=u:P<u)?b=_+1:L=_}return L}return Bl(i,u,kn,f)}function Bl(i,u,f,b){var L=0,_=i==null?0:i.length;if(_===0)return 0;u=f(u);for(var P=u!==u,N=u===null,Z=Gn(u),ie=u===n;L<_;){var oe=ba((L+_)/2),fe=f(i[oe]),Me=fe!==n,Be=fe===null,Xe=fe===fe,ht=Gn(fe);if(P)var Je=b||Xe;else ie?Je=Xe&&(b||Me):N?Je=Xe&&Me&&(b||!Be):Z?Je=Xe&&Me&&!Be&&(b||!ht):Be||ht?Je=!1:Je=b?fe<=u:fe<u;Je?L=oe+1:_=oe}return Tr(_,or)}function nu(i,u){for(var f=-1,b=i.length,L=0,_=[];++f<b;){var P=i[f],N=u?u(P):P;if(!f||!ki(N,Z)){var Z=N;_[L++]=P===0?0:P}}return _}function iu(i){return typeof i=="number"?i:Gn(i)?pt:+i}function Rr(i){if(typeof i=="string")return i;if(ct(i))return At(i,Rr)+"";if(Gn(i))return Or?Or.call(i):"";var u=i+"";return u=="0"&&1/i==-ce?"-0":u}function vn(i,u,f){var b=-1,L=ls,_=i.length,P=!0,N=[],Z=N;if(f)P=!1,L=ca;else if(_>=c){var ie=u?null:Os(i);if(ie)return Cl(ie);P=!1,L=nn,Z=new Er}else Z=u?[]:N;e:for(;++b<_;){var oe=i[b],fe=u?u(oe):oe;if(oe=f||oe!==0?oe:0,P&&fe===fe){for(var Me=Z.length;Me--;)if(Z[Me]===fe)continue e;u&&Z.push(fe),N.push(oe)}else L(Z,fe,f)||(Z!==N&&Z.push(fe),N.push(oe))}return N}function Ms(i,u){return u=Un(u,i),i=Pe(i,u),i==null||delete i[$t(li(u))]}function Vl(i,u,f,b){return Li(i,u,f(uo(i,u)),b)}function Ta(i,u,f,b){for(var L=i.length,_=b?L:-1;(b?_--:++_<L)&&u(i[_],_,i););return f?Ln(i,b?0:_,b?_+1:L):Ln(i,b?_+1:0,b?L:_)}function Qc(i,u){var f=i;return f instanceof vt&&(f=f.value()),I1(u,function(b,L){return L.func.apply(L.thisArg,qi([b],L.args))},f)}function Fo(i,u,f){var b=i.length;if(b<2)return b?vn(i[0]):[];for(var L=-1,_=j(b);++L<b;)for(var P=i[L],N=-1;++N<b;)N!=L&&(_[L]=Ca(_[L]||P,i[N],u,f));return vn(Ir(_,1),u,f)}function ou(i,u,f){for(var b=-1,L=i.length,_=u.length,P={};++b<L;){var N=b<_?u[b]:n;f(P,i[b],N)}return P}function au(i){return fr(i)?i:[]}function Wl(i){return typeof i=="function"?i:kn}function Un(i,u){return ct(i)?i:C(i,u)?[i]:cr(Rt(i))}var vf=dt;function po(i,u,f){var b=i.length;return f=f===n?b:f,!u&&f>=b?i:Ln(i,u,f)}var ka=Kd||function(i){return Ut.clearTimeout(i)};function su(i,u){if(u)return i.slice();var f=i.length,b=Oc?Oc(f):new i.constructor(f);return i.copy(b),b}function Zl(i){var u=new i.constructor(i.byteLength);return new Eo(u).set(new Eo(i)),u}function bf(i,u){var f=u?Zl(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function lu(i){var u=new i.constructor(i.source,Lo.exec(i));return u.lastIndex=i.lastIndex,u}function e0(i){return qt?wt(qt.call(i)):{}}function t0(i,u){var f=u?Zl(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function uu(i,u){if(i!==u){var f=i!==n,b=i===null,L=i===i,_=Gn(i),P=u!==n,N=u===null,Z=u===u,ie=Gn(u);if(!N&&!ie&&!_&&i>u||_&&P&&Z&&!N&&!ie||b&&P&&Z||!f&&Z||!L)return 1;if(!b&&!_&&!ie&&i<u||ie&&f&&L&&!b&&!_||N&&f&&L||!P&&L||!Z)return-1}return 0}function r0(i,u,f){for(var b=-1,L=i.criteria,_=u.criteria,P=L.length,N=f.length;++b<P;){var Z=uu(L[b],_[b]);if(Z){if(b>=N)return Z;var ie=f[b];return Z*(ie=="desc"?-1:1)}}return i.index-u.index}function n0(i,u,f,b){for(var L=-1,_=i.length,P=f.length,N=-1,Z=u.length,ie=Gt(_-P,0),oe=j(Z+ie),fe=!b;++N<Z;)oe[N]=u[N];for(;++L<P;)(fe||L<_)&&(oe[f[L]]=i[L]);for(;ie--;)oe[N++]=i[L++];return oe}function Ul(i,u,f,b){for(var L=-1,_=i.length,P=-1,N=f.length,Z=-1,ie=u.length,oe=Gt(_-N,0),fe=j(oe+ie),Me=!b;++L<oe;)fe[L]=i[L];for(var Be=L;++Z<ie;)fe[Be+Z]=u[Z];for(;++P<N;)(Me||L<_)&&(fe[Be+f[P]]=i[L++]);return fe}function yr(i,u){var f=-1,b=i.length;for(u||(u=j(b));++f<b;)u[f]=i[f];return u}function an(i,u,f,b){var L=!f;f||(f={});for(var _=-1,P=u.length;++_<P;){var N=u[_],Z=b?b(f[N],i[N],N,f,i):n;Z===n&&(Z=i[N]),L?ai(f,N,Z):ys(f,N,Z)}return f}function mf(i,u){return an(i,pu(i),u)}function i0(i,u){return an(i,g0(i),u)}function Gl(i,u){return function(f,b){var L=ct(f)?Bd:j1,_=u?u():{};return L(f,i,Ze(b,2),_)}}function Oa(i){return dt(function(u,f){var b=-1,L=f.length,_=L>1?f[L-1]:n,P=L>2?f[2]:n;for(_=i.length>3&&typeof _=="function"?(L--,_):n,P&&y(f[0],f[1],P)&&(_=L<3?n:_,L=1),u=wt(u);++b<L;){var N=f[b];N&&i(u,N,b,_)}return u})}function o0(i,u){return function(f,b){if(f==null)return f;if(!_n(f))return i(f,b);for(var L=f.length,_=u?L:-1,P=wt(f);(u?_--:++_<L)&&b(P[_],_,P)!==!1;);return f}}function a0(i){return function(u,f,b){for(var L=-1,_=wt(u),P=b(u),N=P.length;N--;){var Z=P[i?N:++L];if(f(_[Z],Z,_)===!1)break}return u}}function s0(i,u,f){var b=u&ge,L=Ia(i);function _(){var P=this&&this!==Ut&&this instanceof _?L:i;return P.apply(b?f:this,arguments)}return _}function l0(i){return function(u){u=Rt(u);var f=Vn(u)?xn(u):n,b=f?f[0]:u.charAt(0),L=f?po(f,1).join(""):u.slice(1);return b[i]()+L}}function Ea(i){return function(u){return I1(B2(F2(u).replace(M1,"")),i,"")}}function Ia(i){return function(){var u=arguments;switch(u.length){case 0:return new i;case 1:return new i(u[0]);case 2:return new i(u[0],u[1]);case 3:return new i(u[0],u[1],u[2]);case 4:return new i(u[0],u[1],u[2],u[3]);case 5:return new i(u[0],u[1],u[2],u[3],u[4]);case 6:return new i(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new i(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=ii(i.prototype),b=i.apply(f,u);return er(b)?b:f}}function cu(i,u,f){var b=Ia(i);function L(){for(var _=arguments.length,P=j(_),N=_,Z=$a(L);N--;)P[N]=arguments[N];var ie=_<3&&P[0]!==Z&&P[_-1]!==Z?[]:Ki(P,Z);if(_-=ie.length,_<f)return d0(i,u,_s,L.placeholder,n,P,ie,n,n,f-_);var oe=this&&this!==Ut&&this instanceof L?b:i;return fn(oe,this,P)}return L}function du(i){return function(u,f,b){var L=wt(u);if(!_n(u)){var _=Ze(f,3);u=Zr(u),f=function(N){return _(L[N],N,L)}}var P=i(u,f,b);return P>-1?L[_?u[P]:P]:n}}function u0(i){return _i(function(u){var f=u.length,b=f,L=Yr.prototype.thru;for(i&&u.reverse();b--;){var _=u[b];if(typeof _!="function")throw new on(h);if(L&&!P&&Is(_)=="wrapper")var P=new Yr([],!0)}for(b=P?b:f;++b<f;){_=u[b];var N=Is(_),Z=N=="wrapper"?Mt(_):n;Z&&I(Z[0])&&Z[1]==(De|be|ke|je)&&!Z[4].length&&Z[9]==1?P=P[Is(Z[0])].apply(P,Z[3]):P=_.length==1&&I(_)?P[N]():P.thru(_)}return function(){var ie=arguments,oe=ie[0];if(P&&ie.length==1&&ct(oe))return P.plant(oe).value();for(var fe=0,Me=f?u[fe].apply(this,ie):oe;++fe<f;)Me=u[fe].call(this,Me);return Me}})}function _s(i,u,f,b,L,_,P,N,Z,ie){var oe=u&De,fe=u&ge,Me=u&Te,Be=u&(be|ve),Xe=u&Ye,ht=Me?n:Ia(i);function Je(){for(var mt=arguments.length,xt=j(mt),qn=mt;qn--;)xt[qn]=arguments[qn];if(Be)var bn=$a(Je),jn=Gd(xt,bn);if(b&&(xt=n0(xt,b,L,Be)),_&&(xt=Ul(xt,_,P,Be)),mt-=jn,Be&&mt<ie){var hr=Ki(xt,bn);return d0(i,u,_s,Je.placeholder,f,xt,hr,N,Z,ie-mt)}var Oi=fe?f:this,qo=Me?Oi[i]:i;return mt=xt.length,N?xt=ut(xt,N):Xe&&mt>1&&xt.reverse(),oe&&Z<mt&&(xt.length=Z),this&&this!==Ut&&this instanceof Je&&(qo=ht||Ia(qo)),qo.apply(Oi,xt)}return Je}function Bo(i,u){return function(f,b){return Nl(f,i,u(b),{})}}function Ts(i,u){return function(f,b){var L;if(f===n&&b===n)return u;if(f!==n&&(L=f),b!==n){if(L===n)return b;typeof f=="string"||typeof b=="string"?(f=Rr(f),b=Rr(b)):(f=iu(f),b=iu(b)),L=i(f,b)}return L}}function Aa(i){return _i(function(u){return u=At(u,Kr(Ze())),dt(function(f){var b=this;return i(u,function(L){return fn(L,b,f)})})})}function ql(i,u){u=u===n?" ":Rr(u);var f=u.length;if(f<2)return f?ru(u,i):u;var b=ru(u,va(i/ko(u)));return Vn(u)?po(xn(b),0,i).join(""):b.slice(0,i)}function yf(i,u,f,b){var L=u&ge,_=Ia(i);function P(){for(var N=-1,Z=arguments.length,ie=-1,oe=b.length,fe=j(oe+Z),Me=this&&this!==Ut&&this instanceof P?_:i;++ie<oe;)fe[ie]=b[ie];for(;Z--;)fe[ie++]=arguments[++N];return fn(Me,L?f:this,fe)}return P}function c0(i){return function(u,f,b){return b&&typeof b!="number"&&y(u,f,b)&&(f=b=n),u=Go(u),f===n?(f=u,u=0):f=Go(f),b=b===n?u<f?1:-1:Go(b),Jc(u,f,b,i)}}function Dt(i){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=ui(u),f=ui(f)),i(u,f)}}function d0(i,u,f,b,L,_,P,N,Z,ie){var oe=u&be,fe=oe?P:n,Me=oe?n:P,Be=oe?_:n,Xe=oe?n:_;u|=oe?ke:$e,u&=~(oe?$e:ke),u&Ie||(u&=~(ge|Te));var ht=[i,u,L,Be,fe,Xe,Me,N,Z,ie],Je=f.apply(n,ht);return I(i)&&rr(Je,ht),Je.placeholder=b,Br(Je,i,u)}function ks(i){var u=ur[i];return function(f,b){if(f=ui(f),b=b==null?0:Tr(ft(b),292),b&&Ec(f)){var L=(Rt(f)+"e").split("e"),_=u(L[0]+"e"+(+L[1]+b));return L=(Rt(_)+"e").split("e"),+(L[0]+"e"+(+L[1]-b))}return u(f)}}var Os=Po&&1/Cl(new Po([,-0]))[1]==ce?function(i){return new Po(i)}:If;function Sn(i){return function(u){var f=Hr(u);return f==tr?yl(u):f==it?Lc(u):wi(u,i(u))}}function Mn(i,u,f,b,L,_,P,N){var Z=u&Te;if(!Z&&typeof i!="function")throw new on(h);var ie=b?b.length:0;if(ie||(u&=~(ke|$e),b=L=n),P=P===n?P:Gt(ft(P),0),N=N===n?N:ft(N),ie-=L?L.length:0,u&$e){var oe=b,fe=L;b=L=n}var Me=Z?n:Mt(i),Be=[i,u,f,b,L,oe,fe,_,P,N];if(Me&&xe(Be,Me),i=Be[0],u=Be[1],f=Be[2],b=Be[3],L=Be[4],N=Be[9]=Be[9]===n?Z?0:i.length:Gt(Be[9]-ie,0),!N&&u&(be|ve)&&(u&=~(be|ve)),!u||u==ge)var Xe=s0(i,u,f);else u==be||u==ve?Xe=cu(i,u,N):(u==ke||u==(ge|ke))&&!L.length?Xe=yf(i,u,f,b):Xe=_s.apply(n,Be);var ht=Me?Ls:rr;return Br(ht(Xe,Be),i,u)}function jl(i,u,f,b){return i===n||ki(i,Ji[f])&&!ot.call(b,f)?u:i}function fu(i,u,f,b,L,_){return er(i)&&er(u)&&(_.set(u,i),Hl(i,u,n,fu,_),_.delete(u)),i}function f0(i){return vu(i)?n:i}function hu(i,u,f,b,L,_){var P=f&J,N=i.length,Z=u.length;if(N!=Z&&!(P&&Z>N))return!1;var ie=_.get(i),oe=_.get(u);if(ie&&oe)return ie==u&&oe==i;var fe=-1,Me=!0,Be=f&pe?new Er:n;for(_.set(i,u),_.set(u,i);++fe<N;){var Xe=i[fe],ht=u[fe];if(b)var Je=P?b(ht,Xe,fe,u,i,_):b(Xe,ht,fe,i,u,_);if(Je!==n){if(Je)continue;Me=!1;break}if(Be){if(!Mo(u,function(mt,xt){if(!nn(Be,xt)&&(Xe===mt||L(Xe,mt,f,b,_)))return Be.push(xt)})){Me=!1;break}}else if(!(Xe===ht||L(Xe,ht,f,b,_))){Me=!1;break}}return _.delete(i),_.delete(u),Me}function h0(i,u,f,b,L,_,P){switch(f){case Pn:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Lr:return!(i.byteLength!=u.byteLength||!_(new Eo(i),new Eo(u)));case Ge:case st:case Qe:return ki(+i,+u);case Ue:return i.name==u.name&&i.message==u.message;case ar:case U:return i==u+"";case tr:var N=yl;case it:var Z=b&J;if(N||(N=Cl),i.size!=u.size&&!Z)return!1;var ie=P.get(i);if(ie)return ie==u;b|=pe,P.set(i,u);var oe=hu(N(i),N(u),b,L,_,P);return P.delete(i),oe;case se:if(qt)return qt.call(i)==qt.call(u)}return!1}function p0(i,u,f,b,L,_){var P=f&J,N=Es(i),Z=N.length,ie=Es(u),oe=ie.length;if(Z!=oe&&!P)return!1;for(var fe=Z;fe--;){var Me=N[fe];if(!(P?Me in u:ot.call(u,Me)))return!1}var Be=_.get(i),Xe=_.get(u);if(Be&&Xe)return Be==u&&Xe==i;var ht=!0;_.set(i,u),_.set(u,i);for(var Je=P;++fe<Z;){Me=N[fe];var mt=i[Me],xt=u[Me];if(b)var qn=P?b(xt,mt,Me,u,i,_):b(mt,xt,Me,i,u,_);if(!(qn===n?mt===xt||L(mt,xt,f,b,_):qn)){ht=!1;break}Je||(Je=Me=="constructor")}if(ht&&!Je){var bn=i.constructor,jn=u.constructor;bn!=jn&&"constructor"in i&&"constructor"in u&&!(typeof bn=="function"&&bn instanceof bn&&typeof jn=="function"&&jn instanceof jn)&&(ht=!1)}return _.delete(i),_.delete(u),ht}function _i(i){return Fr(Fe(i,n,h2),i+"")}function Es(i){return Ro(i,Zr,pu)}function Kl(i){return Ro(i,Tn,g0)}var Mt=ni?function(i){return ni.get(i)}:If;function Is(i){for(var u=i.name+"",f=ya[u],b=ot.call(ya,u)?f.length:0;b--;){var L=f[b],_=L.func;if(_==null||_==i)return L.name}return u}function $a(i){var u=ot.call(M,"placeholder")?M:i;return u.placeholder}function Ze(){var i=M.iteratee||Of;return i=i===Of?qc:i,arguments.length?i(arguments[0],arguments[1]):i}function Yl(i,u){var f=i.__data__;return T(u)?f[typeof u=="string"?"string":"hash"]:f.map}function Pa(i){for(var u=Zr(i),f=u.length;f--;){var b=u[f],L=i[b];u[f]=[b,L,ne(L)]}return u}function Vo(i,u){var f=R1(i,u);return Ma(f)?f:n}function Yt(i){var u=ot.call(i,to),f=i[to];try{i[to]=n;var b=!0}catch{}var L=Oo.call(i);return b&&(u?i[to]=f:delete i[to]),L}var pu=ro?function(i){return i==null?[]:(i=wt(i),Gi(ro(i),function(u){return Ll.call(i,u)}))}:Af,g0=ro?function(i){for(var u=[];i;)qi(u,pu(i)),i=pa(i);return u}:Af,Hr=mr;(io&&Hr(new io(new ArrayBuffer(1)))!=Pn||ma&&Hr(new ma)!=tr||Ml&&Hr(Ml.resolve())!=Pr||Po&&Hr(new Po)!=it||vs&&Hr(new vs)!=tt)&&(Hr=function(i){var u=mr(i),f=u==Et?i.constructor:n,b=f?Ft(f):"";if(b)switch(b){case Jd:return Pn;case Qd:return tr;case ef:return Pr;case tf:return it;case rf:return tt}return u});function Xl(i,u,f){for(var b=-1,L=f.length;++b<L;){var _=f[b],P=_.size;switch(_.type){case"drop":i+=P;break;case"dropRight":u-=P;break;case"take":u=Tr(u,i+P);break;case"takeRight":i=Gt(i,u-P);break}}return{start:i,end:u}}function e(i){var u=i.match(Qa);return u?u[1].split(Zi):[]}function r(i,u,f){u=Un(u,i);for(var b=-1,L=u.length,_=!1;++b<L;){var P=$t(u[b]);if(!(_=i!=null&&f(i,P)))break;i=i[P]}return _||++b!=L?_:(L=i==null?0:i.length,!!L&&w0(L)&&m(P,L)&&(ct(i)||As(i)))}function s(i){var u=i.length,f=new i.constructor(u);return u&&typeof i[0]=="string"&&ot.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function a(i){return typeof i.constructor=="function"&&!K(i)?ii(pa(i)):{}}function d(i,u,f){var b=i.constructor;switch(u){case Lr:return Zl(i);case Ge:case st:return new b(+i);case Pn:return bf(i,f);case Gr:case Wt:case mi:case Dr:case Dn:case Ve:case Vi:case Sr:case qe:return t0(i,f);case tr:return new b;case Qe:case U:return new b(i);case ar:return lu(i);case it:return new b;case se:return e0(i)}}function p(i,u){var f=u.length;if(!f)return i;var b=f-1;return u[b]=(f>1?"& ":"")+u[b],u=u.join(f>2?", ":" "),i.replace(ol,`{
1689
+ */j0.exports;(function(o,t){(function(){var n,l="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",w="Invalid `variable` option passed into `_.template`",z="__lodash_hash_undefined__",S=500,E="__lodash_placeholder__",D=1,B=2,H=4,J=1,pe=2,ge=1,Te=2,Ie=4,be=8,ve=16,ke=32,$e=64,De=128,je=256,Ye=512,Ce=30,ue="...",Q=800,$=16,k=1,O=2,X=3,ce=1/0,Ae=9007199254740991,et=17976931348623157e292,pt=0/0,yt=4294967295,or=yt-1,Tt=yt>>>1,zt=[["ary",De],["bind",ge],["bindKey",Te],["curry",be],["curryRight",ve],["flip",Ye],["partial",ke],["partialRight",$e],["rearg",je]],rt="[object Arguments]",Le="[object Array]",Ne="[object AsyncFunction]",Ge="[object Boolean]",st="[object Date]",lt="[object DOMException]",Ue="[object Error]",Zt="[object Function]",Gr="[object GeneratorFunction]",tr="[object Map]",Qe="[object Number]",bt="[object Null]",Et="[object Object]",Pr="[object Promise]",en="[object Proxy]",ar="[object RegExp]",it="[object Set]",U="[object String]",se="[object Symbol]",Y="[object Undefined]",tt="[object WeakMap]",sr="[object WeakSet]",Lr="[object ArrayBuffer]",Pn="[object DataView]",qr="[object Float32Array]",Wt="[object Float64Array]",mi="[object Int8Array]",Dr="[object Int16Array]",Dn="[object Int32Array]",Ve="[object Uint8Array]",Vi="[object Uint8ClampedArray]",Sr="[object Uint16Array]",qe="[object Uint32Array]",Jt=/\b__p \+= '';/g,oa=/\b(__p \+=) '' \+/g,gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Nn=/&(?:amp|lt|gt|quot|#39);/g,vr=/[&<>"']/g,aa=RegExp(Nn.source),ln=RegExp(vr.source),wo=/<%-([\s\S]+?)%>/g,Wi=/<%([\s\S]+?)%>/g,Xa=/<%=([\s\S]+?)%>/g,Ja=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jr=/^\w*$/,nl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xo=/[\\^$.*+?()[\]{}|]/g,Xn=RegExp(xo.source),zo=/^\s+/,il=/\s/,ol=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qa=/\{\n\/\* \[wrapped with (.+)\] \*/,Zi=/,? & /,Cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,un=/[()=,{}\[\]\/\s]/,al=/\\(\\)?/g,yi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lo=/\w*$/,sa=/^[-+]0x[0-9a-f]+$/i,Rn=/^0b[01]+$/i,Hn=/^\[object .+?Constructor\]$/,cn=/^0o[0-7]+$/i,es=/^(?:0|[1-9]\d*)$/,ts=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,dn="\\ud800-\\udfff",rs="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",Lt="\\u20d0-\\u20ff",Fn=rs+tn+Lt,Ui="\\u2700-\\u27bf",la="a-z\\xdf-\\xf6\\xf8-\\xff",ae="\\xac\\xb1\\xd7\\xf7",x="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",A="\\u2000-\\u206f",te=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",de="A-Z\\xc0-\\xd6\\xd8-\\xde",Ke="\\ufe0e\\ufe0f",gt=ae+x+A+te,we="['’]",Mr="["+dn+"]",rn="["+gt+"]",Ci="["+Fn+"]",Bn="\\d+",nc="["+Ui+"]",z1="["+la+"]",ua="[^"+dn+gt+Bn+Ui+la+de+"]",ns="\\ud83c[\\udffb-\\udfff]",ic="(?:"+Ci+"|"+ns+")",sl="[^"+dn+"]",ll="(?:\\ud83c[\\udde6-\\uddff]){2}",ul="[\\ud800-\\udbff][\\udc00-\\udfff]",So="["+de+"]",L1="\\u200d",oc="(?:"+z1+"|"+ua+")",$d="(?:"+So+"|"+ua+")",S1="(?:"+we+"(?:d|ll|m|re|s|t|ve))?",Jn="(?:"+we+"(?:D|LL|M|RE|S|T|VE))?",ac=ic+"?",sc="["+Ke+"]?",cl="(?:"+L1+"(?:"+[sl,ll,ul].join("|")+")"+sc+ac+")*",is="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lc=sc+ac+cl,Dd="(?:"+[nc,ll,ul].join("|")+")"+lc,Nd="(?:"+[sl+Ci+"?",Ci,ll,ul,Mr].join("|")+")",M1=RegExp(we,"g"),uc=RegExp(Ci,"g"),_1=RegExp(ns+"(?="+ns+")|"+Nd+lc,"g"),cc=RegExp([So+"?"+z1+"+"+S1+"(?="+[rn,So,"$"].join("|")+")",$d+"+"+Jn+"(?="+[rn,So+oc,"$"].join("|")+")",So+"?"+oc+"+"+S1,So+"+"+Jn,Pd,is,Bn,Dd].join("|"),"g"),dc=RegExp("["+L1+dn+Fn+Ke+"]"),dl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],T1=-1,Vt={};Vt[qr]=Vt[Wt]=Vt[mi]=Vt[Dr]=Vt[Dn]=Vt[Ve]=Vt[Vi]=Vt[Sr]=Vt[qe]=!0,Vt[rt]=Vt[Le]=Vt[Lr]=Vt[Ge]=Vt[Pn]=Vt[st]=Vt[Ue]=Vt[Zt]=Vt[tr]=Vt[Qe]=Vt[Et]=Vt[ar]=Vt[it]=Vt[U]=Vt[tt]=!1;var Ht={};Ht[rt]=Ht[Le]=Ht[Lr]=Ht[Pn]=Ht[Ge]=Ht[st]=Ht[qr]=Ht[Wt]=Ht[mi]=Ht[Dr]=Ht[Dn]=Ht[tr]=Ht[Qe]=Ht[Et]=Ht[ar]=Ht[it]=Ht[U]=Ht[se]=Ht[Ve]=Ht[Vi]=Ht[Sr]=Ht[qe]=!0,Ht[Ue]=Ht[Zt]=Ht[tt]=!1;var hl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Rd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fc={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Qn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Hd=parseFloat,Fd=parseInt,pl=typeof o1=="object"&&o1&&o1.Object===Object&&o1,hc=typeof self=="object"&&self&&self.Object===Object&&self,Ut=pl||hc||Function("return this")(),os=t&&!t.nodeType&&t,Kr=os&&!0&&o&&!o.nodeType&&o,as=Kr&&Kr.exports===os,ss=as&&pl.process,_r=function(){try{var W=Kr&&Kr.require&&Kr.require("util").types;return W||ss&&ss.binding&&ss.binding("util")}catch{}}(),pc=_r&&_r.isArrayBuffer,gc=_r&&_r.isDate,vc=_r&&_r.isMap,bc=_r&&_r.isRegExp,k1=_r&&_r.isSet,O1=_r&&_r.isTypedArray;function fn(W,re,j){switch(j.length){case 0:return W.call(re);case 1:return W.call(re,j[0]);case 2:return W.call(re,j[0],j[1]);case 3:return W.call(re,j[0],j[1],j[2])}return W.apply(re,j)}function Bd(W,re,j,Oe){for(var nt=-1,kt=W==null?0:W.length;++nt<kt;){var ur=W[nt];re(Oe,ur,j(ur),W)}return Oe}function wn(W,re){for(var j=-1,Oe=W==null?0:W.length;++j<Oe&&re(W[j],j,W)!==!1;);return W}function Vd(W,re){for(var j=W==null?0:W.length;j--&&re(W[j],j,W)!==!1;);return W}function E1(W,re){for(var j=-1,Oe=W==null?0:W.length;++j<Oe;)if(!re(W[j],j,W))return!1;return!0}function Gi(W,re){for(var j=-1,Oe=W==null?0:W.length,nt=0,kt=[];++j<Oe;){var ur=W[j];re(ur,j,W)&&(kt[nt++]=ur)}return kt}function ls(W,re){var j=W==null?0:W.length;return!!j&&_o(W,re,0)>-1}function ca(W,re,j){for(var Oe=-1,nt=W==null?0:W.length;++Oe<nt;)if(j(re,W[Oe]))return!0;return!1}function At(W,re){for(var j=-1,Oe=W==null?0:W.length,nt=Array(Oe);++j<Oe;)nt[j]=re(W[j],j,W);return nt}function qi(W,re){for(var j=-1,Oe=re.length,nt=W.length;++j<Oe;)W[nt+j]=re[j];return W}function I1(W,re,j,Oe){var nt=-1,kt=W==null?0:W.length;for(Oe&&kt&&(j=W[++nt]);++nt<kt;)j=re(j,W[nt],nt,W);return j}function Wd(W,re,j,Oe){var nt=W==null?0:W.length;for(Oe&&nt&&(j=W[--nt]);nt--;)j=re(j,W[nt],nt,W);return j}function Mo(W,re){for(var j=-1,Oe=W==null?0:W.length;++j<Oe;)if(re(W[j],j,W))return!0;return!1}var lr=$1("length");function Zd(W){return W.split("")}function mc(W){return W.match(Cn)||[]}function da(W,re,j){var Oe;return j(W,function(nt,kt,ur){if(re(nt,kt,ur))return Oe=kt,!1}),Oe}function gl(W,re,j,Oe){for(var nt=W.length,kt=j+(Oe?1:-1);Oe?kt--:++kt<nt;)if(re(W[kt],kt,W))return kt;return-1}function _o(W,re,j){return re===re?Sc(W,re,j):gl(W,vl,j)}function Ud(W,re,j,Oe){for(var nt=j-1,kt=W.length;++nt<kt;)if(Oe(W[nt],re))return nt;return-1}function vl(W){return W!==W}function A1(W,re){var j=W==null?0:W.length;return j?N1(W,re)/j:pt}function $1(W){return function(re){return re==null?n:re[W]}}function P1(W){return function(re){return W==null?n:W[re]}}function D1(W,re,j,Oe,nt){return nt(W,function(kt,ur,wt){j=Oe?(Oe=!1,kt):re(j,kt,ur,wt)}),j}function yc(W,re){var j=W.length;for(W.sort(re);j--;)W[j]=W[j].value;return W}function N1(W,re){for(var j,Oe=-1,nt=W.length;++Oe<nt;){var kt=re(W[Oe]);kt!==n&&(j=j===n?kt:j+kt)}return j}function To(W,re){for(var j=-1,Oe=Array(W);++j<W;)Oe[j]=re(j);return Oe}function wi(W,re){return At(re,function(j){return[j,W[j]]})}function us(W){return W&&W.slice(0,wl(W)+1).replace(zo,"")}function Yr(W){return function(re){return W(re)}}function bl(W,re){return At(re,function(j){return W[j]})}function nn(W,re){return W.has(re)}function ji(W,re){for(var j=-1,Oe=W.length;++j<Oe&&_o(re,W[j],0)>-1;);return j}function ml(W,re){for(var j=W.length;j--&&_o(re,W[j],0)>-1;);return j}function Gd(W,re){for(var j=W.length,Oe=0;j--;)W[j]===re&&++Oe;return Oe}var Cc=P1(hl),qd=P1(Rd);function wc(W){return"\\"+Qn[W]}function R1(W,re){return W==null?n:W[re]}function Vn(W){return dc.test(W)}function ei(W){return dl.test(W)}function xc(W){for(var re,j=[];!(re=W.next()).done;)j.push(re.value);return j}function yl(W){var re=-1,j=Array(W.size);return W.forEach(function(Oe,nt){j[++re]=[nt,Oe]}),j}function zc(W,re){return function(j){return W(re(j))}}function Ki(W,re){for(var j=-1,Oe=W.length,nt=0,kt=[];++j<Oe;){var ur=W[j];(ur===re||ur===E)&&(W[j]=E,kt[nt++]=j)}return kt}function Cl(W){var re=-1,j=Array(W.size);return W.forEach(function(Oe){j[++re]=Oe}),j}function Lc(W){var re=-1,j=Array(W.size);return W.forEach(function(Oe){j[++re]=[Oe,Oe]}),j}function Sc(W,re,j){for(var Oe=j-1,nt=W.length;++Oe<nt;)if(W[Oe]===re)return Oe;return-1}function cs(W,re,j){for(var Oe=j+1;Oe--;)if(W[Oe]===re)return Oe;return Oe}function ko(W){return Vn(W)?Mc(W):lr(W)}function xn(W){return Vn(W)?zl(W):Zd(W)}function wl(W){for(var re=W.length;re--&&il.test(W.charAt(re)););return re}var xl=P1(fc);function Mc(W){for(var re=_1.lastIndex=0;_1.test(W);)++re;return re}function zl(W){return W.match(_1)||[]}function Wn(W){return W.match(cc)||[]}var _c=function W(re){re=re==null?Ut:Yi.defaults(Ut.Object(),re,Yi.pick(Ut,fl));var j=re.Array,Oe=re.Date,nt=re.Error,kt=re.Function,ur=re.Math,wt=re.Object,Xi=re.RegExp,fa=re.String,on=re.TypeError,ha=j.prototype,Tc=kt.prototype,Ji=wt.prototype,ti=re["__core-js_shared__"],ri=Tc.toString,ot=Ji.hasOwnProperty,Qi=0,xi=function(){var i=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Oo=Ji.toString,jd=ri.call(wt),kc=Ut._,ds=Xi("^"+ri.call(ot).replace(xo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fs=as?re.Buffer:n,zi=re.Symbol,Eo=re.Uint8Array,Oc=fs?fs.allocUnsafe:n,pa=zc(wt.getPrototypeOf,wt),H1=wt.create,Ll=Ji.propertyIsEnumerable,ga=ha.splice,Io=zi?zi.isConcatSpreadable:n,eo=zi?zi.iterator:n,to=zi?zi.toStringTag:n,Ao=function(){try{var i=Vo(wt,"defineProperty");return i({},"",{}),i}catch{}}(),Kd=re.clearTimeout!==Ut.clearTimeout&&re.clearTimeout,Yd=Oe&&Oe.now!==Ut.Date.now&&Oe.now,Xd=re.setTimeout!==Ut.setTimeout&&re.setTimeout,va=ur.ceil,ba=ur.floor,ro=wt.getOwnPropertySymbols,hs=fs?fs.isBuffer:n,Ec=re.isFinite,Sl=ha.join,Ic=zc(wt.keys,wt),Gt=ur.max,Tr=ur.min,$o=Oe.now,ps=re.parseInt,no=ur.random,gs=ha.reverse,io=Vo(re,"DataView"),ma=Vo(re,"Map"),Ml=Vo(re,"Promise"),Po=Vo(re,"Set"),vs=Vo(re,"WeakMap"),Zn=Vo(wt,"create"),ni=vs&&new vs,ya={},Jd=Ft(io),Qd=Ft(ma),ef=Ft(Ml),tf=Ft(Po),rf=Ft(vs),kr=zi?zi.prototype:n,qt=kr?kr.valueOf:n,Or=kr?kr.toString:n;function M(i){if(nr(i)&&!ct(i)&&!(i instanceof vt)){if(i instanceof Xr)return i;if(ot.call(i,"__wrapped__"))return Vr(i)}return new Xr(i)}var ii=function(){function i(){}return function(u){if(!er(u))return{};if(H1)return H1(u);i.prototype=u;var f=new i;return i.prototype=n,f}}();function _l(){}function Xr(i,u){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}M.templateSettings={escape:wo,evaluate:Wi,interpolate:Xa,variable:"",imports:{_:M}},M.prototype=_l.prototype,M.prototype.constructor=M,Xr.prototype=ii(_l.prototype),Xr.prototype.constructor=Xr;function vt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=yt,this.__views__=[]}function nf(){var i=new vt(this.__wrapped__);return i.__actions__=yr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=yr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=yr(this.__views__),i}function of(){if(this.__filtered__){var i=new vt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function F1(){var i=this.__wrapped__.value(),u=this.__dir__,f=ct(i),b=u<0,L=f?i.length:0,_=Xl(0,L,this.__views__),P=_.start,R=_.end,Z=R-P,ie=b?R:P-1,oe=this.__iteratees__,fe=oe.length,Me=0,Be=Tr(Z,this.__takeCount__);if(!f||!b&&L==Z&&Be==Z)return Qc(i,this.__actions__);var Xe=[];e:for(;Z--&&Me<Be;){ie+=u;for(var ht=-1,Je=i[ie];++ht<fe;){var mt=oe[ht],xt=mt.iteratee,qn=mt.type,bn=xt(Je);if(qn==O)Je=bn;else if(!bn){if(qn==k)continue e;break e}}Xe[Me++]=Je}return Xe}vt.prototype=ii(_l.prototype),vt.prototype.constructor=vt;function oo(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function B1(){this.__data__=Zn?Zn(null):{},this.size=0}function af(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function V1(i){var u=this.__data__;if(Zn){var f=u[i];return f===z?n:f}return ot.call(u,i)?u[i]:n}function W1(i){var u=this.__data__;return Zn?u[i]!==n:ot.call(u,i)}function Ac(i,u){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Zn&&u===n?z:u,this}oo.prototype.clear=B1,oo.prototype.delete=af,oo.prototype.get=V1,oo.prototype.has=W1,oo.prototype.set=Ac;function oi(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function Z1(){this.__data__=[],this.size=0}function $c(i){var u=this.__data__,f=Do(u,i);if(f<0)return!1;var b=u.length-1;return f==b?u.pop():ga.call(u,f,1),--this.size,!0}function bs(i){var u=this.__data__,f=Do(u,i);return f<0?n:u[f][1]}function sf(i){return Do(this.__data__,i)>-1}function Tl(i,u){var f=this.__data__,b=Do(f,i);return b<0?(++this.size,f.push([i,u])):f[b][1]=u,this}oi.prototype.clear=Z1,oi.prototype.delete=$c,oi.prototype.get=bs,oi.prototype.has=sf,oi.prototype.set=Tl;function Qt(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function Pc(){this.size=0,this.__data__={hash:new oo,map:new(ma||oi),string:new oo}}function lf(i){var u=Yl(this,i).delete(i);return this.size-=u?1:0,u}function Dc(i){return Yl(this,i).get(i)}function hn(i){return Yl(this,i).has(i)}function St(i,u){var f=Yl(this,i),b=f.size;return f.set(i,u),this.size+=f.size==b?0:1,this}Qt.prototype.clear=Pc,Qt.prototype.delete=lf,Qt.prototype.get=Dc,Qt.prototype.has=hn,Qt.prototype.set=St;function Er(i){var u=-1,f=i==null?0:i.length;for(this.__data__=new Qt;++u<f;)this.add(i[u])}function ao(i){return this.__data__.set(i,z),this}function so(i){return this.__data__.has(i)}Er.prototype.add=Er.prototype.push=ao,Er.prototype.has=so;function zn(i){var u=this.__data__=new oi(i);this.size=u.size}function U1(){this.__data__=new oi,this.size=0}function Nc(i){var u=this.__data__,f=u.delete(i);return this.size=u.size,f}function uf(i){return this.__data__.get(i)}function G1(i){return this.__data__.has(i)}function ms(i,u){var f=this.__data__;if(f instanceof oi){var b=f.__data__;if(!ma||b.length<c-1)return b.push([i,u]),this.size=++f.size,this;f=this.__data__=new Qt(b)}return f.set(i,u),this.size=f.size,this}zn.prototype.clear=U1,zn.prototype.delete=Nc,zn.prototype.get=uf,zn.prototype.has=G1,zn.prototype.set=ms;function q1(i,u){var f=ct(i),b=!f&&As(i),L=!f&&!b&&Ra(i),_=!f&&!b&&!L&&Ql(i),P=f||b||L||_,R=P?To(i.length,fa):[],Z=R.length;for(var ie in i)(u||ot.call(i,ie))&&!(P&&(ie=="length"||L&&(ie=="offset"||ie=="parent")||_&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||m(ie,Z)))&&R.push(ie);return R}function kl(i){var u=i.length;return u?i[Fl(0,u-1)]:n}function lo(i,u){return Cr(yr(i),No(u,0,i.length))}function Rc(i){return Cr(yr(i))}function Ol(i,u,f){(f!==n&&!ki(i[u],f)||f===n&&!(u in i))&&ai(i,u,f)}function ys(i,u,f){var b=i[u];(!(ot.call(i,u)&&ki(b,f))||f===n&&!(u in i))&&ai(i,u,f)}function Do(i,u){for(var f=i.length;f--;)if(ki(i[f][0],u))return f;return-1}function j1(i,u,f,b){return pn(i,function(L,_,P){u(b,L,f(L),P)}),b}function K1(i,u){return i&&an(u,Zr(u),i)}function cf(i,u){return i&&an(u,Tn(u),i)}function ai(i,u,f){u=="__proto__"&&Ao?Ao(i,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[u]=f}function Y1(i,u){for(var f=-1,b=u.length,L=j(b),_=i==null;++f<b;)L[f]=_?n:Mf(i,u[f]);return L}function No(i,u,f){return i===i&&(f!==n&&(i=i<=f?i:f),u!==n&&(i=i>=u?i:u)),i}function Jr(i,u,f,b,L,_){var P,R=u&D,Z=u&B,ie=u&H;if(f&&(P=L?f(i,b,L,_):f(i)),P!==n)return P;if(!er(i))return i;var oe=ct(i);if(oe){if(P=s(i),!R)return yr(i,P)}else{var fe=Hr(i),Me=fe==Zt||fe==Gr;if(Ra(i))return su(i,R);if(fe==Et||fe==rt||Me&&!L){if(P=Z||Me?{}:a(i),!R)return Z?i0(i,cf(P,i)):mf(i,K1(P,i))}else{if(!Ht[fe])return L?i:{};P=d(i,fe,R)}}_||(_=new zn);var Be=_.get(i);if(Be)return Be;_.set(i,P),O2(i)?i.forEach(function(Je){P.add(Jr(Je,u,f,Je,i,_))}):T2(i)&&i.forEach(function(Je,mt){P.set(mt,Jr(Je,u,f,mt,i,_))});var Xe=ie?Z?Kl:Es:Z?Tn:Zr,ht=oe?n:Xe(i);return wn(ht||i,function(Je,mt){ht&&(mt=Je,Je=i[mt]),ys(P,mt,Jr(Je,u,f,mt,i,_))}),P}function Hc(i){var u=Zr(i);return function(f){return Fc(f,i,u)}}function Fc(i,u,f){var b=f.length;if(i==null)return!b;for(i=wt(i);b--;){var L=f[b],_=u[L],P=i[L];if(P===n&&!(L in i)||!_(P))return!1}return!0}function Bc(i,u,f){if(typeof i!="function")throw new on(h);return Nt(function(){i.apply(n,f)},u)}function Ca(i,u,f,b){var L=-1,_=ls,P=!0,R=i.length,Z=[],ie=u.length;if(!R)return Z;f&&(u=At(u,Yr(f))),b?(_=ca,P=!1):u.length>=c&&(_=nn,P=!1,u=new Er(u));e:for(;++L<R;){var oe=i[L],fe=f==null?oe:f(oe);if(oe=b||oe!==0?oe:0,P&&fe===fe){for(var Me=ie;Me--;)if(u[Me]===fe)continue e;Z.push(oe)}else _(u,fe,b)||Z.push(oe)}return Z}var pn=o0(gn),El=o0($l,!0);function Il(i,u){var f=!0;return pn(i,function(b,L,_){return f=!!u(b,L,_),f}),f}function Cs(i,u,f){for(var b=-1,L=i.length;++b<L;){var _=i[b],P=u(_);if(P!=null&&(R===n?P===P&&!Gn(P):f(P,R)))var R=P,Z=_}return Z}function X1(i,u,f,b){var L=i.length;for(f=ft(f),f<0&&(f=-f>L?0:L+f),b=b===n||b>L?L:ft(b),b<0&&(b+=L),b=f>b?0:I2(b);f<b;)i[f++]=u;return i}function J1(i,u){var f=[];return pn(i,function(b,L,_){u(b,L,_)&&f.push(b)}),f}function Ir(i,u,f,b,L){var _=-1,P=i.length;for(f||(f=v),L||(L=[]);++_<P;){var R=i[_];u>0&&f(R)?u>1?Ir(R,u-1,f,b,L):qi(L,R):b||(L[L.length]=R)}return L}var Al=a0(),br=a0(!0);function gn(i,u){return i&&Al(i,u,Zr)}function $l(i,u){return i&&br(i,u,Zr)}function ws(i,u){return Gi(u,function(f){return Uo(i[f])})}function uo(i,u){u=Un(u,i);for(var f=0,b=u.length;i!=null&&f<b;)i=i[$t(u[f++])];return f&&f==b?i:n}function Ro(i,u,f){var b=u(i);return ct(i)?b:qi(b,f(i))}function mr(i){return i==null?i===n?Y:bt:to&&to in wt(i)?Yt(i):Se(i)}function Pl(i,u){return i>u}function Vc(i,u){return i!=null&&ot.call(i,u)}function Wc(i,u){return i!=null&&u in wt(i)}function wa(i,u,f){return i>=Tr(u,f)&&i<Gt(u,f)}function Dl(i,u,f){for(var b=f?ca:ls,L=i[0].length,_=i.length,P=_,R=j(_),Z=1/0,ie=[];P--;){var oe=i[P];P&&u&&(oe=At(oe,Yr(u))),Z=Tr(oe.length,Z),R[P]=!f&&(u||L>=120&&oe.length>=120)?new Er(P&&oe):n}oe=i[0];var fe=-1,Me=R[0];e:for(;++fe<L&&ie.length<Z;){var Be=oe[fe],Xe=u?u(Be):Be;if(Be=f||Be!==0?Be:0,!(Me?nn(Me,Xe):b(ie,Xe,f))){for(P=_;--P;){var ht=R[P];if(!(ht?nn(ht,Xe):b(i[P],Xe,f)))continue e}Me&&Me.push(Xe),ie.push(Be)}}return ie}function Nl(i,u,f,b){return gn(i,function(L,_,P){u(b,f(L),_,P)}),b}function xa(i,u,f){u=Un(u,i),i=Pe(i,u);var b=i==null?i:i[$t(li(u))];return b==null?n:fn(b,i,f)}function za(i){return nr(i)&&mr(i)==rt}function df(i){return nr(i)&&mr(i)==Lr}function La(i){return nr(i)&&mr(i)==st}function Sa(i,u,f,b,L){return i===u?!0:i==null||u==null||!nr(i)&&!nr(u)?i!==i&&u!==u:Zc(i,u,f,b,Sa,L)}function Zc(i,u,f,b,L,_){var P=ct(i),R=ct(u),Z=P?Le:Hr(i),ie=R?Le:Hr(u);Z=Z==rt?Et:Z,ie=ie==rt?Et:ie;var oe=Z==Et,fe=ie==Et,Me=Z==ie;if(Me&&Ra(i)){if(!Ra(u))return!1;P=!0,oe=!1}if(Me&&!oe)return _||(_=new zn),P||Ql(i)?hu(i,u,f,b,L,_):h0(i,u,Z,f,b,L,_);if(!(f&J)){var Be=oe&&ot.call(i,"__wrapped__"),Xe=fe&&ot.call(u,"__wrapped__");if(Be||Xe){var ht=Be?i.value():i,Je=Xe?u.value():u;return _||(_=new zn),L(ht,Je,f,b,_)}}return Me?(_||(_=new zn),p0(i,u,f,b,L,_)):!1}function Uc(i){return nr(i)&&Hr(i)==tr}function Ho(i,u,f,b){var L=f.length,_=L,P=!b;if(i==null)return!_;for(i=wt(i);L--;){var R=f[L];if(P&&R[2]?R[1]!==i[R[0]]:!(R[0]in i))return!1}for(;++L<_;){R=f[L];var Z=R[0],ie=i[Z],oe=R[1];if(P&&R[2]){if(ie===n&&!(Z in i))return!1}else{var fe=new zn;if(b)var Me=b(ie,oe,Z,i,u,fe);if(!(Me===n?Sa(oe,ie,J|pe,b,fe):Me))return!1}}return!0}function Ma(i){if(!er(i)||V(i))return!1;var u=Uo(i)?ds:Hn;return u.test(Ft(i))}function xs(i){return nr(i)&&mr(i)==ar}function zs(i){return nr(i)&&Hr(i)==it}function Gc(i){return nr(i)&&w0(i.length)&&!!Vt[mr(i)]}function qc(i){return typeof i=="function"?i:i==null?kn:typeof i=="object"?ct(i)?Q1(i[0],i[1]):jc(i):W2(i)}function Rl(i){if(!K(i))return Ic(i);var u=[];for(var f in wt(i))ot.call(i,f)&&f!="constructor"&&u.push(f);return u}function co(i){if(!er(i))return ye(i);var u=K(i),f=[];for(var b in i)b=="constructor"&&(u||!ot.call(i,b))||f.push(b);return f}function fo(i,u){return i<u}function _a(i,u){var f=-1,b=_n(i)?j(i.length):[];return pn(i,function(L,_,P){b[++f]=u(L,_,P)}),b}function jc(i){var u=Pa(i);return u.length==1&&u[0][2]?he(u[0][0],u[0][1]):function(f){return f===i||Ho(f,i,u)}}function Q1(i,u){return C(i)&&ne(u)?he($t(i),u):function(f){var b=Mf(f,i);return b===n&&b===u?_f(f,i):Sa(u,b,J|pe)}}function Hl(i,u,f,b,L){i!==u&&Al(u,function(_,P){if(L||(L=new zn),er(_))ff(i,u,P,f,Hl,b,L);else{var R=b?b(It(i,P),_,P+"",i,u,L):n;R===n&&(R=_),Ol(i,P,R)}},Tn)}function ff(i,u,f,b,L,_,P){var R=It(i,f),Z=It(u,f),ie=P.get(Z);if(ie){Ol(i,f,ie);return}var oe=_?_(R,Z,f+"",i,u,P):n,fe=oe===n;if(fe){var Me=ct(Z),Be=!Me&&Ra(Z),Xe=!Me&&!Be&&Ql(Z);oe=Z,Me||Be||Xe?ct(R)?oe=R:fr(R)?oe=yr(R):Be?(fe=!1,oe=su(Z,!0)):Xe?(fe=!1,oe=t0(Z,!0)):oe=[]:vu(Z)||As(Z)?(oe=R,As(R)?oe=A2(R):(!er(R)||Uo(R))&&(oe=a(Z))):fe=!1}fe&&(P.set(Z,oe),L(oe,Z,b,_,P),P.delete(Z)),Ol(i,f,oe)}function Kc(i,u){var f=i.length;if(f)return u+=u<0?f:0,m(u,f)?i[u]:n}function Nr(i,u,f){u.length?u=At(u,function(_){return ct(_)?function(P){return uo(P,_.length===1?_[0]:_)}:_}):u=[kn];var b=-1;u=At(u,Yr(Ze()));var L=_a(i,function(_,P,R){var Z=At(u,function(ie){return ie(_)});return{criteria:Z,index:++b,value:_}});return yc(L,function(_,P){return r0(_,P,f)})}function Yc(i,u){return Xc(i,u,function(f,b){return _f(i,b)})}function Xc(i,u,f){for(var b=-1,L=u.length,_={};++b<L;){var P=u[b],R=uo(i,P);f(R,P)&&Li(_,Un(P,i),R)}return _}function hf(i){return function(u){return uo(u,i)}}function eu(i,u,f,b){var L=b?Ud:_o,_=-1,P=u.length,R=i;for(i===u&&(u=yr(u)),f&&(R=At(i,Yr(f)));++_<P;)for(var Z=0,ie=u[_],oe=f?f(ie):ie;(Z=L(R,oe,Z,b))>-1;)R!==i&&ga.call(R,Z,1),ga.call(i,Z,1);return i}function tu(i,u){for(var f=i?u.length:0,b=f-1;f--;){var L=u[f];if(f==b||L!==_){var _=L;m(L)?ga.call(i,L,1):Ms(i,L)}}return i}function Fl(i,u){return i+ba(no()*(u-i+1))}function Jc(i,u,f,b){for(var L=-1,_=Gt(va((u-i)/(f||1)),0),P=j(_);_--;)P[b?_:++L]=i,i+=f;return P}function ru(i,u){var f="";if(!i||u<1||u>Ae)return f;do u%2&&(f+=i),u=ba(u/2),u&&(i+=i);while(u);return f}function dt(i,u){return Fr(Fe(i,u,kn),i+"")}function pf(i){return kl(e1(i))}function ho(i,u){var f=e1(i);return Cr(f,No(u,0,f.length))}function Li(i,u,f,b){if(!er(i))return i;u=Un(u,i);for(var L=-1,_=u.length,P=_-1,R=i;R!=null&&++L<_;){var Z=$t(u[L]),ie=f;if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return i;if(L!=P){var oe=R[Z];ie=b?b(oe,Z,R):n,ie===n&&(ie=er(oe)?oe:m(u[L+1])?[]:{})}ys(R,Z,ie),R=R[Z]}return i}var Ls=ni?function(i,u){return ni.set(i,u),i}:kn,Ss=Ao?function(i,u){return Ao(i,"toString",{configurable:!0,enumerable:!1,value:kf(u),writable:!0})}:kn;function Si(i){return Cr(e1(i))}function Ln(i,u,f){var b=-1,L=i.length;u<0&&(u=-u>L?0:L+u),f=f>L?L:f,f<0&&(f+=L),L=u>f?0:f-u>>>0,u>>>=0;for(var _=j(L);++b<L;)_[b]=i[b+u];return _}function gf(i,u){var f;return pn(i,function(b,L,_){return f=u(b,L,_),!f}),!!f}function Mi(i,u,f){var b=0,L=i==null?b:i.length;if(typeof u=="number"&&u===u&&L<=Tt){for(;b<L;){var _=b+L>>>1,P=i[_];P!==null&&!Gn(P)&&(f?P<=u:P<u)?b=_+1:L=_}return L}return Bl(i,u,kn,f)}function Bl(i,u,f,b){var L=0,_=i==null?0:i.length;if(_===0)return 0;u=f(u);for(var P=u!==u,R=u===null,Z=Gn(u),ie=u===n;L<_;){var oe=ba((L+_)/2),fe=f(i[oe]),Me=fe!==n,Be=fe===null,Xe=fe===fe,ht=Gn(fe);if(P)var Je=b||Xe;else ie?Je=Xe&&(b||Me):R?Je=Xe&&Me&&(b||!Be):Z?Je=Xe&&Me&&!Be&&(b||!ht):Be||ht?Je=!1:Je=b?fe<=u:fe<u;Je?L=oe+1:_=oe}return Tr(_,or)}function nu(i,u){for(var f=-1,b=i.length,L=0,_=[];++f<b;){var P=i[f],R=u?u(P):P;if(!f||!ki(R,Z)){var Z=R;_[L++]=P===0?0:P}}return _}function iu(i){return typeof i=="number"?i:Gn(i)?pt:+i}function Rr(i){if(typeof i=="string")return i;if(ct(i))return At(i,Rr)+"";if(Gn(i))return Or?Or.call(i):"";var u=i+"";return u=="0"&&1/i==-ce?"-0":u}function vn(i,u,f){var b=-1,L=ls,_=i.length,P=!0,R=[],Z=R;if(f)P=!1,L=ca;else if(_>=c){var ie=u?null:Os(i);if(ie)return Cl(ie);P=!1,L=nn,Z=new Er}else Z=u?[]:R;e:for(;++b<_;){var oe=i[b],fe=u?u(oe):oe;if(oe=f||oe!==0?oe:0,P&&fe===fe){for(var Me=Z.length;Me--;)if(Z[Me]===fe)continue e;u&&Z.push(fe),R.push(oe)}else L(Z,fe,f)||(Z!==R&&Z.push(fe),R.push(oe))}return R}function Ms(i,u){return u=Un(u,i),i=Pe(i,u),i==null||delete i[$t(li(u))]}function Vl(i,u,f,b){return Li(i,u,f(uo(i,u)),b)}function Ta(i,u,f,b){for(var L=i.length,_=b?L:-1;(b?_--:++_<L)&&u(i[_],_,i););return f?Ln(i,b?0:_,b?_+1:L):Ln(i,b?_+1:0,b?L:_)}function Qc(i,u){var f=i;return f instanceof vt&&(f=f.value()),I1(u,function(b,L){return L.func.apply(L.thisArg,qi([b],L.args))},f)}function Fo(i,u,f){var b=i.length;if(b<2)return b?vn(i[0]):[];for(var L=-1,_=j(b);++L<b;)for(var P=i[L],R=-1;++R<b;)R!=L&&(_[L]=Ca(_[L]||P,i[R],u,f));return vn(Ir(_,1),u,f)}function ou(i,u,f){for(var b=-1,L=i.length,_=u.length,P={};++b<L;){var R=b<_?u[b]:n;f(P,i[b],R)}return P}function au(i){return fr(i)?i:[]}function Wl(i){return typeof i=="function"?i:kn}function Un(i,u){return ct(i)?i:C(i,u)?[i]:cr(Rt(i))}var vf=dt;function po(i,u,f){var b=i.length;return f=f===n?b:f,!u&&f>=b?i:Ln(i,u,f)}var ka=Kd||function(i){return Ut.clearTimeout(i)};function su(i,u){if(u)return i.slice();var f=i.length,b=Oc?Oc(f):new i.constructor(f);return i.copy(b),b}function Zl(i){var u=new i.constructor(i.byteLength);return new Eo(u).set(new Eo(i)),u}function bf(i,u){var f=u?Zl(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function lu(i){var u=new i.constructor(i.source,Lo.exec(i));return u.lastIndex=i.lastIndex,u}function e0(i){return qt?wt(qt.call(i)):{}}function t0(i,u){var f=u?Zl(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function uu(i,u){if(i!==u){var f=i!==n,b=i===null,L=i===i,_=Gn(i),P=u!==n,R=u===null,Z=u===u,ie=Gn(u);if(!R&&!ie&&!_&&i>u||_&&P&&Z&&!R&&!ie||b&&P&&Z||!f&&Z||!L)return 1;if(!b&&!_&&!ie&&i<u||ie&&f&&L&&!b&&!_||R&&f&&L||!P&&L||!Z)return-1}return 0}function r0(i,u,f){for(var b=-1,L=i.criteria,_=u.criteria,P=L.length,R=f.length;++b<P;){var Z=uu(L[b],_[b]);if(Z){if(b>=R)return Z;var ie=f[b];return Z*(ie=="desc"?-1:1)}}return i.index-u.index}function n0(i,u,f,b){for(var L=-1,_=i.length,P=f.length,R=-1,Z=u.length,ie=Gt(_-P,0),oe=j(Z+ie),fe=!b;++R<Z;)oe[R]=u[R];for(;++L<P;)(fe||L<_)&&(oe[f[L]]=i[L]);for(;ie--;)oe[R++]=i[L++];return oe}function Ul(i,u,f,b){for(var L=-1,_=i.length,P=-1,R=f.length,Z=-1,ie=u.length,oe=Gt(_-R,0),fe=j(oe+ie),Me=!b;++L<oe;)fe[L]=i[L];for(var Be=L;++Z<ie;)fe[Be+Z]=u[Z];for(;++P<R;)(Me||L<_)&&(fe[Be+f[P]]=i[L++]);return fe}function yr(i,u){var f=-1,b=i.length;for(u||(u=j(b));++f<b;)u[f]=i[f];return u}function an(i,u,f,b){var L=!f;f||(f={});for(var _=-1,P=u.length;++_<P;){var R=u[_],Z=b?b(f[R],i[R],R,f,i):n;Z===n&&(Z=i[R]),L?ai(f,R,Z):ys(f,R,Z)}return f}function mf(i,u){return an(i,pu(i),u)}function i0(i,u){return an(i,g0(i),u)}function Gl(i,u){return function(f,b){var L=ct(f)?Bd:j1,_=u?u():{};return L(f,i,Ze(b,2),_)}}function Oa(i){return dt(function(u,f){var b=-1,L=f.length,_=L>1?f[L-1]:n,P=L>2?f[2]:n;for(_=i.length>3&&typeof _=="function"?(L--,_):n,P&&y(f[0],f[1],P)&&(_=L<3?n:_,L=1),u=wt(u);++b<L;){var R=f[b];R&&i(u,R,b,_)}return u})}function o0(i,u){return function(f,b){if(f==null)return f;if(!_n(f))return i(f,b);for(var L=f.length,_=u?L:-1,P=wt(f);(u?_--:++_<L)&&b(P[_],_,P)!==!1;);return f}}function a0(i){return function(u,f,b){for(var L=-1,_=wt(u),P=b(u),R=P.length;R--;){var Z=P[i?R:++L];if(f(_[Z],Z,_)===!1)break}return u}}function s0(i,u,f){var b=u&ge,L=Ia(i);function _(){var P=this&&this!==Ut&&this instanceof _?L:i;return P.apply(b?f:this,arguments)}return _}function l0(i){return function(u){u=Rt(u);var f=Vn(u)?xn(u):n,b=f?f[0]:u.charAt(0),L=f?po(f,1).join(""):u.slice(1);return b[i]()+L}}function Ea(i){return function(u){return I1(B2(F2(u).replace(M1,"")),i,"")}}function Ia(i){return function(){var u=arguments;switch(u.length){case 0:return new i;case 1:return new i(u[0]);case 2:return new i(u[0],u[1]);case 3:return new i(u[0],u[1],u[2]);case 4:return new i(u[0],u[1],u[2],u[3]);case 5:return new i(u[0],u[1],u[2],u[3],u[4]);case 6:return new i(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new i(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=ii(i.prototype),b=i.apply(f,u);return er(b)?b:f}}function cu(i,u,f){var b=Ia(i);function L(){for(var _=arguments.length,P=j(_),R=_,Z=$a(L);R--;)P[R]=arguments[R];var ie=_<3&&P[0]!==Z&&P[_-1]!==Z?[]:Ki(P,Z);if(_-=ie.length,_<f)return d0(i,u,_s,L.placeholder,n,P,ie,n,n,f-_);var oe=this&&this!==Ut&&this instanceof L?b:i;return fn(oe,this,P)}return L}function du(i){return function(u,f,b){var L=wt(u);if(!_n(u)){var _=Ze(f,3);u=Zr(u),f=function(R){return _(L[R],R,L)}}var P=i(u,f,b);return P>-1?L[_?u[P]:P]:n}}function u0(i){return _i(function(u){var f=u.length,b=f,L=Xr.prototype.thru;for(i&&u.reverse();b--;){var _=u[b];if(typeof _!="function")throw new on(h);if(L&&!P&&Is(_)=="wrapper")var P=new Xr([],!0)}for(b=P?b:f;++b<f;){_=u[b];var R=Is(_),Z=R=="wrapper"?Mt(_):n;Z&&I(Z[0])&&Z[1]==(De|be|ke|je)&&!Z[4].length&&Z[9]==1?P=P[Is(Z[0])].apply(P,Z[3]):P=_.length==1&&I(_)?P[R]():P.thru(_)}return function(){var ie=arguments,oe=ie[0];if(P&&ie.length==1&&ct(oe))return P.plant(oe).value();for(var fe=0,Me=f?u[fe].apply(this,ie):oe;++fe<f;)Me=u[fe].call(this,Me);return Me}})}function _s(i,u,f,b,L,_,P,R,Z,ie){var oe=u&De,fe=u&ge,Me=u&Te,Be=u&(be|ve),Xe=u&Ye,ht=Me?n:Ia(i);function Je(){for(var mt=arguments.length,xt=j(mt),qn=mt;qn--;)xt[qn]=arguments[qn];if(Be)var bn=$a(Je),jn=Gd(xt,bn);if(b&&(xt=n0(xt,b,L,Be)),_&&(xt=Ul(xt,_,P,Be)),mt-=jn,Be&&mt<ie){var hr=Ki(xt,bn);return d0(i,u,_s,Je.placeholder,f,xt,hr,R,Z,ie-mt)}var Oi=fe?f:this,qo=Me?Oi[i]:i;return mt=xt.length,R?xt=ut(xt,R):Xe&&mt>1&&xt.reverse(),oe&&Z<mt&&(xt.length=Z),this&&this!==Ut&&this instanceof Je&&(qo=ht||Ia(qo)),qo.apply(Oi,xt)}return Je}function Bo(i,u){return function(f,b){return Nl(f,i,u(b),{})}}function Ts(i,u){return function(f,b){var L;if(f===n&&b===n)return u;if(f!==n&&(L=f),b!==n){if(L===n)return b;typeof f=="string"||typeof b=="string"?(f=Rr(f),b=Rr(b)):(f=iu(f),b=iu(b)),L=i(f,b)}return L}}function Aa(i){return _i(function(u){return u=At(u,Yr(Ze())),dt(function(f){var b=this;return i(u,function(L){return fn(L,b,f)})})})}function ql(i,u){u=u===n?" ":Rr(u);var f=u.length;if(f<2)return f?ru(u,i):u;var b=ru(u,va(i/ko(u)));return Vn(u)?po(xn(b),0,i).join(""):b.slice(0,i)}function yf(i,u,f,b){var L=u&ge,_=Ia(i);function P(){for(var R=-1,Z=arguments.length,ie=-1,oe=b.length,fe=j(oe+Z),Me=this&&this!==Ut&&this instanceof P?_:i;++ie<oe;)fe[ie]=b[ie];for(;Z--;)fe[ie++]=arguments[++R];return fn(Me,L?f:this,fe)}return P}function c0(i){return function(u,f,b){return b&&typeof b!="number"&&y(u,f,b)&&(f=b=n),u=Go(u),f===n?(f=u,u=0):f=Go(f),b=b===n?u<f?1:-1:Go(b),Jc(u,f,b,i)}}function Dt(i){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=ui(u),f=ui(f)),i(u,f)}}function d0(i,u,f,b,L,_,P,R,Z,ie){var oe=u&be,fe=oe?P:n,Me=oe?n:P,Be=oe?_:n,Xe=oe?n:_;u|=oe?ke:$e,u&=~(oe?$e:ke),u&Ie||(u&=~(ge|Te));var ht=[i,u,L,Be,fe,Xe,Me,R,Z,ie],Je=f.apply(n,ht);return I(i)&&rr(Je,ht),Je.placeholder=b,Br(Je,i,u)}function ks(i){var u=ur[i];return function(f,b){if(f=ui(f),b=b==null?0:Tr(ft(b),292),b&&Ec(f)){var L=(Rt(f)+"e").split("e"),_=u(L[0]+"e"+(+L[1]+b));return L=(Rt(_)+"e").split("e"),+(L[0]+"e"+(+L[1]-b))}return u(f)}}var Os=Po&&1/Cl(new Po([,-0]))[1]==ce?function(i){return new Po(i)}:If;function Sn(i){return function(u){var f=Hr(u);return f==tr?yl(u):f==it?Lc(u):wi(u,i(u))}}function Mn(i,u,f,b,L,_,P,R){var Z=u&Te;if(!Z&&typeof i!="function")throw new on(h);var ie=b?b.length:0;if(ie||(u&=~(ke|$e),b=L=n),P=P===n?P:Gt(ft(P),0),R=R===n?R:ft(R),ie-=L?L.length:0,u&$e){var oe=b,fe=L;b=L=n}var Me=Z?n:Mt(i),Be=[i,u,f,b,L,oe,fe,_,P,R];if(Me&&xe(Be,Me),i=Be[0],u=Be[1],f=Be[2],b=Be[3],L=Be[4],R=Be[9]=Be[9]===n?Z?0:i.length:Gt(Be[9]-ie,0),!R&&u&(be|ve)&&(u&=~(be|ve)),!u||u==ge)var Xe=s0(i,u,f);else u==be||u==ve?Xe=cu(i,u,R):(u==ke||u==(ge|ke))&&!L.length?Xe=yf(i,u,f,b):Xe=_s.apply(n,Be);var ht=Me?Ls:rr;return Br(ht(Xe,Be),i,u)}function jl(i,u,f,b){return i===n||ki(i,Ji[f])&&!ot.call(b,f)?u:i}function fu(i,u,f,b,L,_){return er(i)&&er(u)&&(_.set(u,i),Hl(i,u,n,fu,_),_.delete(u)),i}function f0(i){return vu(i)?n:i}function hu(i,u,f,b,L,_){var P=f&J,R=i.length,Z=u.length;if(R!=Z&&!(P&&Z>R))return!1;var ie=_.get(i),oe=_.get(u);if(ie&&oe)return ie==u&&oe==i;var fe=-1,Me=!0,Be=f&pe?new Er:n;for(_.set(i,u),_.set(u,i);++fe<R;){var Xe=i[fe],ht=u[fe];if(b)var Je=P?b(ht,Xe,fe,u,i,_):b(Xe,ht,fe,i,u,_);if(Je!==n){if(Je)continue;Me=!1;break}if(Be){if(!Mo(u,function(mt,xt){if(!nn(Be,xt)&&(Xe===mt||L(Xe,mt,f,b,_)))return Be.push(xt)})){Me=!1;break}}else if(!(Xe===ht||L(Xe,ht,f,b,_))){Me=!1;break}}return _.delete(i),_.delete(u),Me}function h0(i,u,f,b,L,_,P){switch(f){case Pn:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Lr:return!(i.byteLength!=u.byteLength||!_(new Eo(i),new Eo(u)));case Ge:case st:case Qe:return ki(+i,+u);case Ue:return i.name==u.name&&i.message==u.message;case ar:case U:return i==u+"";case tr:var R=yl;case it:var Z=b&J;if(R||(R=Cl),i.size!=u.size&&!Z)return!1;var ie=P.get(i);if(ie)return ie==u;b|=pe,P.set(i,u);var oe=hu(R(i),R(u),b,L,_,P);return P.delete(i),oe;case se:if(qt)return qt.call(i)==qt.call(u)}return!1}function p0(i,u,f,b,L,_){var P=f&J,R=Es(i),Z=R.length,ie=Es(u),oe=ie.length;if(Z!=oe&&!P)return!1;for(var fe=Z;fe--;){var Me=R[fe];if(!(P?Me in u:ot.call(u,Me)))return!1}var Be=_.get(i),Xe=_.get(u);if(Be&&Xe)return Be==u&&Xe==i;var ht=!0;_.set(i,u),_.set(u,i);for(var Je=P;++fe<Z;){Me=R[fe];var mt=i[Me],xt=u[Me];if(b)var qn=P?b(xt,mt,Me,u,i,_):b(mt,xt,Me,i,u,_);if(!(qn===n?mt===xt||L(mt,xt,f,b,_):qn)){ht=!1;break}Je||(Je=Me=="constructor")}if(ht&&!Je){var bn=i.constructor,jn=u.constructor;bn!=jn&&"constructor"in i&&"constructor"in u&&!(typeof bn=="function"&&bn instanceof bn&&typeof jn=="function"&&jn instanceof jn)&&(ht=!1)}return _.delete(i),_.delete(u),ht}function _i(i){return Fr(Fe(i,n,h2),i+"")}function Es(i){return Ro(i,Zr,pu)}function Kl(i){return Ro(i,Tn,g0)}var Mt=ni?function(i){return ni.get(i)}:If;function Is(i){for(var u=i.name+"",f=ya[u],b=ot.call(ya,u)?f.length:0;b--;){var L=f[b],_=L.func;if(_==null||_==i)return L.name}return u}function $a(i){var u=ot.call(M,"placeholder")?M:i;return u.placeholder}function Ze(){var i=M.iteratee||Of;return i=i===Of?qc:i,arguments.length?i(arguments[0],arguments[1]):i}function Yl(i,u){var f=i.__data__;return T(u)?f[typeof u=="string"?"string":"hash"]:f.map}function Pa(i){for(var u=Zr(i),f=u.length;f--;){var b=u[f],L=i[b];u[f]=[b,L,ne(L)]}return u}function Vo(i,u){var f=R1(i,u);return Ma(f)?f:n}function Yt(i){var u=ot.call(i,to),f=i[to];try{i[to]=n;var b=!0}catch{}var L=Oo.call(i);return b&&(u?i[to]=f:delete i[to]),L}var pu=ro?function(i){return i==null?[]:(i=wt(i),Gi(ro(i),function(u){return Ll.call(i,u)}))}:Af,g0=ro?function(i){for(var u=[];i;)qi(u,pu(i)),i=pa(i);return u}:Af,Hr=mr;(io&&Hr(new io(new ArrayBuffer(1)))!=Pn||ma&&Hr(new ma)!=tr||Ml&&Hr(Ml.resolve())!=Pr||Po&&Hr(new Po)!=it||vs&&Hr(new vs)!=tt)&&(Hr=function(i){var u=mr(i),f=u==Et?i.constructor:n,b=f?Ft(f):"";if(b)switch(b){case Jd:return Pn;case Qd:return tr;case ef:return Pr;case tf:return it;case rf:return tt}return u});function Xl(i,u,f){for(var b=-1,L=f.length;++b<L;){var _=f[b],P=_.size;switch(_.type){case"drop":i+=P;break;case"dropRight":u-=P;break;case"take":u=Tr(u,i+P);break;case"takeRight":i=Gt(i,u-P);break}}return{start:i,end:u}}function e(i){var u=i.match(Qa);return u?u[1].split(Zi):[]}function r(i,u,f){u=Un(u,i);for(var b=-1,L=u.length,_=!1;++b<L;){var P=$t(u[b]);if(!(_=i!=null&&f(i,P)))break;i=i[P]}return _||++b!=L?_:(L=i==null?0:i.length,!!L&&w0(L)&&m(P,L)&&(ct(i)||As(i)))}function s(i){var u=i.length,f=new i.constructor(u);return u&&typeof i[0]=="string"&&ot.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function a(i){return typeof i.constructor=="function"&&!K(i)?ii(pa(i)):{}}function d(i,u,f){var b=i.constructor;switch(u){case Lr:return Zl(i);case Ge:case st:return new b(+i);case Pn:return bf(i,f);case qr:case Wt:case mi:case Dr:case Dn:case Ve:case Vi:case Sr:case qe:return t0(i,f);case tr:return new b;case Qe:case U:return new b(i);case ar:return lu(i);case it:return new b;case se:return e0(i)}}function p(i,u){var f=u.length;if(!f)return i;var b=f-1;return u[b]=(f>1?"& ":"")+u[b],u=u.join(f>2?", ":" "),i.replace(ol,`{
1687
1690
  /* [wrapped with `+u+`] */
1688
- `)}function v(i){return ct(i)||As(i)||!!(Io&&i&&i[Io])}function m(i,u){var f=typeof i;return u=u==null?Ae:u,!!u&&(f=="number"||f!="symbol"&&es.test(i))&&i>-1&&i%1==0&&i<u}function y(i,u,f){if(!er(f))return!1;var b=typeof u;return(b=="number"?_n(f)&&m(u,f.length):b=="string"&&u in f)?ki(f[u],i):!1}function C(i,u){if(ct(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||Gn(i)?!0:qr.test(i)||!Ja.test(i)||u!=null&&i in wt(u)}function T(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function I(i){var u=Is(i),f=M[u];if(typeof f!="function"||!(u in vt.prototype))return!1;if(i===f)return!0;var b=Mt(f);return!!b&&i===b[0]}function V(i){return!!xi&&xi in i}var F=ti?Uo:$f;function K(i){var u=i&&i.constructor,f=typeof u=="function"&&u.prototype||Ji;return i===f}function ne(i){return i===i&&!er(i)}function he(i,u){return function(f){return f==null?!1:f[i]===u&&(u!==n||i in wt(f))}}function me(i){var u=y0(i,function(b){return f.size===S&&f.clear(),b}),f=u.cache;return u}function xe(i,u){var f=i[1],b=u[1],L=f|b,_=L<(ge|Te|De),P=b==De&&f==be||b==De&&f==je&&i[7].length<=u[8]||b==(De|je)&&u[7].length<=u[8]&&f==be;if(!(_||P))return i;b&ge&&(i[2]=u[2],L|=f&ge?0:Ie);var N=u[3];if(N){var Z=i[3];i[3]=Z?n0(Z,N,u[4]):N,i[4]=Z?Ki(i[3],E):u[4]}return N=u[5],N&&(Z=i[5],i[5]=Z?Ul(Z,N,u[6]):N,i[6]=Z?Ki(i[5],E):u[6]),N=u[7],N&&(i[7]=N),b&De&&(i[8]=i[8]==null?u[8]:Tr(i[8],u[8])),i[9]==null&&(i[9]=u[9]),i[0]=u[0],i[1]=L,i}function ye(i){var u=[];if(i!=null)for(var f in wt(i))u.push(f);return u}function Se(i){return Oo.call(i)}function Fe(i,u,f){return u=Gt(u===n?i.length-1:u,0),function(){for(var b=arguments,L=-1,_=Gt(b.length-u,0),P=j(_);++L<_;)P[L]=b[u+L];L=-1;for(var N=j(u+1);++L<u;)N[L]=b[L];return N[u]=f(P),fn(i,this,N)}}function Pe(i,u){return u.length<2?i:uo(i,Ln(u,0,-1))}function ut(i,u){for(var f=i.length,b=Tr(u.length,f),L=yr(i);b--;){var _=u[b];i[b]=m(_,f)?L[_]:n}return i}function It(i,u){if(!(u==="constructor"&&typeof i[u]=="function")&&u!="__proto__")return i[u]}var rr=Xt(Ls),Nt=Xd||function(i,u){return Ut.setTimeout(i,u)},Fr=Xt(Ss);function Br(i,u,f){var b=u+"";return Fr(i,p(b,jt(e(b),f)))}function Xt(i){var u=0,f=0;return function(){var b=$o(),L=$-(b-f);if(f=b,L>0){if(++u>=Q)return arguments[0]}else u=0;return i.apply(n,arguments)}}function Cr(i,u){var f=-1,b=i.length,L=b-1;for(u=u===n?b:u;++f<u;){var _=Fl(f,L),P=i[_];i[_]=i[f],i[f]=P}return i.length=u,i}var cr=me(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(nl,function(f,b,L,_){u.push(L?_.replace(al,"$1"):b||f)}),u});function $t(i){if(typeof i=="string"||Gn(i))return i;var u=i+"";return u=="0"&&1/i==-ce?"-0":u}function Ft(i){if(i!=null){try{return ri.call(i)}catch{}try{return i+""}catch{}}return""}function jt(i,u){return wn(zt,function(f){var b="_."+f[0];u&f[1]&&!ls(i,b)&&i.push(b)}),i.sort()}function Vr(i){if(i instanceof vt)return i.clone();var u=new Yr(i.__wrapped__,i.__chain__);return u.__actions__=yr(i.__actions__),u.__index__=i.__index__,u.__values__=i.__values__,u}function Da(i,u,f){(f?y(i,u,f):u===n)?u=1:u=Gt(ft(u),0);var b=i==null?0:i.length;if(!b||u<1)return[];for(var L=0,_=0,P=j(va(b/u));L<b;)P[_++]=Ln(i,L,L+=u);return P}function go(i){for(var u=-1,f=i==null?0:i.length,b=0,L=[];++u<f;){var _=i[u];_&&(L[b++]=_)}return L}function Ar(){var i=arguments.length;if(!i)return[];for(var u=j(i-1),f=arguments[0],b=i;b--;)u[b-1]=arguments[b];return qi(ct(f)?yr(f):[f],Ir(u,1))}var si=dt(function(i,u){return fr(i)?Ca(i,Ir(u,1,fr,!0)):[]}),dr=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?Ca(i,Ir(u,1,fr,!0),Ze(f,2)):[]}),gu=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?Ca(i,Ir(u,1,fr,!0),n,f):[]});function Ti(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),Ln(i,u<0?0:u,b)):[]}function Wo(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,0,u<0?0:u)):[]}function Zo(i,u){return i&&i.length?Ta(i,Ze(u,3),!0,!0):[]}function Wr(i,u){return i&&i.length?Ta(i,Ze(u,3),!0):[]}function Na(i,u,f,b){var L=i==null?0:i.length;return L?(f&&typeof f!="number"&&y(i,u,f)&&(f=0,b=L),X1(i,u,f,b)):[]}function Jl(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),gl(i,Ze(u,3),L)}function f2(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b-1;return f!==n&&(L=ft(f),L=f<0?Gt(b+L,0):Tr(L,b-1)),gl(i,Ze(u,3),L,!0)}function h2(i){var u=i==null?0:i.length;return u?Ir(i,1):[]}function u7(i){var u=i==null?0:i.length;return u?Ir(i,ce):[]}function c7(i,u){var f=i==null?0:i.length;return f?(u=u===n?1:ft(u),Ir(i,u)):[]}function d7(i){for(var u=-1,f=i==null?0:i.length,b={};++u<f;){var L=i[u];b[L[0]]=L[1]}return b}function p2(i){return i&&i.length?i[0]:n}function f7(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),_o(i,u,L)}function h7(i){var u=i==null?0:i.length;return u?Ln(i,0,-1):[]}var p7=dt(function(i){var u=At(i,au);return u.length&&u[0]===i[0]?Dl(u):[]}),g7=dt(function(i){var u=li(i),f=At(i,au);return u===li(f)?u=n:f.pop(),f.length&&f[0]===i[0]?Dl(f,Ze(u,2)):[]}),v7=dt(function(i){var u=li(i),f=At(i,au);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===i[0]?Dl(f,n,u):[]});function b7(i,u){return i==null?"":Sl.call(i,u)}function li(i){var u=i==null?0:i.length;return u?i[u-1]:n}function m7(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b;return f!==n&&(L=ft(f),L=L<0?Gt(b+L,0):Tr(L,b-1)),u===u?cs(i,u,L):gl(i,vl,L,!0)}function y7(i,u){return i&&i.length?Kc(i,ft(u)):n}var C7=dt(g2);function g2(i,u){return i&&i.length&&u&&u.length?eu(i,u):i}function w7(i,u,f){return i&&i.length&&u&&u.length?eu(i,u,Ze(f,2)):i}function x7(i,u,f){return i&&i.length&&u&&u.length?eu(i,u,n,f):i}var z7=_i(function(i,u){var f=i==null?0:i.length,b=Y1(i,u);return tu(i,At(u,function(L){return m(L,f)?+L:L}).sort(uu)),b});function L7(i,u){var f=[];if(!(i&&i.length))return f;var b=-1,L=[],_=i.length;for(u=Ze(u,3);++b<_;){var P=i[b];u(P,b,i)&&(f.push(P),L.push(b))}return tu(i,L),f}function Cf(i){return i==null?i:gs.call(i)}function S7(i,u,f){var b=i==null?0:i.length;return b?(f&&typeof f!="number"&&y(i,u,f)?(u=0,f=b):(u=u==null?0:ft(u),f=f===n?b:ft(f)),Ln(i,u,f)):[]}function M7(i,u){return Mi(i,u)}function _7(i,u,f){return Bl(i,u,Ze(f,2))}function T7(i,u){var f=i==null?0:i.length;if(f){var b=Mi(i,u);if(b<f&&ki(i[b],u))return b}return-1}function k7(i,u){return Mi(i,u,!0)}function O7(i,u,f){return Bl(i,u,Ze(f,2),!0)}function E7(i,u){var f=i==null?0:i.length;if(f){var b=Mi(i,u,!0)-1;if(ki(i[b],u))return b}return-1}function I7(i){return i&&i.length?nu(i):[]}function A7(i,u){return i&&i.length?nu(i,Ze(u,2)):[]}function $7(i){var u=i==null?0:i.length;return u?Ln(i,1,u):[]}function P7(i,u,f){return i&&i.length?(u=f||u===n?1:ft(u),Ln(i,0,u<0?0:u)):[]}function D7(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,u<0?0:u,b)):[]}function N7(i,u){return i&&i.length?Ta(i,Ze(u,3),!1,!0):[]}function R7(i,u){return i&&i.length?Ta(i,Ze(u,3)):[]}var H7=dt(function(i){return vn(Ir(i,1,fr,!0))}),F7=dt(function(i){var u=li(i);return fr(u)&&(u=n),vn(Ir(i,1,fr,!0),Ze(u,2))}),B7=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,vn(Ir(i,1,fr,!0),n,u)});function V7(i){return i&&i.length?vn(i):[]}function W7(i,u){return i&&i.length?vn(i,Ze(u,2)):[]}function Z7(i,u){return u=typeof u=="function"?u:n,i&&i.length?vn(i,n,u):[]}function wf(i){if(!(i&&i.length))return[];var u=0;return i=Gi(i,function(f){if(fr(f))return u=Gt(f.length,u),!0}),To(u,function(f){return At(i,$1(f))})}function v2(i,u){if(!(i&&i.length))return[];var f=wf(i);return u==null?f:At(f,function(b){return fn(u,n,b)})}var U7=dt(function(i,u){return fr(i)?Ca(i,u):[]}),G7=dt(function(i){return Fo(Gi(i,fr))}),q7=dt(function(i){var u=li(i);return fr(u)&&(u=n),Fo(Gi(i,fr),Ze(u,2))}),j7=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,Fo(Gi(i,fr),n,u)}),K7=dt(wf);function Y7(i,u){return ou(i||[],u||[],ys)}function X7(i,u){return ou(i||[],u||[],Li)}var J7=dt(function(i){var u=i.length,f=u>1?i[u-1]:n;return f=typeof f=="function"?(i.pop(),f):n,v2(i,f)});function b2(i){var u=M(i);return u.__chain__=!0,u}function Q7(i,u){return u(i),i}function v0(i,u){return u(i)}var e9=_i(function(i){var u=i.length,f=u?i[0]:0,b=this.__wrapped__,L=function(_){return Y1(_,i)};return u>1||this.__actions__.length||!(b instanceof vt)||!m(f)?this.thru(L):(b=b.slice(f,+f+(u?1:0)),b.__actions__.push({func:v0,args:[L],thisArg:n}),new Yr(b,this.__chain__).thru(function(_){return u&&!_.length&&_.push(n),_}))});function t9(){return b2(this)}function r9(){return new Yr(this.value(),this.__chain__)}function n9(){this.__values__===n&&(this.__values__=E2(this.value()));var i=this.__index__>=this.__values__.length,u=i?n:this.__values__[this.__index__++];return{done:i,value:u}}function i9(){return this}function o9(i){for(var u,f=this;f instanceof _l;){var b=Vr(f);b.__index__=0,b.__values__=n,u?L.__wrapped__=b:u=b;var L=b;f=f.__wrapped__}return L.__wrapped__=i,u}function a9(){var i=this.__wrapped__;if(i instanceof vt){var u=i;return this.__actions__.length&&(u=new vt(this)),u=u.reverse(),u.__actions__.push({func:v0,args:[Cf],thisArg:n}),new Yr(u,this.__chain__)}return this.thru(Cf)}function s9(){return Qc(this.__wrapped__,this.__actions__)}var l9=Gl(function(i,u,f){ot.call(i,f)?++i[f]:ai(i,f,1)});function u9(i,u,f){var b=ct(i)?E1:Il;return f&&y(i,u,f)&&(u=n),b(i,Ze(u,3))}function c9(i,u){var f=ct(i)?Gi:J1;return f(i,Ze(u,3))}var d9=du(Jl),f9=du(f2);function h9(i,u){return Ir(b0(i,u),1)}function p9(i,u){return Ir(b0(i,u),ce)}function g9(i,u,f){return f=f===n?1:ft(f),Ir(b0(i,u),f)}function m2(i,u){var f=ct(i)?wn:pn;return f(i,Ze(u,3))}function y2(i,u){var f=ct(i)?Vd:El;return f(i,Ze(u,3))}var v9=Gl(function(i,u,f){ot.call(i,f)?i[f].push(u):ai(i,f,[u])});function b9(i,u,f,b){i=_n(i)?i:e1(i),f=f&&!b?ft(f):0;var L=i.length;return f<0&&(f=Gt(L+f,0)),x0(i)?f<=L&&i.indexOf(u,f)>-1:!!L&&_o(i,u,f)>-1}var m9=dt(function(i,u,f){var b=-1,L=typeof u=="function",_=_n(i)?j(i.length):[];return pn(i,function(P){_[++b]=L?fn(u,P,f):xa(P,u,f)}),_}),y9=Gl(function(i,u,f){ai(i,f,u)});function b0(i,u){var f=ct(i)?At:_a;return f(i,Ze(u,3))}function C9(i,u,f,b){return i==null?[]:(ct(u)||(u=u==null?[]:[u]),f=b?n:f,ct(f)||(f=f==null?[]:[f]),Nr(i,u,f))}var w9=Gl(function(i,u,f){i[f?0:1].push(u)},function(){return[[],[]]});function x9(i,u,f){var b=ct(i)?I1:D1,L=arguments.length<3;return b(i,Ze(u,4),f,L,pn)}function z9(i,u,f){var b=ct(i)?Wd:D1,L=arguments.length<3;return b(i,Ze(u,4),f,L,El)}function L9(i,u){var f=ct(i)?Gi:J1;return f(i,C0(Ze(u,3)))}function S9(i){var u=ct(i)?kl:pf;return u(i)}function M9(i,u,f){(f?y(i,u,f):u===n)?u=1:u=ft(u);var b=ct(i)?lo:ho;return b(i,u)}function _9(i){var u=ct(i)?Rc:Si;return u(i)}function T9(i){if(i==null)return 0;if(_n(i))return x0(i)?ko(i):i.length;var u=Hr(i);return u==tr||u==it?i.size:Rl(i).length}function k9(i,u,f){var b=ct(i)?Mo:gf;return f&&y(i,u,f)&&(u=n),b(i,Ze(u,3))}var O9=dt(function(i,u){if(i==null)return[];var f=u.length;return f>1&&y(i,u[0],u[1])?u=[]:f>2&&y(u[0],u[1],u[2])&&(u=[u[0]]),Nr(i,Ir(u,1),[])}),m0=Yd||function(){return Ut.Date.now()};function E9(i,u){if(typeof u!="function")throw new on(h);return i=ft(i),function(){if(--i<1)return u.apply(this,arguments)}}function C2(i,u,f){return u=f?n:u,u=i&&u==null?i.length:u,Mn(i,De,n,n,n,n,u)}function w2(i,u){var f;if(typeof u!="function")throw new on(h);return i=ft(i),function(){return--i>0&&(f=u.apply(this,arguments)),i<=1&&(u=n),f}}var xf=dt(function(i,u,f){var b=ge;if(f.length){var L=Ki(f,$a(xf));b|=ke}return Mn(i,b,u,f,L)}),x2=dt(function(i,u,f){var b=ge|Te;if(f.length){var L=Ki(f,$a(x2));b|=ke}return Mn(u,b,i,f,L)});function z2(i,u,f){u=f?n:u;var b=Mn(i,be,n,n,n,n,n,u);return b.placeholder=z2.placeholder,b}function L2(i,u,f){u=f?n:u;var b=Mn(i,ve,n,n,n,n,n,u);return b.placeholder=L2.placeholder,b}function S2(i,u,f){var b,L,_,P,N,Z,ie=0,oe=!1,fe=!1,Me=!0;if(typeof i!="function")throw new on(h);u=ui(u)||0,er(f)&&(oe=!!f.leading,fe="maxWait"in f,_=fe?Gt(ui(f.maxWait)||0,u):_,Me="trailing"in f?!!f.trailing:Me);function Be(hr){var Oi=b,qo=L;return b=L=n,ie=hr,P=i.apply(qo,Oi),P}function Xe(hr){return ie=hr,N=Nt(mt,u),oe?Be(hr):P}function ht(hr){var Oi=hr-Z,qo=hr-ie,Z2=u-Oi;return fe?Tr(Z2,_-qo):Z2}function Je(hr){var Oi=hr-Z,qo=hr-ie;return Z===n||Oi>=u||Oi<0||fe&&qo>=_}function mt(){var hr=m0();if(Je(hr))return xt(hr);N=Nt(mt,ht(hr))}function xt(hr){return N=n,Me&&b?Be(hr):(b=L=n,P)}function qn(){N!==n&&ka(N),ie=0,b=Z=L=N=n}function bn(){return N===n?P:xt(m0())}function jn(){var hr=m0(),Oi=Je(hr);if(b=arguments,L=this,Z=hr,Oi){if(N===n)return Xe(Z);if(fe)return ka(N),N=Nt(mt,u),Be(Z)}return N===n&&(N=Nt(mt,u)),P}return jn.cancel=qn,jn.flush=bn,jn}var I9=dt(function(i,u){return Bc(i,1,u)}),A9=dt(function(i,u,f){return Bc(i,ui(u)||0,f)});function $9(i){return Mn(i,Ye)}function y0(i,u){if(typeof i!="function"||u!=null&&typeof u!="function")throw new on(h);var f=function(){var b=arguments,L=u?u.apply(this,b):b[0],_=f.cache;if(_.has(L))return _.get(L);var P=i.apply(this,b);return f.cache=_.set(L,P)||_,P};return f.cache=new(y0.Cache||Qt),f}y0.Cache=Qt;function C0(i){if(typeof i!="function")throw new on(h);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function P9(i){return w2(2,i)}var D9=vf(function(i,u){u=u.length==1&&ct(u[0])?At(u[0],Kr(Ze())):At(Ir(u,1),Kr(Ze()));var f=u.length;return dt(function(b){for(var L=-1,_=Tr(b.length,f);++L<_;)b[L]=u[L].call(this,b[L]);return fn(i,this,b)})}),zf=dt(function(i,u){var f=Ki(u,$a(zf));return Mn(i,ke,n,u,f)}),M2=dt(function(i,u){var f=Ki(u,$a(M2));return Mn(i,$e,n,u,f)}),N9=_i(function(i,u){return Mn(i,je,n,n,n,u)});function R9(i,u){if(typeof i!="function")throw new on(h);return u=u===n?u:ft(u),dt(i,u)}function H9(i,u){if(typeof i!="function")throw new on(h);return u=u==null?0:Gt(ft(u),0),dt(function(f){var b=f[u],L=po(f,0,u);return b&&qi(L,b),fn(i,this,L)})}function F9(i,u,f){var b=!0,L=!0;if(typeof i!="function")throw new on(h);return er(f)&&(b="leading"in f?!!f.leading:b,L="trailing"in f?!!f.trailing:L),S2(i,u,{leading:b,maxWait:u,trailing:L})}function B9(i){return C2(i,1)}function V9(i,u){return zf(Wl(u),i)}function W9(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function Z9(i){return Xr(i,H)}function U9(i,u){return u=typeof u=="function"?u:n,Xr(i,H,u)}function G9(i){return Xr(i,D|H)}function q9(i,u){return u=typeof u=="function"?u:n,Xr(i,D|H,u)}function j9(i,u){return u==null||Fc(i,u,Zr(u))}function ki(i,u){return i===u||i!==i&&u!==u}var K9=Dt(Pl),Y9=Dt(function(i,u){return i>=u}),As=za(function(){return arguments}())?za:function(i){return nr(i)&&ot.call(i,"callee")&&!Ll.call(i,"callee")},ct=j.isArray,X9=pc?Kr(pc):df;function _n(i){return i!=null&&w0(i.length)&&!Uo(i)}function fr(i){return nr(i)&&_n(i)}function J9(i){return i===!0||i===!1||nr(i)&&mr(i)==Ge}var Ra=hs||$f,Q9=gc?Kr(gc):La;function e8(i){return nr(i)&&i.nodeType===1&&!vu(i)}function t8(i){if(i==null)return!0;if(_n(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Ra(i)||Ql(i)||As(i)))return!i.length;var u=Hr(i);if(u==tr||u==it)return!i.size;if(K(i))return!Rl(i).length;for(var f in i)if(ot.call(i,f))return!1;return!0}function r8(i,u){return Sa(i,u)}function n8(i,u,f){f=typeof f=="function"?f:n;var b=f?f(i,u):n;return b===n?Sa(i,u,n,f):!!b}function Lf(i){if(!nr(i))return!1;var u=mr(i);return u==Ue||u==lt||typeof i.message=="string"&&typeof i.name=="string"&&!vu(i)}function i8(i){return typeof i=="number"&&Ec(i)}function Uo(i){if(!er(i))return!1;var u=mr(i);return u==Zt||u==Ur||u==Ne||u==en}function _2(i){return typeof i=="number"&&i==ft(i)}function w0(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Ae}function er(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function nr(i){return i!=null&&typeof i=="object"}var T2=vc?Kr(vc):Uc;function o8(i,u){return i===u||Ho(i,u,Pa(u))}function a8(i,u,f){return f=typeof f=="function"?f:n,Ho(i,u,Pa(u),f)}function s8(i){return k2(i)&&i!=+i}function l8(i){if(F(i))throw new nt(g);return Ma(i)}function u8(i){return i===null}function c8(i){return i==null}function k2(i){return typeof i=="number"||nr(i)&&mr(i)==Qe}function vu(i){if(!nr(i)||mr(i)!=Et)return!1;var u=pa(i);if(u===null)return!0;var f=ot.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&ri.call(f)==jd}var Sf=bc?Kr(bc):xs;function d8(i){return _2(i)&&i>=-Ae&&i<=Ae}var O2=k1?Kr(k1):zs;function x0(i){return typeof i=="string"||!ct(i)&&nr(i)&&mr(i)==U}function Gn(i){return typeof i=="symbol"||nr(i)&&mr(i)==se}var Ql=O1?Kr(O1):Gc;function f8(i){return i===n}function h8(i){return nr(i)&&Hr(i)==tt}function p8(i){return nr(i)&&mr(i)==sr}var g8=Dt(fo),v8=Dt(function(i,u){return i<=u});function E2(i){if(!i)return[];if(_n(i))return x0(i)?xn(i):yr(i);if(eo&&i[eo])return xc(i[eo]());var u=Hr(i),f=u==tr?yl:u==it?Cl:e1;return f(i)}function Go(i){if(!i)return i===0?i:0;if(i=ui(i),i===ce||i===-ce){var u=i<0?-1:1;return u*et}return i===i?i:0}function ft(i){var u=Go(i),f=u%1;return u===u?f?u-f:u:0}function I2(i){return i?No(ft(i),0,yt):0}function ui(i){if(typeof i=="number")return i;if(Gn(i))return pt;if(er(i)){var u=typeof i.valueOf=="function"?i.valueOf():i;i=er(u)?u+"":u}if(typeof i!="string")return i===0?i:+i;i=us(i);var f=Rn.test(i);return f||cn.test(i)?Fd(i.slice(2),f?2:8):sa.test(i)?pt:+i}function A2(i){return an(i,Tn(i))}function b8(i){return i?No(ft(i),-Ae,Ae):i===0?i:0}function Rt(i){return i==null?"":Rr(i)}var m8=Oa(function(i,u){if(K(u)||_n(u)){an(u,Zr(u),i);return}for(var f in u)ot.call(u,f)&&ys(i,f,u[f])}),$2=Oa(function(i,u){an(u,Tn(u),i)}),z0=Oa(function(i,u,f,b){an(u,Tn(u),i,b)}),y8=Oa(function(i,u,f,b){an(u,Zr(u),i,b)}),C8=_i(Y1);function w8(i,u){var f=ii(i);return u==null?f:K1(f,u)}var x8=dt(function(i,u){i=wt(i);var f=-1,b=u.length,L=b>2?u[2]:n;for(L&&y(u[0],u[1],L)&&(b=1);++f<b;)for(var _=u[f],P=Tn(_),N=-1,Z=P.length;++N<Z;){var ie=P[N],oe=i[ie];(oe===n||ki(oe,Ji[ie])&&!ot.call(i,ie))&&(i[ie]=_[ie])}return i}),z8=dt(function(i){return i.push(n,fu),fn(P2,n,i)});function L8(i,u){return da(i,Ze(u,3),gn)}function S8(i,u){return da(i,Ze(u,3),$l)}function M8(i,u){return i==null?i:Al(i,Ze(u,3),Tn)}function _8(i,u){return i==null?i:br(i,Ze(u,3),Tn)}function T8(i,u){return i&&gn(i,Ze(u,3))}function k8(i,u){return i&&$l(i,Ze(u,3))}function O8(i){return i==null?[]:ws(i,Zr(i))}function E8(i){return i==null?[]:ws(i,Tn(i))}function Mf(i,u,f){var b=i==null?n:uo(i,u);return b===n?f:b}function I8(i,u){return i!=null&&r(i,u,Vc)}function _f(i,u){return i!=null&&r(i,u,Wc)}var A8=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=Oo.call(u)),i[u]=f},kf(kn)),$8=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=Oo.call(u)),ot.call(i,u)?i[u].push(f):i[u]=[f]},Ze),P8=dt(xa);function Zr(i){return _n(i)?q1(i):Rl(i)}function Tn(i){return _n(i)?q1(i,!0):co(i)}function D8(i,u){var f={};return u=Ze(u,3),gn(i,function(b,L,_){ai(f,u(b,L,_),b)}),f}function N8(i,u){var f={};return u=Ze(u,3),gn(i,function(b,L,_){ai(f,L,u(b,L,_))}),f}var R8=Oa(function(i,u,f){Hl(i,u,f)}),P2=Oa(function(i,u,f,b){Hl(i,u,f,b)}),H8=_i(function(i,u){var f={};if(i==null)return f;var b=!1;u=At(u,function(_){return _=Un(_,i),b||(b=_.length>1),_}),an(i,Kl(i),f),b&&(f=Xr(f,D|B|H,f0));for(var L=u.length;L--;)Ms(f,u[L]);return f});function F8(i,u){return D2(i,C0(Ze(u)))}var B8=_i(function(i,u){return i==null?{}:Yc(i,u)});function D2(i,u){if(i==null)return{};var f=At(Kl(i),function(b){return[b]});return u=Ze(u),Xc(i,f,function(b,L){return u(b,L[0])})}function V8(i,u,f){u=Un(u,i);var b=-1,L=u.length;for(L||(L=1,i=n);++b<L;){var _=i==null?n:i[$t(u[b])];_===n&&(b=L,_=f),i=Uo(_)?_.call(i):_}return i}function W8(i,u,f){return i==null?i:Li(i,u,f)}function Z8(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:Li(i,u,f,b)}var N2=Sn(Zr),R2=Sn(Tn);function U8(i,u,f){var b=ct(i),L=b||Ra(i)||Ql(i);if(u=Ze(u,4),f==null){var _=i&&i.constructor;L?f=b?new _:[]:er(i)?f=Uo(_)?ii(pa(i)):{}:f={}}return(L?wn:gn)(i,function(P,N,Z){return u(f,P,N,Z)}),f}function G8(i,u){return i==null?!0:Ms(i,u)}function q8(i,u,f){return i==null?i:Vl(i,u,Wl(f))}function j8(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:Vl(i,u,Wl(f),b)}function e1(i){return i==null?[]:bl(i,Zr(i))}function K8(i){return i==null?[]:bl(i,Tn(i))}function Y8(i,u,f){return f===n&&(f=u,u=n),f!==n&&(f=ui(f),f=f===f?f:0),u!==n&&(u=ui(u),u=u===u?u:0),No(ui(i),u,f)}function X8(i,u,f){return u=Go(u),f===n?(f=u,u=0):f=Go(f),i=ui(i),wa(i,u,f)}function J8(i,u,f){if(f&&typeof f!="boolean"&&y(i,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&u===n?(i=0,u=1):(i=Go(i),u===n?(u=i,i=0):u=Go(u)),i>u){var b=i;i=u,u=b}if(f||i%1||u%1){var L=no();return Tr(i+L*(u-i+Hd("1e-"+((L+"").length-1))),u)}return Fl(i,u)}var Q8=Ea(function(i,u,f){return u=u.toLowerCase(),i+(f?H2(u):u)});function H2(i){return Tf(Rt(i).toLowerCase())}function F2(i){return i=Rt(i),i&&i.replace(ts,Cc).replace(uc,"")}function eg(i,u,f){i=Rt(i),u=Rr(u);var b=i.length;f=f===n?b:No(ft(f),0,b);var L=f;return f-=u.length,f>=0&&i.slice(f,L)==u}function tg(i){return i=Rt(i),i&&ln.test(i)?i.replace(vr,qd):i}function rg(i){return i=Rt(i),i&&Xn.test(i)?i.replace(xo,"\\$&"):i}var ng=Ea(function(i,u,f){return i+(f?"-":"")+u.toLowerCase()}),ig=Ea(function(i,u,f){return i+(f?" ":"")+u.toLowerCase()}),og=l0("toLowerCase");function ag(i,u,f){i=Rt(i),u=ft(u);var b=u?ko(i):0;if(!u||b>=u)return i;var L=(u-b)/2;return ql(ba(L),f)+i+ql(va(L),f)}function sg(i,u,f){i=Rt(i),u=ft(u);var b=u?ko(i):0;return u&&b<u?i+ql(u-b,f):i}function lg(i,u,f){i=Rt(i),u=ft(u);var b=u?ko(i):0;return u&&b<u?ql(u-b,f)+i:i}function ug(i,u,f){return f||u==null?u=0:u&&(u=+u),ps(Rt(i).replace(zo,""),u||0)}function cg(i,u,f){return(f?y(i,u,f):u===n)?u=1:u=ft(u),ru(Rt(i),u)}function dg(){var i=arguments,u=Rt(i[0]);return i.length<3?u:u.replace(i[1],i[2])}var fg=Ea(function(i,u,f){return i+(f?"_":"")+u.toLowerCase()});function hg(i,u,f){return f&&typeof f!="number"&&y(i,u,f)&&(u=f=n),f=f===n?yt:f>>>0,f?(i=Rt(i),i&&(typeof u=="string"||u!=null&&!Sf(u))&&(u=Rr(u),!u&&Vn(i))?po(xn(i),0,f):i.split(u,f)):[]}var pg=Ea(function(i,u,f){return i+(f?" ":"")+Tf(u)});function gg(i,u,f){return i=Rt(i),f=f==null?0:No(ft(f),0,i.length),u=Rr(u),i.slice(f,f+u.length)==u}function vg(i,u,f){var b=M.templateSettings;f&&y(i,u,f)&&(u=n),i=Rt(i),u=z0({},u,b,jl);var L=z0({},u.imports,b.imports,jl),_=Zr(L),P=bl(L,_),N,Z,ie=0,oe=u.interpolate||Bt,fe="__p += '",Me=Xi((u.escape||Bt).source+"|"+oe.source+"|"+(oe===Xa?yi:Bt).source+"|"+(u.evaluate||Bt).source+"|$","g"),Be="//# sourceURL="+(ot.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++T1+"]")+`
1689
- `;i.replace(Me,function(Je,mt,xt,qn,bn,jn){return xt||(xt=qn),fe+=i.slice(ie,jn).replace(Ee,wc),mt&&(N=!0,fe+=`' +
1691
+ `)}function v(i){return ct(i)||As(i)||!!(Io&&i&&i[Io])}function m(i,u){var f=typeof i;return u=u==null?Ae:u,!!u&&(f=="number"||f!="symbol"&&es.test(i))&&i>-1&&i%1==0&&i<u}function y(i,u,f){if(!er(f))return!1;var b=typeof u;return(b=="number"?_n(f)&&m(u,f.length):b=="string"&&u in f)?ki(f[u],i):!1}function C(i,u){if(ct(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||Gn(i)?!0:jr.test(i)||!Ja.test(i)||u!=null&&i in wt(u)}function T(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function I(i){var u=Is(i),f=M[u];if(typeof f!="function"||!(u in vt.prototype))return!1;if(i===f)return!0;var b=Mt(f);return!!b&&i===b[0]}function V(i){return!!xi&&xi in i}var F=ti?Uo:$f;function K(i){var u=i&&i.constructor,f=typeof u=="function"&&u.prototype||Ji;return i===f}function ne(i){return i===i&&!er(i)}function he(i,u){return function(f){return f==null?!1:f[i]===u&&(u!==n||i in wt(f))}}function me(i){var u=y0(i,function(b){return f.size===S&&f.clear(),b}),f=u.cache;return u}function xe(i,u){var f=i[1],b=u[1],L=f|b,_=L<(ge|Te|De),P=b==De&&f==be||b==De&&f==je&&i[7].length<=u[8]||b==(De|je)&&u[7].length<=u[8]&&f==be;if(!(_||P))return i;b&ge&&(i[2]=u[2],L|=f&ge?0:Ie);var R=u[3];if(R){var Z=i[3];i[3]=Z?n0(Z,R,u[4]):R,i[4]=Z?Ki(i[3],E):u[4]}return R=u[5],R&&(Z=i[5],i[5]=Z?Ul(Z,R,u[6]):R,i[6]=Z?Ki(i[5],E):u[6]),R=u[7],R&&(i[7]=R),b&De&&(i[8]=i[8]==null?u[8]:Tr(i[8],u[8])),i[9]==null&&(i[9]=u[9]),i[0]=u[0],i[1]=L,i}function ye(i){var u=[];if(i!=null)for(var f in wt(i))u.push(f);return u}function Se(i){return Oo.call(i)}function Fe(i,u,f){return u=Gt(u===n?i.length-1:u,0),function(){for(var b=arguments,L=-1,_=Gt(b.length-u,0),P=j(_);++L<_;)P[L]=b[u+L];L=-1;for(var R=j(u+1);++L<u;)R[L]=b[L];return R[u]=f(P),fn(i,this,R)}}function Pe(i,u){return u.length<2?i:uo(i,Ln(u,0,-1))}function ut(i,u){for(var f=i.length,b=Tr(u.length,f),L=yr(i);b--;){var _=u[b];i[b]=m(_,f)?L[_]:n}return i}function It(i,u){if(!(u==="constructor"&&typeof i[u]=="function")&&u!="__proto__")return i[u]}var rr=Xt(Ls),Nt=Xd||function(i,u){return Ut.setTimeout(i,u)},Fr=Xt(Ss);function Br(i,u,f){var b=u+"";return Fr(i,p(b,jt(e(b),f)))}function Xt(i){var u=0,f=0;return function(){var b=$o(),L=$-(b-f);if(f=b,L>0){if(++u>=Q)return arguments[0]}else u=0;return i.apply(n,arguments)}}function Cr(i,u){var f=-1,b=i.length,L=b-1;for(u=u===n?b:u;++f<u;){var _=Fl(f,L),P=i[_];i[_]=i[f],i[f]=P}return i.length=u,i}var cr=me(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(nl,function(f,b,L,_){u.push(L?_.replace(al,"$1"):b||f)}),u});function $t(i){if(typeof i=="string"||Gn(i))return i;var u=i+"";return u=="0"&&1/i==-ce?"-0":u}function Ft(i){if(i!=null){try{return ri.call(i)}catch{}try{return i+""}catch{}}return""}function jt(i,u){return wn(zt,function(f){var b="_."+f[0];u&f[1]&&!ls(i,b)&&i.push(b)}),i.sort()}function Vr(i){if(i instanceof vt)return i.clone();var u=new Xr(i.__wrapped__,i.__chain__);return u.__actions__=yr(i.__actions__),u.__index__=i.__index__,u.__values__=i.__values__,u}function Da(i,u,f){(f?y(i,u,f):u===n)?u=1:u=Gt(ft(u),0);var b=i==null?0:i.length;if(!b||u<1)return[];for(var L=0,_=0,P=j(va(b/u));L<b;)P[_++]=Ln(i,L,L+=u);return P}function go(i){for(var u=-1,f=i==null?0:i.length,b=0,L=[];++u<f;){var _=i[u];_&&(L[b++]=_)}return L}function Ar(){var i=arguments.length;if(!i)return[];for(var u=j(i-1),f=arguments[0],b=i;b--;)u[b-1]=arguments[b];return qi(ct(f)?yr(f):[f],Ir(u,1))}var si=dt(function(i,u){return fr(i)?Ca(i,Ir(u,1,fr,!0)):[]}),dr=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?Ca(i,Ir(u,1,fr,!0),Ze(f,2)):[]}),gu=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?Ca(i,Ir(u,1,fr,!0),n,f):[]});function Ti(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),Ln(i,u<0?0:u,b)):[]}function Wo(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,0,u<0?0:u)):[]}function Zo(i,u){return i&&i.length?Ta(i,Ze(u,3),!0,!0):[]}function Wr(i,u){return i&&i.length?Ta(i,Ze(u,3),!0):[]}function Na(i,u,f,b){var L=i==null?0:i.length;return L?(f&&typeof f!="number"&&y(i,u,f)&&(f=0,b=L),X1(i,u,f,b)):[]}function Jl(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),gl(i,Ze(u,3),L)}function f2(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b-1;return f!==n&&(L=ft(f),L=f<0?Gt(b+L,0):Tr(L,b-1)),gl(i,Ze(u,3),L,!0)}function h2(i){var u=i==null?0:i.length;return u?Ir(i,1):[]}function u7(i){var u=i==null?0:i.length;return u?Ir(i,ce):[]}function c7(i,u){var f=i==null?0:i.length;return f?(u=u===n?1:ft(u),Ir(i,u)):[]}function d7(i){for(var u=-1,f=i==null?0:i.length,b={};++u<f;){var L=i[u];b[L[0]]=L[1]}return b}function p2(i){return i&&i.length?i[0]:n}function f7(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),_o(i,u,L)}function h7(i){var u=i==null?0:i.length;return u?Ln(i,0,-1):[]}var p7=dt(function(i){var u=At(i,au);return u.length&&u[0]===i[0]?Dl(u):[]}),g7=dt(function(i){var u=li(i),f=At(i,au);return u===li(f)?u=n:f.pop(),f.length&&f[0]===i[0]?Dl(f,Ze(u,2)):[]}),v7=dt(function(i){var u=li(i),f=At(i,au);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===i[0]?Dl(f,n,u):[]});function b7(i,u){return i==null?"":Sl.call(i,u)}function li(i){var u=i==null?0:i.length;return u?i[u-1]:n}function m7(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b;return f!==n&&(L=ft(f),L=L<0?Gt(b+L,0):Tr(L,b-1)),u===u?cs(i,u,L):gl(i,vl,L,!0)}function y7(i,u){return i&&i.length?Kc(i,ft(u)):n}var C7=dt(g2);function g2(i,u){return i&&i.length&&u&&u.length?eu(i,u):i}function w7(i,u,f){return i&&i.length&&u&&u.length?eu(i,u,Ze(f,2)):i}function x7(i,u,f){return i&&i.length&&u&&u.length?eu(i,u,n,f):i}var z7=_i(function(i,u){var f=i==null?0:i.length,b=Y1(i,u);return tu(i,At(u,function(L){return m(L,f)?+L:L}).sort(uu)),b});function L7(i,u){var f=[];if(!(i&&i.length))return f;var b=-1,L=[],_=i.length;for(u=Ze(u,3);++b<_;){var P=i[b];u(P,b,i)&&(f.push(P),L.push(b))}return tu(i,L),f}function Cf(i){return i==null?i:gs.call(i)}function S7(i,u,f){var b=i==null?0:i.length;return b?(f&&typeof f!="number"&&y(i,u,f)?(u=0,f=b):(u=u==null?0:ft(u),f=f===n?b:ft(f)),Ln(i,u,f)):[]}function M7(i,u){return Mi(i,u)}function _7(i,u,f){return Bl(i,u,Ze(f,2))}function T7(i,u){var f=i==null?0:i.length;if(f){var b=Mi(i,u);if(b<f&&ki(i[b],u))return b}return-1}function k7(i,u){return Mi(i,u,!0)}function O7(i,u,f){return Bl(i,u,Ze(f,2),!0)}function E7(i,u){var f=i==null?0:i.length;if(f){var b=Mi(i,u,!0)-1;if(ki(i[b],u))return b}return-1}function I7(i){return i&&i.length?nu(i):[]}function A7(i,u){return i&&i.length?nu(i,Ze(u,2)):[]}function $7(i){var u=i==null?0:i.length;return u?Ln(i,1,u):[]}function P7(i,u,f){return i&&i.length?(u=f||u===n?1:ft(u),Ln(i,0,u<0?0:u)):[]}function D7(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,u<0?0:u,b)):[]}function N7(i,u){return i&&i.length?Ta(i,Ze(u,3),!1,!0):[]}function R7(i,u){return i&&i.length?Ta(i,Ze(u,3)):[]}var H7=dt(function(i){return vn(Ir(i,1,fr,!0))}),F7=dt(function(i){var u=li(i);return fr(u)&&(u=n),vn(Ir(i,1,fr,!0),Ze(u,2))}),B7=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,vn(Ir(i,1,fr,!0),n,u)});function V7(i){return i&&i.length?vn(i):[]}function W7(i,u){return i&&i.length?vn(i,Ze(u,2)):[]}function Z7(i,u){return u=typeof u=="function"?u:n,i&&i.length?vn(i,n,u):[]}function wf(i){if(!(i&&i.length))return[];var u=0;return i=Gi(i,function(f){if(fr(f))return u=Gt(f.length,u),!0}),To(u,function(f){return At(i,$1(f))})}function v2(i,u){if(!(i&&i.length))return[];var f=wf(i);return u==null?f:At(f,function(b){return fn(u,n,b)})}var U7=dt(function(i,u){return fr(i)?Ca(i,u):[]}),G7=dt(function(i){return Fo(Gi(i,fr))}),q7=dt(function(i){var u=li(i);return fr(u)&&(u=n),Fo(Gi(i,fr),Ze(u,2))}),j7=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,Fo(Gi(i,fr),n,u)}),K7=dt(wf);function Y7(i,u){return ou(i||[],u||[],ys)}function X7(i,u){return ou(i||[],u||[],Li)}var J7=dt(function(i){var u=i.length,f=u>1?i[u-1]:n;return f=typeof f=="function"?(i.pop(),f):n,v2(i,f)});function b2(i){var u=M(i);return u.__chain__=!0,u}function Q7(i,u){return u(i),i}function v0(i,u){return u(i)}var e9=_i(function(i){var u=i.length,f=u?i[0]:0,b=this.__wrapped__,L=function(_){return Y1(_,i)};return u>1||this.__actions__.length||!(b instanceof vt)||!m(f)?this.thru(L):(b=b.slice(f,+f+(u?1:0)),b.__actions__.push({func:v0,args:[L],thisArg:n}),new Xr(b,this.__chain__).thru(function(_){return u&&!_.length&&_.push(n),_}))});function t9(){return b2(this)}function r9(){return new Xr(this.value(),this.__chain__)}function n9(){this.__values__===n&&(this.__values__=E2(this.value()));var i=this.__index__>=this.__values__.length,u=i?n:this.__values__[this.__index__++];return{done:i,value:u}}function i9(){return this}function o9(i){for(var u,f=this;f instanceof _l;){var b=Vr(f);b.__index__=0,b.__values__=n,u?L.__wrapped__=b:u=b;var L=b;f=f.__wrapped__}return L.__wrapped__=i,u}function a9(){var i=this.__wrapped__;if(i instanceof vt){var u=i;return this.__actions__.length&&(u=new vt(this)),u=u.reverse(),u.__actions__.push({func:v0,args:[Cf],thisArg:n}),new Xr(u,this.__chain__)}return this.thru(Cf)}function s9(){return Qc(this.__wrapped__,this.__actions__)}var l9=Gl(function(i,u,f){ot.call(i,f)?++i[f]:ai(i,f,1)});function u9(i,u,f){var b=ct(i)?E1:Il;return f&&y(i,u,f)&&(u=n),b(i,Ze(u,3))}function c9(i,u){var f=ct(i)?Gi:J1;return f(i,Ze(u,3))}var d9=du(Jl),f9=du(f2);function h9(i,u){return Ir(b0(i,u),1)}function p9(i,u){return Ir(b0(i,u),ce)}function g9(i,u,f){return f=f===n?1:ft(f),Ir(b0(i,u),f)}function m2(i,u){var f=ct(i)?wn:pn;return f(i,Ze(u,3))}function y2(i,u){var f=ct(i)?Vd:El;return f(i,Ze(u,3))}var v9=Gl(function(i,u,f){ot.call(i,f)?i[f].push(u):ai(i,f,[u])});function b9(i,u,f,b){i=_n(i)?i:e1(i),f=f&&!b?ft(f):0;var L=i.length;return f<0&&(f=Gt(L+f,0)),x0(i)?f<=L&&i.indexOf(u,f)>-1:!!L&&_o(i,u,f)>-1}var m9=dt(function(i,u,f){var b=-1,L=typeof u=="function",_=_n(i)?j(i.length):[];return pn(i,function(P){_[++b]=L?fn(u,P,f):xa(P,u,f)}),_}),y9=Gl(function(i,u,f){ai(i,f,u)});function b0(i,u){var f=ct(i)?At:_a;return f(i,Ze(u,3))}function C9(i,u,f,b){return i==null?[]:(ct(u)||(u=u==null?[]:[u]),f=b?n:f,ct(f)||(f=f==null?[]:[f]),Nr(i,u,f))}var w9=Gl(function(i,u,f){i[f?0:1].push(u)},function(){return[[],[]]});function x9(i,u,f){var b=ct(i)?I1:D1,L=arguments.length<3;return b(i,Ze(u,4),f,L,pn)}function z9(i,u,f){var b=ct(i)?Wd:D1,L=arguments.length<3;return b(i,Ze(u,4),f,L,El)}function L9(i,u){var f=ct(i)?Gi:J1;return f(i,C0(Ze(u,3)))}function S9(i){var u=ct(i)?kl:pf;return u(i)}function M9(i,u,f){(f?y(i,u,f):u===n)?u=1:u=ft(u);var b=ct(i)?lo:ho;return b(i,u)}function _9(i){var u=ct(i)?Rc:Si;return u(i)}function T9(i){if(i==null)return 0;if(_n(i))return x0(i)?ko(i):i.length;var u=Hr(i);return u==tr||u==it?i.size:Rl(i).length}function k9(i,u,f){var b=ct(i)?Mo:gf;return f&&y(i,u,f)&&(u=n),b(i,Ze(u,3))}var O9=dt(function(i,u){if(i==null)return[];var f=u.length;return f>1&&y(i,u[0],u[1])?u=[]:f>2&&y(u[0],u[1],u[2])&&(u=[u[0]]),Nr(i,Ir(u,1),[])}),m0=Yd||function(){return Ut.Date.now()};function E9(i,u){if(typeof u!="function")throw new on(h);return i=ft(i),function(){if(--i<1)return u.apply(this,arguments)}}function C2(i,u,f){return u=f?n:u,u=i&&u==null?i.length:u,Mn(i,De,n,n,n,n,u)}function w2(i,u){var f;if(typeof u!="function")throw new on(h);return i=ft(i),function(){return--i>0&&(f=u.apply(this,arguments)),i<=1&&(u=n),f}}var xf=dt(function(i,u,f){var b=ge;if(f.length){var L=Ki(f,$a(xf));b|=ke}return Mn(i,b,u,f,L)}),x2=dt(function(i,u,f){var b=ge|Te;if(f.length){var L=Ki(f,$a(x2));b|=ke}return Mn(u,b,i,f,L)});function z2(i,u,f){u=f?n:u;var b=Mn(i,be,n,n,n,n,n,u);return b.placeholder=z2.placeholder,b}function L2(i,u,f){u=f?n:u;var b=Mn(i,ve,n,n,n,n,n,u);return b.placeholder=L2.placeholder,b}function S2(i,u,f){var b,L,_,P,R,Z,ie=0,oe=!1,fe=!1,Me=!0;if(typeof i!="function")throw new on(h);u=ui(u)||0,er(f)&&(oe=!!f.leading,fe="maxWait"in f,_=fe?Gt(ui(f.maxWait)||0,u):_,Me="trailing"in f?!!f.trailing:Me);function Be(hr){var Oi=b,qo=L;return b=L=n,ie=hr,P=i.apply(qo,Oi),P}function Xe(hr){return ie=hr,R=Nt(mt,u),oe?Be(hr):P}function ht(hr){var Oi=hr-Z,qo=hr-ie,Z2=u-Oi;return fe?Tr(Z2,_-qo):Z2}function Je(hr){var Oi=hr-Z,qo=hr-ie;return Z===n||Oi>=u||Oi<0||fe&&qo>=_}function mt(){var hr=m0();if(Je(hr))return xt(hr);R=Nt(mt,ht(hr))}function xt(hr){return R=n,Me&&b?Be(hr):(b=L=n,P)}function qn(){R!==n&&ka(R),ie=0,b=Z=L=R=n}function bn(){return R===n?P:xt(m0())}function jn(){var hr=m0(),Oi=Je(hr);if(b=arguments,L=this,Z=hr,Oi){if(R===n)return Xe(Z);if(fe)return ka(R),R=Nt(mt,u),Be(Z)}return R===n&&(R=Nt(mt,u)),P}return jn.cancel=qn,jn.flush=bn,jn}var I9=dt(function(i,u){return Bc(i,1,u)}),A9=dt(function(i,u,f){return Bc(i,ui(u)||0,f)});function $9(i){return Mn(i,Ye)}function y0(i,u){if(typeof i!="function"||u!=null&&typeof u!="function")throw new on(h);var f=function(){var b=arguments,L=u?u.apply(this,b):b[0],_=f.cache;if(_.has(L))return _.get(L);var P=i.apply(this,b);return f.cache=_.set(L,P)||_,P};return f.cache=new(y0.Cache||Qt),f}y0.Cache=Qt;function C0(i){if(typeof i!="function")throw new on(h);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function P9(i){return w2(2,i)}var D9=vf(function(i,u){u=u.length==1&&ct(u[0])?At(u[0],Yr(Ze())):At(Ir(u,1),Yr(Ze()));var f=u.length;return dt(function(b){for(var L=-1,_=Tr(b.length,f);++L<_;)b[L]=u[L].call(this,b[L]);return fn(i,this,b)})}),zf=dt(function(i,u){var f=Ki(u,$a(zf));return Mn(i,ke,n,u,f)}),M2=dt(function(i,u){var f=Ki(u,$a(M2));return Mn(i,$e,n,u,f)}),N9=_i(function(i,u){return Mn(i,je,n,n,n,u)});function R9(i,u){if(typeof i!="function")throw new on(h);return u=u===n?u:ft(u),dt(i,u)}function H9(i,u){if(typeof i!="function")throw new on(h);return u=u==null?0:Gt(ft(u),0),dt(function(f){var b=f[u],L=po(f,0,u);return b&&qi(L,b),fn(i,this,L)})}function F9(i,u,f){var b=!0,L=!0;if(typeof i!="function")throw new on(h);return er(f)&&(b="leading"in f?!!f.leading:b,L="trailing"in f?!!f.trailing:L),S2(i,u,{leading:b,maxWait:u,trailing:L})}function B9(i){return C2(i,1)}function V9(i,u){return zf(Wl(u),i)}function W9(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function Z9(i){return Jr(i,H)}function U9(i,u){return u=typeof u=="function"?u:n,Jr(i,H,u)}function G9(i){return Jr(i,D|H)}function q9(i,u){return u=typeof u=="function"?u:n,Jr(i,D|H,u)}function j9(i,u){return u==null||Fc(i,u,Zr(u))}function ki(i,u){return i===u||i!==i&&u!==u}var K9=Dt(Pl),Y9=Dt(function(i,u){return i>=u}),As=za(function(){return arguments}())?za:function(i){return nr(i)&&ot.call(i,"callee")&&!Ll.call(i,"callee")},ct=j.isArray,X9=pc?Yr(pc):df;function _n(i){return i!=null&&w0(i.length)&&!Uo(i)}function fr(i){return nr(i)&&_n(i)}function J9(i){return i===!0||i===!1||nr(i)&&mr(i)==Ge}var Ra=hs||$f,Q9=gc?Yr(gc):La;function e8(i){return nr(i)&&i.nodeType===1&&!vu(i)}function t8(i){if(i==null)return!0;if(_n(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Ra(i)||Ql(i)||As(i)))return!i.length;var u=Hr(i);if(u==tr||u==it)return!i.size;if(K(i))return!Rl(i).length;for(var f in i)if(ot.call(i,f))return!1;return!0}function r8(i,u){return Sa(i,u)}function n8(i,u,f){f=typeof f=="function"?f:n;var b=f?f(i,u):n;return b===n?Sa(i,u,n,f):!!b}function Lf(i){if(!nr(i))return!1;var u=mr(i);return u==Ue||u==lt||typeof i.message=="string"&&typeof i.name=="string"&&!vu(i)}function i8(i){return typeof i=="number"&&Ec(i)}function Uo(i){if(!er(i))return!1;var u=mr(i);return u==Zt||u==Gr||u==Ne||u==en}function _2(i){return typeof i=="number"&&i==ft(i)}function w0(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Ae}function er(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function nr(i){return i!=null&&typeof i=="object"}var T2=vc?Yr(vc):Uc;function o8(i,u){return i===u||Ho(i,u,Pa(u))}function a8(i,u,f){return f=typeof f=="function"?f:n,Ho(i,u,Pa(u),f)}function s8(i){return k2(i)&&i!=+i}function l8(i){if(F(i))throw new nt(g);return Ma(i)}function u8(i){return i===null}function c8(i){return i==null}function k2(i){return typeof i=="number"||nr(i)&&mr(i)==Qe}function vu(i){if(!nr(i)||mr(i)!=Et)return!1;var u=pa(i);if(u===null)return!0;var f=ot.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&ri.call(f)==jd}var Sf=bc?Yr(bc):xs;function d8(i){return _2(i)&&i>=-Ae&&i<=Ae}var O2=k1?Yr(k1):zs;function x0(i){return typeof i=="string"||!ct(i)&&nr(i)&&mr(i)==U}function Gn(i){return typeof i=="symbol"||nr(i)&&mr(i)==se}var Ql=O1?Yr(O1):Gc;function f8(i){return i===n}function h8(i){return nr(i)&&Hr(i)==tt}function p8(i){return nr(i)&&mr(i)==sr}var g8=Dt(fo),v8=Dt(function(i,u){return i<=u});function E2(i){if(!i)return[];if(_n(i))return x0(i)?xn(i):yr(i);if(eo&&i[eo])return xc(i[eo]());var u=Hr(i),f=u==tr?yl:u==it?Cl:e1;return f(i)}function Go(i){if(!i)return i===0?i:0;if(i=ui(i),i===ce||i===-ce){var u=i<0?-1:1;return u*et}return i===i?i:0}function ft(i){var u=Go(i),f=u%1;return u===u?f?u-f:u:0}function I2(i){return i?No(ft(i),0,yt):0}function ui(i){if(typeof i=="number")return i;if(Gn(i))return pt;if(er(i)){var u=typeof i.valueOf=="function"?i.valueOf():i;i=er(u)?u+"":u}if(typeof i!="string")return i===0?i:+i;i=us(i);var f=Rn.test(i);return f||cn.test(i)?Fd(i.slice(2),f?2:8):sa.test(i)?pt:+i}function A2(i){return an(i,Tn(i))}function b8(i){return i?No(ft(i),-Ae,Ae):i===0?i:0}function Rt(i){return i==null?"":Rr(i)}var m8=Oa(function(i,u){if(K(u)||_n(u)){an(u,Zr(u),i);return}for(var f in u)ot.call(u,f)&&ys(i,f,u[f])}),$2=Oa(function(i,u){an(u,Tn(u),i)}),z0=Oa(function(i,u,f,b){an(u,Tn(u),i,b)}),y8=Oa(function(i,u,f,b){an(u,Zr(u),i,b)}),C8=_i(Y1);function w8(i,u){var f=ii(i);return u==null?f:K1(f,u)}var x8=dt(function(i,u){i=wt(i);var f=-1,b=u.length,L=b>2?u[2]:n;for(L&&y(u[0],u[1],L)&&(b=1);++f<b;)for(var _=u[f],P=Tn(_),R=-1,Z=P.length;++R<Z;){var ie=P[R],oe=i[ie];(oe===n||ki(oe,Ji[ie])&&!ot.call(i,ie))&&(i[ie]=_[ie])}return i}),z8=dt(function(i){return i.push(n,fu),fn(P2,n,i)});function L8(i,u){return da(i,Ze(u,3),gn)}function S8(i,u){return da(i,Ze(u,3),$l)}function M8(i,u){return i==null?i:Al(i,Ze(u,3),Tn)}function _8(i,u){return i==null?i:br(i,Ze(u,3),Tn)}function T8(i,u){return i&&gn(i,Ze(u,3))}function k8(i,u){return i&&$l(i,Ze(u,3))}function O8(i){return i==null?[]:ws(i,Zr(i))}function E8(i){return i==null?[]:ws(i,Tn(i))}function Mf(i,u,f){var b=i==null?n:uo(i,u);return b===n?f:b}function I8(i,u){return i!=null&&r(i,u,Vc)}function _f(i,u){return i!=null&&r(i,u,Wc)}var A8=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=Oo.call(u)),i[u]=f},kf(kn)),$8=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=Oo.call(u)),ot.call(i,u)?i[u].push(f):i[u]=[f]},Ze),P8=dt(xa);function Zr(i){return _n(i)?q1(i):Rl(i)}function Tn(i){return _n(i)?q1(i,!0):co(i)}function D8(i,u){var f={};return u=Ze(u,3),gn(i,function(b,L,_){ai(f,u(b,L,_),b)}),f}function N8(i,u){var f={};return u=Ze(u,3),gn(i,function(b,L,_){ai(f,L,u(b,L,_))}),f}var R8=Oa(function(i,u,f){Hl(i,u,f)}),P2=Oa(function(i,u,f,b){Hl(i,u,f,b)}),H8=_i(function(i,u){var f={};if(i==null)return f;var b=!1;u=At(u,function(_){return _=Un(_,i),b||(b=_.length>1),_}),an(i,Kl(i),f),b&&(f=Jr(f,D|B|H,f0));for(var L=u.length;L--;)Ms(f,u[L]);return f});function F8(i,u){return D2(i,C0(Ze(u)))}var B8=_i(function(i,u){return i==null?{}:Yc(i,u)});function D2(i,u){if(i==null)return{};var f=At(Kl(i),function(b){return[b]});return u=Ze(u),Xc(i,f,function(b,L){return u(b,L[0])})}function V8(i,u,f){u=Un(u,i);var b=-1,L=u.length;for(L||(L=1,i=n);++b<L;){var _=i==null?n:i[$t(u[b])];_===n&&(b=L,_=f),i=Uo(_)?_.call(i):_}return i}function W8(i,u,f){return i==null?i:Li(i,u,f)}function Z8(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:Li(i,u,f,b)}var N2=Sn(Zr),R2=Sn(Tn);function U8(i,u,f){var b=ct(i),L=b||Ra(i)||Ql(i);if(u=Ze(u,4),f==null){var _=i&&i.constructor;L?f=b?new _:[]:er(i)?f=Uo(_)?ii(pa(i)):{}:f={}}return(L?wn:gn)(i,function(P,R,Z){return u(f,P,R,Z)}),f}function G8(i,u){return i==null?!0:Ms(i,u)}function q8(i,u,f){return i==null?i:Vl(i,u,Wl(f))}function j8(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:Vl(i,u,Wl(f),b)}function e1(i){return i==null?[]:bl(i,Zr(i))}function K8(i){return i==null?[]:bl(i,Tn(i))}function Y8(i,u,f){return f===n&&(f=u,u=n),f!==n&&(f=ui(f),f=f===f?f:0),u!==n&&(u=ui(u),u=u===u?u:0),No(ui(i),u,f)}function X8(i,u,f){return u=Go(u),f===n?(f=u,u=0):f=Go(f),i=ui(i),wa(i,u,f)}function J8(i,u,f){if(f&&typeof f!="boolean"&&y(i,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&u===n?(i=0,u=1):(i=Go(i),u===n?(u=i,i=0):u=Go(u)),i>u){var b=i;i=u,u=b}if(f||i%1||u%1){var L=no();return Tr(i+L*(u-i+Hd("1e-"+((L+"").length-1))),u)}return Fl(i,u)}var Q8=Ea(function(i,u,f){return u=u.toLowerCase(),i+(f?H2(u):u)});function H2(i){return Tf(Rt(i).toLowerCase())}function F2(i){return i=Rt(i),i&&i.replace(ts,Cc).replace(uc,"")}function eg(i,u,f){i=Rt(i),u=Rr(u);var b=i.length;f=f===n?b:No(ft(f),0,b);var L=f;return f-=u.length,f>=0&&i.slice(f,L)==u}function tg(i){return i=Rt(i),i&&ln.test(i)?i.replace(vr,qd):i}function rg(i){return i=Rt(i),i&&Xn.test(i)?i.replace(xo,"\\$&"):i}var ng=Ea(function(i,u,f){return i+(f?"-":"")+u.toLowerCase()}),ig=Ea(function(i,u,f){return i+(f?" ":"")+u.toLowerCase()}),og=l0("toLowerCase");function ag(i,u,f){i=Rt(i),u=ft(u);var b=u?ko(i):0;if(!u||b>=u)return i;var L=(u-b)/2;return ql(ba(L),f)+i+ql(va(L),f)}function sg(i,u,f){i=Rt(i),u=ft(u);var b=u?ko(i):0;return u&&b<u?i+ql(u-b,f):i}function lg(i,u,f){i=Rt(i),u=ft(u);var b=u?ko(i):0;return u&&b<u?ql(u-b,f)+i:i}function ug(i,u,f){return f||u==null?u=0:u&&(u=+u),ps(Rt(i).replace(zo,""),u||0)}function cg(i,u,f){return(f?y(i,u,f):u===n)?u=1:u=ft(u),ru(Rt(i),u)}function dg(){var i=arguments,u=Rt(i[0]);return i.length<3?u:u.replace(i[1],i[2])}var fg=Ea(function(i,u,f){return i+(f?"_":"")+u.toLowerCase()});function hg(i,u,f){return f&&typeof f!="number"&&y(i,u,f)&&(u=f=n),f=f===n?yt:f>>>0,f?(i=Rt(i),i&&(typeof u=="string"||u!=null&&!Sf(u))&&(u=Rr(u),!u&&Vn(i))?po(xn(i),0,f):i.split(u,f)):[]}var pg=Ea(function(i,u,f){return i+(f?" ":"")+Tf(u)});function gg(i,u,f){return i=Rt(i),f=f==null?0:No(ft(f),0,i.length),u=Rr(u),i.slice(f,f+u.length)==u}function vg(i,u,f){var b=M.templateSettings;f&&y(i,u,f)&&(u=n),i=Rt(i),u=z0({},u,b,jl);var L=z0({},u.imports,b.imports,jl),_=Zr(L),P=bl(L,_),R,Z,ie=0,oe=u.interpolate||Bt,fe="__p += '",Me=Xi((u.escape||Bt).source+"|"+oe.source+"|"+(oe===Xa?yi:Bt).source+"|"+(u.evaluate||Bt).source+"|$","g"),Be="//# sourceURL="+(ot.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++T1+"]")+`
1692
+ `;i.replace(Me,function(Je,mt,xt,qn,bn,jn){return xt||(xt=qn),fe+=i.slice(ie,jn).replace(Ee,wc),mt&&(R=!0,fe+=`' +
1690
1693
  __e(`+mt+`) +
1691
1694
  '`),bn&&(Z=!0,fe+=`';
1692
1695
  `+bn+`;
@@ -1698,23 +1701,23 @@ __p += '`),xt&&(fe+=`' +
1698
1701
  }
1699
1702
  `;else if(un.test(Xe))throw new nt(w);fe=(Z?fe.replace(Jt,""):fe).replace(oa,"$1").replace(gr,"$1;"),fe="function("+(Xe||"obj")+`) {
1700
1703
  `+(Xe?"":`obj || (obj = {});
1701
- `)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(Z?`, __j = Array.prototype.join;
1704
+ `)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(Z?`, __j = Array.prototype.join;
1702
1705
  function print() { __p += __j.call(arguments, '') }
1703
1706
  `:`;
1704
1707
  `)+fe+`return __p
1705
- }`;var ht=V2(function(){return kt(_,Be+"return "+fe).apply(n,P)});if(ht.source=fe,Lf(ht))throw ht;return ht}function bg(i){return Rt(i).toLowerCase()}function mg(i){return Rt(i).toUpperCase()}function yg(i,u,f){if(i=Rt(i),i&&(f||u===n))return us(i);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=xn(u),_=ji(b,L),P=ml(b,L)+1;return po(b,_,P).join("")}function Cg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.slice(0,wl(i)+1);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=ml(b,xn(u))+1;return po(b,0,L).join("")}function wg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.replace(zo,"");if(!i||!(u=Rr(u)))return i;var b=xn(i),L=ji(b,xn(u));return po(b,L).join("")}function xg(i,u){var f=Ce,b=ue;if(er(u)){var L="separator"in u?u.separator:L;f="length"in u?ft(u.length):f,b="omission"in u?Rr(u.omission):b}i=Rt(i);var _=i.length;if(Vn(i)){var P=xn(i);_=P.length}if(f>=_)return i;var N=f-ko(b);if(N<1)return b;var Z=P?po(P,0,N).join(""):i.slice(0,N);if(L===n)return Z+b;if(P&&(N+=Z.length-N),Sf(L)){if(i.slice(N).search(L)){var ie,oe=Z;for(L.global||(L=Xi(L.source,Rt(Lo.exec(L))+"g")),L.lastIndex=0;ie=L.exec(oe);)var fe=ie.index;Z=Z.slice(0,fe===n?N:fe)}}else if(i.indexOf(Rr(L),N)!=N){var Me=Z.lastIndexOf(L);Me>-1&&(Z=Z.slice(0,Me))}return Z+b}function zg(i){return i=Rt(i),i&&aa.test(i)?i.replace(Nn,xl):i}var Lg=Ea(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),Tf=l0("toUpperCase");function B2(i,u,f){return i=Rt(i),u=f?n:u,u===n?ei(i)?Wn(i):mc(i):i.match(u)||[]}var V2=dt(function(i,u){try{return fn(i,n,u)}catch(f){return Lf(f)?f:new nt(f)}}),Sg=_i(function(i,u){return wn(u,function(f){f=$t(f),ai(i,f,xf(i[f],i))}),i});function Mg(i){var u=i==null?0:i.length,f=Ze();return i=u?At(i,function(b){if(typeof b[1]!="function")throw new on(h);return[f(b[0]),b[1]]}):[],dt(function(b){for(var L=-1;++L<u;){var _=i[L];if(fn(_[0],this,b))return fn(_[1],this,b)}})}function _g(i){return Hc(Xr(i,D))}function kf(i){return function(){return i}}function Tg(i,u){return i==null||i!==i?u:i}var kg=u0(),Og=u0(!0);function kn(i){return i}function Of(i){return qc(typeof i=="function"?i:Xr(i,D))}function Eg(i){return jc(Xr(i,D))}function Ig(i,u){return Q1(i,Xr(u,D))}var Ag=dt(function(i,u){return function(f){return xa(f,i,u)}}),$g=dt(function(i,u){return function(f){return xa(i,f,u)}});function Ef(i,u,f){var b=Zr(u),L=ws(u,b);f==null&&!(er(u)&&(L.length||!b.length))&&(f=u,u=i,i=this,L=ws(u,Zr(u)));var _=!(er(f)&&"chain"in f)||!!f.chain,P=Uo(i);return wn(L,function(N){var Z=u[N];i[N]=Z,P&&(i.prototype[N]=function(){var ie=this.__chain__;if(_||ie){var oe=i(this.__wrapped__),fe=oe.__actions__=yr(this.__actions__);return fe.push({func:Z,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return Z.apply(i,qi([this.value()],arguments))})}),i}function Pg(){return Ut._===this&&(Ut._=kc),this}function If(){}function Dg(i){return i=ft(i),dt(function(u){return Kc(u,i)})}var Ng=Aa(At),Rg=Aa(E1),Hg=Aa(Mo);function W2(i){return C(i)?$1($t(i)):hf(i)}function Fg(i){return function(u){return i==null?n:uo(i,u)}}var Bg=c0(),Vg=c0(!0);function Af(){return[]}function $f(){return!1}function Wg(){return{}}function Zg(){return""}function Ug(){return!0}function Gg(i,u){if(i=ft(i),i<1||i>Ae)return[];var f=yt,b=Tr(i,yt);u=Ze(u),i-=yt;for(var L=To(b,u);++f<i;)u(f);return L}function qg(i){return ct(i)?At(i,$t):Gn(i)?[i]:yr(cr(Rt(i)))}function jg(i){var u=++Qi;return Rt(i)+u}var Kg=Ts(function(i,u){return i+u},0),Yg=ks("ceil"),Xg=Ts(function(i,u){return i/u},1),Jg=ks("floor");function Qg(i){return i&&i.length?Cs(i,kn,Pl):n}function ev(i,u){return i&&i.length?Cs(i,Ze(u,2),Pl):n}function tv(i){return A1(i,kn)}function rv(i,u){return A1(i,Ze(u,2))}function nv(i){return i&&i.length?Cs(i,kn,fo):n}function iv(i,u){return i&&i.length?Cs(i,Ze(u,2),fo):n}var ov=Ts(function(i,u){return i*u},1),av=ks("round"),sv=Ts(function(i,u){return i-u},0);function lv(i){return i&&i.length?N1(i,kn):0}function uv(i,u){return i&&i.length?N1(i,Ze(u,2)):0}return M.after=E9,M.ary=C2,M.assign=m8,M.assignIn=$2,M.assignInWith=z0,M.assignWith=y8,M.at=C8,M.before=w2,M.bind=xf,M.bindAll=Sg,M.bindKey=x2,M.castArray=W9,M.chain=b2,M.chunk=Da,M.compact=go,M.concat=Ar,M.cond=Mg,M.conforms=_g,M.constant=kf,M.countBy=l9,M.create=w8,M.curry=z2,M.curryRight=L2,M.debounce=S2,M.defaults=x8,M.defaultsDeep=z8,M.defer=I9,M.delay=A9,M.difference=si,M.differenceBy=dr,M.differenceWith=gu,M.drop=Ti,M.dropRight=Wo,M.dropRightWhile=Zo,M.dropWhile=Wr,M.fill=Na,M.filter=c9,M.flatMap=h9,M.flatMapDeep=p9,M.flatMapDepth=g9,M.flatten=h2,M.flattenDeep=u7,M.flattenDepth=c7,M.flip=$9,M.flow=kg,M.flowRight=Og,M.fromPairs=d7,M.functions=O8,M.functionsIn=E8,M.groupBy=v9,M.initial=h7,M.intersection=p7,M.intersectionBy=g7,M.intersectionWith=v7,M.invert=A8,M.invertBy=$8,M.invokeMap=m9,M.iteratee=Of,M.keyBy=y9,M.keys=Zr,M.keysIn=Tn,M.map=b0,M.mapKeys=D8,M.mapValues=N8,M.matches=Eg,M.matchesProperty=Ig,M.memoize=y0,M.merge=R8,M.mergeWith=P2,M.method=Ag,M.methodOf=$g,M.mixin=Ef,M.negate=C0,M.nthArg=Dg,M.omit=H8,M.omitBy=F8,M.once=P9,M.orderBy=C9,M.over=Ng,M.overArgs=D9,M.overEvery=Rg,M.overSome=Hg,M.partial=zf,M.partialRight=M2,M.partition=w9,M.pick=B8,M.pickBy=D2,M.property=W2,M.propertyOf=Fg,M.pull=C7,M.pullAll=g2,M.pullAllBy=w7,M.pullAllWith=x7,M.pullAt=z7,M.range=Bg,M.rangeRight=Vg,M.rearg=N9,M.reject=L9,M.remove=L7,M.rest=R9,M.reverse=Cf,M.sampleSize=M9,M.set=W8,M.setWith=Z8,M.shuffle=_9,M.slice=S7,M.sortBy=O9,M.sortedUniq=I7,M.sortedUniqBy=A7,M.split=hg,M.spread=H9,M.tail=$7,M.take=P7,M.takeRight=D7,M.takeRightWhile=N7,M.takeWhile=R7,M.tap=Q7,M.throttle=F9,M.thru=v0,M.toArray=E2,M.toPairs=N2,M.toPairsIn=R2,M.toPath=qg,M.toPlainObject=A2,M.transform=U8,M.unary=B9,M.union=H7,M.unionBy=F7,M.unionWith=B7,M.uniq=V7,M.uniqBy=W7,M.uniqWith=Z7,M.unset=G8,M.unzip=wf,M.unzipWith=v2,M.update=q8,M.updateWith=j8,M.values=e1,M.valuesIn=K8,M.without=U7,M.words=B2,M.wrap=V9,M.xor=G7,M.xorBy=q7,M.xorWith=j7,M.zip=K7,M.zipObject=Y7,M.zipObjectDeep=X7,M.zipWith=J7,M.entries=N2,M.entriesIn=R2,M.extend=$2,M.extendWith=z0,Ef(M,M),M.add=Kg,M.attempt=V2,M.camelCase=Q8,M.capitalize=H2,M.ceil=Yg,M.clamp=Y8,M.clone=Z9,M.cloneDeep=G9,M.cloneDeepWith=q9,M.cloneWith=U9,M.conformsTo=j9,M.deburr=F2,M.defaultTo=Tg,M.divide=Xg,M.endsWith=eg,M.eq=ki,M.escape=tg,M.escapeRegExp=rg,M.every=u9,M.find=d9,M.findIndex=Jl,M.findKey=L8,M.findLast=f9,M.findLastIndex=f2,M.findLastKey=S8,M.floor=Jg,M.forEach=m2,M.forEachRight=y2,M.forIn=M8,M.forInRight=_8,M.forOwn=T8,M.forOwnRight=k8,M.get=Mf,M.gt=K9,M.gte=Y9,M.has=I8,M.hasIn=_f,M.head=p2,M.identity=kn,M.includes=b9,M.indexOf=f7,M.inRange=X8,M.invoke=P8,M.isArguments=As,M.isArray=ct,M.isArrayBuffer=X9,M.isArrayLike=_n,M.isArrayLikeObject=fr,M.isBoolean=J9,M.isBuffer=Ra,M.isDate=Q9,M.isElement=e8,M.isEmpty=t8,M.isEqual=r8,M.isEqualWith=n8,M.isError=Lf,M.isFinite=i8,M.isFunction=Uo,M.isInteger=_2,M.isLength=w0,M.isMap=T2,M.isMatch=o8,M.isMatchWith=a8,M.isNaN=s8,M.isNative=l8,M.isNil=c8,M.isNull=u8,M.isNumber=k2,M.isObject=er,M.isObjectLike=nr,M.isPlainObject=vu,M.isRegExp=Sf,M.isSafeInteger=d8,M.isSet=O2,M.isString=x0,M.isSymbol=Gn,M.isTypedArray=Ql,M.isUndefined=f8,M.isWeakMap=h8,M.isWeakSet=p8,M.join=b7,M.kebabCase=ng,M.last=li,M.lastIndexOf=m7,M.lowerCase=ig,M.lowerFirst=og,M.lt=g8,M.lte=v8,M.max=Qg,M.maxBy=ev,M.mean=tv,M.meanBy=rv,M.min=nv,M.minBy=iv,M.stubArray=Af,M.stubFalse=$f,M.stubObject=Wg,M.stubString=Zg,M.stubTrue=Ug,M.multiply=ov,M.nth=y7,M.noConflict=Pg,M.noop=If,M.now=m0,M.pad=ag,M.padEnd=sg,M.padStart=lg,M.parseInt=ug,M.random=J8,M.reduce=x9,M.reduceRight=z9,M.repeat=cg,M.replace=dg,M.result=V8,M.round=av,M.runInContext=W,M.sample=S9,M.size=T9,M.snakeCase=fg,M.some=k9,M.sortedIndex=M7,M.sortedIndexBy=_7,M.sortedIndexOf=T7,M.sortedLastIndex=k7,M.sortedLastIndexBy=O7,M.sortedLastIndexOf=E7,M.startCase=pg,M.startsWith=gg,M.subtract=sv,M.sum=lv,M.sumBy=uv,M.template=vg,M.times=Gg,M.toFinite=Go,M.toInteger=ft,M.toLength=I2,M.toLower=bg,M.toNumber=ui,M.toSafeInteger=b8,M.toString=Rt,M.toUpper=mg,M.trim=yg,M.trimEnd=Cg,M.trimStart=wg,M.truncate=xg,M.unescape=zg,M.uniqueId=jg,M.upperCase=Lg,M.upperFirst=Tf,M.each=m2,M.eachRight=y2,M.first=p2,Ef(M,function(){var i={};return gn(M,function(u,f){ot.call(M.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),M.VERSION=l,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){M[i].placeholder=M}),wn(["drop","take"],function(i,u){vt.prototype[i]=function(f){f=f===n?1:Gt(ft(f),0);var b=this.__filtered__&&!u?new vt(this):this.clone();return b.__filtered__?b.__takeCount__=Tr(f,b.__takeCount__):b.__views__.push({size:Tr(f,yt),type:i+(b.__dir__<0?"Right":"")}),b},vt.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),wn(["filter","map","takeWhile"],function(i,u){var f=u+1,b=f==k||f==X;vt.prototype[i]=function(L){var _=this.clone();return _.__iteratees__.push({iteratee:Ze(L,3),type:f}),_.__filtered__=_.__filtered__||b,_}}),wn(["head","last"],function(i,u){var f="take"+(u?"Right":"");vt.prototype[i]=function(){return this[f](1).value()[0]}}),wn(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");vt.prototype[i]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(kn)},vt.prototype.find=function(i){return this.filter(i).head()},vt.prototype.findLast=function(i){return this.reverse().find(i)},vt.prototype.invokeMap=dt(function(i,u){return typeof i=="function"?new vt(this):this.map(function(f){return xa(f,i,u)})}),vt.prototype.reject=function(i){return this.filter(C0(Ze(i)))},vt.prototype.slice=function(i,u){i=ft(i);var f=this;return f.__filtered__&&(i>0||u<0)?new vt(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ft(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},vt.prototype.toArray=function(){return this.take(yt)},gn(vt.prototype,function(i,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),L=M[b?"take"+(u=="last"?"Right":""):u],_=b||/^find/.test(u);L&&(M.prototype[u]=function(){var P=this.__wrapped__,N=b?[1]:arguments,Z=P instanceof vt,ie=N[0],oe=Z||ct(P),fe=function(mt){var xt=L.apply(M,qi([mt],N));return b&&Me?xt[0]:xt};oe&&f&&typeof ie=="function"&&ie.length!=1&&(Z=oe=!1);var Me=this.__chain__,Be=!!this.__actions__.length,Xe=_&&!Me,ht=Z&&!Be;if(!_&&oe){P=ht?P:new vt(this);var Je=i.apply(P,N);return Je.__actions__.push({func:v0,args:[fe],thisArg:n}),new Yr(Je,Me)}return Xe&&ht?i.apply(this,N):(Je=this.thru(fe),Xe?b?Je.value()[0]:Je.value():Je)})}),wn(["pop","push","shift","sort","splice","unshift"],function(i){var u=ha[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",b=/^(?:pop|shift)$/.test(i);M.prototype[i]=function(){var L=arguments;if(b&&!this.__chain__){var _=this.value();return u.apply(ct(_)?_:[],L)}return this[f](function(P){return u.apply(ct(P)?P:[],L)})}}),gn(vt.prototype,function(i,u){var f=M[u];if(f){var b=f.name+"";ot.call(ya,b)||(ya[b]=[]),ya[b].push({name:u,func:f})}}),ya[_s(n,Te).name]=[{name:"wrapper",func:n}],vt.prototype.clone=nf,vt.prototype.reverse=of,vt.prototype.value=F1,M.prototype.at=e9,M.prototype.chain=t9,M.prototype.commit=r9,M.prototype.next=n9,M.prototype.plant=o9,M.prototype.reverse=a9,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=s9,M.prototype.first=M.prototype.head,eo&&(M.prototype[eo]=i9),M},Yi=_c();jr?((jr.exports=Yi)._=Yi,os._=Yi):Ut._=Yi}).call(o1)})(j0,j0.exports);var Uh=j0.exports;const $m=g6(Uh),Pm=cv({__proto__:null,default:$m},[Uh]);let hh=(o=21)=>crypto.getRandomValues(new Uint8Array(o)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");/**
1708
+ }`;var ht=V2(function(){return kt(_,Be+"return "+fe).apply(n,P)});if(ht.source=fe,Lf(ht))throw ht;return ht}function bg(i){return Rt(i).toLowerCase()}function mg(i){return Rt(i).toUpperCase()}function yg(i,u,f){if(i=Rt(i),i&&(f||u===n))return us(i);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=xn(u),_=ji(b,L),P=ml(b,L)+1;return po(b,_,P).join("")}function Cg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.slice(0,wl(i)+1);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=ml(b,xn(u))+1;return po(b,0,L).join("")}function wg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.replace(zo,"");if(!i||!(u=Rr(u)))return i;var b=xn(i),L=ji(b,xn(u));return po(b,L).join("")}function xg(i,u){var f=Ce,b=ue;if(er(u)){var L="separator"in u?u.separator:L;f="length"in u?ft(u.length):f,b="omission"in u?Rr(u.omission):b}i=Rt(i);var _=i.length;if(Vn(i)){var P=xn(i);_=P.length}if(f>=_)return i;var R=f-ko(b);if(R<1)return b;var Z=P?po(P,0,R).join(""):i.slice(0,R);if(L===n)return Z+b;if(P&&(R+=Z.length-R),Sf(L)){if(i.slice(R).search(L)){var ie,oe=Z;for(L.global||(L=Xi(L.source,Rt(Lo.exec(L))+"g")),L.lastIndex=0;ie=L.exec(oe);)var fe=ie.index;Z=Z.slice(0,fe===n?R:fe)}}else if(i.indexOf(Rr(L),R)!=R){var Me=Z.lastIndexOf(L);Me>-1&&(Z=Z.slice(0,Me))}return Z+b}function zg(i){return i=Rt(i),i&&aa.test(i)?i.replace(Nn,xl):i}var Lg=Ea(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),Tf=l0("toUpperCase");function B2(i,u,f){return i=Rt(i),u=f?n:u,u===n?ei(i)?Wn(i):mc(i):i.match(u)||[]}var V2=dt(function(i,u){try{return fn(i,n,u)}catch(f){return Lf(f)?f:new nt(f)}}),Sg=_i(function(i,u){return wn(u,function(f){f=$t(f),ai(i,f,xf(i[f],i))}),i});function Mg(i){var u=i==null?0:i.length,f=Ze();return i=u?At(i,function(b){if(typeof b[1]!="function")throw new on(h);return[f(b[0]),b[1]]}):[],dt(function(b){for(var L=-1;++L<u;){var _=i[L];if(fn(_[0],this,b))return fn(_[1],this,b)}})}function _g(i){return Hc(Jr(i,D))}function kf(i){return function(){return i}}function Tg(i,u){return i==null||i!==i?u:i}var kg=u0(),Og=u0(!0);function kn(i){return i}function Of(i){return qc(typeof i=="function"?i:Jr(i,D))}function Eg(i){return jc(Jr(i,D))}function Ig(i,u){return Q1(i,Jr(u,D))}var Ag=dt(function(i,u){return function(f){return xa(f,i,u)}}),$g=dt(function(i,u){return function(f){return xa(i,f,u)}});function Ef(i,u,f){var b=Zr(u),L=ws(u,b);f==null&&!(er(u)&&(L.length||!b.length))&&(f=u,u=i,i=this,L=ws(u,Zr(u)));var _=!(er(f)&&"chain"in f)||!!f.chain,P=Uo(i);return wn(L,function(R){var Z=u[R];i[R]=Z,P&&(i.prototype[R]=function(){var ie=this.__chain__;if(_||ie){var oe=i(this.__wrapped__),fe=oe.__actions__=yr(this.__actions__);return fe.push({func:Z,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return Z.apply(i,qi([this.value()],arguments))})}),i}function Pg(){return Ut._===this&&(Ut._=kc),this}function If(){}function Dg(i){return i=ft(i),dt(function(u){return Kc(u,i)})}var Ng=Aa(At),Rg=Aa(E1),Hg=Aa(Mo);function W2(i){return C(i)?$1($t(i)):hf(i)}function Fg(i){return function(u){return i==null?n:uo(i,u)}}var Bg=c0(),Vg=c0(!0);function Af(){return[]}function $f(){return!1}function Wg(){return{}}function Zg(){return""}function Ug(){return!0}function Gg(i,u){if(i=ft(i),i<1||i>Ae)return[];var f=yt,b=Tr(i,yt);u=Ze(u),i-=yt;for(var L=To(b,u);++f<i;)u(f);return L}function qg(i){return ct(i)?At(i,$t):Gn(i)?[i]:yr(cr(Rt(i)))}function jg(i){var u=++Qi;return Rt(i)+u}var Kg=Ts(function(i,u){return i+u},0),Yg=ks("ceil"),Xg=Ts(function(i,u){return i/u},1),Jg=ks("floor");function Qg(i){return i&&i.length?Cs(i,kn,Pl):n}function ev(i,u){return i&&i.length?Cs(i,Ze(u,2),Pl):n}function tv(i){return A1(i,kn)}function rv(i,u){return A1(i,Ze(u,2))}function nv(i){return i&&i.length?Cs(i,kn,fo):n}function iv(i,u){return i&&i.length?Cs(i,Ze(u,2),fo):n}var ov=Ts(function(i,u){return i*u},1),av=ks("round"),sv=Ts(function(i,u){return i-u},0);function lv(i){return i&&i.length?N1(i,kn):0}function uv(i,u){return i&&i.length?N1(i,Ze(u,2)):0}return M.after=E9,M.ary=C2,M.assign=m8,M.assignIn=$2,M.assignInWith=z0,M.assignWith=y8,M.at=C8,M.before=w2,M.bind=xf,M.bindAll=Sg,M.bindKey=x2,M.castArray=W9,M.chain=b2,M.chunk=Da,M.compact=go,M.concat=Ar,M.cond=Mg,M.conforms=_g,M.constant=kf,M.countBy=l9,M.create=w8,M.curry=z2,M.curryRight=L2,M.debounce=S2,M.defaults=x8,M.defaultsDeep=z8,M.defer=I9,M.delay=A9,M.difference=si,M.differenceBy=dr,M.differenceWith=gu,M.drop=Ti,M.dropRight=Wo,M.dropRightWhile=Zo,M.dropWhile=Wr,M.fill=Na,M.filter=c9,M.flatMap=h9,M.flatMapDeep=p9,M.flatMapDepth=g9,M.flatten=h2,M.flattenDeep=u7,M.flattenDepth=c7,M.flip=$9,M.flow=kg,M.flowRight=Og,M.fromPairs=d7,M.functions=O8,M.functionsIn=E8,M.groupBy=v9,M.initial=h7,M.intersection=p7,M.intersectionBy=g7,M.intersectionWith=v7,M.invert=A8,M.invertBy=$8,M.invokeMap=m9,M.iteratee=Of,M.keyBy=y9,M.keys=Zr,M.keysIn=Tn,M.map=b0,M.mapKeys=D8,M.mapValues=N8,M.matches=Eg,M.matchesProperty=Ig,M.memoize=y0,M.merge=R8,M.mergeWith=P2,M.method=Ag,M.methodOf=$g,M.mixin=Ef,M.negate=C0,M.nthArg=Dg,M.omit=H8,M.omitBy=F8,M.once=P9,M.orderBy=C9,M.over=Ng,M.overArgs=D9,M.overEvery=Rg,M.overSome=Hg,M.partial=zf,M.partialRight=M2,M.partition=w9,M.pick=B8,M.pickBy=D2,M.property=W2,M.propertyOf=Fg,M.pull=C7,M.pullAll=g2,M.pullAllBy=w7,M.pullAllWith=x7,M.pullAt=z7,M.range=Bg,M.rangeRight=Vg,M.rearg=N9,M.reject=L9,M.remove=L7,M.rest=R9,M.reverse=Cf,M.sampleSize=M9,M.set=W8,M.setWith=Z8,M.shuffle=_9,M.slice=S7,M.sortBy=O9,M.sortedUniq=I7,M.sortedUniqBy=A7,M.split=hg,M.spread=H9,M.tail=$7,M.take=P7,M.takeRight=D7,M.takeRightWhile=N7,M.takeWhile=R7,M.tap=Q7,M.throttle=F9,M.thru=v0,M.toArray=E2,M.toPairs=N2,M.toPairsIn=R2,M.toPath=qg,M.toPlainObject=A2,M.transform=U8,M.unary=B9,M.union=H7,M.unionBy=F7,M.unionWith=B7,M.uniq=V7,M.uniqBy=W7,M.uniqWith=Z7,M.unset=G8,M.unzip=wf,M.unzipWith=v2,M.update=q8,M.updateWith=j8,M.values=e1,M.valuesIn=K8,M.without=U7,M.words=B2,M.wrap=V9,M.xor=G7,M.xorBy=q7,M.xorWith=j7,M.zip=K7,M.zipObject=Y7,M.zipObjectDeep=X7,M.zipWith=J7,M.entries=N2,M.entriesIn=R2,M.extend=$2,M.extendWith=z0,Ef(M,M),M.add=Kg,M.attempt=V2,M.camelCase=Q8,M.capitalize=H2,M.ceil=Yg,M.clamp=Y8,M.clone=Z9,M.cloneDeep=G9,M.cloneDeepWith=q9,M.cloneWith=U9,M.conformsTo=j9,M.deburr=F2,M.defaultTo=Tg,M.divide=Xg,M.endsWith=eg,M.eq=ki,M.escape=tg,M.escapeRegExp=rg,M.every=u9,M.find=d9,M.findIndex=Jl,M.findKey=L8,M.findLast=f9,M.findLastIndex=f2,M.findLastKey=S8,M.floor=Jg,M.forEach=m2,M.forEachRight=y2,M.forIn=M8,M.forInRight=_8,M.forOwn=T8,M.forOwnRight=k8,M.get=Mf,M.gt=K9,M.gte=Y9,M.has=I8,M.hasIn=_f,M.head=p2,M.identity=kn,M.includes=b9,M.indexOf=f7,M.inRange=X8,M.invoke=P8,M.isArguments=As,M.isArray=ct,M.isArrayBuffer=X9,M.isArrayLike=_n,M.isArrayLikeObject=fr,M.isBoolean=J9,M.isBuffer=Ra,M.isDate=Q9,M.isElement=e8,M.isEmpty=t8,M.isEqual=r8,M.isEqualWith=n8,M.isError=Lf,M.isFinite=i8,M.isFunction=Uo,M.isInteger=_2,M.isLength=w0,M.isMap=T2,M.isMatch=o8,M.isMatchWith=a8,M.isNaN=s8,M.isNative=l8,M.isNil=c8,M.isNull=u8,M.isNumber=k2,M.isObject=er,M.isObjectLike=nr,M.isPlainObject=vu,M.isRegExp=Sf,M.isSafeInteger=d8,M.isSet=O2,M.isString=x0,M.isSymbol=Gn,M.isTypedArray=Ql,M.isUndefined=f8,M.isWeakMap=h8,M.isWeakSet=p8,M.join=b7,M.kebabCase=ng,M.last=li,M.lastIndexOf=m7,M.lowerCase=ig,M.lowerFirst=og,M.lt=g8,M.lte=v8,M.max=Qg,M.maxBy=ev,M.mean=tv,M.meanBy=rv,M.min=nv,M.minBy=iv,M.stubArray=Af,M.stubFalse=$f,M.stubObject=Wg,M.stubString=Zg,M.stubTrue=Ug,M.multiply=ov,M.nth=y7,M.noConflict=Pg,M.noop=If,M.now=m0,M.pad=ag,M.padEnd=sg,M.padStart=lg,M.parseInt=ug,M.random=J8,M.reduce=x9,M.reduceRight=z9,M.repeat=cg,M.replace=dg,M.result=V8,M.round=av,M.runInContext=W,M.sample=S9,M.size=T9,M.snakeCase=fg,M.some=k9,M.sortedIndex=M7,M.sortedIndexBy=_7,M.sortedIndexOf=T7,M.sortedLastIndex=k7,M.sortedLastIndexBy=O7,M.sortedLastIndexOf=E7,M.startCase=pg,M.startsWith=gg,M.subtract=sv,M.sum=lv,M.sumBy=uv,M.template=vg,M.times=Gg,M.toFinite=Go,M.toInteger=ft,M.toLength=I2,M.toLower=bg,M.toNumber=ui,M.toSafeInteger=b8,M.toString=Rt,M.toUpper=mg,M.trim=yg,M.trimEnd=Cg,M.trimStart=wg,M.truncate=xg,M.unescape=zg,M.uniqueId=jg,M.upperCase=Lg,M.upperFirst=Tf,M.each=m2,M.eachRight=y2,M.first=p2,Ef(M,function(){var i={};return gn(M,function(u,f){ot.call(M.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),M.VERSION=l,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){M[i].placeholder=M}),wn(["drop","take"],function(i,u){vt.prototype[i]=function(f){f=f===n?1:Gt(ft(f),0);var b=this.__filtered__&&!u?new vt(this):this.clone();return b.__filtered__?b.__takeCount__=Tr(f,b.__takeCount__):b.__views__.push({size:Tr(f,yt),type:i+(b.__dir__<0?"Right":"")}),b},vt.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),wn(["filter","map","takeWhile"],function(i,u){var f=u+1,b=f==k||f==X;vt.prototype[i]=function(L){var _=this.clone();return _.__iteratees__.push({iteratee:Ze(L,3),type:f}),_.__filtered__=_.__filtered__||b,_}}),wn(["head","last"],function(i,u){var f="take"+(u?"Right":"");vt.prototype[i]=function(){return this[f](1).value()[0]}}),wn(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");vt.prototype[i]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(kn)},vt.prototype.find=function(i){return this.filter(i).head()},vt.prototype.findLast=function(i){return this.reverse().find(i)},vt.prototype.invokeMap=dt(function(i,u){return typeof i=="function"?new vt(this):this.map(function(f){return xa(f,i,u)})}),vt.prototype.reject=function(i){return this.filter(C0(Ze(i)))},vt.prototype.slice=function(i,u){i=ft(i);var f=this;return f.__filtered__&&(i>0||u<0)?new vt(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ft(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},vt.prototype.toArray=function(){return this.take(yt)},gn(vt.prototype,function(i,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),L=M[b?"take"+(u=="last"?"Right":""):u],_=b||/^find/.test(u);L&&(M.prototype[u]=function(){var P=this.__wrapped__,R=b?[1]:arguments,Z=P instanceof vt,ie=R[0],oe=Z||ct(P),fe=function(mt){var xt=L.apply(M,qi([mt],R));return b&&Me?xt[0]:xt};oe&&f&&typeof ie=="function"&&ie.length!=1&&(Z=oe=!1);var Me=this.__chain__,Be=!!this.__actions__.length,Xe=_&&!Me,ht=Z&&!Be;if(!_&&oe){P=ht?P:new vt(this);var Je=i.apply(P,R);return Je.__actions__.push({func:v0,args:[fe],thisArg:n}),new Xr(Je,Me)}return Xe&&ht?i.apply(this,R):(Je=this.thru(fe),Xe?b?Je.value()[0]:Je.value():Je)})}),wn(["pop","push","shift","sort","splice","unshift"],function(i){var u=ha[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",b=/^(?:pop|shift)$/.test(i);M.prototype[i]=function(){var L=arguments;if(b&&!this.__chain__){var _=this.value();return u.apply(ct(_)?_:[],L)}return this[f](function(P){return u.apply(ct(P)?P:[],L)})}}),gn(vt.prototype,function(i,u){var f=M[u];if(f){var b=f.name+"";ot.call(ya,b)||(ya[b]=[]),ya[b].push({name:u,func:f})}}),ya[_s(n,Te).name]=[{name:"wrapper",func:n}],vt.prototype.clone=nf,vt.prototype.reverse=of,vt.prototype.value=F1,M.prototype.at=e9,M.prototype.chain=t9,M.prototype.commit=r9,M.prototype.next=n9,M.prototype.plant=o9,M.prototype.reverse=a9,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=s9,M.prototype.first=M.prototype.head,eo&&(M.prototype[eo]=i9),M},Yi=_c();Kr?((Kr.exports=Yi)._=Yi,os._=Yi):Ut._=Yi}).call(o1)})(j0,j0.exports);var Uh=j0.exports;const Pm=g6(Uh),Dm=cv({__proto__:null,default:Pm},[Uh]);let hh=(o=21)=>crypto.getRandomValues(new Uint8Array(o)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");/**
1706
1709
  * @license
1707
1710
  * Copyright 2020 Google LLC
1708
1711
  * SPDX-License-Identifier: BSD-3-Clause
1709
- */const{I:Dm}=bv,Sp=()=>document.createComment(""),wu=(o,t,n)=>{var l;const c=o._$AA.parentNode,g=t===void 0?o._$AB:t._$AA;if(n===void 0){const h=c.insertBefore(Sp(),g),w=c.insertBefore(Sp(),g);n=new Dm(h,w,o,o.options)}else{const h=n._$AB.nextSibling,w=n._$AM,z=w!==o;if(z){let S;(l=n._$AQ)===null||l===void 0||l.call(n,o),n._$AM=o,n._$AP!==void 0&&(S=o._$AU)!==w._$AU&&n._$AP(S)}if(h!==g||z){let S=n._$AA;for(;S!==h;){const E=S.nextSibling;c.insertBefore(S,g),S=E}}}return n},Ns=(o,t,n=o)=>(o._$AI(t,n),o),Nm={},Rm=(o,t=Nm)=>o._$AH=t,Hm=o=>o._$AH,qf=o=>{var t;(t=o._$AP)===null||t===void 0||t.call(o,!1,!0);let n=o._$AA;const l=o._$AB.nextSibling;for(;n!==l;){const c=n.nextSibling;n.remove(),n=c}};/**
1712
+ */const{I:Nm}=bv,Sp=()=>document.createComment(""),wu=(o,t,n)=>{var l;const c=o._$AA.parentNode,g=t===void 0?o._$AB:t._$AA;if(n===void 0){const h=c.insertBefore(Sp(),g),w=c.insertBefore(Sp(),g);n=new Nm(h,w,o,o.options)}else{const h=n._$AB.nextSibling,w=n._$AM,z=w!==o;if(z){let S;(l=n._$AQ)===null||l===void 0||l.call(n,o),n._$AM=o,n._$AP!==void 0&&(S=o._$AU)!==w._$AU&&n._$AP(S)}if(h!==g||z){let S=n._$AA;for(;S!==h;){const E=S.nextSibling;c.insertBefore(S,g),S=E}}}return n},Ns=(o,t,n=o)=>(o._$AI(t,n),o),Rm={},Hm=(o,t=Rm)=>o._$AH=t,Fm=o=>o._$AH,qf=o=>{var t;(t=o._$AP)===null||t===void 0||t.call(o,!1,!0);let n=o._$AA;const l=o._$AB.nextSibling;for(;n!==l;){const c=n.nextSibling;n.remove(),n=c}};/**
1710
1713
  * @license
1711
1714
  * Copyright 2017 Google LLC
1712
1715
  * SPDX-License-Identifier: BSD-3-Clause
1713
- */const Mp=(o,t,n)=>{const l=new Map;for(let c=t;c<=n;c++)l.set(o[c],c);return l},Fm=cd(class extends dd{constructor(o){if(super(o),o.type!==ud.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,t,n){let l;n===void 0?n=t:t!==void 0&&(l=t);const c=[],g=[];let h=0;for(const w of o)c[h]=l?l(w,h):h,g[h]=n(w,h),h++;return{values:g,keys:c}}render(o,t,n){return this.dt(o,t,n).values}update(o,[t,n,l]){var c;const g=Hm(o),{values:h,keys:w}=this.dt(t,n,l);if(!Array.isArray(g))return this.ht=w,h;const z=(c=this.ht)!==null&&c!==void 0?c:this.ht=[],S=[];let E,D,B=0,H=g.length-1,J=0,pe=h.length-1;for(;B<=H&&J<=pe;)if(g[B]===null)B++;else if(g[H]===null)H--;else if(z[B]===w[J])S[J]=Ns(g[B],h[J]),B++,J++;else if(z[H]===w[pe])S[pe]=Ns(g[H],h[pe]),H--,pe--;else if(z[B]===w[pe])S[pe]=Ns(g[B],h[pe]),wu(o,S[pe+1],g[B]),B++,pe--;else if(z[H]===w[J])S[J]=Ns(g[H],h[J]),wu(o,g[B],g[H]),H--,J++;else if(E===void 0&&(E=Mp(w,J,pe),D=Mp(z,B,H)),E.has(z[B]))if(E.has(z[H])){const ge=D.get(w[J]),Te=ge!==void 0?g[ge]:null;if(Te===null){const Ie=wu(o,g[B]);Ns(Ie,h[J]),S[J]=Ie}else S[J]=Ns(Te,h[J]),wu(o,g[B],Te),g[ge]=null;J++}else qf(g[H]),H--;else qf(g[B]),B++;for(;J<=pe;){const ge=wu(o,S[pe+1]);Ns(ge,h[J]),S[J++]=ge}for(;B<=H;){const ge=g[B++];ge!==null&&qf(ge)}return this.ht=w,Rm(o,S),Yo}});/**
1716
+ */const Mp=(o,t,n)=>{const l=new Map;for(let c=t;c<=n;c++)l.set(o[c],c);return l},Bm=cd(class extends dd{constructor(o){if(super(o),o.type!==ud.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,t,n){let l;n===void 0?n=t:t!==void 0&&(l=t);const c=[],g=[];let h=0;for(const w of o)c[h]=l?l(w,h):h,g[h]=n(w,h),h++;return{values:g,keys:c}}render(o,t,n){return this.dt(o,t,n).values}update(o,[t,n,l]){var c;const g=Fm(o),{values:h,keys:w}=this.dt(t,n,l);if(!Array.isArray(g))return this.ht=w,h;const z=(c=this.ht)!==null&&c!==void 0?c:this.ht=[],S=[];let E,D,B=0,H=g.length-1,J=0,pe=h.length-1;for(;B<=H&&J<=pe;)if(g[B]===null)B++;else if(g[H]===null)H--;else if(z[B]===w[J])S[J]=Ns(g[B],h[J]),B++,J++;else if(z[H]===w[pe])S[pe]=Ns(g[H],h[pe]),H--,pe--;else if(z[B]===w[pe])S[pe]=Ns(g[B],h[pe]),wu(o,S[pe+1],g[B]),B++,pe--;else if(z[H]===w[J])S[J]=Ns(g[H],h[J]),wu(o,g[B],g[H]),H--,J++;else if(E===void 0&&(E=Mp(w,J,pe),D=Mp(z,B,H)),E.has(z[B]))if(E.has(z[H])){const ge=D.get(w[J]),Te=ge!==void 0?g[ge]:null;if(Te===null){const Ie=wu(o,g[B]);Ns(Ie,h[J]),S[J]=Ie}else S[J]=Ns(Te,h[J]),wu(o,g[B],Te),g[ge]=null;J++}else qf(g[H]),H--;else qf(g[B]),B++;for(;J<=pe;){const ge=wu(o,S[pe+1]);Ns(ge,h[J]),S[J++]=ge}for(;B<=H;){const ge=g[B++];ge!==null&&qf(ge)}return this.ht=w,Hm(o,S),Yo}});/**
1714
1717
  * @license
1715
1718
  * Copyright 2018 Google LLC
1716
1719
  * SPDX-License-Identifier: BSD-3-Clause
1717
- */const v6="important",Bm=" !"+v6,Vm=cd(class extends dd{constructor(o){var t;if(super(o),o.type!==ud.ATTRIBUTE||o.name!=="style"||((t=o.strings)===null||t===void 0?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,n)=>{const l=o[n];return l==null?t:t+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${l};`},"")}update(o,[t]){const{style:n}=o.element;if(this.ut===void 0){this.ut=new Set;for(const l in t)this.ut.add(l);return this.render(t)}this.ut.forEach(l=>{t[l]==null&&(this.ut.delete(l),l.includes("-")?n.removeProperty(l):n[l]="")});for(const l in t){const c=t[l];if(c!=null){this.ut.add(l);const g=typeof c=="string"&&c.endsWith(Bm);l.includes("-")||g?n.setProperty(l,g?c.slice(0,-11):c,g?v6:""):n[l]=c}}return Yo}});var Wm=Object.defineProperty,Zm=Object.getOwnPropertyDescriptor,An=(o,t,n,l)=>{for(var c=l>1?void 0:l?Zm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Wm(t,n,c),c};const Gh=ze("virtual-list");exports.VirtualList=class extends We{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(t,n)=>G`
1720
+ */const v6="important",Vm=" !"+v6,Wm=cd(class extends dd{constructor(o){var t;if(super(o),o.type!==ud.ATTRIBUTE||o.name!=="style"||((t=o.strings)===null||t===void 0?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,n)=>{const l=o[n];return l==null?t:t+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${l};`},"")}update(o,[t]){const{style:n}=o.element;if(this.ut===void 0){this.ut=new Set;for(const l in t)this.ut.add(l);return this.render(t)}this.ut.forEach(l=>{t[l]==null&&(this.ut.delete(l),l.includes("-")?n.removeProperty(l):n[l]="")});for(const l in t){const c=t[l];if(c!=null){this.ut.add(l);const g=typeof c=="string"&&c.endsWith(Vm);l.includes("-")||g?n.setProperty(l,g?c.slice(0,-11):c,g?v6:""):n[l]=c}}return Yo}});var Zm=Object.defineProperty,Um=Object.getOwnPropertyDescriptor,An=(o,t,n,l)=>{for(var c=l>1?void 0:l?Um(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Zm(t,n,c),c};const Gh=ze("virtual-list");exports.VirtualList=class extends We{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(t,n)=>G`
1718
1721
  <div
1719
1722
  class="default-render-item"
1720
1723
  style="min-height: ${this.itemMinHeight}px"
@@ -1722,13 +1725,13 @@ function print() { __p += __j.call(arguments, '') }
1722
1725
  Item ${n}: ${JSON.stringify(t)}
1723
1726
  </div>
1724
1727
  `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(t){super.updated(t),this.canSync(t)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((t,n)=>t+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const t={};let n=0,l=0;return this.itemHeights.slice(0,this.overscan).forEach(c=>{t[c]?t[c]++:t[c]=1,t[c]>l&&(n=c,l=t[c])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(t){return["items","renderItem"].reduce((n,l)=>n||t.has(l),!1)}sumOfHeightsToIndex(t){return this.itemHeights.slice(0,t).reduce((n,l)=>(n+=l,n),0)}syncVisibleItems(){this.resetItems();for(let t=this.rollingStartIndex;t<=this.rollingEndIndex;t++){const n={position:"absolute",top:`${this.sumOfHeightsToIndex(t)}px`,width:"100%"},l=this.renderItem(this.items[t],t);if(!this.itemIdentifier){const h=D5(l,new DocumentFragment).parentNode.firstElementChild,w=h==null?void 0:h.tagName.toLowerCase(),z=h==null?void 0:h.className;this.itemIdentifier=`${w}${z?`.${z}`:""}`}const c=G`
1725
- <div class="item-wrapper" style=${Vm(n)}>
1728
+ <div class="item-wrapper" style=${Wm(n)}>
1726
1729
  ${l}
1727
1730
  </div>
1728
1731
  `;this.visibleItems.push({index:t,item:c})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const t=[...this.list.children].map(n=>n.firstElementChild);this.dispatchEvent(new b6({detail:{itemElements:t}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:t},n)=>{var l,c;this.itemHeights[t]=((c=(l=this.visibleItemElements)==null?void 0:l[n])==null?void 0:c.getBoundingClientRect().height)||this.itemHeights[t]})}get visibleItemElements(){var t;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(t=this.shadowRoot)==null?void 0:t.querySelectorAll(this.itemIdentifier)}handleScroll(t){var n;this.currentScrollTop=(n=t.currentTarget)==null?void 0:n.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const t=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),n=Math.min(this.overscan,t);return t-n}get rollingEndIndex(){const t=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),n=Math.min(this.overscan,this.endIndex-t);return t+n}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),G`
1729
1732
  <div class="container" @scroll=${this.handleScroll}>
1730
1733
  <div class="list" style="height: ${this.innerHeight}px">
1731
- ${Fm(this.visibleItems,({index:t})=>t,({item:t})=>t)}
1734
+ ${Bm(this.visibleItems,({index:t})=>t,({item:t})=>t)}
1732
1735
  </div>
1733
1736
  </div>
1734
1737
  `}};exports.VirtualList.styles=[le`
@@ -1745,7 +1748,7 @@ function print() { __p += __j.call(arguments, '') }
1745
1748
  .list {
1746
1749
  position: relative;
1747
1750
  }
1748
- `];An([R({type:Array})],exports.VirtualList.prototype,"items",2);An([R({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);An([R({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);An([R({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);An([Re()],exports.VirtualList.prototype,"currentScrollTop",2);An([Re()],exports.VirtualList.prototype,"endIndex",2);An([Re()],exports.VirtualList.prototype,"innerHeight",2);An([Re()],exports.VirtualList.prototype,"itemHeights",2);An([Re()],exports.VirtualList.prototype,"itemIdentifier",2);An([Re()],exports.VirtualList.prototype,"originalItemsCount",2);An([Re()],exports.VirtualList.prototype,"currentItemsCount",2);An([Re()],exports.VirtualList.prototype,"visibleItems",2);An([Hi(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=An([ee(Gh)],exports.VirtualList);class b6 extends CustomEvent{constructor(t={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...t})}}const m6=ze("record-field"),y6=ze("record-field-label"),Um=["x-small","small","medium","large","x-large","auto","full"],Gm=["side","top"],qm=le`
1751
+ `];An([N({type:Array})],exports.VirtualList.prototype,"items",2);An([N({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);An([N({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);An([N({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);An([Re()],exports.VirtualList.prototype,"currentScrollTop",2);An([Re()],exports.VirtualList.prototype,"endIndex",2);An([Re()],exports.VirtualList.prototype,"innerHeight",2);An([Re()],exports.VirtualList.prototype,"itemHeights",2);An([Re()],exports.VirtualList.prototype,"itemIdentifier",2);An([Re()],exports.VirtualList.prototype,"originalItemsCount",2);An([Re()],exports.VirtualList.prototype,"currentItemsCount",2);An([Re()],exports.VirtualList.prototype,"visibleItems",2);An([Hi(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=An([ee(Gh)],exports.VirtualList);class b6 extends CustomEvent{constructor(t={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...t})}}const m6=ze("record-field"),y6=ze("record-field-label"),Gm=["x-small","small","medium","large","x-large","auto","full"],qm=["side","top"],jm=le`
1749
1752
  .size-x-small {
1750
1753
  width: 80px;
1751
1754
  }
@@ -1769,7 +1772,7 @@ function print() { __p += __j.call(arguments, '') }
1769
1772
  .size-full {
1770
1773
  width: 100%;
1771
1774
  }
1772
- `,jm=le`
1775
+ `,Km=le`
1773
1776
  :host {
1774
1777
  display: block;
1775
1778
  }
@@ -1843,7 +1846,7 @@ function print() { __p += __j.call(arguments, '') }
1843
1846
  :host([label-position='side']) .value.size-auto {
1844
1847
  flex-grow: 1;
1845
1848
  }
1846
- `,Km=le`
1849
+ `,Ym=le`
1847
1850
  :host {
1848
1851
  display: inline-flex;
1849
1852
  color: var(--brz-color-neutral-850);
@@ -1851,7 +1854,7 @@ function print() { __p += __j.call(arguments, '') }
1851
1854
  line-height: var(--brz-line-height);
1852
1855
  gap: var(--brz-spacing-1);
1853
1856
  }
1854
- `;var Ym=Object.defineProperty,Xm=Object.getOwnPropertyDescriptor,ta=(o,t,n,l)=>{for(var c=l>1?void 0:l?Xm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Ym(t,n,c),c};exports.RecordField=class extends We{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(t){super.updated(t),t.has("labelPosition")&&this.setLabelState(),t.has("size")&&this.checkIfMultiline()}async setLabelState(){await this.updateComplete,this.hasLabel=!!this.slottedLabel.length&&!this.slottedLabel[0].hidden,this.hasLabelRight=!!this.slottedLabelRight.length&&!this.slottedLabelRight[0].hidden}checkIfMultiline(){this.isValueMultiline=this.value.clientHeight>=2*20&&this.value.clientHeight%20===0}get sizeClass(){return`size-${this.size}`}get labelRightRowTemplate(){return G`
1857
+ `;var Xm=Object.defineProperty,Jm=Object.getOwnPropertyDescriptor,ta=(o,t,n,l)=>{for(var c=l>1?void 0:l?Jm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Xm(t,n,c),c};exports.RecordField=class extends We{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(t){super.updated(t),t.has("labelPosition")&&this.setLabelState(),t.has("size")&&this.checkIfMultiline()}async setLabelState(){await this.updateComplete,this.hasLabel=!!this.slottedLabel.length&&!this.slottedLabel[0].hidden,this.hasLabelRight=!!this.slottedLabelRight.length&&!this.slottedLabelRight[0].hidden}checkIfMultiline(){this.isValueMultiline=this.value.clientHeight>=2*20&&this.value.clientHeight%20===0}get sizeClass(){return`size-${this.size}`}get labelRightRowTemplate(){return G`
1855
1858
  <brz-split-row
1856
1859
  class=${On({[this.sizeClass]:!0,label:!0,"label-right-row":!0,hidden:!this.hasLabelRight})}
1857
1860
  >
@@ -1874,16 +1877,16 @@ function print() { __p += __j.call(arguments, '') }
1874
1877
  ${this.valueTemplate}
1875
1878
  </div>
1876
1879
  </div>
1877
- `}};exports.RecordField.styles=[jm,qm];ta([R({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);ta([R({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);ta([Re()],exports.RecordField.prototype,"hasLabel",2);ta([Re()],exports.RecordField.prototype,"hasLabelRight",2);ta([Re()],exports.RecordField.prototype,"isValueMultiline",2);ta([Hi(".value")],exports.RecordField.prototype,"value",2);ta([Jo({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);ta([Jo({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=ta([ee(m6)],exports.RecordField);var Jm=Object.defineProperty,Qm=Object.getOwnPropertyDescriptor,qh=(o,t,n,l)=>{for(var c=l>1?void 0:l?Qm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Jm(t,n,c),c};exports.RecordFieldLabel=class extends We{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(t){super.updated(t),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return G` <slot></slot> `}};exports.RecordFieldLabel.styles=[Km];qh([Re()],exports.RecordFieldLabel.prototype,"hasContent",2);qh([Jo()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=qh([ee(y6)],exports.RecordFieldLabel);var ey=Object.defineProperty,ty=Object.getOwnPropertyDescriptor,qa=(o,t,n,l)=>{for(var c=l>1?void 0:l?ty(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ey(t,n,c),c};class $n extends We{constructor(){super(...arguments),this.disabled=!1,this.required=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(t){this.value=t.target.value,this.dispatchChange()}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:this.value}}))}createProxyInput(){this.proxyInput=this.ownerDocument.createElement("input"),this.proxyInput.type="hidden",this.appendChild(this.proxyInput)}updateProxyInput(){typeof this.value=="string"&&this.proxyInput&&(this.proxyInput.name=this.name,this.proxyInput.value=this.value||"")}updated(t){super.updated(t),this.useProxy&&this.updateProxyInput()}}$n.shadowRootOptions={mode:"open",delegatesFocus:!0};qa([R({type:Boolean,reflect:!0})],$n.prototype,"disabled",2);qa([R({type:Boolean,reflect:!0})],$n.prototype,"required",2);qa([R({type:Boolean,reflect:!0})],$n.prototype,"invalid",2);qa([R({type:String})],$n.prototype,"name",2);qa([R({type:String})],$n.prototype,"id",2);qa([R({type:String})],$n.prototype,"value",2);qa([Re()],$n.prototype,"proxyInput",2);qa([Re()],$n.prototype,"useProxy",2);var ry=Object.defineProperty,ny=Object.getOwnPropertyDescriptor,iy=(o,t,n,l)=>{for(var c=l>1?void 0:l?ny(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ry(t,n,c),c};const oy=ze("input-guide");let K0=class extends We{render(){return G` <slot></slot> `}};K0.styles=le`
1880
+ `}};exports.RecordField.styles=[Km,jm];ta([N({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);ta([N({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);ta([Re()],exports.RecordField.prototype,"hasLabel",2);ta([Re()],exports.RecordField.prototype,"hasLabelRight",2);ta([Re()],exports.RecordField.prototype,"isValueMultiline",2);ta([Hi(".value")],exports.RecordField.prototype,"value",2);ta([Jo({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);ta([Jo({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=ta([ee(m6)],exports.RecordField);var Qm=Object.defineProperty,ey=Object.getOwnPropertyDescriptor,qh=(o,t,n,l)=>{for(var c=l>1?void 0:l?ey(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Qm(t,n,c),c};exports.RecordFieldLabel=class extends We{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(t){super.updated(t),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return G` <slot></slot> `}};exports.RecordFieldLabel.styles=[Ym];qh([Re()],exports.RecordFieldLabel.prototype,"hasContent",2);qh([Jo()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=qh([ee(y6)],exports.RecordFieldLabel);var ty=Object.defineProperty,ry=Object.getOwnPropertyDescriptor,qa=(o,t,n,l)=>{for(var c=l>1?void 0:l?ry(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ty(t,n,c),c};class $n extends We{constructor(){super(...arguments),this.disabled=!1,this.required=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(t){this.value=t.target.value,this.dispatchChange()}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:this.value}}))}createProxyInput(){this.proxyInput=this.ownerDocument.createElement("input"),this.proxyInput.type="hidden",this.appendChild(this.proxyInput)}updateProxyInput(){typeof this.value=="string"&&this.proxyInput&&(this.proxyInput.name=this.name,this.proxyInput.value=this.value||"")}updated(t){super.updated(t),this.useProxy&&this.updateProxyInput()}}$n.shadowRootOptions={mode:"open",delegatesFocus:!0};qa([N({type:Boolean,reflect:!0})],$n.prototype,"disabled",2);qa([N({type:Boolean,reflect:!0})],$n.prototype,"required",2);qa([N({type:Boolean,reflect:!0})],$n.prototype,"invalid",2);qa([N({type:String})],$n.prototype,"name",2);qa([N({type:String})],$n.prototype,"id",2);qa([N({type:String})],$n.prototype,"value",2);qa([Re()],$n.prototype,"proxyInput",2);qa([Re()],$n.prototype,"useProxy",2);var ny=Object.defineProperty,iy=Object.getOwnPropertyDescriptor,oy=(o,t,n,l)=>{for(var c=l>1?void 0:l?iy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ny(t,n,c),c};const ay=ze("input-guide");let K0=class extends We{render(){return G` <slot></slot> `}};K0.styles=le`
1878
1881
  :host {
1879
1882
  font-size: var(--brz-font-size-xs);
1880
1883
  }
1881
- `;K0=iy([ee(oy)],K0);var ay=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,ly=(o,t,n,l)=>{for(var c=l>1?void 0:l?sy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ay(t,n,c),c};const C6=ze("input-error");exports.InputError=class extends We{render(){return G` <slot></slot> `}};exports.InputError.styles=le`
1884
+ `;K0=oy([ee(ay)],K0);var sy=Object.defineProperty,ly=Object.getOwnPropertyDescriptor,uy=(o,t,n,l)=>{for(var c=l>1?void 0:l?ly(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&sy(t,n,c),c};const C6=ze("input-error");exports.InputError=class extends We{render(){return G` <slot></slot> `}};exports.InputError.styles=le`
1882
1885
  :host {
1883
1886
  font-size: var(--brz-font-size);
1884
1887
  color: var(--brz-color-error);
1885
1888
  }
1886
- `;exports.InputError=ly([ee(C6)],exports.InputError);var uy=Object.defineProperty,cy=Object.getOwnPropertyDescriptor,mo=(o,t,n,l)=>{for(var c=l>1?void 0:l?cy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&uy(t,n,c),c};const w6=ze("labeled-input"),x6=ze("input-label"),dy=le`
1889
+ `;exports.InputError=uy([ee(C6)],exports.InputError);var cy=Object.defineProperty,dy=Object.getOwnPropertyDescriptor,mo=(o,t,n,l)=>{for(var c=l>1?void 0:l?dy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&cy(t,n,c),c};const w6=ze("labeled-input"),x6=ze("input-label"),fy=le`
1887
1890
  .guide {
1888
1891
  display: flex;
1889
1892
  }
@@ -1942,7 +1945,7 @@ function print() { __p += __j.call(arguments, '') }
1942
1945
  :host([optional]:not([required])) .label-flag {
1943
1946
  color: var(--brz-color-text-placeholder);
1944
1947
  }
1945
- `,dy];mo([R({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);mo([R({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);mo([R({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);mo([Re()],exports.LabeledInput.prototype,"hasPrompt",2);mo([Re()],exports.LabeledInput.prototype,"hasError",2);mo([Re()],exports.LabeledInput.prototype,"hasLabel",2);mo([Jo({slot:"label"})],exports.LabeledInput.prototype,"label",2);mo([Jo({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=mo([ee(w6)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=mo([ee(x6)],exports.InputLabel);var fy=Object.defineProperty,hy=Object.getOwnPropertyDescriptor,gd=(o,t,n,l)=>{for(var c=l>1?void 0:l?hy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&fy(t,n,c),c};const py=le`
1948
+ `,fy];mo([N({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);mo([N({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);mo([N({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);mo([Re()],exports.LabeledInput.prototype,"hasPrompt",2);mo([Re()],exports.LabeledInput.prototype,"hasError",2);mo([Re()],exports.LabeledInput.prototype,"hasLabel",2);mo([Jo({slot:"label"})],exports.LabeledInput.prototype,"label",2);mo([Jo({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=mo([ee(w6)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=mo([ee(x6)],exports.InputLabel);var hy=Object.defineProperty,py=Object.getOwnPropertyDescriptor,gd=(o,t,n,l)=>{for(var c=l>1?void 0:l?py(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&hy(t,n,c),c};const gy=le`
1946
1949
  :host {
1947
1950
  --input-text-color: var(--brz-color-neutral-850);
1948
1951
  --input-font: var(--brz-font-family);
@@ -2047,7 +2050,7 @@ function print() { __p += __j.call(arguments, '') }
2047
2050
  class="trailing"
2048
2051
  ></brz-icon>`:null}
2049
2052
  </div>
2050
- `}}yn.styles=[...exports.LabeledInput.styles,py];gd([R({type:Boolean,reflect:!0})],yn.prototype,"readonly",2);gd([R({type:String,reflect:!0})],yn.prototype,"placeholder",2);gd([R({type:String,reflect:!0,attribute:"leading-icon"})],yn.prototype,"leadingIcon",2);gd([R({type:String,reflect:!0,attribute:"trailing-icon"})],yn.prototype,"trailingIcon",2);var gy=Object.defineProperty,vy=Object.getOwnPropertyDescriptor,bi=(o,t,n,l)=>{for(var c=l>1?void 0:l?vy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&gy(t,n,c),c};const Fu="searchMessage";class zr extends yn{constructor(){super(...arguments),this.controlled=!1,this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(t=>({...t,id:`option-${hh()}`}))]:[]}updated(t){super.updated(t),t.has("options")&&this.setInnerOptions(),t.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(t){var n,l;return t?t instanceof exports.MenuItem?(l=(n=t.textContent)==null?void 0:n.trim())!=null?l:"":t.label:""}handleKeyDown(t){["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),this.dropdown.open())}handleKeyUp(t){t.key===" "&&this.canSearch&&(t.preventDefault(),this.dropdown.open())}get defaultSlot(){var t,n;return(n=(t=this.renderRoot)==null?void 0:t.querySelector("slot:not([name])"))==null?void 0:n.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var t;return this.isDataDriven?(t=this.virtualListElement)==null?void 0:t.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Gh)}get optionElements(){var n,l,c;const t=(n=this.optionElementsRenderRoot)!=null&&n.querySelectorAll(Y0).length?(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll(Y0):(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll("sp-menu-item");return Array.from(t!=null?t:[])}setValue(t){this.value=t,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(t){this.isMenuOpen&&t.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var t;(t=this.dropdown)==null||t.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():G`
2053
+ `}}yn.styles=[...exports.LabeledInput.styles,gy];gd([N({type:Boolean,reflect:!0})],yn.prototype,"readonly",2);gd([N({type:String,reflect:!0})],yn.prototype,"placeholder",2);gd([N({type:String,reflect:!0,attribute:"leading-icon"})],yn.prototype,"leadingIcon",2);gd([N({type:String,reflect:!0,attribute:"trailing-icon"})],yn.prototype,"trailingIcon",2);var vy=Object.defineProperty,by=Object.getOwnPropertyDescriptor,bi=(o,t,n,l)=>{for(var c=l>1?void 0:l?by(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&vy(t,n,c),c};const Fu="searchMessage";class zr extends yn{constructor(){super(...arguments),this.controlled=!1,this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(t=>({...t,id:`option-${hh()}`}))]:[]}updated(t){super.updated(t),t.has("options")&&this.setInnerOptions(),t.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(t){var n,l;return t?t instanceof exports.MenuItem?(l=(n=t.textContent)==null?void 0:n.trim())!=null?l:"":t.label:""}handleKeyDown(t){["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),this.dropdown.open())}handleKeyUp(t){t.key===" "&&this.canSearch&&(t.preventDefault(),this.dropdown.open())}get defaultSlot(){var t,n;return(n=(t=this.renderRoot)==null?void 0:t.querySelector("slot:not([name])"))==null?void 0:n.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var t;return this.isDataDriven?(t=this.virtualListElement)==null?void 0:t.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Gh)}get optionElements(){var n,l,c;const t=(n=this.optionElementsRenderRoot)!=null&&n.querySelectorAll(Y0).length?(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll(Y0):(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll("sp-menu-item");return Array.from(t!=null?t:[])}setValue(t){this.value=t,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(t){this.isMenuOpen&&t.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var t;(t=this.dropdown)==null||t.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():G`
2051
2054
  <brz-dropdown-menu
2052
2055
  @brz-menu-select=${this.handleSelect}
2053
2056
  @brz-menu-item-select=${this.handleItemSelect}
@@ -2161,7 +2164,7 @@ function print() { __p += __j.call(arguments, '') }
2161
2164
  border-color: var(--input-focus-border-color);
2162
2165
  outline: none;
2163
2166
  }
2164
- `];bi([R({type:Boolean})],zr.prototype,"controlled",2);bi([R({attribute:"can-search",type:Boolean,reflect:!0})],zr.prototype,"canSearch",2);bi([R({type:Boolean,reflect:!0})],zr.prototype,"loading",2);bi([R({type:String,reflect:!0,attribute:"trailing-icon"})],zr.prototype,"trailingIcon",2);bi([R({type:Array})],zr.prototype,"options",2);bi([R({attribute:"search-message"})],zr.prototype,"searchMessage",2);bi([Re()],zr.prototype,"isMenuOpen",2);bi([Re()],zr.prototype,"hasResults",2);bi([Re()],zr.prototype,"query",2);bi([Re()],zr.prototype,"innerOptions",2);bi([Hi("brz-dropdown-menu")],zr.prototype,"dropdown",2);bi([Hi("#selectSearch")],zr.prototype,"queryInput",2);class jh extends CustomEvent{constructor(t={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...t})}}var by=Object.defineProperty,my=Object.getOwnPropertyDescriptor,Qs=(o,t,n,l)=>{for(var c=l>1?void 0:l?my(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&by(t,n,c),c};const Y0=ze("menu-item");exports.MenuItem=class extends We{constructor(){super(...arguments),this.disabled=!1,this.highlighted=!1,this.selectable=!1,this.selected=!1}deselect(){this.disabled||(this.selected=!1)}select(){this.disabled||(this.selected=!0)}toggle(){this.disabled||(this.selected=!this.selected)}emitSelect(){this.disabled||this.dispatchEvent(new z6({detail:{item:this}}))}handleClick(t){t.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&t.stopPropagation()}handleKeyDown(){}get labelTemplate(){return G` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?G`
2167
+ `];bi([N({type:Boolean})],zr.prototype,"controlled",2);bi([N({attribute:"can-search",type:Boolean,reflect:!0})],zr.prototype,"canSearch",2);bi([N({type:Boolean,reflect:!0})],zr.prototype,"loading",2);bi([N({type:String,reflect:!0,attribute:"trailing-icon"})],zr.prototype,"trailingIcon",2);bi([N({type:Array})],zr.prototype,"options",2);bi([N({attribute:"search-message"})],zr.prototype,"searchMessage",2);bi([Re()],zr.prototype,"isMenuOpen",2);bi([Re()],zr.prototype,"hasResults",2);bi([Re()],zr.prototype,"query",2);bi([Re()],zr.prototype,"innerOptions",2);bi([Hi("brz-dropdown-menu")],zr.prototype,"dropdown",2);bi([Hi("#selectSearch")],zr.prototype,"queryInput",2);class jh extends CustomEvent{constructor(t={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...t})}}var my=Object.defineProperty,yy=Object.getOwnPropertyDescriptor,Qs=(o,t,n,l)=>{for(var c=l>1?void 0:l?yy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&my(t,n,c),c};const Y0=ze("menu-item");exports.MenuItem=class extends We{constructor(){super(...arguments),this.disabled=!1,this.highlighted=!1,this.selectable=!1,this.selected=!1}deselect(){this.disabled||(this.selected=!1)}select(){this.disabled||(this.selected=!0)}toggle(){this.disabled||(this.selected=!this.selected)}emitSelect(){this.disabled||this.dispatchEvent(new z6({detail:{item:this}}))}handleClick(t){t.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&t.stopPropagation()}handleKeyDown(){}get labelTemplate(){return G` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?G`
2165
2168
  <brz-input-checkbox
2166
2169
  ?disabled=${this.disabled}
2167
2170
  ?checked=${this.selected}
@@ -2238,7 +2241,7 @@ function print() { __p += __j.call(arguments, '') }
2238
2241
  padding-left: var(--menu-item-label-gutter);
2239
2242
  position: relative;
2240
2243
  }
2241
- `;Qs([R({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Qs([R({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);Qs([R({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);Qs([R({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Qs([R({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);Qs([R({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=Qs([ee(Y0)],exports.MenuItem);class z6 extends CustomEvent{constructor(t={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...t})}}var yy=Object.defineProperty,Cy=Object.getOwnPropertyDescriptor,ja=(o,t,n,l)=>{for(var c=l>1?void 0:l?Cy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&yy(t,n,c),c};const L6=ze("menu"),$i="selectAll";exports.Menu=class extends We{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(t){var n;super.updated(t),t.has("highlightedIndex")&&((n=this.highlightedItem)==null||n.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(t){t.preventDefault();const{key:n}=t,l=({before:g,after:h})=>(w,z)=>w.hidden?!1:g===void 0&&h===void 0||g!==void 0&&z<g||h!==void 0&&z>h;this.clearHighlightedItem();const c=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,c[this.highlightedIndex].highlighted=!0;return}n==="ArrowUp"&&(this.highlightedIndex=Uh.findLastIndex(c,l({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=c.length-1)),n==="ArrowDown"&&(this.highlightedIndex=c.findIndex(l({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),c[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(t){if(t.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(t=>t.selected)}getActiveMenuItem(t){return t?t.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(t){if(!this.selectable)return this.bypassSelectedState();if(t.value===void 0)throw new Error("No value found for MenuItem");if(!t.disabled){if(this.multiselect)t.toggle();else{const[n]=this.selectedItems;n==null||n.deselect(),t.select()}this.updateSelected(t.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(t){const n=this.selected.some(c=>t===c);if(this.multiselect&&n){this.selected=this.selected.filter(c=>t!==c);return}n||(this.selected=this.multiselect?[...this.selected,t]:[t])}handleMenuItemSelect(t){t.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(t))}emitSelection(){this.dispatchEvent(new M6({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(t){var n,l;(l=(n=this.keyBindings)[t.key])==null||l.call(n,t)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new S6),this.reset()}handleTabKey(t){t.preventDefault(),this.emitBlur()}applyPropsToChildren(t){wy(t)&&t.forEach(n=>{var l;n.selectable=this.selectable&&n.id!==Fu,n.toggleable=this.multiselect&&n.id!==Fu,n.id!==$i&&(n.selected=n.value!==void 0?(l=this.selected)==null?void 0:l.includes(n.value):!1)})}handleSlotChange(t){const n=t.target.assignedElements({flatten:!0});this.applyPropsToChildren(n)}handleVirtualListUpdate({detail:{itemElements:t}}){this.applyPropsToChildren(t),this.virtualListMenuItems=t}render(){return G`
2244
+ `;Qs([N({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Qs([N({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);Qs([N({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);Qs([N({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Qs([N({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);Qs([N({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=Qs([ee(Y0)],exports.MenuItem);class z6 extends CustomEvent{constructor(t={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...t})}}var Cy=Object.defineProperty,wy=Object.getOwnPropertyDescriptor,ja=(o,t,n,l)=>{for(var c=l>1?void 0:l?wy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Cy(t,n,c),c};const L6=ze("menu"),$i="selectAll";exports.Menu=class extends We{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(t){var n;super.updated(t),t.has("highlightedIndex")&&((n=this.highlightedItem)==null||n.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(t){t.preventDefault();const{key:n}=t,l=({before:g,after:h})=>(w,z)=>w.hidden?!1:g===void 0&&h===void 0||g!==void 0&&z<g||h!==void 0&&z>h;this.clearHighlightedItem();const c=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,c[this.highlightedIndex].highlighted=!0;return}n==="ArrowUp"&&(this.highlightedIndex=Uh.findLastIndex(c,l({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=c.length-1)),n==="ArrowDown"&&(this.highlightedIndex=c.findIndex(l({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),c[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(t){if(t.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(t=>t.selected)}getActiveMenuItem(t){return t?t.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(t){if(!this.selectable)return this.bypassSelectedState();if(t.value===void 0)throw new Error("No value found for MenuItem");if(!t.disabled){if(this.multiselect)t.toggle();else{const[n]=this.selectedItems;n==null||n.deselect(),t.select()}this.updateSelected(t.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(t){const n=this.selected.some(c=>t===c);if(this.multiselect&&n){this.selected=this.selected.filter(c=>t!==c);return}n||(this.selected=this.multiselect?[...this.selected,t]:[t])}handleMenuItemSelect(t){t.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(t))}emitSelection(){this.dispatchEvent(new M6({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(t){var n,l;(l=(n=this.keyBindings)[t.key])==null||l.call(n,t)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new S6),this.reset()}handleTabKey(t){t.preventDefault(),this.emitBlur()}applyPropsToChildren(t){xy(t)&&t.forEach(n=>{var l;n.selectable=this.selectable&&n.id!==Fu,n.toggleable=this.multiselect&&n.id!==Fu,n.id!==$i&&(n.selected=n.value!==void 0?(l=this.selected)==null?void 0:l.includes(n.value):!1)})}handleSlotChange(t){const n=t.target.assignedElements({flatten:!0});this.applyPropsToChildren(n)}handleVirtualListUpdate({detail:{itemElements:t}}){this.applyPropsToChildren(t),this.virtualListMenuItems=t}render(){return G`
2242
2245
  <ul
2243
2246
  class="menu"
2244
2247
  role="menu"
@@ -2284,17 +2287,17 @@ function print() { __p += __j.call(arguments, '') }
2284
2287
  width: var(--brz-menu-width, 10rem);
2285
2288
  padding: 0;
2286
2289
  }
2287
- `;ja([R({type:Boolean})],exports.Menu.prototype,"multiselect",2);ja([R({type:Boolean})],exports.Menu.prototype,"selectable",2);ja([R({type:Array})],exports.Menu.prototype,"selected",2);ja([R({reflect:!0})],exports.Menu.prototype,"size",2);ja([Re()],exports.Menu.prototype,"highlightedIndex",2);ja([Re()],exports.Menu.prototype,"virtualListMenuItems",2);ja([Jo({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=ja([ee(L6)],exports.Menu);const wy=o=>o[0]instanceof exports.MenuItem;class S6 extends CustomEvent{constructor(t={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...t})}}class M6 extends CustomEvent{constructor(t={}){super("brz-menu-select",{bubbles:!0,composed:!0,...t})}}var xy=Object.defineProperty,zy=Object.getOwnPropertyDescriptor,_6=(o,t,n,l)=>{for(var c=l>1?void 0:l?zy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&xy(t,n,c),c};const T6=ze("combo-box"),k6=ze("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=_6([ee(T6)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=_6([ee(k6)],exports.ComboBoxOption);/*!
2290
+ `;ja([N({type:Boolean})],exports.Menu.prototype,"multiselect",2);ja([N({type:Boolean})],exports.Menu.prototype,"selectable",2);ja([N({type:Array})],exports.Menu.prototype,"selected",2);ja([N({reflect:!0})],exports.Menu.prototype,"size",2);ja([Re()],exports.Menu.prototype,"highlightedIndex",2);ja([Re()],exports.Menu.prototype,"virtualListMenuItems",2);ja([Jo({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=ja([ee(L6)],exports.Menu);const xy=o=>o[0]instanceof exports.MenuItem;class S6 extends CustomEvent{constructor(t={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...t})}}class M6 extends CustomEvent{constructor(t={}){super("brz-menu-select",{bubbles:!0,composed:!0,...t})}}var zy=Object.defineProperty,Ly=Object.getOwnPropertyDescriptor,_6=(o,t,n,l)=>{for(var c=l>1?void 0:l?Ly(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&zy(t,n,c),c};const T6=ze("combo-box"),k6=ze("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=_6([ee(T6)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=_6([ee(k6)],exports.ComboBoxOption);/*!
2288
2291
  * tabbable 6.2.0
2289
2292
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2290
- */var O6=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],X0=O6.join(","),E6=typeof Element=="undefined",Js=E6?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,J0=!E6&&Element.prototype.getRootNode?function(o){var t;return o==null||(t=o.getRootNode)===null||t===void 0?void 0:t.call(o)}:function(o){return o==null?void 0:o.ownerDocument},Q0=function o(t,n){var l;n===void 0&&(n=!0);var c=t==null||(l=t.getAttribute)===null||l===void 0?void 0:l.call(t,"inert"),g=c===""||c==="true",h=g||n&&t&&o(t.parentNode);return h},Ly=function(t){var n,l=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return l===""||l==="true"},I6=function(t,n,l){if(Q0(t))return[];var c=Array.prototype.slice.apply(t.querySelectorAll(X0));return n&&Js.call(t,X0)&&c.unshift(t),c=c.filter(l),c},A6=function o(t,n,l){for(var c=[],g=Array.from(t);g.length;){var h=g.shift();if(!Q0(h,!1))if(h.tagName==="SLOT"){var w=h.assignedElements(),z=w.length?w:h.children,S=o(z,!0,l);l.flatten?c.push.apply(c,S):c.push({scopeParent:h,candidates:S})}else{var E=Js.call(h,X0);E&&l.filter(h)&&(n||!t.includes(h))&&c.push(h);var D=h.shadowRoot||typeof l.getShadowRoot=="function"&&l.getShadowRoot(h),B=!Q0(D,!1)&&(!l.shadowRootFilter||l.shadowRootFilter(h));if(D&&B){var H=o(D===!0?h.children:D.children,!0,l);l.flatten?c.push.apply(c,H):c.push({scopeParent:h,candidates:H})}else g.unshift.apply(g,h.children)}}return c},$6=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Vs=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Ly(t))&&!$6(t)?0:t.tabIndex},Sy=function(t,n){var l=Vs(t);return l<0&&n&&!$6(t)?0:l},My=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},P6=function(t){return t.tagName==="INPUT"},_y=function(t){return P6(t)&&t.type==="hidden"},Ty=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(l){return l.tagName==="SUMMARY"});return n},ky=function(t,n){for(var l=0;l<t.length;l++)if(t[l].checked&&t[l].form===n)return t[l]},Oy=function(t){if(!t.name)return!0;var n=t.form||J0(t),l=function(w){return n.querySelectorAll('input[type="radio"][name="'+w+'"]')},c;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")c=l(window.CSS.escape(t.name));else try{c=l(t.name)}catch(h){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",h.message),!1}var g=ky(c,t.form);return!g||g===t},Ey=function(t){return P6(t)&&t.type==="radio"},Iy=function(t){return Ey(t)&&!Oy(t)},Ay=function(t){var n,l=t&&J0(t),c=(n=l)===null||n===void 0?void 0:n.host,g=!1;if(l&&l!==t){var h,w,z;for(g=!!((h=c)!==null&&h!==void 0&&(w=h.ownerDocument)!==null&&w!==void 0&&w.contains(c)||t!=null&&(z=t.ownerDocument)!==null&&z!==void 0&&z.contains(t));!g&&c;){var S,E,D;l=J0(c),c=(S=l)===null||S===void 0?void 0:S.host,g=!!((E=c)!==null&&E!==void 0&&(D=E.ownerDocument)!==null&&D!==void 0&&D.contains(c))}}return g},_p=function(t){var n=t.getBoundingClientRect(),l=n.width,c=n.height;return l===0&&c===0},$y=function(t,n){var l=n.displayCheck,c=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var g=Js.call(t,"details>summary:first-of-type"),h=g?t.parentElement:t;if(Js.call(h,"details:not([open]) *"))return!0;if(!l||l==="full"||l==="legacy-full"){if(typeof c=="function"){for(var w=t;t;){var z=t.parentElement,S=J0(t);if(z&&!z.shadowRoot&&c(z)===!0)return _p(t);t.assignedSlot?t=t.assignedSlot:!z&&S!==t.ownerDocument?t=S.host:t=z}t=w}if(Ay(t))return!t.getClientRects().length;if(l!=="legacy-full")return!0}else if(l==="non-zero-area")return _p(t);return!1},Py=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var l=0;l<n.children.length;l++){var c=n.children.item(l);if(c.tagName==="LEGEND")return Js.call(n,"fieldset[disabled] *")?!0:!c.contains(t)}return!0}n=n.parentElement}return!1},ed=function(t,n){return!(n.disabled||Q0(n)||_y(n)||$y(n,t)||Ty(n)||Py(n))},ph=function(t,n){return!(Iy(n)||Vs(n)<0||!ed(t,n))},Dy=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Ny=function o(t){var n=[],l=[];return t.forEach(function(c,g){var h=!!c.scopeParent,w=h?c.scopeParent:c,z=Sy(w,h),S=h?o(c.candidates):w;z===0?h?n.push.apply(n,S):n.push(w):l.push({documentOrder:g,tabIndex:z,item:c,isScope:h,content:S})}),l.sort(My).reduce(function(c,g){return g.isScope?c.push.apply(c,g.content):c.push(g.content),c},[]).concat(n)},Ry=function(t,n){n=n||{};var l;return n.getShadowRoot?l=A6([t],n.includeContainer,{filter:ph.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Dy}):l=I6(t,n.includeContainer,ph.bind(null,n)),Ny(l)},Hy=function(t,n){n=n||{};var l;return n.getShadowRoot?l=A6([t],n.includeContainer,{filter:ed.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):l=I6(t,n.includeContainer,ed.bind(null,n)),l},t1=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Js.call(t,X0)===!1?!1:ph(n,t)},Fy=O6.concat("iframe").join(","),jf=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Js.call(t,Fy)===!1?!1:ed(n,t)};/*!
2293
+ */var O6=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],X0=O6.join(","),E6=typeof Element=="undefined",Js=E6?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,J0=!E6&&Element.prototype.getRootNode?function(o){var t;return o==null||(t=o.getRootNode)===null||t===void 0?void 0:t.call(o)}:function(o){return o==null?void 0:o.ownerDocument},Q0=function o(t,n){var l;n===void 0&&(n=!0);var c=t==null||(l=t.getAttribute)===null||l===void 0?void 0:l.call(t,"inert"),g=c===""||c==="true",h=g||n&&t&&o(t.parentNode);return h},Sy=function(t){var n,l=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return l===""||l==="true"},I6=function(t,n,l){if(Q0(t))return[];var c=Array.prototype.slice.apply(t.querySelectorAll(X0));return n&&Js.call(t,X0)&&c.unshift(t),c=c.filter(l),c},A6=function o(t,n,l){for(var c=[],g=Array.from(t);g.length;){var h=g.shift();if(!Q0(h,!1))if(h.tagName==="SLOT"){var w=h.assignedElements(),z=w.length?w:h.children,S=o(z,!0,l);l.flatten?c.push.apply(c,S):c.push({scopeParent:h,candidates:S})}else{var E=Js.call(h,X0);E&&l.filter(h)&&(n||!t.includes(h))&&c.push(h);var D=h.shadowRoot||typeof l.getShadowRoot=="function"&&l.getShadowRoot(h),B=!Q0(D,!1)&&(!l.shadowRootFilter||l.shadowRootFilter(h));if(D&&B){var H=o(D===!0?h.children:D.children,!0,l);l.flatten?c.push.apply(c,H):c.push({scopeParent:h,candidates:H})}else g.unshift.apply(g,h.children)}}return c},$6=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Vs=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Sy(t))&&!$6(t)?0:t.tabIndex},My=function(t,n){var l=Vs(t);return l<0&&n&&!$6(t)?0:l},_y=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},P6=function(t){return t.tagName==="INPUT"},Ty=function(t){return P6(t)&&t.type==="hidden"},ky=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(l){return l.tagName==="SUMMARY"});return n},Oy=function(t,n){for(var l=0;l<t.length;l++)if(t[l].checked&&t[l].form===n)return t[l]},Ey=function(t){if(!t.name)return!0;var n=t.form||J0(t),l=function(w){return n.querySelectorAll('input[type="radio"][name="'+w+'"]')},c;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")c=l(window.CSS.escape(t.name));else try{c=l(t.name)}catch(h){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",h.message),!1}var g=Oy(c,t.form);return!g||g===t},Iy=function(t){return P6(t)&&t.type==="radio"},Ay=function(t){return Iy(t)&&!Ey(t)},$y=function(t){var n,l=t&&J0(t),c=(n=l)===null||n===void 0?void 0:n.host,g=!1;if(l&&l!==t){var h,w,z;for(g=!!((h=c)!==null&&h!==void 0&&(w=h.ownerDocument)!==null&&w!==void 0&&w.contains(c)||t!=null&&(z=t.ownerDocument)!==null&&z!==void 0&&z.contains(t));!g&&c;){var S,E,D;l=J0(c),c=(S=l)===null||S===void 0?void 0:S.host,g=!!((E=c)!==null&&E!==void 0&&(D=E.ownerDocument)!==null&&D!==void 0&&D.contains(c))}}return g},_p=function(t){var n=t.getBoundingClientRect(),l=n.width,c=n.height;return l===0&&c===0},Py=function(t,n){var l=n.displayCheck,c=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var g=Js.call(t,"details>summary:first-of-type"),h=g?t.parentElement:t;if(Js.call(h,"details:not([open]) *"))return!0;if(!l||l==="full"||l==="legacy-full"){if(typeof c=="function"){for(var w=t;t;){var z=t.parentElement,S=J0(t);if(z&&!z.shadowRoot&&c(z)===!0)return _p(t);t.assignedSlot?t=t.assignedSlot:!z&&S!==t.ownerDocument?t=S.host:t=z}t=w}if($y(t))return!t.getClientRects().length;if(l!=="legacy-full")return!0}else if(l==="non-zero-area")return _p(t);return!1},Dy=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var l=0;l<n.children.length;l++){var c=n.children.item(l);if(c.tagName==="LEGEND")return Js.call(n,"fieldset[disabled] *")?!0:!c.contains(t)}return!0}n=n.parentElement}return!1},ed=function(t,n){return!(n.disabled||Q0(n)||Ty(n)||Py(n,t)||ky(n)||Dy(n))},ph=function(t,n){return!(Ay(n)||Vs(n)<0||!ed(t,n))},Ny=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Ry=function o(t){var n=[],l=[];return t.forEach(function(c,g){var h=!!c.scopeParent,w=h?c.scopeParent:c,z=My(w,h),S=h?o(c.candidates):w;z===0?h?n.push.apply(n,S):n.push(w):l.push({documentOrder:g,tabIndex:z,item:c,isScope:h,content:S})}),l.sort(_y).reduce(function(c,g){return g.isScope?c.push.apply(c,g.content):c.push(g.content),c},[]).concat(n)},Hy=function(t,n){n=n||{};var l;return n.getShadowRoot?l=A6([t],n.includeContainer,{filter:ph.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Ny}):l=I6(t,n.includeContainer,ph.bind(null,n)),Ry(l)},Fy=function(t,n){n=n||{};var l;return n.getShadowRoot?l=A6([t],n.includeContainer,{filter:ed.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):l=I6(t,n.includeContainer,ed.bind(null,n)),l},t1=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Js.call(t,X0)===!1?!1:ph(n,t)},By=O6.concat("iframe").join(","),jf=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Js.call(t,By)===!1?!1:ed(n,t)};/*!
2291
2294
  * focus-trap 7.5.4
2292
2295
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2293
- */function Tp(o,t){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);t&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),n.push.apply(n,l)}return n}function kp(o){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tp(Object(n),!0).forEach(function(l){By(o,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):Tp(Object(n)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(n,l))})}return o}function By(o,t,n){return t=Wy(t),t in o?Object.defineProperty(o,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[t]=n,o}function Vy(o,t){if(typeof o!="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var l=n.call(o,t||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function Wy(o){var t=Vy(o,"string");return typeof t=="symbol"?t:String(t)}var Op={activateTrap:function(t,n){if(t.length>0){var l=t[t.length-1];l!==n&&l.pause()}var c=t.indexOf(n);c===-1||t.splice(c,1),t.push(n)},deactivateTrap:function(t,n){var l=t.indexOf(n);l!==-1&&t.splice(l,1),t.length>0&&t[t.length-1].unpause()}},Zy=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Uy=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Eu=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},Gy=function(t){return Eu(t)&&!t.shiftKey},qy=function(t){return Eu(t)&&t.shiftKey},Ep=function(t){return setTimeout(t,0)},Ip=function(t,n){var l=-1;return t.every(function(c,g){return n(c)?(l=g,!1):!0}),l},xu=function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c<n;c++)l[c-1]=arguments[c];return typeof t=="function"?t.apply(void 0,l):t},S0=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},jy=[],Ky=function(t,n){var l=(n==null?void 0:n.document)||document,c=(n==null?void 0:n.trapStack)||jy,g=kp({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Gy,isKeyBackward:qy},n),h={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},w,z=function(Q,$,k){return Q&&Q[$]!==void 0?Q[$]:g[k||$]},S=function(Q,$){var k=typeof($==null?void 0:$.composedPath)=="function"?$.composedPath():void 0;return h.containerGroups.findIndex(function(O){var X=O.container,ce=O.tabbableNodes;return X.contains(Q)||(k==null?void 0:k.includes(X))||ce.find(function(Ae){return Ae===Q})})},E=function(Q){var $=g[Q];if(typeof $=="function"){for(var k=arguments.length,O=new Array(k>1?k-1:0),X=1;X<k;X++)O[X-1]=arguments[X];$=$.apply(void 0,O)}if($===!0&&($=void 0),!$){if($===void 0||$===!1)return $;throw new Error("`".concat(Q,"` was specified but was not a node, or did not return a node"))}var ce=$;if(typeof $=="string"&&(ce=l.querySelector($),!ce))throw new Error("`".concat(Q,"` as selector refers to no known node"));return ce},D=function(){var Q=E("initialFocus");if(Q===!1)return!1;if(Q===void 0||!jf(Q,g.tabbableOptions))if(S(l.activeElement)>=0)Q=l.activeElement;else{var $=h.tabbableGroups[0],k=$&&$.firstTabbableNode;Q=k||E("fallbackFocus")}if(!Q)throw new Error("Your focus-trap needs to have at least one focusable element");return Q},B=function(){if(h.containerGroups=h.containers.map(function(Q){var $=Ry(Q,g.tabbableOptions),k=Hy(Q,g.tabbableOptions),O=$.length>0?$[0]:void 0,X=$.length>0?$[$.length-1]:void 0,ce=k.find(function(pt){return t1(pt)}),Ae=k.slice().reverse().find(function(pt){return t1(pt)}),et=!!$.find(function(pt){return Vs(pt)>0});return{container:Q,tabbableNodes:$,focusableNodes:k,posTabIndexesFound:et,firstTabbableNode:O,lastTabbableNode:X,firstDomTabbableNode:ce,lastDomTabbableNode:Ae,nextTabbableNode:function(yt){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Tt=$.indexOf(yt);return Tt<0?or?k.slice(k.indexOf(yt)+1).find(function(zt){return t1(zt)}):k.slice(0,k.indexOf(yt)).reverse().find(function(zt){return t1(zt)}):$[Tt+(or?1:-1)]}}}),h.tabbableGroups=h.containerGroups.filter(function(Q){return Q.tabbableNodes.length>0}),h.tabbableGroups.length<=0&&!E("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(h.containerGroups.find(function(Q){return Q.posTabIndexesFound})&&h.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},H=function ue(Q){var $=Q.activeElement;if($)return $.shadowRoot&&$.shadowRoot.activeElement!==null?ue($.shadowRoot):$},J=function ue(Q){if(Q!==!1&&Q!==H(document)){if(!Q||!Q.focus){ue(D());return}Q.focus({preventScroll:!!g.preventScroll}),h.mostRecentlyFocusedNode=Q,Zy(Q)&&Q.select()}},pe=function(Q){var $=E("setReturnFocus",Q);return $||($===!1?!1:Q)},ge=function(Q){var $=Q.target,k=Q.event,O=Q.isBackward,X=O===void 0?!1:O;$=$||S0(k),B();var ce=null;if(h.tabbableGroups.length>0){var Ae=S($,k),et=Ae>=0?h.containerGroups[Ae]:void 0;if(Ae<0)X?ce=h.tabbableGroups[h.tabbableGroups.length-1].lastTabbableNode:ce=h.tabbableGroups[0].firstTabbableNode;else if(X){var pt=Ip(h.tabbableGroups,function(Le){var Ne=Le.firstTabbableNode;return $===Ne});if(pt<0&&(et.container===$||jf($,g.tabbableOptions)&&!t1($,g.tabbableOptions)&&!et.nextTabbableNode($,!1))&&(pt=Ae),pt>=0){var yt=pt===0?h.tabbableGroups.length-1:pt-1,or=h.tabbableGroups[yt];ce=Vs($)>=0?or.lastTabbableNode:or.lastDomTabbableNode}else Eu(k)||(ce=et.nextTabbableNode($,!1))}else{var Tt=Ip(h.tabbableGroups,function(Le){var Ne=Le.lastTabbableNode;return $===Ne});if(Tt<0&&(et.container===$||jf($,g.tabbableOptions)&&!t1($,g.tabbableOptions)&&!et.nextTabbableNode($))&&(Tt=Ae),Tt>=0){var zt=Tt===h.tabbableGroups.length-1?0:Tt+1,rt=h.tabbableGroups[zt];ce=Vs($)>=0?rt.firstTabbableNode:rt.firstDomTabbableNode}else Eu(k)||(ce=et.nextTabbableNode($))}}else ce=E("fallbackFocus");return ce},Te=function(Q){var $=S0(Q);if(!(S($,Q)>=0)){if(xu(g.clickOutsideDeactivates,Q)){w.deactivate({returnFocus:g.returnFocusOnDeactivate});return}xu(g.allowOutsideClick,Q)||Q.preventDefault()}},Ie=function(Q){var $=S0(Q),k=S($,Q)>=0;if(k||$ instanceof Document)k&&(h.mostRecentlyFocusedNode=$);else{Q.stopImmediatePropagation();var O,X=!0;if(h.mostRecentlyFocusedNode)if(Vs(h.mostRecentlyFocusedNode)>0){var ce=S(h.mostRecentlyFocusedNode),Ae=h.containerGroups[ce].tabbableNodes;if(Ae.length>0){var et=Ae.findIndex(function(pt){return pt===h.mostRecentlyFocusedNode});et>=0&&(g.isKeyForward(h.recentNavEvent)?et+1<Ae.length&&(O=Ae[et+1],X=!1):et-1>=0&&(O=Ae[et-1],X=!1))}}else h.containerGroups.some(function(pt){return pt.tabbableNodes.some(function(yt){return Vs(yt)>0})})||(X=!1);else X=!1;X&&(O=ge({target:h.mostRecentlyFocusedNode,isBackward:g.isKeyBackward(h.recentNavEvent)})),J(O||h.mostRecentlyFocusedNode||D())}h.recentNavEvent=void 0},be=function(Q){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;h.recentNavEvent=Q;var k=ge({event:Q,isBackward:$});k&&(Eu(Q)&&Q.preventDefault(),J(k))},ve=function(Q){if(Uy(Q)&&xu(g.escapeDeactivates,Q)!==!1){Q.preventDefault(),w.deactivate();return}(g.isKeyForward(Q)||g.isKeyBackward(Q))&&be(Q,g.isKeyBackward(Q))},ke=function(Q){var $=S0(Q);S($,Q)>=0||xu(g.clickOutsideDeactivates,Q)||xu(g.allowOutsideClick,Q)||(Q.preventDefault(),Q.stopImmediatePropagation())},$e=function(){if(h.active)return Op.activateTrap(c,w),h.delayInitialFocusTimer=g.delayInitialFocus?Ep(function(){J(D())}):J(D()),l.addEventListener("focusin",Ie,!0),l.addEventListener("mousedown",Te,{capture:!0,passive:!1}),l.addEventListener("touchstart",Te,{capture:!0,passive:!1}),l.addEventListener("click",ke,{capture:!0,passive:!1}),l.addEventListener("keydown",ve,{capture:!0,passive:!1}),w},De=function(){if(h.active)return l.removeEventListener("focusin",Ie,!0),l.removeEventListener("mousedown",Te,!0),l.removeEventListener("touchstart",Te,!0),l.removeEventListener("click",ke,!0),l.removeEventListener("keydown",ve,!0),w},je=function(Q){var $=Q.some(function(k){var O=Array.from(k.removedNodes);return O.some(function(X){return X===h.mostRecentlyFocusedNode})});$&&J(D())},Ye=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(je):void 0,Ce=function(){Ye&&(Ye.disconnect(),h.active&&!h.paused&&h.containers.map(function(Q){Ye.observe(Q,{subtree:!0,childList:!0})}))};return w={get active(){return h.active},get paused(){return h.paused},activate:function(Q){if(h.active)return this;var $=z(Q,"onActivate"),k=z(Q,"onPostActivate"),O=z(Q,"checkCanFocusTrap");O||B(),h.active=!0,h.paused=!1,h.nodeFocusedBeforeActivation=l.activeElement,$==null||$();var X=function(){O&&B(),$e(),Ce(),k==null||k()};return O?(O(h.containers.concat()).then(X,X),this):(X(),this)},deactivate:function(Q){if(!h.active)return this;var $=kp({onDeactivate:g.onDeactivate,onPostDeactivate:g.onPostDeactivate,checkCanReturnFocus:g.checkCanReturnFocus},Q);clearTimeout(h.delayInitialFocusTimer),h.delayInitialFocusTimer=void 0,De(),h.active=!1,h.paused=!1,Ce(),Op.deactivateTrap(c,w);var k=z($,"onDeactivate"),O=z($,"onPostDeactivate"),X=z($,"checkCanReturnFocus"),ce=z($,"returnFocus","returnFocusOnDeactivate");k==null||k();var Ae=function(){Ep(function(){ce&&J(pe(h.nodeFocusedBeforeActivation)),O==null||O()})};return ce&&X?(X(pe(h.nodeFocusedBeforeActivation)).then(Ae,Ae),this):(Ae(),this)},pause:function(Q){if(h.paused||!h.active)return this;var $=z(Q,"onPause"),k=z(Q,"onPostPause");return h.paused=!0,$==null||$(),De(),Ce(),k==null||k(),this},unpause:function(Q){if(!h.paused||!h.active)return this;var $=z(Q,"onUnpause"),k=z(Q,"onPostUnpause");return h.paused=!1,$==null||$(),B(),$e(),Ce(),k==null||k(),this},updateContainerElements:function(Q){var $=[].concat(Q).filter(Boolean);return h.containers=$.map(function(k){return typeof k=="string"?l.querySelector(k):k}),h.active&&B(),Ce(),this}},w.updateContainerElements(t),w},Yy=Object.defineProperty,Xy=Object.getOwnPropertyDescriptor,el=(o,t,n,l)=>{for(var c=l>1?void 0:l?Xy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Yy(t,n,c),c};const D6=ze("modal"),Jy=["small","medium","large","x-large"];class Kh extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends We{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=t=>{if(t.key==="Escape")return this.handleClose(t)},this.handleClose=t=>{!this.open||t instanceof MouseEvent&&this.noClose||t instanceof MouseEvent&&t.target!==this.overlay||(t.stopPropagation(),this.dispatchEvent(new Kh))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=Ky(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(t){super.updated(t),this.updateComplete.then(()=>{this.focusTrap&&t.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var t;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(t=this.focusTrap)==null||t.deactivate()}handleTransitionEnd(t){t.target===this.overlay&&(this.open=!1)}render(){return G`
2296
+ */function Tp(o,t){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);t&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),n.push.apply(n,l)}return n}function kp(o){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tp(Object(n),!0).forEach(function(l){Vy(o,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):Tp(Object(n)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(n,l))})}return o}function Vy(o,t,n){return t=Zy(t),t in o?Object.defineProperty(o,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[t]=n,o}function Wy(o,t){if(typeof o!="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var l=n.call(o,t||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function Zy(o){var t=Wy(o,"string");return typeof t=="symbol"?t:String(t)}var Op={activateTrap:function(t,n){if(t.length>0){var l=t[t.length-1];l!==n&&l.pause()}var c=t.indexOf(n);c===-1||t.splice(c,1),t.push(n)},deactivateTrap:function(t,n){var l=t.indexOf(n);l!==-1&&t.splice(l,1),t.length>0&&t[t.length-1].unpause()}},Uy=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Gy=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Eu=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},qy=function(t){return Eu(t)&&!t.shiftKey},jy=function(t){return Eu(t)&&t.shiftKey},Ep=function(t){return setTimeout(t,0)},Ip=function(t,n){var l=-1;return t.every(function(c,g){return n(c)?(l=g,!1):!0}),l},xu=function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c<n;c++)l[c-1]=arguments[c];return typeof t=="function"?t.apply(void 0,l):t},S0=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Ky=[],Yy=function(t,n){var l=(n==null?void 0:n.document)||document,c=(n==null?void 0:n.trapStack)||Ky,g=kp({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:qy,isKeyBackward:jy},n),h={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},w,z=function(Q,$,k){return Q&&Q[$]!==void 0?Q[$]:g[k||$]},S=function(Q,$){var k=typeof($==null?void 0:$.composedPath)=="function"?$.composedPath():void 0;return h.containerGroups.findIndex(function(O){var X=O.container,ce=O.tabbableNodes;return X.contains(Q)||(k==null?void 0:k.includes(X))||ce.find(function(Ae){return Ae===Q})})},E=function(Q){var $=g[Q];if(typeof $=="function"){for(var k=arguments.length,O=new Array(k>1?k-1:0),X=1;X<k;X++)O[X-1]=arguments[X];$=$.apply(void 0,O)}if($===!0&&($=void 0),!$){if($===void 0||$===!1)return $;throw new Error("`".concat(Q,"` was specified but was not a node, or did not return a node"))}var ce=$;if(typeof $=="string"&&(ce=l.querySelector($),!ce))throw new Error("`".concat(Q,"` as selector refers to no known node"));return ce},D=function(){var Q=E("initialFocus");if(Q===!1)return!1;if(Q===void 0||!jf(Q,g.tabbableOptions))if(S(l.activeElement)>=0)Q=l.activeElement;else{var $=h.tabbableGroups[0],k=$&&$.firstTabbableNode;Q=k||E("fallbackFocus")}if(!Q)throw new Error("Your focus-trap needs to have at least one focusable element");return Q},B=function(){if(h.containerGroups=h.containers.map(function(Q){var $=Hy(Q,g.tabbableOptions),k=Fy(Q,g.tabbableOptions),O=$.length>0?$[0]:void 0,X=$.length>0?$[$.length-1]:void 0,ce=k.find(function(pt){return t1(pt)}),Ae=k.slice().reverse().find(function(pt){return t1(pt)}),et=!!$.find(function(pt){return Vs(pt)>0});return{container:Q,tabbableNodes:$,focusableNodes:k,posTabIndexesFound:et,firstTabbableNode:O,lastTabbableNode:X,firstDomTabbableNode:ce,lastDomTabbableNode:Ae,nextTabbableNode:function(yt){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Tt=$.indexOf(yt);return Tt<0?or?k.slice(k.indexOf(yt)+1).find(function(zt){return t1(zt)}):k.slice(0,k.indexOf(yt)).reverse().find(function(zt){return t1(zt)}):$[Tt+(or?1:-1)]}}}),h.tabbableGroups=h.containerGroups.filter(function(Q){return Q.tabbableNodes.length>0}),h.tabbableGroups.length<=0&&!E("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(h.containerGroups.find(function(Q){return Q.posTabIndexesFound})&&h.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},H=function ue(Q){var $=Q.activeElement;if($)return $.shadowRoot&&$.shadowRoot.activeElement!==null?ue($.shadowRoot):$},J=function ue(Q){if(Q!==!1&&Q!==H(document)){if(!Q||!Q.focus){ue(D());return}Q.focus({preventScroll:!!g.preventScroll}),h.mostRecentlyFocusedNode=Q,Uy(Q)&&Q.select()}},pe=function(Q){var $=E("setReturnFocus",Q);return $||($===!1?!1:Q)},ge=function(Q){var $=Q.target,k=Q.event,O=Q.isBackward,X=O===void 0?!1:O;$=$||S0(k),B();var ce=null;if(h.tabbableGroups.length>0){var Ae=S($,k),et=Ae>=0?h.containerGroups[Ae]:void 0;if(Ae<0)X?ce=h.tabbableGroups[h.tabbableGroups.length-1].lastTabbableNode:ce=h.tabbableGroups[0].firstTabbableNode;else if(X){var pt=Ip(h.tabbableGroups,function(Le){var Ne=Le.firstTabbableNode;return $===Ne});if(pt<0&&(et.container===$||jf($,g.tabbableOptions)&&!t1($,g.tabbableOptions)&&!et.nextTabbableNode($,!1))&&(pt=Ae),pt>=0){var yt=pt===0?h.tabbableGroups.length-1:pt-1,or=h.tabbableGroups[yt];ce=Vs($)>=0?or.lastTabbableNode:or.lastDomTabbableNode}else Eu(k)||(ce=et.nextTabbableNode($,!1))}else{var Tt=Ip(h.tabbableGroups,function(Le){var Ne=Le.lastTabbableNode;return $===Ne});if(Tt<0&&(et.container===$||jf($,g.tabbableOptions)&&!t1($,g.tabbableOptions)&&!et.nextTabbableNode($))&&(Tt=Ae),Tt>=0){var zt=Tt===h.tabbableGroups.length-1?0:Tt+1,rt=h.tabbableGroups[zt];ce=Vs($)>=0?rt.firstTabbableNode:rt.firstDomTabbableNode}else Eu(k)||(ce=et.nextTabbableNode($))}}else ce=E("fallbackFocus");return ce},Te=function(Q){var $=S0(Q);if(!(S($,Q)>=0)){if(xu(g.clickOutsideDeactivates,Q)){w.deactivate({returnFocus:g.returnFocusOnDeactivate});return}xu(g.allowOutsideClick,Q)||Q.preventDefault()}},Ie=function(Q){var $=S0(Q),k=S($,Q)>=0;if(k||$ instanceof Document)k&&(h.mostRecentlyFocusedNode=$);else{Q.stopImmediatePropagation();var O,X=!0;if(h.mostRecentlyFocusedNode)if(Vs(h.mostRecentlyFocusedNode)>0){var ce=S(h.mostRecentlyFocusedNode),Ae=h.containerGroups[ce].tabbableNodes;if(Ae.length>0){var et=Ae.findIndex(function(pt){return pt===h.mostRecentlyFocusedNode});et>=0&&(g.isKeyForward(h.recentNavEvent)?et+1<Ae.length&&(O=Ae[et+1],X=!1):et-1>=0&&(O=Ae[et-1],X=!1))}}else h.containerGroups.some(function(pt){return pt.tabbableNodes.some(function(yt){return Vs(yt)>0})})||(X=!1);else X=!1;X&&(O=ge({target:h.mostRecentlyFocusedNode,isBackward:g.isKeyBackward(h.recentNavEvent)})),J(O||h.mostRecentlyFocusedNode||D())}h.recentNavEvent=void 0},be=function(Q){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;h.recentNavEvent=Q;var k=ge({event:Q,isBackward:$});k&&(Eu(Q)&&Q.preventDefault(),J(k))},ve=function(Q){if(Gy(Q)&&xu(g.escapeDeactivates,Q)!==!1){Q.preventDefault(),w.deactivate();return}(g.isKeyForward(Q)||g.isKeyBackward(Q))&&be(Q,g.isKeyBackward(Q))},ke=function(Q){var $=S0(Q);S($,Q)>=0||xu(g.clickOutsideDeactivates,Q)||xu(g.allowOutsideClick,Q)||(Q.preventDefault(),Q.stopImmediatePropagation())},$e=function(){if(h.active)return Op.activateTrap(c,w),h.delayInitialFocusTimer=g.delayInitialFocus?Ep(function(){J(D())}):J(D()),l.addEventListener("focusin",Ie,!0),l.addEventListener("mousedown",Te,{capture:!0,passive:!1}),l.addEventListener("touchstart",Te,{capture:!0,passive:!1}),l.addEventListener("click",ke,{capture:!0,passive:!1}),l.addEventListener("keydown",ve,{capture:!0,passive:!1}),w},De=function(){if(h.active)return l.removeEventListener("focusin",Ie,!0),l.removeEventListener("mousedown",Te,!0),l.removeEventListener("touchstart",Te,!0),l.removeEventListener("click",ke,!0),l.removeEventListener("keydown",ve,!0),w},je=function(Q){var $=Q.some(function(k){var O=Array.from(k.removedNodes);return O.some(function(X){return X===h.mostRecentlyFocusedNode})});$&&J(D())},Ye=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(je):void 0,Ce=function(){Ye&&(Ye.disconnect(),h.active&&!h.paused&&h.containers.map(function(Q){Ye.observe(Q,{subtree:!0,childList:!0})}))};return w={get active(){return h.active},get paused(){return h.paused},activate:function(Q){if(h.active)return this;var $=z(Q,"onActivate"),k=z(Q,"onPostActivate"),O=z(Q,"checkCanFocusTrap");O||B(),h.active=!0,h.paused=!1,h.nodeFocusedBeforeActivation=l.activeElement,$==null||$();var X=function(){O&&B(),$e(),Ce(),k==null||k()};return O?(O(h.containers.concat()).then(X,X),this):(X(),this)},deactivate:function(Q){if(!h.active)return this;var $=kp({onDeactivate:g.onDeactivate,onPostDeactivate:g.onPostDeactivate,checkCanReturnFocus:g.checkCanReturnFocus},Q);clearTimeout(h.delayInitialFocusTimer),h.delayInitialFocusTimer=void 0,De(),h.active=!1,h.paused=!1,Ce(),Op.deactivateTrap(c,w);var k=z($,"onDeactivate"),O=z($,"onPostDeactivate"),X=z($,"checkCanReturnFocus"),ce=z($,"returnFocus","returnFocusOnDeactivate");k==null||k();var Ae=function(){Ep(function(){ce&&J(pe(h.nodeFocusedBeforeActivation)),O==null||O()})};return ce&&X?(X(pe(h.nodeFocusedBeforeActivation)).then(Ae,Ae),this):(Ae(),this)},pause:function(Q){if(h.paused||!h.active)return this;var $=z(Q,"onPause"),k=z(Q,"onPostPause");return h.paused=!0,$==null||$(),De(),Ce(),k==null||k(),this},unpause:function(Q){if(!h.paused||!h.active)return this;var $=z(Q,"onUnpause"),k=z(Q,"onPostUnpause");return h.paused=!1,$==null||$(),B(),$e(),Ce(),k==null||k(),this},updateContainerElements:function(Q){var $=[].concat(Q).filter(Boolean);return h.containers=$.map(function(k){return typeof k=="string"?l.querySelector(k):k}),h.active&&B(),Ce(),this}},w.updateContainerElements(t),w},Xy=Object.defineProperty,Jy=Object.getOwnPropertyDescriptor,el=(o,t,n,l)=>{for(var c=l>1?void 0:l?Jy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Xy(t,n,c),c};const D6=ze("modal"),Qy=["small","medium","large","x-large","full-page"];class Kh extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends We{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=t=>{if(t.key==="Escape")return this.handleClose(t)},this.handleClose=t=>{!this.open||t instanceof MouseEvent&&this.noClose||t instanceof MouseEvent&&t.target!==this.overlay||(t.stopPropagation(),this.dispatchEvent(new Kh))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=Yy(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(t){super.updated(t),this.updateComplete.then(()=>{this.focusTrap&&t.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var t;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(t=this.focusTrap)==null||t.deactivate()}handleTransitionEnd(t){t.target===this.overlay&&(this.open=!1)}render(){return G`
2294
2297
  <brz-fade-in-out ?shown=${this.open}>
2295
2298
  <div
2296
2299
  id="overlay"
2297
- class="${On({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
2300
+ class="${On({overlay:!0,small:this.size==="small",medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large","full-page":this.size==="full-page"})}"
2298
2301
  @mousedown=${this.handleClose}
2299
2302
  @keyup=${()=>{}}
2300
2303
  @transitionend=${this.handleTransitionEnd}
@@ -2351,28 +2354,49 @@ function print() { __p += __j.call(arguments, '') }
2351
2354
  transform: translateY(0);
2352
2355
  }
2353
2356
  }
2357
+
2358
+ .small .modal {
2359
+ min-width: 20rem;
2360
+ max-width: 30rem;
2361
+ }
2362
+
2354
2363
  .medium .modal {
2355
- min-width: 30rem;
2364
+ width: 30rem;
2356
2365
  }
2366
+
2357
2367
  .large .modal {
2358
- min-width: 40rem;
2368
+ width: 40rem;
2359
2369
  }
2370
+
2360
2371
  .x-large .modal {
2361
- min-width: 50rem;
2372
+ width: 50rem;
2362
2373
  }
2374
+
2363
2375
  .large,
2364
2376
  .x-large {
2365
2377
  padding-top: 10vh;
2366
2378
  }
2379
+
2367
2380
  .large .modal,
2368
2381
  .x-large .modal {
2369
2382
  max-height: 80vh;
2370
2383
  }
2384
+
2385
+ .full-page .modal {
2386
+ flex: 1;
2387
+ max-height: 100%;
2388
+ width: 100%;
2389
+ }
2390
+
2391
+ .full-page.overlay {
2392
+ padding: 30px;
2393
+ }
2394
+
2371
2395
  ::slotted(brz-modal-body:first-child),
2372
2396
  ::slotted(sp-modal-body:first-child) {
2373
2397
  padding-top: var(--brz-spacing-10);
2374
2398
  }
2375
- `;el([R({type:String})],exports.Modal.prototype,"size",2);el([R({type:Boolean})],exports.Modal.prototype,"open",2);el([R({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);el([Re()],exports.Modal.prototype,"focusTrap",2);el([Hi("#overlay")],exports.Modal.prototype,"overlay",2);el([Hi(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=el([ee(D6)],exports.Modal);var Qy=Object.defineProperty,eC=Object.getOwnPropertyDescriptor,yo=(o,t,n,l)=>{for(var c=l>1?void 0:l?eC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Qy(t,n,c),c};const N6=ze("split-row"),R6=ze("action-bar");exports.SplitRow=class extends We{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return G`
2399
+ `;el([N({type:String})],exports.Modal.prototype,"size",2);el([N({type:Boolean})],exports.Modal.prototype,"open",2);el([N({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);el([Re()],exports.Modal.prototype,"focusTrap",2);el([Hi("#overlay")],exports.Modal.prototype,"overlay",2);el([Hi(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=el([ee(D6)],exports.Modal);var eC=Object.defineProperty,tC=Object.getOwnPropertyDescriptor,yo=(o,t,n,l)=>{for(var c=l>1?void 0:l?tC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&eC(t,n,c),c};const N6=ze("split-row"),R6=ze("action-bar");exports.SplitRow=class extends We{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return G`
2376
2400
  <brz-row vertical-align=${this.verticalAlign}>
2377
2401
  <div class="left">
2378
2402
  <slot name="left"></slot>
@@ -2411,7 +2435,7 @@ function print() { __p += __j.call(arguments, '') }
2411
2435
  :host([right-expand]) .right {
2412
2436
  flex: 1;
2413
2437
  }
2414
- `;yo([R({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);yo([R({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);yo([R({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);yo([R({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);yo([R({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=yo([ee(N6)],exports.SplitRow);exports.ActionBar=class extends We{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return G`
2438
+ `;yo([N({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);yo([N({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);yo([N({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);yo([N({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);yo([N({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=yo([ee(N6)],exports.SplitRow);exports.ActionBar=class extends We{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return G`
2415
2439
  <brz-split-row
2416
2440
  vertical-align="middle"
2417
2441
  ?left-expand=${this.leftExpand}
@@ -2430,7 +2454,7 @@ function print() { __p += __j.call(arguments, '') }
2430
2454
  :host([no-border]) brz-split-row {
2431
2455
  box-shadow: none;
2432
2456
  }
2433
- `;yo([R({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);yo([R({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);yo([R({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=yo([ee(R6)],exports.ActionBar);var tC=Object.defineProperty,rC=Object.getOwnPropertyDescriptor,vd=(o,t,n,l)=>{for(var c=l>1?void 0:l?rC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&tC(t,n,c),c};const H6=ze("modal-header"),F6=ze("modal-body"),B6=ze("modal-footer");exports.ModalHeader=class extends We{get _noClose(){var t;return(t=lh(this.parentElement,exports.Modal))==null?void 0:t.noClose}_handleClickClose(){this.dispatchEvent(new Kh)}render(){return G`
2457
+ `;yo([N({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);yo([N({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);yo([N({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=yo([ee(R6)],exports.ActionBar);var rC=Object.defineProperty,nC=Object.getOwnPropertyDescriptor,vd=(o,t,n,l)=>{for(var c=l>1?void 0:l?nC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&rC(t,n,c),c};const H6=ze("modal-header"),F6=ze("modal-body"),B6=ze("modal-footer");exports.ModalHeader=class extends We{get _noClose(){var t;return(t=lh(this.parentElement,exports.Modal))==null?void 0:t.noClose}_handleClickClose(){this.dispatchEvent(new Kh)}render(){return G`
2434
2458
  <brz-heading size="xl"><slot></slot></brz-heading>
2435
2459
  ${this._noClose?void 0:G`
2436
2460
  <brz-button
@@ -2469,7 +2493,7 @@ function print() { __p += __j.call(arguments, '') }
2469
2493
  :host([scrollable]) {
2470
2494
  border-bottom: 1px solid var(--brz-color-neutral-300);
2471
2495
  }
2472
- `;vd([R({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=vd([ee(F6)],exports.ModalBody);exports.ModalFooter=class extends We{render(){return G`
2496
+ `;vd([N({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=vd([ee(F6)],exports.ModalBody);exports.ModalFooter=class extends We{render(){return G`
2473
2497
  <brz-split-row vertical-align="middle">
2474
2498
  <slot slot="left" name="left"></slot>
2475
2499
  <slot slot="right" name="right"></slot>
@@ -2479,7 +2503,7 @@ function print() { __p += __j.call(arguments, '') }
2479
2503
  display: block;
2480
2504
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
2481
2505
  }
2482
- `;exports.ModalFooter=vd([ee(B6)],exports.ModalFooter);var nC=Object.defineProperty,iC=Object.getOwnPropertyDescriptor,V6=(o,t,n,l)=>{for(var c=l>1?void 0:l?iC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&nC(t,n,c),c};const W6=ze("confirmation-dialog");class Z6 extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class U6 extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends We{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new Z6)}handleConfirm(){this.dispatchEvent(new U6)}render(){return G`<brz-modal size="small" ?open=${this.open} noClose>
2506
+ `;exports.ModalFooter=vd([ee(B6)],exports.ModalFooter);var iC=Object.defineProperty,oC=Object.getOwnPropertyDescriptor,V6=(o,t,n,l)=>{for(var c=l>1?void 0:l?oC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&iC(t,n,c),c};const W6=ze("confirmation-dialog");class Z6 extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class U6 extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends We{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new Z6)}handleConfirm(){this.dispatchEvent(new U6)}render(){return G`<brz-modal size="small" ?open=${this.open} noClose>
2483
2507
  <brz-modal-body>
2484
2508
  <slot name="body"></slot>
2485
2509
  </brz-modal-body>
@@ -2493,12 +2517,12 @@ function print() { __p += __j.call(arguments, '') }
2493
2517
  </brz-button>
2494
2518
  </brz-button-group>
2495
2519
  </brz-modal-footer>
2496
- </brz-modal>`}};V6([R({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=V6([ee(W6)],exports.ConfirmationDialog);var oC=Object.defineProperty,aC=Object.getOwnPropertyDescriptor,G6=(o,t,n,l)=>{for(var c=l>1?void 0:l?aC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&oC(t,n,c),c};const q6=ze("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown"}updated(t){if(super.updated(t),t.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;t.has("trailingIcon")&&t.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return G`
2520
+ </brz-modal>`}};V6([N({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=V6([ee(W6)],exports.ConfirmationDialog);var aC=Object.defineProperty,sC=Object.getOwnPropertyDescriptor,G6=(o,t,n,l)=>{for(var c=l>1?void 0:l?sC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&aC(t,n,c),c};const q6=ze("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown"}updated(t){if(super.updated(t),t.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;t.has("trailingIcon")&&t.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return G`
2497
2521
  <brz-dropdown-menu .size=${this.menuSize}>
2498
2522
  ${super.render()}
2499
2523
  <slot name="options" slot="options"></slot>
2500
2524
  </brz-dropdown-menu>
2501
- `}};G6([R({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);exports.DropdownButton=G6([ee(q6)],exports.DropdownButton);var sC=Object.defineProperty,lC=Object.getOwnPropertyDescriptor,Ka=(o,t,n,l)=>{for(var c=l>1?void 0:l?lC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&sC(t,n,c),c};const j6=ze("input-checkbox"),Ei={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends $n{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.indeterminate=!1,this.checkboxState=Ei.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(t){t.preventDefault(),t.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case Ei.Checked:this.checked=!1;break;case Ei.Empty:this.checked=!0;break;case Ei.Indeterminate:this.checked=!0,this.indeterminate=!1,this.inputElement&&(this.inputElement.indeterminate=!1);break}this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked,indeterminate:this.indeterminate}}))}}getIcon(){switch(this.checkboxState){case Ei.Checked:return G`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Ei.Indeterminate:return G`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Ei.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){this.checkboxState=this.checked?Ei.Checked:this.indeterminate?Ei.Indeterminate:Ei.Empty;const t=G`
2525
+ `}};G6([N({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);exports.DropdownButton=G6([ee(q6)],exports.DropdownButton);var lC=Object.defineProperty,uC=Object.getOwnPropertyDescriptor,Ka=(o,t,n,l)=>{for(var c=l>1?void 0:l?uC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&lC(t,n,c),c};const j6=ze("input-checkbox"),Ei={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends $n{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.indeterminate=!1,this.checkboxState=Ei.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(t){t.preventDefault(),t.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case Ei.Checked:this.checked=!1;break;case Ei.Empty:this.checked=!0;break;case Ei.Indeterminate:this.checked=!0,this.indeterminate=!1,this.inputElement&&(this.inputElement.indeterminate=!1);break}this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked,indeterminate:this.indeterminate}}))}}getIcon(){switch(this.checkboxState){case Ei.Checked:return G`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Ei.Indeterminate:return G`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Ei.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){this.checkboxState=this.checked?Ei.Checked:this.indeterminate?Ei.Indeterminate:Ei.Empty;const t=G`
2502
2526
  <div class="checkbox-left">
2503
2527
  <div
2504
2528
  class="checkbox"
@@ -2603,7 +2627,7 @@ function print() { __p += __j.call(arguments, '') }
2603
2627
  position: absolute;
2604
2628
  left: 0;
2605
2629
  }
2606
- `];Ka([R({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Ka([R({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Ka([R({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Ka([R()],exports.InputCheckbox.prototype,"value",2);Ka([R({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Ka([Re()],exports.InputCheckbox.prototype,"checkboxState",2);Ka([Re()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Ka([ee(j6)],exports.InputCheckbox);var uC=Object.defineProperty,cC=Object.getOwnPropertyDescriptor,bd=(o,t,n,l)=>{for(var c=l>1?void 0:l?cC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&uC(t,n,c),c};const K6=ze("input-text");exports.InputText=class extends yn{constructor(){super(...arguments),this.size="medium"}renderInput(){return G`
2630
+ `];Ka([N({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Ka([N({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Ka([N({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Ka([N()],exports.InputCheckbox.prototype,"value",2);Ka([N({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Ka([Re()],exports.InputCheckbox.prototype,"checkboxState",2);Ka([Re()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Ka([ee(j6)],exports.InputCheckbox);var cC=Object.defineProperty,dC=Object.getOwnPropertyDescriptor,bd=(o,t,n,l)=>{for(var c=l>1?void 0:l?dC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&cC(t,n,c),c};const K6=ze("input-text");exports.InputText=class extends yn{constructor(){super(...arguments),this.size="medium"}renderInput(){return G`
2607
2631
  <input
2608
2632
  @input=${this.onInput}
2609
2633
  .value=${Ct(this.value)}
@@ -2619,7 +2643,7 @@ function print() { __p += __j.call(arguments, '') }
2619
2643
  input {
2620
2644
  height: 36px;
2621
2645
  }
2622
- `];bd([R({type:String})],exports.InputText.prototype,"value",2);bd([R({type:String,reflect:!0})],exports.InputText.prototype,"size",2);bd([R({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=bd([ee(K6)],exports.InputText);var dC=Object.defineProperty,fC=Object.getOwnPropertyDescriptor,md=(o,t,n,l)=>{for(var c=l>1?void 0:l?fC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&dC(t,n,c),c};const Y6=ze("input-textarea");exports.InputTextarea=class extends yn{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var l;if(!this.maxlength)return null;const t=((l=this.value)==null?void 0:l.length)||0,n=G`${t} of ${this.maxlength}`;return t>=this.maxlength?G`<brz-input-error>${n}</brz-input-error>`:G`<brz-input-guide>${n}</brz-input-guide>`}renderInput(){var t;return G`
2646
+ `];bd([N({type:String})],exports.InputText.prototype,"value",2);bd([N({type:String,reflect:!0})],exports.InputText.prototype,"size",2);bd([N({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=bd([ee(K6)],exports.InputText);var fC=Object.defineProperty,hC=Object.getOwnPropertyDescriptor,md=(o,t,n,l)=>{for(var c=l>1?void 0:l?hC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&fC(t,n,c),c};const Y6=ze("input-textarea");exports.InputTextarea=class extends yn{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var l;if(!this.maxlength)return null;const t=((l=this.value)==null?void 0:l.length)||0,n=G`${t} of ${this.maxlength}`;return t>=this.maxlength?G`<brz-input-error>${n}</brz-input-error>`:G`<brz-input-guide>${n}</brz-input-guide>`}renderInput(){var t;return G`
2623
2647
  <textarea
2624
2648
  @input=${this.onInput}
2625
2649
  .value=${(t=this.value)!=null?t:""}
@@ -2635,7 +2659,7 @@ function print() { __p += __j.call(arguments, '') }
2635
2659
  height: 100px;
2636
2660
  resize: none;
2637
2661
  }
2638
- `];md([R({type:String})],exports.InputTextarea.prototype,"value",2);md([R({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);md([R({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=md([ee(Y6)],exports.InputTextarea);var hC=Object.defineProperty,pC=Object.getOwnPropertyDescriptor,ra=(o,t,n,l)=>{for(var c=l>1?void 0:l?pC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&hC(t,n,c),c};const X6=ze("input-number"),gC=le`
2662
+ `];md([N({type:String})],exports.InputTextarea.prototype,"value",2);md([N({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);md([N({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=md([ee(Y6)],exports.InputTextarea);var pC=Object.defineProperty,gC=Object.getOwnPropertyDescriptor,ra=(o,t,n,l)=>{for(var c=l>1?void 0:l?gC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&pC(t,n,c),c};const X6=ze("input-number"),vC=le`
2639
2663
  /* Chrome, Safari, Edge, Opera */
2640
2664
  input::-webkit-outer-spin-button,
2641
2665
  input::-webkit-inner-spin-button {
@@ -2647,7 +2671,7 @@ function print() { __p += __j.call(arguments, '') }
2647
2671
  input[type='number'] {
2648
2672
  -moz-appearance: textfield;
2649
2673
  }
2650
- `,J6=["e","+"],gh=(o,t,n=!1)=>{const l=n?"-?":"",c=t?"([0-9]{0,"+t+"})":"([0-9]+)?",g=o===0?"":"(.([0-9]{0,"+o+"}))?";return new RegExp("^"+l+c+g+"$")},Q6=o=>J6.includes(o.toLowerCase()),vC=o=>!!J6.find(t=>o.toLowerCase().includes(t)),bC=o=>{var n,l;Q6(o.key)&&o.preventDefault();const t=o.target;((n=t==null?void 0:t.value)==null?void 0:n.length)===0&&o.key==="-"&&(t.value=""),((l=t==null?void 0:t.value)==null?void 0:l.length)>0&&o.key==="-"&&o.preventDefault()},mC=(o,t)=>{var h;const n=gh(t,void 0,!0),{clipboardData:l}=o,c=(h=l==null?void 0:l.getData("text"))==null?void 0:h.toLowerCase();if(!c)return;const g=o.target;(!(g!=null&&g.value)||!n.test(g.value+c)&&n.test(c))&&(g.value=""),(Q6(c)||vC(c)||!n.test(c))&&(o.stopPropagation(),o.preventDefault())};exports.InputNumber=class extends yn{constructor(){super(...arguments),this.hasNoStepper=!1,this.decimalPlaces=0,this.step=1}handleIncrease(){var t;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((t=parseFloat(this.inputElement.value))!=null?t:0)}handleDecrease(){var t;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((t=parseFloat(this.inputElement.value))!=null?t:0)}handleSteppedChange(t){this.value=t,this.dispatchChange()}onInput(t){var l;const n=typeof t.target.value=="string"?parseFloat(t.target.value):t.target.value;if(t.target.value===""||t.target.value==="-"){super.onInput({target:{value:n}});return}if(this.allowValueUpdate(n)){const c=this.decimalPlaces?parseFloat(Number(n).toFixed(this.decimalPlaces)):n;super.onInput({target:{value:c}})}else t.target.value=(l=this.value)!=null?l:"0"}allowValueUpdate(t){const n=this.max?parseInt(this.max.toString()).toString().length:void 0,l=this.min?parseInt(this.min.toString()).toString().length:void 0,c=t<0,g=c?!0:gh(this.decimalPlaces,n).test(t.toString()),h=c?gh(this.decimalPlaces,l,!0).test(t.toString()):!0,w=this.min?t>=this.min:!0,z=this.max?t<=this.max:!0;return!!(g&&h&&w&&z)}handleKeyDown(t){bC(t)}handlePaste(t){mC(t,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:G`
2674
+ `,J6=["e","+"],gh=(o,t,n=!1)=>{const l=n?"-?":"",c=t?"([0-9]{0,"+t+"})":"([0-9]+)?",g=o===0?"":"(.([0-9]{0,"+o+"}))?";return new RegExp("^"+l+c+g+"$")},Q6=o=>J6.includes(o.toLowerCase()),bC=o=>!!J6.find(t=>o.toLowerCase().includes(t)),mC=o=>{var n,l;Q6(o.key)&&o.preventDefault();const t=o.target;((n=t==null?void 0:t.value)==null?void 0:n.length)===0&&o.key==="-"&&(t.value=""),((l=t==null?void 0:t.value)==null?void 0:l.length)>0&&o.key==="-"&&o.preventDefault()},yC=(o,t)=>{var h;const n=gh(t,void 0,!0),{clipboardData:l}=o,c=(h=l==null?void 0:l.getData("text"))==null?void 0:h.toLowerCase();if(!c)return;const g=o.target;(!(g!=null&&g.value)||!n.test(g.value+c)&&n.test(c))&&(g.value=""),(Q6(c)||bC(c)||!n.test(c))&&(o.stopPropagation(),o.preventDefault())};exports.InputNumber=class extends yn{constructor(){super(...arguments),this.hasNoStepper=!1,this.decimalPlaces=0,this.step=1}handleIncrease(){var t;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((t=parseFloat(this.inputElement.value))!=null?t:0)}handleDecrease(){var t;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((t=parseFloat(this.inputElement.value))!=null?t:0)}handleSteppedChange(t){this.value=t,this.dispatchChange()}onInput(t){var l;const n=typeof t.target.value=="string"?parseFloat(t.target.value):t.target.value;if(t.target.value===""||t.target.value==="-"){super.onInput({target:{value:n}});return}if(this.allowValueUpdate(n)){const c=this.decimalPlaces?parseFloat(Number(n).toFixed(this.decimalPlaces)):n;super.onInput({target:{value:c}})}else t.target.value=(l=this.value)!=null?l:"0"}allowValueUpdate(t){const n=this.max?parseInt(this.max.toString()).toString().length:void 0,l=this.min?parseInt(this.min.toString()).toString().length:void 0,c=t<0,g=c?!0:gh(this.decimalPlaces,n).test(t.toString()),h=c?gh(this.decimalPlaces,l,!0).test(t.toString()):!0,w=this.min?t>=this.min:!0,z=this.max?t<=this.max:!0;return!!(g&&h&&w&&z)}handleKeyDown(t){mC(t)}handlePaste(t){yC(t,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:G`
2651
2675
  <div class="stepper-container">
2652
2676
  <button
2653
2677
  @click=${this.handleDecrease}
@@ -2692,7 +2716,7 @@ function print() { __p += __j.call(arguments, '') }
2692
2716
  max=${Ct(this.max)}
2693
2717
  decimal-places=${Ct(this.decimalPlaces)}
2694
2718
  />
2695
- </div>`}};exports.InputNumber.styles=[...yn.styles,gC,le`
2719
+ </div>`}};exports.InputNumber.styles=[...yn.styles,vC,le`
2696
2720
  input {
2697
2721
  white-space: nowrap;
2698
2722
  overflow: hidden;
@@ -2762,11 +2786,11 @@ function print() { __p += __j.call(arguments, '') }
2762
2786
  background-color: var(--input-readonly-background-color);
2763
2787
  border-color: var(--input-readonly-border-color);
2764
2788
  }
2765
- `];ra([R({type:Number})],exports.InputNumber.prototype,"value",2);ra([R({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);ra([R({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);ra([R({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);ra([R({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);ra([R({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);ra([R({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);ra([Hi('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=ra([ee(X6)],exports.InputNumber);/**
2789
+ `];ra([N({type:Number})],exports.InputNumber.prototype,"value",2);ra([N({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);ra([N({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);ra([N({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);ra([N({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);ra([N({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);ra([N({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);ra([Hi('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=ra([ee(X6)],exports.InputNumber);/**
2766
2790
  * @license
2767
2791
  * Copyright 2017 Google LLC
2768
2792
  * SPDX-License-Identifier: BSD-3-Clause
2769
- */class vh extends dd{constructor(t){if(super(t),this.et=pr,t.type!==ud.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===pr||t==null)return this.ft=void 0,this.et=t;if(t===Yo)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const n=[t];return n.raw=n,this.ft={_$litType$:this.constructor.resultType,strings:n,values:[]}}}vh.directiveName="unsafeHTML",vh.resultType=1;const yC=cd(vh);var CC=Object.defineProperty,wC=Object.getOwnPropertyDescriptor,tl=(o,t,n,l)=>{for(var c=l>1?void 0:l?wC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&CC(t,n,c),c};const e4=ze("input-radio-group"),t4=ze("input-radio-option"),xC=["horizontal","vertical"];exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("#options");return Array.from(t.assignedElements()).filter(l=>l instanceof exports.InputRadioOption)}radioChange(t){const n=t.target;this.value=n.value,this.dispatchChange()}renderInput(){return G`
2793
+ */class vh extends dd{constructor(t){if(super(t),this.et=pr,t.type!==ud.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===pr||t==null)return this.ft=void 0,this.et=t;if(t===Yo)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const n=[t];return n.raw=n,this.ft={_$litType$:this.constructor.resultType,strings:n,values:[]}}}vh.directiveName="unsafeHTML",vh.resultType=1;const CC=cd(vh);var wC=Object.defineProperty,xC=Object.getOwnPropertyDescriptor,tl=(o,t,n,l)=>{for(var c=l>1?void 0:l?xC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&wC(t,n,c),c};const e4=ze("input-radio-group"),t4=ze("input-radio-option"),zC=["horizontal","vertical"];exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("#options");return Array.from(t.assignedElements()).filter(l=>l instanceof exports.InputRadioOption)}radioChange(t){const n=t.target;this.value=n.value,this.dispatchChange()}renderInput(){return G`
2770
2794
  <slot
2771
2795
  id="options"
2772
2796
  style="display: none;"
@@ -2785,7 +2809,7 @@ function print() { __p += __j.call(arguments, '') }
2785
2809
  ?checked=${n}
2786
2810
  ?disabled=${t.disabled||this.disabled}
2787
2811
  />
2788
- <label for=${t.value}>${yC(t.innerHTML)}</label>
2812
+ <label for=${t.value}>${CC(t.innerHTML)}</label>
2789
2813
  </div>
2790
2814
  `})}
2791
2815
  </fieldset>
@@ -2941,21 +2965,21 @@ function print() { __p += __j.call(arguments, '') }
2941
2965
  input[type='radio'][aria-invalid='true'] + label {
2942
2966
  color: var(--brz-input-radio-invalid-color);
2943
2967
  }
2944
- `];tl([R({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);tl([R({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);tl([Re()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=tl([ee(e4)],exports.InputRadio);exports.InputRadioOption=class extends We{render(){}};tl([R({type:String})],exports.InputRadioOption.prototype,"value",2);tl([R({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=tl([ee(t4)],exports.InputRadioOption);var r4={exports:{}};(function(o,t){(function(n,l){o.exports=l()})(o1,function(){var n=navigator.userAgent,l=navigator.platform,c=/gecko\/\d/i.test(n),g=/MSIE \d/.test(n),h=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),w=/Edge\/(\d+)/.exec(n),z=g||h||w,S=z&&(g?document.documentMode||6:+(w||h)[1]),E=!w&&/WebKit\//.test(n),D=E&&/Qt\/\d+\.\d+/.test(n),B=!w&&/Chrome\//.test(n),H=/Opera\//.test(n),J=/Apple Computer/.test(navigator.vendor),pe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),ge=/PhantomJS/.test(n),Te=J&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),Ie=/Android/.test(n),be=Te||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),ve=Te||/Mac/.test(l),ke=/\bCrOS\b/.test(n),$e=/win/i.test(l),De=H&&n.match(/Version\/(\d*\.\d*)/);De&&(De=Number(De[1])),De&&De>=15&&(H=!1,E=!0);var je=ve&&(D||H&&(De==null||De<12.11)),Ye=c||z&&S>=9;function Ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ue=function(e,r){var s=e.className,a=Ce(r).exec(s);if(a){var d=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(d?a[1]+d:"")}};function Q(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function $(e,r){return Q(e).appendChild(r)}function k(e,r,s,a){var d=document.createElement(e);if(s&&(d.className=s),a&&(d.style.cssText=a),typeof r=="string")d.appendChild(document.createTextNode(r));else if(r)for(var p=0;p<r.length;++p)d.appendChild(r[p]);return d}function O(e,r,s,a){var d=k(e,r,s,a);return d.setAttribute("role","presentation"),d}var X;document.createRange?X=function(e,r,s,a){var d=document.createRange();return d.setEnd(a||e,s),d.setStart(e,r),d}:X=function(e,r,s){var a=document.body.createTextRange();try{a.moveToElementText(e.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function ce(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function Ae(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function et(e,r){var s=e.className;Ce(r).test(s)||(e.className+=(s?" ":"")+r)}function pt(e,r){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!Ce(s[a]).test(r)&&(r+=" "+s[a]);return r}var yt=function(e){e.select()};Te?yt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:z&&(yt=function(e){try{e.select()}catch{}});function or(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function Tt(e,r,s){r||(r={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=e[a]);return r}function zt(e,r,s,a,d){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var p=a||0,v=d||0;;){var m=e.indexOf(" ",p);if(m<0||m>=r)return v+(r-p);v+=m-p,v+=s-v%s,p=m+1}}var rt=function(){this.id=null,this.f=null,this.time=0,this.handler=or(this.onTimeout,this)};rt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},rt.prototype.set=function(e,r){this.f=r;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function Le(e,r){for(var s=0;s<e.length;++s)if(e[s]==r)return s;return-1}var Ne=50,Ge={toString:function(){return"CodeMirror.Pass"}},st={scroll:!1},lt={origin:"*mouse"},Ue={origin:"+move"};function Zt(e,r,s){for(var a=0,d=0;;){var p=e.indexOf(" ",a);p==-1&&(p=e.length);var v=p-a;if(p==e.length||d+v>=r)return a+Math.min(v,r-d);if(d+=p-a,d+=s-d%s,a=p+1,d>=r)return a}}var Ur=[""];function tr(e){for(;Ur.length<=e;)Ur.push(Qe(Ur)+" ");return Ur[e]}function Qe(e){return e[e.length-1]}function bt(e,r){for(var s=[],a=0;a<e.length;a++)s[a]=r(e[a],a);return s}function Et(e,r,s){for(var a=0,d=s(r);a<e.length&&s(e[a])<=d;)a++;e.splice(a,0,r)}function Pr(){}function en(e,r){var s;return Object.create?s=Object.create(e):(Pr.prototype=e,s=new Pr),r&&Tt(r,s),s}var ar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function it(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ar.test(e))}function U(e,r){return r?r.source.indexOf("\\w")>-1&&it(e)?!0:r.test(e):it(e)}function se(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var Y=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function tt(e){return e.charCodeAt(0)>=768&&Y.test(e)}function sr(e,r,s){for(;(s<0?r>0:r<e.length)&&tt(e.charAt(r));)r+=s;return r}function Lr(e,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var d=(r+s)/2,p=a<0?Math.ceil(d):Math.floor(d);if(p==r)return e(p)?r:s;e(p)?s=p:r=p+a}}function Pn(e,r,s,a){if(!e)return a(r,s,"ltr",0);for(var d=!1,p=0;p<e.length;++p){var v=e[p];(v.from<s&&v.to>r||r==s&&v.to==r)&&(a(Math.max(v.from,r),Math.min(v.to,s),v.level==1?"rtl":"ltr",p),d=!0)}d||a(r,s,"ltr")}var Gr=null;function Wt(e,r,s){var a;Gr=null;for(var d=0;d<e.length;++d){var p=e[d];if(p.from<r&&p.to>r)return d;p.to==r&&(p.from!=p.to&&s=="before"?a=d:Gr=d),p.from==r&&(p.from!=p.to&&s!="before"?a=d:Gr=d)}return a!=null?a:Gr}var mi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?r.charAt(C-1536):1774<=C&&C<=2220?"r":8192<=C&&C<=8203?"w":C==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,p=/[LRr]/,v=/[Lb1n]/,m=/[1n]/;function y(C,T,I){this.level=C,this.from=T,this.to=I}return function(C,T){var I=T=="ltr"?"L":"R";if(C.length==0||T=="ltr"&&!a.test(C))return!1;for(var V=C.length,F=[],K=0;K<V;++K)F.push(s(C.charCodeAt(K)));for(var ne=0,he=I;ne<V;++ne){var me=F[ne];me=="m"?F[ne]=he:he=me}for(var xe=0,ye=I;xe<V;++xe){var Se=F[xe];Se=="1"&&ye=="r"?F[xe]="n":p.test(Se)&&(ye=Se,Se=="r"&&(F[xe]="R"))}for(var Fe=1,Pe=F[0];Fe<V-1;++Fe){var ut=F[Fe];ut=="+"&&Pe=="1"&&F[Fe+1]=="1"?F[Fe]="1":ut==","&&Pe==F[Fe+1]&&(Pe=="1"||Pe=="n")&&(F[Fe]=Pe),Pe=ut}for(var It=0;It<V;++It){var rr=F[It];if(rr==",")F[It]="N";else if(rr=="%"){var Nt=void 0;for(Nt=It+1;Nt<V&&F[Nt]=="%";++Nt);for(var Fr=It&&F[It-1]=="!"||Nt<V&&F[Nt]=="1"?"1":"N",Br=It;Br<Nt;++Br)F[Br]=Fr;It=Nt-1}}for(var Xt=0,Cr=I;Xt<V;++Xt){var cr=F[Xt];Cr=="L"&&cr=="1"?F[Xt]="L":p.test(cr)&&(Cr=cr)}for(var $t=0;$t<V;++$t)if(d.test(F[$t])){var Ft=void 0;for(Ft=$t+1;Ft<V&&d.test(F[Ft]);++Ft);for(var jt=($t?F[$t-1]:I)=="L",Vr=(Ft<V?F[Ft]:I)=="L",Da=jt==Vr?jt?"L":"R":I,go=$t;go<Ft;++go)F[go]=Da;$t=Ft-1}for(var Ar=[],si,dr=0;dr<V;)if(v.test(F[dr])){var gu=dr;for(++dr;dr<V&&v.test(F[dr]);++dr);Ar.push(new y(0,gu,dr))}else{var Ti=dr,Wo=Ar.length,Zo=T=="rtl"?1:0;for(++dr;dr<V&&F[dr]!="L";++dr);for(var Wr=Ti;Wr<dr;)if(m.test(F[Wr])){Ti<Wr&&(Ar.splice(Wo,0,new y(1,Ti,Wr)),Wo+=Zo);var Na=Wr;for(++Wr;Wr<dr&&m.test(F[Wr]);++Wr);Ar.splice(Wo,0,new y(2,Na,Wr)),Wo+=Zo,Ti=Wr}else++Wr;Ti<dr&&Ar.splice(Wo,0,new y(1,Ti,dr))}return T=="ltr"&&(Ar[0].level==1&&(si=C.match(/^\s+/))&&(Ar[0].from=si[0].length,Ar.unshift(new y(0,0,si[0].length))),Qe(Ar).level==1&&(si=C.match(/\s+$/))&&(Qe(Ar).to-=si[0].length,Ar.push(new y(0,V-si[0].length,V)))),T=="rtl"?Ar.reverse():Ar}}();function Dr(e,r){var s=e.order;return s==null&&(s=e.order=mi(e.text,r)),s}var Dn=[],Ve=function(e,r,s){if(e.addEventListener)e.addEventListener(r,s,!1);else if(e.attachEvent)e.attachEvent("on"+r,s);else{var a=e._handlers||(e._handlers={});a[r]=(a[r]||Dn).concat(s)}};function Vi(e,r){return e._handlers&&e._handlers[r]||Dn}function Sr(e,r,s){if(e.removeEventListener)e.removeEventListener(r,s,!1);else if(e.detachEvent)e.detachEvent("on"+r,s);else{var a=e._handlers,d=a&&a[r];if(d){var p=Le(d,s);p>-1&&(a[r]=d.slice(0,p).concat(d.slice(p+1)))}}}function qe(e,r){var s=Vi(e,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<s.length;++d)s[d].apply(null,a)}function Jt(e,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),qe(e,s||r.type,e,r),ln(r)||r.codemirrorIgnore}function oa(e){var r=e._handlers&&e._handlers.cursorActivity;if(r)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)Le(s,r[a])==-1&&s.push(r[a])}function gr(e,r){return Vi(e,r).length>0}function Nn(e){e.prototype.on=function(r,s){Ve(this,r,s)},e.prototype.off=function(r,s){Sr(this,r,s)}}function vr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function aa(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ln(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function wo(e){vr(e),aa(e)}function Wi(e){return e.target||e.srcElement}function Xa(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),ve&&e.ctrlKey&&r==1&&(r=3),r}var Ja=function(){if(z&&S<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),qr;function nl(e){if(qr==null){var r=k("span","​");$(e,k("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(qr=r.offsetWidth<=1&&r.offsetHeight>2&&!(z&&S<8))}var s=qr?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var xo;function Xn(e){if(xo!=null)return xo;var r=$(e,document.createTextNode("AخA")),s=X(r,0,1).getBoundingClientRect(),a=X(r,1,2).getBoundingClientRect();return Q(e),!s||s.left==s.right?!1:xo=a.right-s.right<3}var zo=`
2968
+ `];tl([N({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);tl([N({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);tl([Re()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=tl([ee(e4)],exports.InputRadio);exports.InputRadioOption=class extends We{render(){}};tl([N({type:String})],exports.InputRadioOption.prototype,"value",2);tl([N({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=tl([ee(t4)],exports.InputRadioOption);var r4={exports:{}};(function(o,t){(function(n,l){o.exports=l()})(o1,function(){var n=navigator.userAgent,l=navigator.platform,c=/gecko\/\d/i.test(n),g=/MSIE \d/.test(n),h=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),w=/Edge\/(\d+)/.exec(n),z=g||h||w,S=z&&(g?document.documentMode||6:+(w||h)[1]),E=!w&&/WebKit\//.test(n),D=E&&/Qt\/\d+\.\d+/.test(n),B=!w&&/Chrome\//.test(n),H=/Opera\//.test(n),J=/Apple Computer/.test(navigator.vendor),pe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),ge=/PhantomJS/.test(n),Te=J&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),Ie=/Android/.test(n),be=Te||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),ve=Te||/Mac/.test(l),ke=/\bCrOS\b/.test(n),$e=/win/i.test(l),De=H&&n.match(/Version\/(\d*\.\d*)/);De&&(De=Number(De[1])),De&&De>=15&&(H=!1,E=!0);var je=ve&&(D||H&&(De==null||De<12.11)),Ye=c||z&&S>=9;function Ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ue=function(e,r){var s=e.className,a=Ce(r).exec(s);if(a){var d=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(d?a[1]+d:"")}};function Q(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function $(e,r){return Q(e).appendChild(r)}function k(e,r,s,a){var d=document.createElement(e);if(s&&(d.className=s),a&&(d.style.cssText=a),typeof r=="string")d.appendChild(document.createTextNode(r));else if(r)for(var p=0;p<r.length;++p)d.appendChild(r[p]);return d}function O(e,r,s,a){var d=k(e,r,s,a);return d.setAttribute("role","presentation"),d}var X;document.createRange?X=function(e,r,s,a){var d=document.createRange();return d.setEnd(a||e,s),d.setStart(e,r),d}:X=function(e,r,s){var a=document.body.createTextRange();try{a.moveToElementText(e.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function ce(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function Ae(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function et(e,r){var s=e.className;Ce(r).test(s)||(e.className+=(s?" ":"")+r)}function pt(e,r){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!Ce(s[a]).test(r)&&(r+=" "+s[a]);return r}var yt=function(e){e.select()};Te?yt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:z&&(yt=function(e){try{e.select()}catch{}});function or(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function Tt(e,r,s){r||(r={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=e[a]);return r}function zt(e,r,s,a,d){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var p=a||0,v=d||0;;){var m=e.indexOf(" ",p);if(m<0||m>=r)return v+(r-p);v+=m-p,v+=s-v%s,p=m+1}}var rt=function(){this.id=null,this.f=null,this.time=0,this.handler=or(this.onTimeout,this)};rt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},rt.prototype.set=function(e,r){this.f=r;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function Le(e,r){for(var s=0;s<e.length;++s)if(e[s]==r)return s;return-1}var Ne=50,Ge={toString:function(){return"CodeMirror.Pass"}},st={scroll:!1},lt={origin:"*mouse"},Ue={origin:"+move"};function Zt(e,r,s){for(var a=0,d=0;;){var p=e.indexOf(" ",a);p==-1&&(p=e.length);var v=p-a;if(p==e.length||d+v>=r)return a+Math.min(v,r-d);if(d+=p-a,d+=s-d%s,a=p+1,d>=r)return a}}var Gr=[""];function tr(e){for(;Gr.length<=e;)Gr.push(Qe(Gr)+" ");return Gr[e]}function Qe(e){return e[e.length-1]}function bt(e,r){for(var s=[],a=0;a<e.length;a++)s[a]=r(e[a],a);return s}function Et(e,r,s){for(var a=0,d=s(r);a<e.length&&s(e[a])<=d;)a++;e.splice(a,0,r)}function Pr(){}function en(e,r){var s;return Object.create?s=Object.create(e):(Pr.prototype=e,s=new Pr),r&&Tt(r,s),s}var ar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function it(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ar.test(e))}function U(e,r){return r?r.source.indexOf("\\w")>-1&&it(e)?!0:r.test(e):it(e)}function se(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var Y=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function tt(e){return e.charCodeAt(0)>=768&&Y.test(e)}function sr(e,r,s){for(;(s<0?r>0:r<e.length)&&tt(e.charAt(r));)r+=s;return r}function Lr(e,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var d=(r+s)/2,p=a<0?Math.ceil(d):Math.floor(d);if(p==r)return e(p)?r:s;e(p)?s=p:r=p+a}}function Pn(e,r,s,a){if(!e)return a(r,s,"ltr",0);for(var d=!1,p=0;p<e.length;++p){var v=e[p];(v.from<s&&v.to>r||r==s&&v.to==r)&&(a(Math.max(v.from,r),Math.min(v.to,s),v.level==1?"rtl":"ltr",p),d=!0)}d||a(r,s,"ltr")}var qr=null;function Wt(e,r,s){var a;qr=null;for(var d=0;d<e.length;++d){var p=e[d];if(p.from<r&&p.to>r)return d;p.to==r&&(p.from!=p.to&&s=="before"?a=d:qr=d),p.from==r&&(p.from!=p.to&&s!="before"?a=d:qr=d)}return a!=null?a:qr}var mi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?r.charAt(C-1536):1774<=C&&C<=2220?"r":8192<=C&&C<=8203?"w":C==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,p=/[LRr]/,v=/[Lb1n]/,m=/[1n]/;function y(C,T,I){this.level=C,this.from=T,this.to=I}return function(C,T){var I=T=="ltr"?"L":"R";if(C.length==0||T=="ltr"&&!a.test(C))return!1;for(var V=C.length,F=[],K=0;K<V;++K)F.push(s(C.charCodeAt(K)));for(var ne=0,he=I;ne<V;++ne){var me=F[ne];me=="m"?F[ne]=he:he=me}for(var xe=0,ye=I;xe<V;++xe){var Se=F[xe];Se=="1"&&ye=="r"?F[xe]="n":p.test(Se)&&(ye=Se,Se=="r"&&(F[xe]="R"))}for(var Fe=1,Pe=F[0];Fe<V-1;++Fe){var ut=F[Fe];ut=="+"&&Pe=="1"&&F[Fe+1]=="1"?F[Fe]="1":ut==","&&Pe==F[Fe+1]&&(Pe=="1"||Pe=="n")&&(F[Fe]=Pe),Pe=ut}for(var It=0;It<V;++It){var rr=F[It];if(rr==",")F[It]="N";else if(rr=="%"){var Nt=void 0;for(Nt=It+1;Nt<V&&F[Nt]=="%";++Nt);for(var Fr=It&&F[It-1]=="!"||Nt<V&&F[Nt]=="1"?"1":"N",Br=It;Br<Nt;++Br)F[Br]=Fr;It=Nt-1}}for(var Xt=0,Cr=I;Xt<V;++Xt){var cr=F[Xt];Cr=="L"&&cr=="1"?F[Xt]="L":p.test(cr)&&(Cr=cr)}for(var $t=0;$t<V;++$t)if(d.test(F[$t])){var Ft=void 0;for(Ft=$t+1;Ft<V&&d.test(F[Ft]);++Ft);for(var jt=($t?F[$t-1]:I)=="L",Vr=(Ft<V?F[Ft]:I)=="L",Da=jt==Vr?jt?"L":"R":I,go=$t;go<Ft;++go)F[go]=Da;$t=Ft-1}for(var Ar=[],si,dr=0;dr<V;)if(v.test(F[dr])){var gu=dr;for(++dr;dr<V&&v.test(F[dr]);++dr);Ar.push(new y(0,gu,dr))}else{var Ti=dr,Wo=Ar.length,Zo=T=="rtl"?1:0;for(++dr;dr<V&&F[dr]!="L";++dr);for(var Wr=Ti;Wr<dr;)if(m.test(F[Wr])){Ti<Wr&&(Ar.splice(Wo,0,new y(1,Ti,Wr)),Wo+=Zo);var Na=Wr;for(++Wr;Wr<dr&&m.test(F[Wr]);++Wr);Ar.splice(Wo,0,new y(2,Na,Wr)),Wo+=Zo,Ti=Wr}else++Wr;Ti<dr&&Ar.splice(Wo,0,new y(1,Ti,dr))}return T=="ltr"&&(Ar[0].level==1&&(si=C.match(/^\s+/))&&(Ar[0].from=si[0].length,Ar.unshift(new y(0,0,si[0].length))),Qe(Ar).level==1&&(si=C.match(/\s+$/))&&(Qe(Ar).to-=si[0].length,Ar.push(new y(0,V-si[0].length,V)))),T=="rtl"?Ar.reverse():Ar}}();function Dr(e,r){var s=e.order;return s==null&&(s=e.order=mi(e.text,r)),s}var Dn=[],Ve=function(e,r,s){if(e.addEventListener)e.addEventListener(r,s,!1);else if(e.attachEvent)e.attachEvent("on"+r,s);else{var a=e._handlers||(e._handlers={});a[r]=(a[r]||Dn).concat(s)}};function Vi(e,r){return e._handlers&&e._handlers[r]||Dn}function Sr(e,r,s){if(e.removeEventListener)e.removeEventListener(r,s,!1);else if(e.detachEvent)e.detachEvent("on"+r,s);else{var a=e._handlers,d=a&&a[r];if(d){var p=Le(d,s);p>-1&&(a[r]=d.slice(0,p).concat(d.slice(p+1)))}}}function qe(e,r){var s=Vi(e,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<s.length;++d)s[d].apply(null,a)}function Jt(e,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),qe(e,s||r.type,e,r),ln(r)||r.codemirrorIgnore}function oa(e){var r=e._handlers&&e._handlers.cursorActivity;if(r)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)Le(s,r[a])==-1&&s.push(r[a])}function gr(e,r){return Vi(e,r).length>0}function Nn(e){e.prototype.on=function(r,s){Ve(this,r,s)},e.prototype.off=function(r,s){Sr(this,r,s)}}function vr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function aa(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ln(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function wo(e){vr(e),aa(e)}function Wi(e){return e.target||e.srcElement}function Xa(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),ve&&e.ctrlKey&&r==1&&(r=3),r}var Ja=function(){if(z&&S<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),jr;function nl(e){if(jr==null){var r=k("span","​");$(e,k("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(jr=r.offsetWidth<=1&&r.offsetHeight>2&&!(z&&S<8))}var s=jr?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var xo;function Xn(e){if(xo!=null)return xo;var r=$(e,document.createTextNode("AخA")),s=X(r,0,1).getBoundingClientRect(),a=X(r,1,2).getBoundingClientRect();return Q(e),!s||s.left==s.right?!1:xo=a.right-s.right<3}var zo=`
2945
2969
 
2946
2970
  b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],a=e.length;r<=a;){var d=e.indexOf(`
2947
- `,r);d==-1&&(d=e.length);var p=e.slice(r,e.charAt(d-1)=="\r"?d-1:d),v=p.indexOf("\r");v!=-1?(s.push(p.slice(0,v)),r+=v+1):(s.push(p),r=d+1)}return s}:function(e){return e.split(/\r\n?|\n/)},il=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},ol=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Qa=null;function Zi(e){if(Qa!=null)return Qa;var r=$(e,k("span","x")),s=r.getBoundingClientRect(),a=X(r,0,1).getBoundingClientRect();return Qa=Math.abs(s.left-a.left)>1}var Cn={},un={};function al(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Cn[e]=r}function yi(e,r){un[e]=r}function Lo(e){if(typeof e=="string"&&un.hasOwnProperty(e))e=un[e];else if(e&&typeof e.name=="string"&&un.hasOwnProperty(e.name)){var r=un[e.name];typeof r=="string"&&(r={name:r}),e=en(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Lo("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Lo("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function sa(e,r){r=Lo(r);var s=Cn[r.name];if(!s)return sa(e,"text/plain");var a=s(e,r);if(Rn.hasOwnProperty(r.name)){var d=Rn[r.name];for(var p in d)d.hasOwnProperty(p)&&(a.hasOwnProperty(p)&&(a["_"+p]=a[p]),a[p]=d[p])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var v in r.modeProps)a[v]=r.modeProps[v];return a}var Rn={};function Hn(e,r){var s=Rn.hasOwnProperty(e)?Rn[e]:Rn[e]={};Tt(r,s)}function cn(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var a in r){var d=r[a];d instanceof Array&&(d=d.concat([])),s[a]=d}return s}function es(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function ts(e,r,s){return e.startState?e.startState(r,s):!0}var Bt=function(e,r,s){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(e){var r=this.string.charAt(this.pos),s;if(typeof e=="string"?s=r==e:s=r&&(e.test?e.test(r):e(r)),s)return++this.pos,r},Bt.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},Bt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},Bt.prototype.backUp=function(e){this.pos-=e},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=zt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?zt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return zt(this.string,null,this.tabSize)-(this.lineStart?zt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(e,r,s){if(typeof e=="string"){var a=function(v){return s?v.toLowerCase():v},d=this.string.substr(this.pos,e.length);if(a(d)==a(e))return r!==!1&&(this.pos+=e.length),!0}else{var p=this.string.slice(this.pos).match(e);return p&&p.index>0?null:(p&&r!==!1&&(this.pos+=p[0].length),p)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},Bt.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},Bt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ee(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var s=e;!s.lines;)for(var a=0;;++a){var d=s.children[a],p=d.chunkSize();if(r<p){s=d;break}r-=p}return s.lines[r]}function dn(e,r,s){var a=[],d=r.line;return e.iter(r.line,s.line+1,function(p){var v=p.text;d==s.line&&(v=v.slice(0,s.ch)),d==r.line&&(v=v.slice(r.ch)),a.push(v),++d}),a}function rs(e,r,s){var a=[];return e.iter(r,s,function(d){a.push(d.text)}),a}function tn(e,r){var s=r-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function Lt(e){if(e.parent==null)return null;for(var r=e.parent,s=Le(r.lines,e),a=r.parent;a;r=a,a=a.parent)for(var d=0;a.children[d]!=r;++d)s+=a.children[d].chunkSize();return s+r.first}function Fn(e,r){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var d=e.children[a],p=d.height;if(r<p){e=d;continue e}r-=p,s+=d.chunkSize()}return s}while(!e.lines);for(var v=0;v<e.lines.length;++v){var m=e.lines[v],y=m.height;if(r<y)break;r-=y}return s+v}function Ui(e,r){return r>=e.first&&r<e.first+e.size}function la(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function ae(e,r,s){if(s===void 0&&(s=null),!(this instanceof ae))return new ae(e,r,s);this.line=e,this.ch=r,this.sticky=s}function x(e,r){return e.line-r.line||e.ch-r.ch}function A(e,r){return e.sticky==r.sticky&&x(e,r)==0}function te(e){return ae(e.line,e.ch)}function de(e,r){return x(e,r)<0?r:e}function Ke(e,r){return x(e,r)<0?e:r}function gt(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function we(e,r){if(r.line<e.first)return ae(e.first,0);var s=e.first+e.size-1;return r.line>s?ae(s,Ee(e,s).text.length):Mr(r,Ee(e,r.line).text.length)}function Mr(e,r){var s=e.ch;return s==null||s>r?ae(e.line,r):s<0?ae(e.line,0):e}function rn(e,r){for(var s=[],a=0;a<r.length;a++)s[a]=we(e,r[a]);return s}var Ci=function(e,r){this.state=e,this.lookAhead=r},Bn=function(e,r,s,a){this.state=r,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Bn.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},Bn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Bn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Bn.fromSaved=function(e,r,s){return r instanceof Ci?new Bn(e,cn(e.mode,r.state),s,r.lookAhead):new Bn(e,cn(e.mode,r),s)},Bn.prototype.save=function(e){var r=e!==!1?cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ci(r,this.maxLookAhead):r};function nc(e,r,s,a){var d=[e.state.modeGen],p={};L1(e,r.text,e.doc.mode,s,function(C,T){return d.push(C,T)},p,a);for(var v=s.state,m=function(C){s.baseTokens=d;var T=e.state.overlays[C],I=1,V=0;s.state=!0,L1(e,r.text,T.mode,s,function(F,K){for(var ne=I;V<F;){var he=d[I];he>F&&d.splice(I,1,F,d[I+1],he),I+=2,V=Math.min(F,he)}if(K)if(T.opaque)d.splice(ne,I-ne,F,"overlay "+K),I=ne+2;else for(;ne<I;ne+=2){var me=d[ne+1];d[ne+1]=(me?me+" ":"")+"overlay "+K}},p),s.state=v,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:d,classes:p.bgClass||p.textClass?p:null}}function z1(e,r,s){if(!r.styles||r.styles[0]!=e.state.modeGen){var a=ua(e,Lt(r)),d=r.text.length>e.options.maxHighlightLength&&cn(e.doc.mode,a.state),p=nc(e,r,a);d&&(a.state=d),r.stateAfter=a.save(!d),r.styles=p.styles,p.classes?r.styleClasses=p.classes:r.styleClasses&&(r.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function ua(e,r,s){var a=e.doc,d=e.display;if(!a.mode.startState)return new Bn(a,!0,r);var p=oc(e,r,s),v=p>a.first&&Ee(a,p-1).stateAfter,m=v?Bn.fromSaved(a,v,p):new Bn(a,ts(a.mode),p);return a.iter(p,r,function(y){ns(e,y.text,m);var C=m.line;y.stateAfter=C==r-1||C%5==0||C>=d.viewFrom&&C<d.viewTo?m.save():null,m.nextLine()}),s&&(a.modeFrontier=m.line),m}function ns(e,r,s,a){var d=e.doc.mode,p=new Bt(r,e.options.tabSize,s);for(p.start=p.pos=a||0,r==""&&ic(d,s.state);!p.eol();)sl(d,p,s.state),p.start=p.pos}function ic(e,r){if(e.blankLine)return e.blankLine(r);if(e.innerMode){var s=es(e,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function sl(e,r,s,a){for(var d=0;d<10;d++){a&&(a[0]=es(e,s).mode);var p=e.token(r,s);if(r.pos>r.start)return p}throw new Error("Mode "+e.name+" failed to advance stream.")}var ll=function(e,r,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=s};function ul(e,r,s,a){var d=e.doc,p=d.mode,v;r=we(d,r);var m=Ee(d,r.line),y=ua(e,r.line,s),C=new Bt(m.text,e.options.tabSize,y),T;for(a&&(T=[]);(a||C.pos<r.ch)&&!C.eol();)C.start=C.pos,v=sl(p,C,y.state),a&&T.push(new ll(C,v,cn(d.mode,y.state)));return a?T:new ll(C,v,y.state)}function So(e,r){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return e}function L1(e,r,s,a,d,p,v){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,T=new Bt(r,e.options.tabSize,a),I,V=e.options.addModeClass&&[null];for(r==""&&So(ic(s,a.state),p);!T.eol();){if(T.pos>e.options.maxHighlightLength?(m=!1,v&&ns(e,r,a,T.pos),T.pos=r.length,I=null):I=So(sl(s,T,a.state,V),p),V){var F=V[0].name;F&&(I="m-"+(I?F+" "+I:F))}if(!m||C!=I){for(;y<T.start;)y=Math.min(T.start,y+5e3),d(y,C);C=I}T.start=T.pos}for(;y<T.pos;){var K=Math.min(T.pos,y+5e3);d(K,C),y=K}}function oc(e,r,s){for(var a,d,p=e.doc,v=s?-1:r-(e.doc.mode.innerMode?1e3:100),m=r;m>v;--m){if(m<=p.first)return p.first;var y=Ee(p,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof Ci?C.lookAhead:0)<=p.modeFrontier))return m;var T=zt(y.text,null,e.options.tabSize);(d==null||a>T)&&(d=m-1,a=T)}return d}function $d(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontier<r-10)){for(var s=e.first,a=r-1;a>s;a--){var d=Ee(e,a).stateAfter;if(d&&(!(d instanceof Ci)||a+d.lookAhead<r)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var S1=!1,Jn=!1;function ac(){S1=!0}function sc(){Jn=!0}function cl(e,r,s){this.marker=e,this.from=r,this.to=s}function is(e,r){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==r)return a}}function Pd(e,r){for(var s,a=0;a<e.length;++a)e[a]!=r&&(s||(s=[])).push(e[a]);return s}function lc(e,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(r):(e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],a&&a.add(e.markedSpans)),r.marker.attachLine(e)}function Dd(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);if(m||p.from==r&&v.type=="bookmark"&&(!s||!p.marker.insertLeft)){var y=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);(a||(a=[])).push(new cl(v,p.from,y?null:p.to))}}return a}function Nd(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);if(m||p.from==r&&v.type=="bookmark"&&(!s||p.marker.insertLeft)){var y=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);(a||(a=[])).push(new cl(v,y?null:p.from-r,p.to==null?null:p.to-r))}}return a}function M1(e,r){if(r.full)return null;var s=Ui(e,r.from.line)&&Ee(e,r.from.line).markedSpans,a=Ui(e,r.to.line)&&Ee(e,r.to.line).markedSpans;if(!s&&!a)return null;var d=r.from.ch,p=r.to.ch,v=x(r.from,r.to)==0,m=Dd(s,d,v),y=Nd(a,p,v),C=r.text.length==1,T=Qe(r.text).length+(C?d:0);if(m)for(var I=0;I<m.length;++I){var V=m[I];if(V.to==null){var F=is(y,V.marker);F?C&&(V.to=F.to==null?null:F.to+T):V.to=d}}if(y)for(var K=0;K<y.length;++K){var ne=y[K];if(ne.to!=null&&(ne.to+=T),ne.from==null){var he=is(m,ne.marker);he||(ne.from=T,C&&(m||(m=[])).push(ne))}else ne.from+=T,C&&(m||(m=[])).push(ne)}m&&(m=uc(m)),y&&y!=m&&(y=uc(y));var me=[m];if(!C){var xe=r.text.length-2,ye;if(xe>0&&m)for(var Se=0;Se<m.length;++Se)m[Se].to==null&&(ye||(ye=[])).push(new cl(m[Se].marker,null,null));for(var Fe=0;Fe<xe;++Fe)me.push(ye);me.push(y)}return me}function uc(e){for(var r=0;r<e.length;++r){var s=e[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function _1(e,r,s){var a=null;if(e.iter(r.line,s.line+1,function(F){if(F.markedSpans)for(var K=0;K<F.markedSpans.length;++K){var ne=F.markedSpans[K].marker;ne.readOnly&&(!a||Le(a,ne)==-1)&&(a||(a=[])).push(ne)}}),!a)return null;for(var d=[{from:r,to:s}],p=0;p<a.length;++p)for(var v=a[p],m=v.find(0),y=0;y<d.length;++y){var C=d[y];if(!(x(C.to,m.from)<0||x(C.from,m.to)>0)){var T=[y,1],I=x(C.from,m.from),V=x(C.to,m.to);(I<0||!v.inclusiveLeft&&!I)&&T.push({from:C.from,to:m.from}),(V>0||!v.inclusiveRight&&!V)&&T.push({from:m.to,to:C.to}),d.splice.apply(d,T),y+=T.length-3}}return d}function cc(e){var r=e.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(e);e.markedSpans=null}}function dc(e,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(e);e.markedSpans=r}}function dl(e){return e.inclusiveLeft?-1:0}function fl(e){return e.inclusiveRight?1:0}function T1(e,r){var s=e.lines.length-r.lines.length;if(s!=0)return s;var a=e.find(),d=r.find(),p=x(a.from,d.from)||dl(e)-dl(r);if(p)return-p;var v=x(a.to,d.to)||fl(e)-fl(r);return v||r.id-e.id}function Vt(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=void 0,p=0;p<s.length;++p)d=s[p],d.marker.collapsed&&(r?d.from:d.to)==null&&(!a||T1(a,d.marker)<0)&&(a=d.marker);return a}function Ht(e){return Vt(e,!0)}function hl(e){return Vt(e,!1)}function Rd(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=0;d<s.length;++d){var p=s[d];p.marker.collapsed&&(p.from==null||p.from<r)&&(p.to==null||p.to>r)&&(!a||T1(a,p.marker)<0)&&(a=p.marker)}return a}function fc(e,r,s,a,d){var p=Ee(e,r),v=Jn&&p.markedSpans;if(v)for(var m=0;m<v.length;++m){var y=v[m];if(y.marker.collapsed){var C=y.marker.find(0),T=x(C.from,s)||dl(y.marker)-dl(d),I=x(C.to,a)||fl(y.marker)-fl(d);if(!(T>=0&&I<=0||T<=0&&I>=0)&&(T<=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?x(C.to,s)>=0:x(C.to,s)>0)||T>=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?x(C.from,a)<=0:x(C.from,a)<0)))return!0}}}function Qn(e){for(var r;r=Ht(e);)e=r.find(-1,!0).line;return e}function Hd(e){for(var r;r=hl(e);)e=r.find(1,!0).line;return e}function Fd(e){for(var r,s;r=hl(e);)e=r.find(1,!0).line,(s||(s=[])).push(e);return s}function pl(e,r){var s=Ee(e,r),a=Qn(s);return s==a?r:Lt(a)}function hc(e,r){if(r>e.lastLine())return r;var s=Ee(e,r),a;if(!Ut(e,s))return r;for(;a=hl(s);)s=a.find(1,!0).line;return Lt(s)+1}function Ut(e,r){var s=Jn&&r.markedSpans;if(s){for(var a=void 0,d=0;d<s.length;++d)if(a=s[d],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&os(e,r,a))return!0}}}function os(e,r,s){if(s.to==null){var a=s.marker.find(1,!0);return os(e,a.line,is(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var d=void 0,p=0;p<r.markedSpans.length;++p)if(d=r.markedSpans[p],d.marker.collapsed&&!d.marker.widgetNode&&d.from==s.to&&(d.to==null||d.to!=s.from)&&(d.marker.inclusiveLeft||s.marker.inclusiveRight)&&os(e,r,d))return!0}function jr(e){e=Qn(e);for(var r=0,s=e.parent,a=0;a<s.lines.length;++a){var d=s.lines[a];if(d==e)break;r+=d.height}for(var p=s.parent;p;s=p,p=s.parent)for(var v=0;v<p.children.length;++v){var m=p.children[v];if(m==s)break;r+=m.height}return r}function as(e){if(e.height==0)return 0;for(var r=e.text.length,s,a=e;s=Ht(a);){var d=s.find(0,!0);a=d.from.line,r+=d.from.ch-d.to.ch}for(a=e;s=hl(a);){var p=s.find(0,!0);r-=a.text.length-p.from.ch,a=p.to.line,r+=a.text.length-p.to.ch}return r}function ss(e){var r=e.display,s=e.doc;r.maxLine=Ee(s,s.first),r.maxLineLength=as(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var d=as(a);d>r.maxLineLength&&(r.maxLineLength=d,r.maxLine=a)})}var _r=function(e,r,s){this.text=e,dc(this,r),this.height=s?s(this):1};_r.prototype.lineNo=function(){return Lt(this)},Nn(_r);function pc(e,r,s,a){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),cc(e),dc(e,s);var d=a?a(e):1;d!=e.height&&tn(e,d)}function gc(e){e.parent=null,cc(e)}var vc={},bc={};function k1(e,r){if(!e||/^\s*$/.test(e))return null;var s=r.addModeClass?bc:vc;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function O1(e,r){var s=O("span",null,null,E?"padding-right: .1px":null),a={pre:O("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var d=0;d<=(r.rest?r.rest.length:0);d++){var p=d?r.rest[d-1]:r.line,v=void 0;a.pos=0,a.addToken=Bd,Xn(e.display.measure)&&(v=Dr(p,e.doc.direction))&&(a.addToken=Vd(a.addToken,v)),a.map=[];var m=r!=e.display.externalMeasured&&Lt(p);Gi(p,a,z1(e,p,m)),p.styleClasses&&(p.styleClasses.bgClass&&(a.bgClass=pt(p.styleClasses.bgClass,a.bgClass||"")),p.styleClasses.textClass&&(a.textClass=pt(p.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(nl(e.display.measure))),d==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(E){var y=a.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return qe(e,"renderLine",e,r.line,a.pre),a.pre.className&&(a.textClass=pt(a.pre.className,a.textClass||"")),a}function fn(e){var r=k("span","•","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function Bd(e,r,s,a,d,p,v){if(r){var m=e.splitSpaces?wn(r,e.trailingSpace):r,y=e.cm.state.specialChars,C=!1,T;if(!y.test(r))e.col+=r.length,T=document.createTextNode(m),e.map.push(e.pos,e.pos+r.length,T),z&&S<9&&(C=!0),e.pos+=r.length;else{T=document.createDocumentFragment();for(var I=0;;){y.lastIndex=I;var V=y.exec(r),F=V?V.index-I:r.length-I;if(F){var K=document.createTextNode(m.slice(I,I+F));z&&S<9?T.appendChild(k("span",[K])):T.appendChild(K),e.map.push(e.pos,e.pos+F,K),e.col+=F,e.pos+=F}if(!V)break;I+=F+1;var ne=void 0;if(V[0]==" "){var he=e.cm.options.tabSize,me=he-e.col%he;ne=T.appendChild(k("span",tr(me),"cm-tab")),ne.setAttribute("role","presentation"),ne.setAttribute("cm-text"," "),e.col+=me}else V[0]=="\r"||V[0]==`
2948
- `?(ne=T.appendChild(k("span",V[0]=="\r"?"␍":"␤","cm-invalidchar")),ne.setAttribute("cm-text",V[0]),e.col+=1):(ne=e.cm.options.specialCharPlaceholder(V[0]),ne.setAttribute("cm-text",V[0]),z&&S<9?T.appendChild(k("span",[ne])):T.appendChild(ne),e.col+=1);e.map.push(e.pos,e.pos+1,ne),e.pos++}}if(e.trailingSpace=m.charCodeAt(r.length-1)==32,s||a||d||C||p||v){var xe=s||"";a&&(xe+=a),d&&(xe+=d);var ye=k("span",[T],xe,p);if(v)for(var Se in v)v.hasOwnProperty(Se)&&Se!="style"&&Se!="class"&&ye.setAttribute(Se,v[Se]);return e.content.appendChild(ye)}e.content.appendChild(T)}}function wn(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,a="",d=0;d<e.length;d++){var p=e.charAt(d);p==" "&&s&&(d==e.length-1||e.charCodeAt(d+1)==32)&&(p=" "),a+=p,s=p==" "}return a}function Vd(e,r){return function(s,a,d,p,v,m,y){d=d?d+" cm-force-border":"cm-force-border";for(var C=s.pos,T=C+a.length;;){for(var I=void 0,V=0;V<r.length&&(I=r[V],!(I.to>C&&I.from<=C));V++);if(I.to>=T)return e(s,a,d,p,v,m,y);e(s,a.slice(0,I.to-C),d,p,null,m,y),p=null,a=a.slice(I.to-C),C=I.to}}}function E1(e,r,s,a){var d=!a&&s.widgetNode;d&&e.map.push(e.pos,e.pos+r,d),!a&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",s.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=r,e.trailingSpace=!1}function Gi(e,r,s){var a=e.markedSpans,d=e.text,p=0;if(!a){for(var v=1;v<s.length;v+=2)r.addToken(r,d.slice(p,p=s[v]),k1(s[v+1],r.cm.options));return}for(var m=d.length,y=0,C=1,T="",I,V,F=0,K,ne,he,me,xe;;){if(F==y){K=ne=he=V="",xe=null,me=null,F=1/0;for(var ye=[],Se=void 0,Fe=0;Fe<a.length;++Fe){var Pe=a[Fe],ut=Pe.marker;if(ut.type=="bookmark"&&Pe.from==y&&ut.widgetNode)ye.push(ut);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||ut.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&F>Pe.to&&(F=Pe.to,ne=""),ut.className&&(K+=" "+ut.className),ut.css&&(V=(V?V+";":"")+ut.css),ut.startStyle&&Pe.from==y&&(he+=" "+ut.startStyle),ut.endStyle&&Pe.to==F&&(Se||(Se=[])).push(ut.endStyle,Pe.to),ut.title&&((xe||(xe={})).title=ut.title),ut.attributes)for(var It in ut.attributes)(xe||(xe={}))[It]=ut.attributes[It];ut.collapsed&&(!me||T1(me.marker,ut)<0)&&(me=Pe)}else Pe.from>y&&F>Pe.from&&(F=Pe.from)}if(Se)for(var rr=0;rr<Se.length;rr+=2)Se[rr+1]==F&&(ne+=" "+Se[rr]);if(!me||me.from==y)for(var Nt=0;Nt<ye.length;++Nt)E1(r,0,ye[Nt]);if(me&&(me.from||0)==y){if(E1(r,(me.to==null?m+1:me.to)-y,me.marker,me.from==null),me.to==null)return;me.to==y&&(me=!1)}}if(y>=m)break;for(var Fr=Math.min(m,F);;){if(T){var Br=y+T.length;if(!me){var Xt=Br>Fr?T.slice(0,Fr-y):T;r.addToken(r,Xt,I?I+K:K,he,y+Xt.length==F?ne:"",V,xe)}if(Br>=Fr){T=T.slice(Fr-y),y=Fr;break}y=Br,he=""}T=d.slice(p,p=s[C++]),I=k1(s[C++],r.cm.options)}}}function ls(e,r,s){this.line=r,this.rest=Fd(r),this.size=this.rest?Lt(Qe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Ut(e,r)}function ca(e,r,s){for(var a=[],d,p=r;p<s;p=d){var v=new ls(e.doc,Ee(e.doc,p),p);d=p+v.size,a.push(v)}return a}var At=null;function qi(e){At?At.ops.push(e):e.ownsGroup=At={ops:[e],delayedCallbacks:[]}}function I1(e){var r=e.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<e.ops.length;a++){var d=e.ops[a];if(d.cursorActivityHandlers)for(;d.cursorActivityCalled<d.cursorActivityHandlers.length;)d.cursorActivityHandlers[d.cursorActivityCalled++].call(null,d.cm)}}while(s<r.length)}function Wd(e,r){var s=e.ownsGroup;if(s)try{I1(s)}finally{At=null,r(s)}}var Mo=null;function lr(e,r){var s=Vi(e,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),d;At?d=At.delayedCallbacks:Mo?d=Mo:(d=Mo=[],setTimeout(Zd,0));for(var p=function(m){d.push(function(){return s[m].apply(null,a)})},v=0;v<s.length;++v)p(v)}}function Zd(){var e=Mo;Mo=null;for(var r=0;r<e.length;++r)e[r]()}function mc(e,r,s,a){for(var d=0;d<r.changes.length;d++){var p=r.changes[d];p=="text"?Ud(e,r):p=="gutter"?A1(e,r,s,a):p=="class"?vl(e,r):p=="widget"&&$1(e,r,a)}r.changes=null}function da(e){return e.node==e.text&&(e.node=k("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),z&&S<8&&(e.node.style.zIndex=2)),e.node}function gl(e,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=da(r);r.background=a.insertBefore(k("div",null,s),a.firstChild),e.display.input.setUneditable(r.background)}}function _o(e,r){var s=e.display.externalMeasured;return s&&s.line==r.line?(e.display.externalMeasured=null,r.measure=s.measure,s.built):O1(e,r)}function Ud(e,r){var s=r.text.className,a=_o(e,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,vl(e,r)):s&&(r.text.className=s)}function vl(e,r){gl(e,r),r.line.wrapClass?da(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function A1(e,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var d=da(r);r.gutterBackground=k("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),d.insertBefore(r.gutterBackground,r.text)}var p=r.line.gutterMarkers;if(e.options.lineNumbers||p){var v=da(r),m=r.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),v.insertBefore(m,r.text),r.line.gutterClass&&(m.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!p||!p["CodeMirror-linenumbers"])&&(r.lineNumber=m.appendChild(k("div",la(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),p)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,T=p.hasOwnProperty(C)&&p[C];T&&m.appendChild(k("div",[T],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function $1(e,r,s){r.alignable&&(r.alignable=null);for(var a=Ce("CodeMirror-linewidget"),d=r.node.firstChild,p=void 0;d;d=p)p=d.nextSibling,a.test(d.className)&&r.node.removeChild(d);D1(e,r,s)}function P1(e,r,s,a){var d=_o(e,r);return r.text=r.node=d.pre,d.bgClass&&(r.bgClass=d.bgClass),d.textClass&&(r.textClass=d.textClass),vl(e,r),A1(e,r,s,a),D1(e,r,a),r.node}function D1(e,r,s){if(yc(e,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)yc(e,r.rest[a],r,s,!1)}function yc(e,r,s,a,d){if(r.widgets)for(var p=da(s),v=0,m=r.widgets;v<m.length;++v){var y=m[v],C=k("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),N1(y,C,s,a),e.display.input.setUneditable(C),d&&y.above?p.insertBefore(C,s.gutter||s.text):p.appendChild(C),lr(y,"redraw")}}function N1(e,r,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(r);var d=a.wrapperWidth;r.style.left=a.fixedPos+"px",e.coverGutter||(d-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=d+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function To(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!ce(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),$(r.display.measure,k("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function wi(e,r){for(var s=Wi(r);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function us(e){return e.lineSpace.offsetTop}function Kr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function bl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=$(e.measure,k("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(e.cachedPaddingH=a),a}function nn(e){return Ne-e.display.nativeBarWidth}function ji(e){return e.display.scroller.clientWidth-nn(e)-e.display.barWidth}function ml(e){return e.display.scroller.clientHeight-nn(e)-e.display.barHeight}function Gd(e,r,s){var a=e.options.lineWrapping,d=a&&ji(e);if(!r.measure.heights||a&&r.measure.width!=d){var p=r.measure.heights=[];if(a){r.measure.width=d;for(var v=r.text.firstChild.getClientRects(),m=0;m<v.length-1;m++){var y=v[m],C=v[m+1];Math.abs(y.bottom-C.bottom)>2&&p.push((y.bottom+C.top)/2-s.top)}}p.push(s.bottom-s.top)}}function Cc(e,r,s){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==r)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var d=0;d<e.rest.length;d++)if(Lt(e.rest[d])>s)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function qd(e,r){r=Qn(r);var s=Lt(r),a=e.display.externalMeasured=new ls(e.doc,r,s);a.lineN=s;var d=a.built=O1(e,a);return a.text=d.pre,$(e.display.lineMeasure,d.pre),a}function wc(e,r,s,a){return ei(e,Vn(e,r),s,a)}function R1(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[ri(e,r)];var s=e.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Vn(e,r){var s=Lt(r),a=R1(e,s);a&&!a.text?a=null:a&&a.changes&&(mc(e,a,s,on(e)),e.curOp.forceUpdate=!0),a||(a=qd(e,r));var d=Cc(a,r,s);return{line:r,view:a,rect:null,map:d.map,cache:d.cache,before:d.before,hasHeights:!1}}function ei(e,r,s,a,d){r.before&&(s=-1);var p=s+(a||""),v;return r.cache.hasOwnProperty(p)?v=r.cache[p]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(Gd(e,r.view,r.rect),r.hasHeights=!0),v=Ki(e,r,s,a),v.bogus||(r.cache[p]=v)),{left:v.left,right:v.right,top:d?v.rtop:v.top,bottom:d?v.rbottom:v.bottom}}var xc={left:0,right:0,top:0,bottom:0};function yl(e,r,s){for(var a,d,p,v,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],r<m?(d=0,p=1,v="left"):r<y?(d=r-m,p=d+1):(C==e.length-3||r==y&&e[C+3]>r)&&(p=y-m,d=p-1,r>=y&&(v="right")),d!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(v=s),s=="left"&&d==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],v="left";if(s=="right"&&d==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],v="right";break}return{node:a,start:d,end:p,collapse:v,coverStart:m,coverEnd:y}}function zc(e,r){var s=xc;if(r=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var d=e.length-1;d>=0&&(s=e[d]).left==s.right;d--);return s}function Ki(e,r,s,a){var d=yl(r.map,s,a),p=d.node,v=d.start,m=d.end,y=d.collapse,C;if(p.nodeType==3){for(var T=0;T<4;T++){for(;v&&tt(r.line.text.charAt(d.coverStart+v));)--v;for(;d.coverStart+m<d.coverEnd&&tt(r.line.text.charAt(d.coverStart+m));)++m;if(z&&S<9&&v==0&&m==d.coverEnd-d.coverStart?C=p.parentNode.getBoundingClientRect():C=zc(X(p,v,m).getClientRects(),a),C.left||C.right||v==0)break;m=v,v=v-1,y="right"}z&&S<11&&(C=Cl(e.display.measure,C))}else{v>0&&(y=a="right");var I;e.options.lineWrapping&&(I=p.getClientRects()).length>1?C=I[a=="right"?I.length-1:0]:C=p.getBoundingClientRect()}if(z&&S<9&&!v&&(!C||!C.left&&!C.right)){var V=p.parentNode.getClientRects()[0];V?C={left:V.left,right:V.left+fa(e.display),top:V.top,bottom:V.bottom}:C=xc}for(var F=C.top-r.rect.top,K=C.bottom-r.rect.top,ne=(F+K)/2,he=r.view.measure.heights,me=0;me<he.length-1&&!(ne<he[me]);me++);var xe=me?he[me-1]:0,ye=he[me],Se={left:(y=="right"?C.right:C.left)-r.rect.left,right:(y=="left"?C.left:C.right)-r.rect.left,top:xe,bottom:ye};return!C.left&&!C.right&&(Se.bogus=!0),e.options.singleCursorHeightPerLine||(Se.rtop=F,Se.rbottom=K),Se}function Cl(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Zi(e))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function Lc(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function Sc(e){e.display.externalMeasure=null,Q(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)Lc(e.display.view[r])}function cs(e){Sc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ko(){return B&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function xn(){return B&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function wl(e){var r=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(r+=To(e.widgets[s]));return r}function xl(e,r,s,a,d){if(!d){var p=wl(r);s.top+=p,s.bottom+=p}if(a=="line")return s;a||(a="local");var v=jr(r);if(a=="local"?v+=us(e.display):v-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();v+=m.top+(a=="window"?0:xn());var y=m.left+(a=="window"?0:ko());s.left+=y,s.right+=y}return s.top+=v,s.bottom+=v,s}function Mc(e,r,s){if(s=="div")return r;var a=r.left,d=r.top;if(s=="page")a-=ko(),d-=xn();else if(s=="local"||!s){var p=e.display.sizer.getBoundingClientRect();a+=p.left,d+=p.top}var v=e.display.lineSpace.getBoundingClientRect();return{left:a-v.left,top:d-v.top}}function zl(e,r,s,a,d){return a||(a=Ee(e.doc,r.line)),xl(e,a,wc(e,a,r.ch,d),s)}function Wn(e,r,s,a,d,p){a=a||Ee(e.doc,r.line),d||(d=Vn(e,a));function v(K,ne){var he=ei(e,d,K,ne?"right":"left",p);return ne?he.left=he.right:he.right=he.left,xl(e,a,he,s)}var m=Dr(a,e.doc.direction),y=r.ch,C=r.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return v(C=="before"?y-1:y,C=="before");function T(K,ne,he){var me=m[ne],xe=me.level==1;return v(he?K-1:K,xe!=he)}var I=Wt(m,y,C),V=Gr,F=T(y,I,C=="before");return V!=null&&(F.other=T(y,V,C!="before")),F}function _c(e,r){var s=0;r=we(e.doc,r),e.options.lineWrapping||(s=fa(e.display)*r.ch);var a=Ee(e.doc,r.line),d=jr(a)+us(e.display);return{left:s,right:s,top:d,bottom:d+a.height}}function Yi(e,r,s,a,d){var p=ae(e,r,s);return p.xRel=d,a&&(p.outside=a),p}function W(e,r,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Yi(a.first,0,null,-1,-1);var d=Fn(a,s),p=a.first+a.size-1;if(d>p)return Yi(a.first+a.size-1,Ee(a,p).text.length,null,1,1);r<0&&(r=0);for(var v=Ee(a,d);;){var m=nt(e,v,d,r,s),y=Rd(v,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==d)return C;v=Ee(a,d=C.line)}}function re(e,r,s,a){a-=wl(r);var d=r.text.length,p=Lr(function(v){return ei(e,s,v-1).bottom<=a},d,0);return d=Lr(function(v){return ei(e,s,v).top>a},p,d),{begin:p,end:d}}function j(e,r,s,a){s||(s=Vn(e,r));var d=xl(e,r,ei(e,s,a),"line").top;return re(e,r,s,d)}function Oe(e,r,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>r}function nt(e,r,s,a,d){d-=jr(r);var p=Vn(e,r),v=wl(r),m=0,y=r.text.length,C=!0,T=Dr(r,e.doc.direction);if(T){var I=(e.options.lineWrapping?ur:kt)(e,r,s,p,T,a,d);C=I.level!=1,m=C?I.from:I.to-1,y=C?I.to:I.from-1}var V=null,F=null,K=Lr(function(Fe){var Pe=ei(e,p,Fe);return Pe.top+=v,Pe.bottom+=v,Oe(Pe,a,d,!1)?(Pe.top<=d&&Pe.left<=a&&(V=Fe,F=Pe),!0):!1},m,y),ne,he,me=!1;if(F){var xe=a-F.left<F.right-a,ye=xe==C;K=V+(ye?0:1),he=ye?"after":"before",ne=xe?F.left:F.right}else{!C&&(K==y||K==m)&&K++,he=K==0?"after":K==r.text.length?"before":ei(e,p,K-(C?1:0)).bottom+v<=d==C?"after":"before";var Se=Wn(e,ae(s,K,he),"line",r,p);ne=Se.left,me=d<Se.top?-1:d>=Se.bottom?1:0}return K=sr(r.text,K,1),Yi(s,K,he,me,a-ne)}function kt(e,r,s,a,d,p,v){var m=Lr(function(I){var V=d[I],F=V.level!=1;return Oe(Wn(e,ae(s,F?V.to:V.from,F?"before":"after"),"line",r,a),p,v,!0)},0,d.length-1),y=d[m];if(m>0){var C=y.level!=1,T=Wn(e,ae(s,C?y.from:y.to,C?"after":"before"),"line",r,a);Oe(T,p,v,!0)&&T.top>v&&(y=d[m-1])}return y}function ur(e,r,s,a,d,p,v){var m=re(e,r,a,v),y=m.begin,C=m.end;/\s/.test(r.text.charAt(C-1))&&C--;for(var T=null,I=null,V=0;V<d.length;V++){var F=d[V];if(!(F.from>=C||F.to<=y)){var K=F.level!=1,ne=ei(e,a,K?Math.min(C,F.to)-1:Math.max(y,F.from)).right,he=ne<p?p-ne+1e9:ne-p;(!T||I>he)&&(T=F,I=he)}}return T||(T=d[d.length-1]),T.from<y&&(T={from:y,to:T.to,level:T.level}),T.to>C&&(T={from:T.from,to:C,level:T.level}),T}var wt;function Xi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wt==null){wt=k("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)wt.appendChild(document.createTextNode("x")),wt.appendChild(k("br"));wt.appendChild(document.createTextNode("x"))}$(e.measure,wt);var s=wt.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),Q(e.measure),s||1}function fa(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=k("span","xxxxxxxxxx"),s=k("pre",[r],"CodeMirror-line-like");$(e.measure,s);var a=r.getBoundingClientRect(),d=(a.right-a.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function on(e){for(var r=e.display,s={},a={},d=r.gutters.clientLeft,p=r.gutters.firstChild,v=0;p;p=p.nextSibling,++v){var m=e.display.gutterSpecs[v].className;s[m]=p.offsetLeft+p.clientLeft+d,a[m]=p.clientWidth}return{fixedPos:ha(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function ha(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Tc(e){var r=Xi(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/fa(e.display)-3);return function(d){if(Ut(e.doc,d))return 0;var p=0;if(d.widgets)for(var v=0;v<d.widgets.length;v++)d.widgets[v].height&&(p+=d.widgets[v].height);return s?p+(Math.ceil(d.text.length/a)||1)*r:p+r}}function Ji(e){var r=e.doc,s=Tc(e);r.iter(function(a){var d=s(a);d!=a.height&&tn(a,d)})}function ti(e,r,s,a){var d=e.display;if(!s&&Wi(r).getAttribute("cm-not-content")=="true")return null;var p,v,m=d.lineSpace.getBoundingClientRect();try{p=r.clientX-m.left,v=r.clientY-m.top}catch{return null}var y=W(e,p,v),C;if(a&&y.xRel>0&&(C=Ee(e.doc,y.line).text).length==y.ch){var T=zt(C,C.length,e.options.tabSize)-C.length;y=ae(y.line,Math.max(0,Math.round((p-bl(e.display).left)/fa(e.display))-T))}return y}function ri(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function ot(e,r,s,a){r==null&&(r=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var d=e.display;if(a&&s<d.viewTo&&(d.updateLineNumbers==null||d.updateLineNumbers>r)&&(d.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=d.viewTo)Jn&&pl(e.doc,r)<d.viewTo&&xi(e);else if(s<=d.viewFrom)Jn&&hc(e.doc,s+a)>d.viewFrom?xi(e):(d.viewFrom+=a,d.viewTo+=a);else if(r<=d.viewFrom&&s>=d.viewTo)xi(e);else if(r<=d.viewFrom){var p=Oo(e,s,s+a,1);p?(d.view=d.view.slice(p.index),d.viewFrom=p.lineN,d.viewTo+=a):xi(e)}else if(s>=d.viewTo){var v=Oo(e,r,r,-1);v?(d.view=d.view.slice(0,v.index),d.viewTo=v.lineN):xi(e)}else{var m=Oo(e,r,r,-1),y=Oo(e,s,s+a,1);m&&y?(d.view=d.view.slice(0,m.index).concat(ca(e,m.lineN,y.lineN)).concat(d.view.slice(y.index)),d.viewTo+=a):xi(e)}var C=d.externalMeasured;C&&(s<C.lineN?C.lineN+=a:r<C.lineN+C.size&&(d.externalMeasured=null))}function Qi(e,r,s){e.curOp.viewChanged=!0;var a=e.display,d=e.display.externalMeasured;if(d&&r>=d.lineN&&r<d.lineN+d.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var p=a.view[ri(e,r)];if(p.node!=null){var v=p.changes||(p.changes=[]);Le(v,s)==-1&&v.push(s)}}}function xi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Oo(e,r,s,a){var d=ri(e,r),p,v=e.display.view;if(!Jn||s==e.doc.first+e.doc.size)return{index:d,lineN:s};for(var m=e.display.viewFrom,y=0;y<d;y++)m+=v[y].size;if(m!=r){if(a>0){if(d==v.length-1)return null;p=m+v[d].size-r,d++}else p=m-r;r+=p,s+=p}for(;pl(e.doc,s)!=s;){if(d==(a<0?0:v.length-1))return null;s+=a*v[d-(a<0?1:0)].size,d+=a}return{index:d,lineN:s}}function jd(e,r,s){var a=e.display,d=a.view;d.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=ca(e,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=ca(e,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(ri(e,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(ca(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,ri(e,s)))),a.viewTo=s}function kc(e){for(var r=e.display.view,s=0,a=0;a<r.length;a++){var d=r[a];!d.hidden&&(!d.node||d.changes)&&++s}return s}function ds(e){e.display.input.showSelection(e.display.input.prepareSelection())}function fs(e,r){r===void 0&&(r=!0);for(var s=e.doc,a={},d=a.cursors=document.createDocumentFragment(),p=a.selection=document.createDocumentFragment(),v=0;v<s.sel.ranges.length;v++)if(!(!r&&v==s.sel.primIndex)){var m=s.sel.ranges[v];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&zi(e,m.head,d),y||Oc(e,m,p)}}return a}function zi(e,r,s){var a=Wn(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),d=s.appendChild(k("div"," ","CodeMirror-cursor"));if(d.style.left=a.left+"px",d.style.top=a.top+"px",d.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var p=zl(e,r,"div",null,null);d.style.width=Math.max(0,p.right-p.left)+"px"}if(a.other){var v=s.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));v.style.display="",v.style.left=a.other.left+"px",v.style.top=a.other.top+"px",v.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function Eo(e,r){return e.top-r.top||e.left-r.left}function Oc(e,r,s){var a=e.display,d=e.doc,p=document.createDocumentFragment(),v=bl(e.display),m=v.left,y=Math.max(a.sizerWidth,ji(e)-a.sizer.offsetLeft)-v.right,C=d.direction=="ltr";function T(ye,Se,Fe,Pe){Se<0&&(Se=0),Se=Math.round(Se),Pe=Math.round(Pe),p.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+ye+`px;
2971
+ `,r);d==-1&&(d=e.length);var p=e.slice(r,e.charAt(d-1)=="\r"?d-1:d),v=p.indexOf("\r");v!=-1?(s.push(p.slice(0,v)),r+=v+1):(s.push(p),r=d+1)}return s}:function(e){return e.split(/\r\n?|\n/)},il=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},ol=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Qa=null;function Zi(e){if(Qa!=null)return Qa;var r=$(e,k("span","x")),s=r.getBoundingClientRect(),a=X(r,0,1).getBoundingClientRect();return Qa=Math.abs(s.left-a.left)>1}var Cn={},un={};function al(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Cn[e]=r}function yi(e,r){un[e]=r}function Lo(e){if(typeof e=="string"&&un.hasOwnProperty(e))e=un[e];else if(e&&typeof e.name=="string"&&un.hasOwnProperty(e.name)){var r=un[e.name];typeof r=="string"&&(r={name:r}),e=en(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Lo("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Lo("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function sa(e,r){r=Lo(r);var s=Cn[r.name];if(!s)return sa(e,"text/plain");var a=s(e,r);if(Rn.hasOwnProperty(r.name)){var d=Rn[r.name];for(var p in d)d.hasOwnProperty(p)&&(a.hasOwnProperty(p)&&(a["_"+p]=a[p]),a[p]=d[p])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var v in r.modeProps)a[v]=r.modeProps[v];return a}var Rn={};function Hn(e,r){var s=Rn.hasOwnProperty(e)?Rn[e]:Rn[e]={};Tt(r,s)}function cn(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var a in r){var d=r[a];d instanceof Array&&(d=d.concat([])),s[a]=d}return s}function es(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function ts(e,r,s){return e.startState?e.startState(r,s):!0}var Bt=function(e,r,s){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(e){var r=this.string.charAt(this.pos),s;if(typeof e=="string"?s=r==e:s=r&&(e.test?e.test(r):e(r)),s)return++this.pos,r},Bt.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},Bt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},Bt.prototype.backUp=function(e){this.pos-=e},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=zt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?zt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return zt(this.string,null,this.tabSize)-(this.lineStart?zt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(e,r,s){if(typeof e=="string"){var a=function(v){return s?v.toLowerCase():v},d=this.string.substr(this.pos,e.length);if(a(d)==a(e))return r!==!1&&(this.pos+=e.length),!0}else{var p=this.string.slice(this.pos).match(e);return p&&p.index>0?null:(p&&r!==!1&&(this.pos+=p[0].length),p)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},Bt.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},Bt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ee(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var s=e;!s.lines;)for(var a=0;;++a){var d=s.children[a],p=d.chunkSize();if(r<p){s=d;break}r-=p}return s.lines[r]}function dn(e,r,s){var a=[],d=r.line;return e.iter(r.line,s.line+1,function(p){var v=p.text;d==s.line&&(v=v.slice(0,s.ch)),d==r.line&&(v=v.slice(r.ch)),a.push(v),++d}),a}function rs(e,r,s){var a=[];return e.iter(r,s,function(d){a.push(d.text)}),a}function tn(e,r){var s=r-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function Lt(e){if(e.parent==null)return null;for(var r=e.parent,s=Le(r.lines,e),a=r.parent;a;r=a,a=a.parent)for(var d=0;a.children[d]!=r;++d)s+=a.children[d].chunkSize();return s+r.first}function Fn(e,r){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var d=e.children[a],p=d.height;if(r<p){e=d;continue e}r-=p,s+=d.chunkSize()}return s}while(!e.lines);for(var v=0;v<e.lines.length;++v){var m=e.lines[v],y=m.height;if(r<y)break;r-=y}return s+v}function Ui(e,r){return r>=e.first&&r<e.first+e.size}function la(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function ae(e,r,s){if(s===void 0&&(s=null),!(this instanceof ae))return new ae(e,r,s);this.line=e,this.ch=r,this.sticky=s}function x(e,r){return e.line-r.line||e.ch-r.ch}function A(e,r){return e.sticky==r.sticky&&x(e,r)==0}function te(e){return ae(e.line,e.ch)}function de(e,r){return x(e,r)<0?r:e}function Ke(e,r){return x(e,r)<0?e:r}function gt(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function we(e,r){if(r.line<e.first)return ae(e.first,0);var s=e.first+e.size-1;return r.line>s?ae(s,Ee(e,s).text.length):Mr(r,Ee(e,r.line).text.length)}function Mr(e,r){var s=e.ch;return s==null||s>r?ae(e.line,r):s<0?ae(e.line,0):e}function rn(e,r){for(var s=[],a=0;a<r.length;a++)s[a]=we(e,r[a]);return s}var Ci=function(e,r){this.state=e,this.lookAhead=r},Bn=function(e,r,s,a){this.state=r,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Bn.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},Bn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Bn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Bn.fromSaved=function(e,r,s){return r instanceof Ci?new Bn(e,cn(e.mode,r.state),s,r.lookAhead):new Bn(e,cn(e.mode,r),s)},Bn.prototype.save=function(e){var r=e!==!1?cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ci(r,this.maxLookAhead):r};function nc(e,r,s,a){var d=[e.state.modeGen],p={};L1(e,r.text,e.doc.mode,s,function(C,T){return d.push(C,T)},p,a);for(var v=s.state,m=function(C){s.baseTokens=d;var T=e.state.overlays[C],I=1,V=0;s.state=!0,L1(e,r.text,T.mode,s,function(F,K){for(var ne=I;V<F;){var he=d[I];he>F&&d.splice(I,1,F,d[I+1],he),I+=2,V=Math.min(F,he)}if(K)if(T.opaque)d.splice(ne,I-ne,F,"overlay "+K),I=ne+2;else for(;ne<I;ne+=2){var me=d[ne+1];d[ne+1]=(me?me+" ":"")+"overlay "+K}},p),s.state=v,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:d,classes:p.bgClass||p.textClass?p:null}}function z1(e,r,s){if(!r.styles||r.styles[0]!=e.state.modeGen){var a=ua(e,Lt(r)),d=r.text.length>e.options.maxHighlightLength&&cn(e.doc.mode,a.state),p=nc(e,r,a);d&&(a.state=d),r.stateAfter=a.save(!d),r.styles=p.styles,p.classes?r.styleClasses=p.classes:r.styleClasses&&(r.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function ua(e,r,s){var a=e.doc,d=e.display;if(!a.mode.startState)return new Bn(a,!0,r);var p=oc(e,r,s),v=p>a.first&&Ee(a,p-1).stateAfter,m=v?Bn.fromSaved(a,v,p):new Bn(a,ts(a.mode),p);return a.iter(p,r,function(y){ns(e,y.text,m);var C=m.line;y.stateAfter=C==r-1||C%5==0||C>=d.viewFrom&&C<d.viewTo?m.save():null,m.nextLine()}),s&&(a.modeFrontier=m.line),m}function ns(e,r,s,a){var d=e.doc.mode,p=new Bt(r,e.options.tabSize,s);for(p.start=p.pos=a||0,r==""&&ic(d,s.state);!p.eol();)sl(d,p,s.state),p.start=p.pos}function ic(e,r){if(e.blankLine)return e.blankLine(r);if(e.innerMode){var s=es(e,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function sl(e,r,s,a){for(var d=0;d<10;d++){a&&(a[0]=es(e,s).mode);var p=e.token(r,s);if(r.pos>r.start)return p}throw new Error("Mode "+e.name+" failed to advance stream.")}var ll=function(e,r,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=s};function ul(e,r,s,a){var d=e.doc,p=d.mode,v;r=we(d,r);var m=Ee(d,r.line),y=ua(e,r.line,s),C=new Bt(m.text,e.options.tabSize,y),T;for(a&&(T=[]);(a||C.pos<r.ch)&&!C.eol();)C.start=C.pos,v=sl(p,C,y.state),a&&T.push(new ll(C,v,cn(d.mode,y.state)));return a?T:new ll(C,v,y.state)}function So(e,r){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return e}function L1(e,r,s,a,d,p,v){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,T=new Bt(r,e.options.tabSize,a),I,V=e.options.addModeClass&&[null];for(r==""&&So(ic(s,a.state),p);!T.eol();){if(T.pos>e.options.maxHighlightLength?(m=!1,v&&ns(e,r,a,T.pos),T.pos=r.length,I=null):I=So(sl(s,T,a.state,V),p),V){var F=V[0].name;F&&(I="m-"+(I?F+" "+I:F))}if(!m||C!=I){for(;y<T.start;)y=Math.min(T.start,y+5e3),d(y,C);C=I}T.start=T.pos}for(;y<T.pos;){var K=Math.min(T.pos,y+5e3);d(K,C),y=K}}function oc(e,r,s){for(var a,d,p=e.doc,v=s?-1:r-(e.doc.mode.innerMode?1e3:100),m=r;m>v;--m){if(m<=p.first)return p.first;var y=Ee(p,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof Ci?C.lookAhead:0)<=p.modeFrontier))return m;var T=zt(y.text,null,e.options.tabSize);(d==null||a>T)&&(d=m-1,a=T)}return d}function $d(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontier<r-10)){for(var s=e.first,a=r-1;a>s;a--){var d=Ee(e,a).stateAfter;if(d&&(!(d instanceof Ci)||a+d.lookAhead<r)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var S1=!1,Jn=!1;function ac(){S1=!0}function sc(){Jn=!0}function cl(e,r,s){this.marker=e,this.from=r,this.to=s}function is(e,r){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==r)return a}}function Pd(e,r){for(var s,a=0;a<e.length;++a)e[a]!=r&&(s||(s=[])).push(e[a]);return s}function lc(e,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(r):(e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],a&&a.add(e.markedSpans)),r.marker.attachLine(e)}function Dd(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);if(m||p.from==r&&v.type=="bookmark"&&(!s||!p.marker.insertLeft)){var y=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);(a||(a=[])).push(new cl(v,p.from,y?null:p.to))}}return a}function Nd(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);if(m||p.from==r&&v.type=="bookmark"&&(!s||p.marker.insertLeft)){var y=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);(a||(a=[])).push(new cl(v,y?null:p.from-r,p.to==null?null:p.to-r))}}return a}function M1(e,r){if(r.full)return null;var s=Ui(e,r.from.line)&&Ee(e,r.from.line).markedSpans,a=Ui(e,r.to.line)&&Ee(e,r.to.line).markedSpans;if(!s&&!a)return null;var d=r.from.ch,p=r.to.ch,v=x(r.from,r.to)==0,m=Dd(s,d,v),y=Nd(a,p,v),C=r.text.length==1,T=Qe(r.text).length+(C?d:0);if(m)for(var I=0;I<m.length;++I){var V=m[I];if(V.to==null){var F=is(y,V.marker);F?C&&(V.to=F.to==null?null:F.to+T):V.to=d}}if(y)for(var K=0;K<y.length;++K){var ne=y[K];if(ne.to!=null&&(ne.to+=T),ne.from==null){var he=is(m,ne.marker);he||(ne.from=T,C&&(m||(m=[])).push(ne))}else ne.from+=T,C&&(m||(m=[])).push(ne)}m&&(m=uc(m)),y&&y!=m&&(y=uc(y));var me=[m];if(!C){var xe=r.text.length-2,ye;if(xe>0&&m)for(var Se=0;Se<m.length;++Se)m[Se].to==null&&(ye||(ye=[])).push(new cl(m[Se].marker,null,null));for(var Fe=0;Fe<xe;++Fe)me.push(ye);me.push(y)}return me}function uc(e){for(var r=0;r<e.length;++r){var s=e[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function _1(e,r,s){var a=null;if(e.iter(r.line,s.line+1,function(F){if(F.markedSpans)for(var K=0;K<F.markedSpans.length;++K){var ne=F.markedSpans[K].marker;ne.readOnly&&(!a||Le(a,ne)==-1)&&(a||(a=[])).push(ne)}}),!a)return null;for(var d=[{from:r,to:s}],p=0;p<a.length;++p)for(var v=a[p],m=v.find(0),y=0;y<d.length;++y){var C=d[y];if(!(x(C.to,m.from)<0||x(C.from,m.to)>0)){var T=[y,1],I=x(C.from,m.from),V=x(C.to,m.to);(I<0||!v.inclusiveLeft&&!I)&&T.push({from:C.from,to:m.from}),(V>0||!v.inclusiveRight&&!V)&&T.push({from:m.to,to:C.to}),d.splice.apply(d,T),y+=T.length-3}}return d}function cc(e){var r=e.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(e);e.markedSpans=null}}function dc(e,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(e);e.markedSpans=r}}function dl(e){return e.inclusiveLeft?-1:0}function fl(e){return e.inclusiveRight?1:0}function T1(e,r){var s=e.lines.length-r.lines.length;if(s!=0)return s;var a=e.find(),d=r.find(),p=x(a.from,d.from)||dl(e)-dl(r);if(p)return-p;var v=x(a.to,d.to)||fl(e)-fl(r);return v||r.id-e.id}function Vt(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=void 0,p=0;p<s.length;++p)d=s[p],d.marker.collapsed&&(r?d.from:d.to)==null&&(!a||T1(a,d.marker)<0)&&(a=d.marker);return a}function Ht(e){return Vt(e,!0)}function hl(e){return Vt(e,!1)}function Rd(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=0;d<s.length;++d){var p=s[d];p.marker.collapsed&&(p.from==null||p.from<r)&&(p.to==null||p.to>r)&&(!a||T1(a,p.marker)<0)&&(a=p.marker)}return a}function fc(e,r,s,a,d){var p=Ee(e,r),v=Jn&&p.markedSpans;if(v)for(var m=0;m<v.length;++m){var y=v[m];if(y.marker.collapsed){var C=y.marker.find(0),T=x(C.from,s)||dl(y.marker)-dl(d),I=x(C.to,a)||fl(y.marker)-fl(d);if(!(T>=0&&I<=0||T<=0&&I>=0)&&(T<=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?x(C.to,s)>=0:x(C.to,s)>0)||T>=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?x(C.from,a)<=0:x(C.from,a)<0)))return!0}}}function Qn(e){for(var r;r=Ht(e);)e=r.find(-1,!0).line;return e}function Hd(e){for(var r;r=hl(e);)e=r.find(1,!0).line;return e}function Fd(e){for(var r,s;r=hl(e);)e=r.find(1,!0).line,(s||(s=[])).push(e);return s}function pl(e,r){var s=Ee(e,r),a=Qn(s);return s==a?r:Lt(a)}function hc(e,r){if(r>e.lastLine())return r;var s=Ee(e,r),a;if(!Ut(e,s))return r;for(;a=hl(s);)s=a.find(1,!0).line;return Lt(s)+1}function Ut(e,r){var s=Jn&&r.markedSpans;if(s){for(var a=void 0,d=0;d<s.length;++d)if(a=s[d],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&os(e,r,a))return!0}}}function os(e,r,s){if(s.to==null){var a=s.marker.find(1,!0);return os(e,a.line,is(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var d=void 0,p=0;p<r.markedSpans.length;++p)if(d=r.markedSpans[p],d.marker.collapsed&&!d.marker.widgetNode&&d.from==s.to&&(d.to==null||d.to!=s.from)&&(d.marker.inclusiveLeft||s.marker.inclusiveRight)&&os(e,r,d))return!0}function Kr(e){e=Qn(e);for(var r=0,s=e.parent,a=0;a<s.lines.length;++a){var d=s.lines[a];if(d==e)break;r+=d.height}for(var p=s.parent;p;s=p,p=s.parent)for(var v=0;v<p.children.length;++v){var m=p.children[v];if(m==s)break;r+=m.height}return r}function as(e){if(e.height==0)return 0;for(var r=e.text.length,s,a=e;s=Ht(a);){var d=s.find(0,!0);a=d.from.line,r+=d.from.ch-d.to.ch}for(a=e;s=hl(a);){var p=s.find(0,!0);r-=a.text.length-p.from.ch,a=p.to.line,r+=a.text.length-p.to.ch}return r}function ss(e){var r=e.display,s=e.doc;r.maxLine=Ee(s,s.first),r.maxLineLength=as(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var d=as(a);d>r.maxLineLength&&(r.maxLineLength=d,r.maxLine=a)})}var _r=function(e,r,s){this.text=e,dc(this,r),this.height=s?s(this):1};_r.prototype.lineNo=function(){return Lt(this)},Nn(_r);function pc(e,r,s,a){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),cc(e),dc(e,s);var d=a?a(e):1;d!=e.height&&tn(e,d)}function gc(e){e.parent=null,cc(e)}var vc={},bc={};function k1(e,r){if(!e||/^\s*$/.test(e))return null;var s=r.addModeClass?bc:vc;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function O1(e,r){var s=O("span",null,null,E?"padding-right: .1px":null),a={pre:O("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var d=0;d<=(r.rest?r.rest.length:0);d++){var p=d?r.rest[d-1]:r.line,v=void 0;a.pos=0,a.addToken=Bd,Xn(e.display.measure)&&(v=Dr(p,e.doc.direction))&&(a.addToken=Vd(a.addToken,v)),a.map=[];var m=r!=e.display.externalMeasured&&Lt(p);Gi(p,a,z1(e,p,m)),p.styleClasses&&(p.styleClasses.bgClass&&(a.bgClass=pt(p.styleClasses.bgClass,a.bgClass||"")),p.styleClasses.textClass&&(a.textClass=pt(p.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(nl(e.display.measure))),d==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(E){var y=a.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return qe(e,"renderLine",e,r.line,a.pre),a.pre.className&&(a.textClass=pt(a.pre.className,a.textClass||"")),a}function fn(e){var r=k("span","•","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function Bd(e,r,s,a,d,p,v){if(r){var m=e.splitSpaces?wn(r,e.trailingSpace):r,y=e.cm.state.specialChars,C=!1,T;if(!y.test(r))e.col+=r.length,T=document.createTextNode(m),e.map.push(e.pos,e.pos+r.length,T),z&&S<9&&(C=!0),e.pos+=r.length;else{T=document.createDocumentFragment();for(var I=0;;){y.lastIndex=I;var V=y.exec(r),F=V?V.index-I:r.length-I;if(F){var K=document.createTextNode(m.slice(I,I+F));z&&S<9?T.appendChild(k("span",[K])):T.appendChild(K),e.map.push(e.pos,e.pos+F,K),e.col+=F,e.pos+=F}if(!V)break;I+=F+1;var ne=void 0;if(V[0]==" "){var he=e.cm.options.tabSize,me=he-e.col%he;ne=T.appendChild(k("span",tr(me),"cm-tab")),ne.setAttribute("role","presentation"),ne.setAttribute("cm-text"," "),e.col+=me}else V[0]=="\r"||V[0]==`
2972
+ `?(ne=T.appendChild(k("span",V[0]=="\r"?"␍":"␤","cm-invalidchar")),ne.setAttribute("cm-text",V[0]),e.col+=1):(ne=e.cm.options.specialCharPlaceholder(V[0]),ne.setAttribute("cm-text",V[0]),z&&S<9?T.appendChild(k("span",[ne])):T.appendChild(ne),e.col+=1);e.map.push(e.pos,e.pos+1,ne),e.pos++}}if(e.trailingSpace=m.charCodeAt(r.length-1)==32,s||a||d||C||p||v){var xe=s||"";a&&(xe+=a),d&&(xe+=d);var ye=k("span",[T],xe,p);if(v)for(var Se in v)v.hasOwnProperty(Se)&&Se!="style"&&Se!="class"&&ye.setAttribute(Se,v[Se]);return e.content.appendChild(ye)}e.content.appendChild(T)}}function wn(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,a="",d=0;d<e.length;d++){var p=e.charAt(d);p==" "&&s&&(d==e.length-1||e.charCodeAt(d+1)==32)&&(p=" "),a+=p,s=p==" "}return a}function Vd(e,r){return function(s,a,d,p,v,m,y){d=d?d+" cm-force-border":"cm-force-border";for(var C=s.pos,T=C+a.length;;){for(var I=void 0,V=0;V<r.length&&(I=r[V],!(I.to>C&&I.from<=C));V++);if(I.to>=T)return e(s,a,d,p,v,m,y);e(s,a.slice(0,I.to-C),d,p,null,m,y),p=null,a=a.slice(I.to-C),C=I.to}}}function E1(e,r,s,a){var d=!a&&s.widgetNode;d&&e.map.push(e.pos,e.pos+r,d),!a&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",s.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=r,e.trailingSpace=!1}function Gi(e,r,s){var a=e.markedSpans,d=e.text,p=0;if(!a){for(var v=1;v<s.length;v+=2)r.addToken(r,d.slice(p,p=s[v]),k1(s[v+1],r.cm.options));return}for(var m=d.length,y=0,C=1,T="",I,V,F=0,K,ne,he,me,xe;;){if(F==y){K=ne=he=V="",xe=null,me=null,F=1/0;for(var ye=[],Se=void 0,Fe=0;Fe<a.length;++Fe){var Pe=a[Fe],ut=Pe.marker;if(ut.type=="bookmark"&&Pe.from==y&&ut.widgetNode)ye.push(ut);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||ut.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&F>Pe.to&&(F=Pe.to,ne=""),ut.className&&(K+=" "+ut.className),ut.css&&(V=(V?V+";":"")+ut.css),ut.startStyle&&Pe.from==y&&(he+=" "+ut.startStyle),ut.endStyle&&Pe.to==F&&(Se||(Se=[])).push(ut.endStyle,Pe.to),ut.title&&((xe||(xe={})).title=ut.title),ut.attributes)for(var It in ut.attributes)(xe||(xe={}))[It]=ut.attributes[It];ut.collapsed&&(!me||T1(me.marker,ut)<0)&&(me=Pe)}else Pe.from>y&&F>Pe.from&&(F=Pe.from)}if(Se)for(var rr=0;rr<Se.length;rr+=2)Se[rr+1]==F&&(ne+=" "+Se[rr]);if(!me||me.from==y)for(var Nt=0;Nt<ye.length;++Nt)E1(r,0,ye[Nt]);if(me&&(me.from||0)==y){if(E1(r,(me.to==null?m+1:me.to)-y,me.marker,me.from==null),me.to==null)return;me.to==y&&(me=!1)}}if(y>=m)break;for(var Fr=Math.min(m,F);;){if(T){var Br=y+T.length;if(!me){var Xt=Br>Fr?T.slice(0,Fr-y):T;r.addToken(r,Xt,I?I+K:K,he,y+Xt.length==F?ne:"",V,xe)}if(Br>=Fr){T=T.slice(Fr-y),y=Fr;break}y=Br,he=""}T=d.slice(p,p=s[C++]),I=k1(s[C++],r.cm.options)}}}function ls(e,r,s){this.line=r,this.rest=Fd(r),this.size=this.rest?Lt(Qe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Ut(e,r)}function ca(e,r,s){for(var a=[],d,p=r;p<s;p=d){var v=new ls(e.doc,Ee(e.doc,p),p);d=p+v.size,a.push(v)}return a}var At=null;function qi(e){At?At.ops.push(e):e.ownsGroup=At={ops:[e],delayedCallbacks:[]}}function I1(e){var r=e.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<e.ops.length;a++){var d=e.ops[a];if(d.cursorActivityHandlers)for(;d.cursorActivityCalled<d.cursorActivityHandlers.length;)d.cursorActivityHandlers[d.cursorActivityCalled++].call(null,d.cm)}}while(s<r.length)}function Wd(e,r){var s=e.ownsGroup;if(s)try{I1(s)}finally{At=null,r(s)}}var Mo=null;function lr(e,r){var s=Vi(e,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),d;At?d=At.delayedCallbacks:Mo?d=Mo:(d=Mo=[],setTimeout(Zd,0));for(var p=function(m){d.push(function(){return s[m].apply(null,a)})},v=0;v<s.length;++v)p(v)}}function Zd(){var e=Mo;Mo=null;for(var r=0;r<e.length;++r)e[r]()}function mc(e,r,s,a){for(var d=0;d<r.changes.length;d++){var p=r.changes[d];p=="text"?Ud(e,r):p=="gutter"?A1(e,r,s,a):p=="class"?vl(e,r):p=="widget"&&$1(e,r,a)}r.changes=null}function da(e){return e.node==e.text&&(e.node=k("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),z&&S<8&&(e.node.style.zIndex=2)),e.node}function gl(e,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=da(r);r.background=a.insertBefore(k("div",null,s),a.firstChild),e.display.input.setUneditable(r.background)}}function _o(e,r){var s=e.display.externalMeasured;return s&&s.line==r.line?(e.display.externalMeasured=null,r.measure=s.measure,s.built):O1(e,r)}function Ud(e,r){var s=r.text.className,a=_o(e,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,vl(e,r)):s&&(r.text.className=s)}function vl(e,r){gl(e,r),r.line.wrapClass?da(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function A1(e,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var d=da(r);r.gutterBackground=k("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),d.insertBefore(r.gutterBackground,r.text)}var p=r.line.gutterMarkers;if(e.options.lineNumbers||p){var v=da(r),m=r.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),v.insertBefore(m,r.text),r.line.gutterClass&&(m.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!p||!p["CodeMirror-linenumbers"])&&(r.lineNumber=m.appendChild(k("div",la(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),p)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,T=p.hasOwnProperty(C)&&p[C];T&&m.appendChild(k("div",[T],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function $1(e,r,s){r.alignable&&(r.alignable=null);for(var a=Ce("CodeMirror-linewidget"),d=r.node.firstChild,p=void 0;d;d=p)p=d.nextSibling,a.test(d.className)&&r.node.removeChild(d);D1(e,r,s)}function P1(e,r,s,a){var d=_o(e,r);return r.text=r.node=d.pre,d.bgClass&&(r.bgClass=d.bgClass),d.textClass&&(r.textClass=d.textClass),vl(e,r),A1(e,r,s,a),D1(e,r,a),r.node}function D1(e,r,s){if(yc(e,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)yc(e,r.rest[a],r,s,!1)}function yc(e,r,s,a,d){if(r.widgets)for(var p=da(s),v=0,m=r.widgets;v<m.length;++v){var y=m[v],C=k("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),N1(y,C,s,a),e.display.input.setUneditable(C),d&&y.above?p.insertBefore(C,s.gutter||s.text):p.appendChild(C),lr(y,"redraw")}}function N1(e,r,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(r);var d=a.wrapperWidth;r.style.left=a.fixedPos+"px",e.coverGutter||(d-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=d+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function To(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!ce(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),$(r.display.measure,k("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function wi(e,r){for(var s=Wi(r);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function us(e){return e.lineSpace.offsetTop}function Yr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function bl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=$(e.measure,k("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(e.cachedPaddingH=a),a}function nn(e){return Ne-e.display.nativeBarWidth}function ji(e){return e.display.scroller.clientWidth-nn(e)-e.display.barWidth}function ml(e){return e.display.scroller.clientHeight-nn(e)-e.display.barHeight}function Gd(e,r,s){var a=e.options.lineWrapping,d=a&&ji(e);if(!r.measure.heights||a&&r.measure.width!=d){var p=r.measure.heights=[];if(a){r.measure.width=d;for(var v=r.text.firstChild.getClientRects(),m=0;m<v.length-1;m++){var y=v[m],C=v[m+1];Math.abs(y.bottom-C.bottom)>2&&p.push((y.bottom+C.top)/2-s.top)}}p.push(s.bottom-s.top)}}function Cc(e,r,s){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==r)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var d=0;d<e.rest.length;d++)if(Lt(e.rest[d])>s)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function qd(e,r){r=Qn(r);var s=Lt(r),a=e.display.externalMeasured=new ls(e.doc,r,s);a.lineN=s;var d=a.built=O1(e,a);return a.text=d.pre,$(e.display.lineMeasure,d.pre),a}function wc(e,r,s,a){return ei(e,Vn(e,r),s,a)}function R1(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[ri(e,r)];var s=e.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Vn(e,r){var s=Lt(r),a=R1(e,s);a&&!a.text?a=null:a&&a.changes&&(mc(e,a,s,on(e)),e.curOp.forceUpdate=!0),a||(a=qd(e,r));var d=Cc(a,r,s);return{line:r,view:a,rect:null,map:d.map,cache:d.cache,before:d.before,hasHeights:!1}}function ei(e,r,s,a,d){r.before&&(s=-1);var p=s+(a||""),v;return r.cache.hasOwnProperty(p)?v=r.cache[p]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(Gd(e,r.view,r.rect),r.hasHeights=!0),v=Ki(e,r,s,a),v.bogus||(r.cache[p]=v)),{left:v.left,right:v.right,top:d?v.rtop:v.top,bottom:d?v.rbottom:v.bottom}}var xc={left:0,right:0,top:0,bottom:0};function yl(e,r,s){for(var a,d,p,v,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],r<m?(d=0,p=1,v="left"):r<y?(d=r-m,p=d+1):(C==e.length-3||r==y&&e[C+3]>r)&&(p=y-m,d=p-1,r>=y&&(v="right")),d!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(v=s),s=="left"&&d==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],v="left";if(s=="right"&&d==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],v="right";break}return{node:a,start:d,end:p,collapse:v,coverStart:m,coverEnd:y}}function zc(e,r){var s=xc;if(r=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var d=e.length-1;d>=0&&(s=e[d]).left==s.right;d--);return s}function Ki(e,r,s,a){var d=yl(r.map,s,a),p=d.node,v=d.start,m=d.end,y=d.collapse,C;if(p.nodeType==3){for(var T=0;T<4;T++){for(;v&&tt(r.line.text.charAt(d.coverStart+v));)--v;for(;d.coverStart+m<d.coverEnd&&tt(r.line.text.charAt(d.coverStart+m));)++m;if(z&&S<9&&v==0&&m==d.coverEnd-d.coverStart?C=p.parentNode.getBoundingClientRect():C=zc(X(p,v,m).getClientRects(),a),C.left||C.right||v==0)break;m=v,v=v-1,y="right"}z&&S<11&&(C=Cl(e.display.measure,C))}else{v>0&&(y=a="right");var I;e.options.lineWrapping&&(I=p.getClientRects()).length>1?C=I[a=="right"?I.length-1:0]:C=p.getBoundingClientRect()}if(z&&S<9&&!v&&(!C||!C.left&&!C.right)){var V=p.parentNode.getClientRects()[0];V?C={left:V.left,right:V.left+fa(e.display),top:V.top,bottom:V.bottom}:C=xc}for(var F=C.top-r.rect.top,K=C.bottom-r.rect.top,ne=(F+K)/2,he=r.view.measure.heights,me=0;me<he.length-1&&!(ne<he[me]);me++);var xe=me?he[me-1]:0,ye=he[me],Se={left:(y=="right"?C.right:C.left)-r.rect.left,right:(y=="left"?C.left:C.right)-r.rect.left,top:xe,bottom:ye};return!C.left&&!C.right&&(Se.bogus=!0),e.options.singleCursorHeightPerLine||(Se.rtop=F,Se.rbottom=K),Se}function Cl(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Zi(e))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function Lc(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function Sc(e){e.display.externalMeasure=null,Q(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)Lc(e.display.view[r])}function cs(e){Sc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ko(){return B&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function xn(){return B&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function wl(e){var r=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(r+=To(e.widgets[s]));return r}function xl(e,r,s,a,d){if(!d){var p=wl(r);s.top+=p,s.bottom+=p}if(a=="line")return s;a||(a="local");var v=Kr(r);if(a=="local"?v+=us(e.display):v-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();v+=m.top+(a=="window"?0:xn());var y=m.left+(a=="window"?0:ko());s.left+=y,s.right+=y}return s.top+=v,s.bottom+=v,s}function Mc(e,r,s){if(s=="div")return r;var a=r.left,d=r.top;if(s=="page")a-=ko(),d-=xn();else if(s=="local"||!s){var p=e.display.sizer.getBoundingClientRect();a+=p.left,d+=p.top}var v=e.display.lineSpace.getBoundingClientRect();return{left:a-v.left,top:d-v.top}}function zl(e,r,s,a,d){return a||(a=Ee(e.doc,r.line)),xl(e,a,wc(e,a,r.ch,d),s)}function Wn(e,r,s,a,d,p){a=a||Ee(e.doc,r.line),d||(d=Vn(e,a));function v(K,ne){var he=ei(e,d,K,ne?"right":"left",p);return ne?he.left=he.right:he.right=he.left,xl(e,a,he,s)}var m=Dr(a,e.doc.direction),y=r.ch,C=r.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return v(C=="before"?y-1:y,C=="before");function T(K,ne,he){var me=m[ne],xe=me.level==1;return v(he?K-1:K,xe!=he)}var I=Wt(m,y,C),V=qr,F=T(y,I,C=="before");return V!=null&&(F.other=T(y,V,C!="before")),F}function _c(e,r){var s=0;r=we(e.doc,r),e.options.lineWrapping||(s=fa(e.display)*r.ch);var a=Ee(e.doc,r.line),d=Kr(a)+us(e.display);return{left:s,right:s,top:d,bottom:d+a.height}}function Yi(e,r,s,a,d){var p=ae(e,r,s);return p.xRel=d,a&&(p.outside=a),p}function W(e,r,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Yi(a.first,0,null,-1,-1);var d=Fn(a,s),p=a.first+a.size-1;if(d>p)return Yi(a.first+a.size-1,Ee(a,p).text.length,null,1,1);r<0&&(r=0);for(var v=Ee(a,d);;){var m=nt(e,v,d,r,s),y=Rd(v,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==d)return C;v=Ee(a,d=C.line)}}function re(e,r,s,a){a-=wl(r);var d=r.text.length,p=Lr(function(v){return ei(e,s,v-1).bottom<=a},d,0);return d=Lr(function(v){return ei(e,s,v).top>a},p,d),{begin:p,end:d}}function j(e,r,s,a){s||(s=Vn(e,r));var d=xl(e,r,ei(e,s,a),"line").top;return re(e,r,s,d)}function Oe(e,r,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>r}function nt(e,r,s,a,d){d-=Kr(r);var p=Vn(e,r),v=wl(r),m=0,y=r.text.length,C=!0,T=Dr(r,e.doc.direction);if(T){var I=(e.options.lineWrapping?ur:kt)(e,r,s,p,T,a,d);C=I.level!=1,m=C?I.from:I.to-1,y=C?I.to:I.from-1}var V=null,F=null,K=Lr(function(Fe){var Pe=ei(e,p,Fe);return Pe.top+=v,Pe.bottom+=v,Oe(Pe,a,d,!1)?(Pe.top<=d&&Pe.left<=a&&(V=Fe,F=Pe),!0):!1},m,y),ne,he,me=!1;if(F){var xe=a-F.left<F.right-a,ye=xe==C;K=V+(ye?0:1),he=ye?"after":"before",ne=xe?F.left:F.right}else{!C&&(K==y||K==m)&&K++,he=K==0?"after":K==r.text.length?"before":ei(e,p,K-(C?1:0)).bottom+v<=d==C?"after":"before";var Se=Wn(e,ae(s,K,he),"line",r,p);ne=Se.left,me=d<Se.top?-1:d>=Se.bottom?1:0}return K=sr(r.text,K,1),Yi(s,K,he,me,a-ne)}function kt(e,r,s,a,d,p,v){var m=Lr(function(I){var V=d[I],F=V.level!=1;return Oe(Wn(e,ae(s,F?V.to:V.from,F?"before":"after"),"line",r,a),p,v,!0)},0,d.length-1),y=d[m];if(m>0){var C=y.level!=1,T=Wn(e,ae(s,C?y.from:y.to,C?"after":"before"),"line",r,a);Oe(T,p,v,!0)&&T.top>v&&(y=d[m-1])}return y}function ur(e,r,s,a,d,p,v){var m=re(e,r,a,v),y=m.begin,C=m.end;/\s/.test(r.text.charAt(C-1))&&C--;for(var T=null,I=null,V=0;V<d.length;V++){var F=d[V];if(!(F.from>=C||F.to<=y)){var K=F.level!=1,ne=ei(e,a,K?Math.min(C,F.to)-1:Math.max(y,F.from)).right,he=ne<p?p-ne+1e9:ne-p;(!T||I>he)&&(T=F,I=he)}}return T||(T=d[d.length-1]),T.from<y&&(T={from:y,to:T.to,level:T.level}),T.to>C&&(T={from:T.from,to:C,level:T.level}),T}var wt;function Xi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wt==null){wt=k("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)wt.appendChild(document.createTextNode("x")),wt.appendChild(k("br"));wt.appendChild(document.createTextNode("x"))}$(e.measure,wt);var s=wt.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),Q(e.measure),s||1}function fa(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=k("span","xxxxxxxxxx"),s=k("pre",[r],"CodeMirror-line-like");$(e.measure,s);var a=r.getBoundingClientRect(),d=(a.right-a.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function on(e){for(var r=e.display,s={},a={},d=r.gutters.clientLeft,p=r.gutters.firstChild,v=0;p;p=p.nextSibling,++v){var m=e.display.gutterSpecs[v].className;s[m]=p.offsetLeft+p.clientLeft+d,a[m]=p.clientWidth}return{fixedPos:ha(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function ha(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Tc(e){var r=Xi(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/fa(e.display)-3);return function(d){if(Ut(e.doc,d))return 0;var p=0;if(d.widgets)for(var v=0;v<d.widgets.length;v++)d.widgets[v].height&&(p+=d.widgets[v].height);return s?p+(Math.ceil(d.text.length/a)||1)*r:p+r}}function Ji(e){var r=e.doc,s=Tc(e);r.iter(function(a){var d=s(a);d!=a.height&&tn(a,d)})}function ti(e,r,s,a){var d=e.display;if(!s&&Wi(r).getAttribute("cm-not-content")=="true")return null;var p,v,m=d.lineSpace.getBoundingClientRect();try{p=r.clientX-m.left,v=r.clientY-m.top}catch{return null}var y=W(e,p,v),C;if(a&&y.xRel>0&&(C=Ee(e.doc,y.line).text).length==y.ch){var T=zt(C,C.length,e.options.tabSize)-C.length;y=ae(y.line,Math.max(0,Math.round((p-bl(e.display).left)/fa(e.display))-T))}return y}function ri(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function ot(e,r,s,a){r==null&&(r=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var d=e.display;if(a&&s<d.viewTo&&(d.updateLineNumbers==null||d.updateLineNumbers>r)&&(d.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=d.viewTo)Jn&&pl(e.doc,r)<d.viewTo&&xi(e);else if(s<=d.viewFrom)Jn&&hc(e.doc,s+a)>d.viewFrom?xi(e):(d.viewFrom+=a,d.viewTo+=a);else if(r<=d.viewFrom&&s>=d.viewTo)xi(e);else if(r<=d.viewFrom){var p=Oo(e,s,s+a,1);p?(d.view=d.view.slice(p.index),d.viewFrom=p.lineN,d.viewTo+=a):xi(e)}else if(s>=d.viewTo){var v=Oo(e,r,r,-1);v?(d.view=d.view.slice(0,v.index),d.viewTo=v.lineN):xi(e)}else{var m=Oo(e,r,r,-1),y=Oo(e,s,s+a,1);m&&y?(d.view=d.view.slice(0,m.index).concat(ca(e,m.lineN,y.lineN)).concat(d.view.slice(y.index)),d.viewTo+=a):xi(e)}var C=d.externalMeasured;C&&(s<C.lineN?C.lineN+=a:r<C.lineN+C.size&&(d.externalMeasured=null))}function Qi(e,r,s){e.curOp.viewChanged=!0;var a=e.display,d=e.display.externalMeasured;if(d&&r>=d.lineN&&r<d.lineN+d.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var p=a.view[ri(e,r)];if(p.node!=null){var v=p.changes||(p.changes=[]);Le(v,s)==-1&&v.push(s)}}}function xi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Oo(e,r,s,a){var d=ri(e,r),p,v=e.display.view;if(!Jn||s==e.doc.first+e.doc.size)return{index:d,lineN:s};for(var m=e.display.viewFrom,y=0;y<d;y++)m+=v[y].size;if(m!=r){if(a>0){if(d==v.length-1)return null;p=m+v[d].size-r,d++}else p=m-r;r+=p,s+=p}for(;pl(e.doc,s)!=s;){if(d==(a<0?0:v.length-1))return null;s+=a*v[d-(a<0?1:0)].size,d+=a}return{index:d,lineN:s}}function jd(e,r,s){var a=e.display,d=a.view;d.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=ca(e,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=ca(e,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(ri(e,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(ca(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,ri(e,s)))),a.viewTo=s}function kc(e){for(var r=e.display.view,s=0,a=0;a<r.length;a++){var d=r[a];!d.hidden&&(!d.node||d.changes)&&++s}return s}function ds(e){e.display.input.showSelection(e.display.input.prepareSelection())}function fs(e,r){r===void 0&&(r=!0);for(var s=e.doc,a={},d=a.cursors=document.createDocumentFragment(),p=a.selection=document.createDocumentFragment(),v=0;v<s.sel.ranges.length;v++)if(!(!r&&v==s.sel.primIndex)){var m=s.sel.ranges[v];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&zi(e,m.head,d),y||Oc(e,m,p)}}return a}function zi(e,r,s){var a=Wn(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),d=s.appendChild(k("div"," ","CodeMirror-cursor"));if(d.style.left=a.left+"px",d.style.top=a.top+"px",d.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var p=zl(e,r,"div",null,null);d.style.width=Math.max(0,p.right-p.left)+"px"}if(a.other){var v=s.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));v.style.display="",v.style.left=a.other.left+"px",v.style.top=a.other.top+"px",v.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function Eo(e,r){return e.top-r.top||e.left-r.left}function Oc(e,r,s){var a=e.display,d=e.doc,p=document.createDocumentFragment(),v=bl(e.display),m=v.left,y=Math.max(a.sizerWidth,ji(e)-a.sizer.offsetLeft)-v.right,C=d.direction=="ltr";function T(ye,Se,Fe,Pe){Se<0&&(Se=0),Se=Math.round(Se),Pe=Math.round(Pe),p.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+ye+`px;
2949
2973
  top: `+Se+"px; width: "+(Fe==null?y-ye:Fe)+`px;
2950
- height: `+(Pe-Se)+"px"))}function I(ye,Se,Fe){var Pe=Ee(d,ye),ut=Pe.text.length,It,rr;function Nt(Xt,Cr){return zl(e,ae(ye,Xt),"div",Pe,Cr)}function Fr(Xt,Cr,cr){var $t=j(e,Pe,null,Xt),Ft=Cr=="ltr"==(cr=="after")?"left":"right",jt=cr=="after"?$t.begin:$t.end-(/\s/.test(Pe.text.charAt($t.end-1))?2:1);return Nt(jt,Ft)[Ft]}var Br=Dr(Pe,d.direction);return Pn(Br,Se||0,Fe==null?ut:Fe,function(Xt,Cr,cr,$t){var Ft=cr=="ltr",jt=Nt(Xt,Ft?"left":"right"),Vr=Nt(Cr-1,Ft?"right":"left"),Da=Se==null&&Xt==0,go=Fe==null&&Cr==ut,Ar=$t==0,si=!Br||$t==Br.length-1;if(Vr.top-jt.top<=3){var dr=(C?Da:go)&&Ar,gu=(C?go:Da)&&si,Ti=dr?m:(Ft?jt:Vr).left,Wo=gu?y:(Ft?Vr:jt).right;T(Ti,jt.top,Wo-Ti,jt.bottom)}else{var Zo,Wr,Na,Jl;Ft?(Zo=C&&Da&&Ar?m:jt.left,Wr=C?y:Fr(Xt,cr,"before"),Na=C?m:Fr(Cr,cr,"after"),Jl=C&&go&&si?y:Vr.right):(Zo=C?Fr(Xt,cr,"before"):m,Wr=!C&&Da&&Ar?y:jt.right,Na=!C&&go&&si?m:Vr.left,Jl=C?Fr(Cr,cr,"after"):y),T(Zo,jt.top,Wr-Zo,jt.bottom),jt.bottom<Vr.top&&T(m,jt.bottom,null,Vr.top),T(Na,Vr.top,Jl-Na,Vr.bottom)}(!It||Eo(jt,It)<0)&&(It=jt),Eo(Vr,It)<0&&(It=Vr),(!rr||Eo(jt,rr)<0)&&(rr=jt),Eo(Vr,rr)<0&&(rr=Vr)}),{start:It,end:rr}}var V=r.from(),F=r.to();if(V.line==F.line)I(V.line,V.ch,F.ch);else{var K=Ee(d,V.line),ne=Ee(d,F.line),he=Qn(K)==Qn(ne),me=I(V.line,V.ch,he?K.text.length+1:null).end,xe=I(F.line,he?0:null,F.ch).start;he&&(me.top<xe.top-2?(T(me.right,me.top,null,me.bottom),T(m,xe.top,xe.left,xe.bottom)):T(me.right,me.top,xe.left-me.right,me.bottom)),me.bottom<xe.top&&T(m,me.bottom,null,xe.top)}s.appendChild(p)}function pa(e){if(e.state.focused){var r=e.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||Io(e),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function H1(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ga(e))}function Ll(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Io(e))},100)}function ga(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(qe(e,"focus",e,r),e.state.focused=!0,et(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),E&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),pa(e))}function Io(e,r){e.state.delayingBlurEvent||(e.state.focused&&(qe(e,"blur",e,r),e.state.focused=!1,ue(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function eo(e){for(var r=e.display,s=r.lineDiv.offsetTop,a=0;a<r.view.length;a++){var d=r.view[a],p=e.options.lineWrapping,v=void 0,m=0;if(!d.hidden){if(z&&S<8){var y=d.node.offsetTop+d.node.offsetHeight;v=y-s,s=y}else{var C=d.node.getBoundingClientRect();v=C.bottom-C.top,!p&&d.text.firstChild&&(m=d.text.firstChild.getBoundingClientRect().right-C.left-1)}var T=d.line.height-v;if((T>.005||T<-.005)&&(tn(d.line,v),to(d.line),d.rest))for(var I=0;I<d.rest.length;I++)to(d.rest[I]);if(m>e.display.sizerWidth){var V=Math.ceil(m/fa(e.display));V>e.display.maxLineLength&&(e.display.maxLineLength=V,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}}function to(e){if(e.widgets)for(var r=0;r<e.widgets.length;++r){var s=e.widgets[r],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function Ao(e,r,s){var a=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;a=Math.floor(a-us(e));var d=s&&s.bottom!=null?s.bottom:a+e.wrapper.clientHeight,p=Fn(r,a),v=Fn(r,d);if(s&&s.ensure){var m=s.ensure.from.line,y=s.ensure.to.line;m<p?(p=m,v=Fn(r,jr(Ee(r,m))+e.wrapper.clientHeight)):Math.min(y,r.lastLine())>=v&&(p=Fn(r,jr(Ee(r,y))-e.wrapper.clientHeight),v=y)}return{from:p,to:Math.max(v,p+1)}}function Kd(e,r){if(!Jt(e,"scrollCursorIntoView")){var s=e.display,a=s.sizer.getBoundingClientRect(),d=null;if(r.top+a.top<0?d=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!ge){var p=k("div","​",null,`position: absolute;
2974
+ height: `+(Pe-Se)+"px"))}function I(ye,Se,Fe){var Pe=Ee(d,ye),ut=Pe.text.length,It,rr;function Nt(Xt,Cr){return zl(e,ae(ye,Xt),"div",Pe,Cr)}function Fr(Xt,Cr,cr){var $t=j(e,Pe,null,Xt),Ft=Cr=="ltr"==(cr=="after")?"left":"right",jt=cr=="after"?$t.begin:$t.end-(/\s/.test(Pe.text.charAt($t.end-1))?2:1);return Nt(jt,Ft)[Ft]}var Br=Dr(Pe,d.direction);return Pn(Br,Se||0,Fe==null?ut:Fe,function(Xt,Cr,cr,$t){var Ft=cr=="ltr",jt=Nt(Xt,Ft?"left":"right"),Vr=Nt(Cr-1,Ft?"right":"left"),Da=Se==null&&Xt==0,go=Fe==null&&Cr==ut,Ar=$t==0,si=!Br||$t==Br.length-1;if(Vr.top-jt.top<=3){var dr=(C?Da:go)&&Ar,gu=(C?go:Da)&&si,Ti=dr?m:(Ft?jt:Vr).left,Wo=gu?y:(Ft?Vr:jt).right;T(Ti,jt.top,Wo-Ti,jt.bottom)}else{var Zo,Wr,Na,Jl;Ft?(Zo=C&&Da&&Ar?m:jt.left,Wr=C?y:Fr(Xt,cr,"before"),Na=C?m:Fr(Cr,cr,"after"),Jl=C&&go&&si?y:Vr.right):(Zo=C?Fr(Xt,cr,"before"):m,Wr=!C&&Da&&Ar?y:jt.right,Na=!C&&go&&si?m:Vr.left,Jl=C?Fr(Cr,cr,"after"):y),T(Zo,jt.top,Wr-Zo,jt.bottom),jt.bottom<Vr.top&&T(m,jt.bottom,null,Vr.top),T(Na,Vr.top,Jl-Na,Vr.bottom)}(!It||Eo(jt,It)<0)&&(It=jt),Eo(Vr,It)<0&&(It=Vr),(!rr||Eo(jt,rr)<0)&&(rr=jt),Eo(Vr,rr)<0&&(rr=Vr)}),{start:It,end:rr}}var V=r.from(),F=r.to();if(V.line==F.line)I(V.line,V.ch,F.ch);else{var K=Ee(d,V.line),ne=Ee(d,F.line),he=Qn(K)==Qn(ne),me=I(V.line,V.ch,he?K.text.length+1:null).end,xe=I(F.line,he?0:null,F.ch).start;he&&(me.top<xe.top-2?(T(me.right,me.top,null,me.bottom),T(m,xe.top,xe.left,xe.bottom)):T(me.right,me.top,xe.left-me.right,me.bottom)),me.bottom<xe.top&&T(m,me.bottom,null,xe.top)}s.appendChild(p)}function pa(e){if(e.state.focused){var r=e.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||Io(e),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function H1(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ga(e))}function Ll(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Io(e))},100)}function ga(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(qe(e,"focus",e,r),e.state.focused=!0,et(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),E&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),pa(e))}function Io(e,r){e.state.delayingBlurEvent||(e.state.focused&&(qe(e,"blur",e,r),e.state.focused=!1,ue(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function eo(e){for(var r=e.display,s=r.lineDiv.offsetTop,a=0;a<r.view.length;a++){var d=r.view[a],p=e.options.lineWrapping,v=void 0,m=0;if(!d.hidden){if(z&&S<8){var y=d.node.offsetTop+d.node.offsetHeight;v=y-s,s=y}else{var C=d.node.getBoundingClientRect();v=C.bottom-C.top,!p&&d.text.firstChild&&(m=d.text.firstChild.getBoundingClientRect().right-C.left-1)}var T=d.line.height-v;if((T>.005||T<-.005)&&(tn(d.line,v),to(d.line),d.rest))for(var I=0;I<d.rest.length;I++)to(d.rest[I]);if(m>e.display.sizerWidth){var V=Math.ceil(m/fa(e.display));V>e.display.maxLineLength&&(e.display.maxLineLength=V,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}}function to(e){if(e.widgets)for(var r=0;r<e.widgets.length;++r){var s=e.widgets[r],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function Ao(e,r,s){var a=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;a=Math.floor(a-us(e));var d=s&&s.bottom!=null?s.bottom:a+e.wrapper.clientHeight,p=Fn(r,a),v=Fn(r,d);if(s&&s.ensure){var m=s.ensure.from.line,y=s.ensure.to.line;m<p?(p=m,v=Fn(r,Kr(Ee(r,m))+e.wrapper.clientHeight)):Math.min(y,r.lastLine())>=v&&(p=Fn(r,Kr(Ee(r,y))-e.wrapper.clientHeight),v=y)}return{from:p,to:Math.max(v,p+1)}}function Kd(e,r){if(!Jt(e,"scrollCursorIntoView")){var s=e.display,a=s.sizer.getBoundingClientRect(),d=null;if(r.top+a.top<0?d=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!ge){var p=k("div","​",null,`position: absolute;
2951
2975
  top: `+(r.top-s.viewOffset-us(e.display))+`px;
2952
2976
  height: `+(r.bottom-r.top+nn(e)+s.barHeight)+`px;
2953
- left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(p),p.scrollIntoView(d),e.display.lineSpace.removeChild(p)}}}function Yd(e,r,s,a){a==null&&(a=0);var d;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?ae(r.line,r.ch+1,"before"):r,r=r.ch?ae(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var p=0;p<5;p++){var v=!1,m=Wn(e,r),y=!s||s==r?m:Wn(e,s);d={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-a,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+a};var C=va(e,d),T=e.doc.scrollTop,I=e.doc.scrollLeft;if(C.scrollTop!=null&&(Gt(e,C.scrollTop),Math.abs(e.doc.scrollTop-T)>1&&(v=!0)),C.scrollLeft!=null&&($o(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-I)>1&&(v=!0)),!v)break}return d}function Xd(e,r){var s=va(e,r);s.scrollTop!=null&&Gt(e,s.scrollTop),s.scrollLeft!=null&&$o(e,s.scrollLeft)}function va(e,r){var s=e.display,a=Xi(e.display);r.top<0&&(r.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,p=ml(e),v={};r.bottom-r.top>p&&(r.bottom=r.top+p);var m=e.doc.height+Kr(s),y=r.top<a,C=r.bottom>m-a;if(r.top<d)v.scrollTop=y?0:r.top;else if(r.bottom>d+p){var T=Math.min(r.top,(C?m:r.bottom)-p);T!=d&&(v.scrollTop=T)}var I=e.options.fixedGutter?0:s.gutters.offsetWidth,V=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-I,F=ji(e)-s.gutters.offsetWidth,K=r.right-r.left>F;return K&&(r.right=r.left+F),r.left<10?v.scrollLeft=0:r.left<V?v.scrollLeft=Math.max(0,r.left+I-(K?0:10)):r.right>F+V-3&&(v.scrollLeft=r.right+(K?0:10)-F),v}function ba(e,r){r!=null&&(Sl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function ro(e){Sl(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function hs(e,r,s){(r!=null||s!=null)&&Sl(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function Ec(e,r){Sl(e),e.curOp.scrollToPos=r}function Sl(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=_c(e,r.from),a=_c(e,r.to);Ic(e,s,a,r.margin)}}function Ic(e,r,s,a){var d=va(e,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});hs(e,d.scrollLeft,d.scrollTop)}function Gt(e,r){Math.abs(e.doc.scrollTop-r)<2||(c||B1(e,{top:r}),Tr(e,r,!0),c&&B1(e),ii(e,100))}function Tr(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function $o(e,r,s,a){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!a)&&(e.doc.scrollLeft=r,Ac(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function ps(e){var r=e.display,s=r.gutters.offsetWidth,a=Math.round(e.doc.height+Kr(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+nn(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var no=function(e,r,s){this.cm=s;var a=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=d.tabIndex=-1,e(a),e(d),Ve(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),Ve(d,"scroll",function(){d.clientWidth&&r(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,z&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};no.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var d=e.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var p=e.viewWidth-e.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+p)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},no.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},no.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},no.prototype.zeroWidthHack=function(){var e=ve&&!pe?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new rt,this.disableVert=new rt},no.prototype.enableZeroWidthBar=function(e,r,s){e.style.pointerEvents="auto";function a(){var d=e.getBoundingClientRect(),p=s=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);p!=e?e.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},no.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var gs=function(){};gs.prototype.update=function(){return{bottom:0,right:0}},gs.prototype.setScrollLeft=function(){},gs.prototype.setScrollTop=function(){},gs.prototype.clear=function(){};function io(e,r){r||(r=ps(e));var s=e.display.barWidth,a=e.display.barHeight;ma(e,r);for(var d=0;d<4&&s!=e.display.barWidth||a!=e.display.barHeight;d++)s!=e.display.barWidth&&e.options.lineWrapping&&eo(e),ma(e,ps(e)),s=e.display.barWidth,a=e.display.barHeight}function ma(e,r){var s=e.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Ml={native:no,null:gs};function Po(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ue(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ml[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),Ve(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?$o(e,r):Gt(e,r)},e),e.display.scrollbars.addClass&&et(e.display.wrapper,e.display.scrollbars.addClass)}var vs=0;function Zn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++vs,markArrays:null},qi(e.curOp)}function ni(e){var r=e.curOp;r&&Wd(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;ya(s)})}function ya(e){for(var r=e.ops,s=0;s<r.length;s++)Jd(r[s]);for(var a=0;a<r.length;a++)Qd(r[a]);for(var d=0;d<r.length;d++)ef(r[d]);for(var p=0;p<r.length;p++)tf(r[p]);for(var v=0;v<r.length;v++)rf(r[v])}function Jd(e){var r=e.cm,s=r.display;vt(r),e.updateMaxLine&&ss(r),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Yr(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Qd(e){e.updatedDisplay=e.mustUpdate&&F1(e.cm,e.update)}function ef(e){var r=e.cm,s=r.display;e.updatedDisplay&&eo(r),e.barMeasure=ps(r),s.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=wc(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+nn(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-ji(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function tf(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&$o(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=e.focus&&e.focus==Ae();e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=r.doc.height)&&io(r,e.barMeasure),e.updatedDisplay&&W1(r,e.barMeasure),e.selectionChanged&&pa(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),s&&H1(e.cm)}function rf(e){var r=e.cm,s=r.display,a=r.doc;if(e.updatedDisplay&&oo(r,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Tr(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&$o(r,e.scrollLeft,!0,!0),e.scrollToPos){var d=Yd(r,we(a,e.scrollToPos.from),we(a,e.scrollToPos.to),e.scrollToPos.margin);Kd(r,d)}var p=e.maybeHiddenMarkers,v=e.maybeUnhiddenMarkers;if(p)for(var m=0;m<p.length;++m)p[m].lines.length||qe(p[m],"hide");if(v)for(var y=0;y<v.length;++y)v[y].lines.length&&qe(v[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&qe(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function kr(e,r){if(e.curOp)return r();Zn(e);try{return r()}finally{ni(e)}}function qt(e,r){return function(){if(e.curOp)return r.apply(e,arguments);Zn(e);try{return r.apply(e,arguments)}finally{ni(e)}}}function Or(e){return function(){if(this.curOp)return e.apply(this,arguments);Zn(this);try{return e.apply(this,arguments)}finally{ni(this)}}}function M(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);Zn(r);try{return e.apply(this,arguments)}finally{ni(r)}}}function ii(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,or(_l,e))}function _l(e){var r=e.doc;if(!(r.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=ua(e,r.highlightFrontier),d=[];r.iter(a.line,Math.min(r.first+r.size,e.display.viewTo+500),function(p){if(a.line>=e.display.viewFrom){var v=p.styles,m=p.text.length>e.options.maxHighlightLength?cn(r.mode,a.state):null,y=nc(e,p,a,!0);m&&(a.state=m),p.styles=y.styles;var C=p.styleClasses,T=y.classes;T?p.styleClasses=T:C&&(p.styleClasses=null);for(var I=!v||v.length!=p.styles.length||C!=T&&(!C||!T||C.bgClass!=T.bgClass||C.textClass!=T.textClass),V=0;!I&&V<v.length;++V)I=v[V]!=p.styles[V];I&&d.push(a.line),p.stateAfter=a.save(),a.nextLine()}else p.text.length<=e.options.maxHighlightLength&&ns(e,p.text,a),p.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ii(e,e.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),d.length&&kr(e,function(){for(var p=0;p<d.length;p++)Qi(e,d[p],"text")})}}var Yr=function(e,r,s){var a=e.display;this.viewport=r,this.visible=Ao(a,e.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=ji(e),this.force=s,this.dims=on(e),this.events=[]};Yr.prototype.signal=function(e,r){gr(e,r)&&this.events.push(arguments)},Yr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)qe.apply(null,this.events[e])};function vt(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=nn(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=nn(e)+"px",r.scrollbarsClipped=!0)}function nf(e){if(e.hasFocus())return null;var r=Ae();if(!r||!ce(e.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ce(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function of(e){if(!(!e||!e.activeElt||e.activeElt==Ae())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ce(document.body,e.anchorNode)&&ce(document.body,e.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(e.focusNode,e.focusOffset)}}function F1(e,r){var s=e.display,a=e.doc;if(r.editorIsHidden)return xi(e),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&kc(e)==0)return!1;oi(e)&&(xi(e),r.dims=on(e));var d=a.first+a.size,p=Math.max(r.visible.from-e.options.viewportMargin,a.first),v=Math.min(d,r.visible.to+e.options.viewportMargin);s.viewFrom<p&&p-s.viewFrom<20&&(p=Math.max(a.first,s.viewFrom)),s.viewTo>v&&s.viewTo-v<20&&(v=Math.min(d,s.viewTo)),Jn&&(p=pl(e.doc,p),v=hc(e.doc,v));var m=p!=s.viewFrom||v!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;jd(e,p,v),s.viewOffset=jr(Ee(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=kc(e);if(!m&&y==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=nf(e);return y>4&&(s.lineDiv.style.display="none"),af(e,s.updateLineNumbers,r.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,of(C),Q(s.cursorDiv),Q(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,ii(e,400)),s.updateLineNumbers=null,!0}function oo(e,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||r.oldDisplayWidth==ji(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Kr(e.display)-ml(e),s.top)}),r.visible=Ao(e.display,e.doc,s),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else a&&(r.visible=Ao(e.display,e.doc,s));if(!F1(e,r))break;eo(e);var d=ps(e);ds(e),io(e,d),W1(e,d),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function B1(e,r){var s=new Yr(e,r);if(F1(e,s)){eo(e),oo(e,s);var a=ps(e);ds(e),io(e,a),W1(e,a),s.finish()}}function af(e,r,s){var a=e.display,d=e.options.lineNumbers,p=a.lineDiv,v=p.firstChild;function m(K){var ne=K.nextSibling;return E&&ve&&e.display.currentWheelTarget==K?K.style.display="none":K.parentNode.removeChild(K),ne}for(var y=a.view,C=a.viewFrom,T=0;T<y.length;T++){var I=y[T];if(!I.hidden)if(!I.node||I.node.parentNode!=p){var V=P1(e,I,C,s);p.insertBefore(V,v)}else{for(;v!=I.node;)v=m(v);var F=d&&r!=null&&r<=C&&I.lineNumber;I.changes&&(Le(I.changes,"gutter")>-1&&(F=!1),mc(e,I,C,s)),F&&(Q(I.lineNumber),I.lineNumber.appendChild(document.createTextNode(la(e.options,C)))),v=I.node.nextSibling}C+=I.size}for(;v;)v=m(v)}function V1(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",lr(e,"gutterChanged",e)}function W1(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+nn(e)+"px"}function Ac(e){var r=e.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var a=ha(r)-r.scroller.scrollLeft+e.doc.scrollLeft,d=r.gutters.offsetWidth,p=a+"px",v=0;v<s.length;v++)if(!s[v].hidden){e.options.fixedGutter&&(s[v].gutter&&(s[v].gutter.style.left=p),s[v].gutterBackground&&(s[v].gutterBackground.style.left=p));var m=s[v].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=p}e.options.fixedGutter&&(r.gutters.style.left=a+d+"px")}}function oi(e){if(!e.options.lineNumbers)return!1;var r=e.doc,s=la(e.options,r.first+r.size-1),a=e.display;if(s.length!=a.lineNumChars){var d=a.measure.appendChild(k("div",[k("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),p=d.firstChild.offsetWidth,v=d.offsetWidth-p;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(p,a.lineGutter.offsetWidth-v)+1,a.lineNumWidth=a.lineNumInnerWidth+v,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",V1(e.display),!0}return!1}function Z1(e,r){for(var s=[],a=!1,d=0;d<e.length;d++){var p=e[d],v=null;if(typeof p!="string"&&(v=p.style,p=p.className),p=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:p,style:v})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function $c(e){var r=e.gutters,s=e.gutterSpecs;Q(r),e.lineGutter=null;for(var a=0;a<s.length;++a){var d=s[a],p=d.className,v=d.style,m=r.appendChild(k("div",null,"CodeMirror-gutter "+p));v&&(m.style.cssText=v),p=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",V1(e)}function bs(e){$c(e.display),ot(e),Ac(e)}function sf(e,r,s,a){var d=this;this.input=s,d.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),d.scrollbarFiller.setAttribute("cm-not-content","true"),d.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),d.gutterFiller.setAttribute("cm-not-content","true"),d.lineDiv=O("div",null,"CodeMirror-code"),d.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),d.cursorDiv=k("div",null,"CodeMirror-cursors"),d.measure=k("div",null,"CodeMirror-measure"),d.lineMeasure=k("div",null,"CodeMirror-measure"),d.lineSpace=O("div",[d.measure,d.lineMeasure,d.selectionDiv,d.cursorDiv,d.lineDiv],null,"position: relative; outline: none");var p=O("div",[d.lineSpace],"CodeMirror-lines");d.mover=k("div",[p],null,"position: relative"),d.sizer=k("div",[d.mover],"CodeMirror-sizer"),d.sizerWidth=null,d.heightForcer=k("div",null,null,"position: absolute; height: "+Ne+"px; width: 1px;"),d.gutters=k("div",null,"CodeMirror-gutters"),d.lineGutter=null,d.scroller=k("div",[d.sizer,d.heightForcer,d.gutters],"CodeMirror-scroll"),d.scroller.setAttribute("tabIndex","-1"),d.wrapper=k("div",[d.scrollbarFiller,d.gutterFiller,d.scroller],"CodeMirror"),d.wrapper.setAttribute("translate","no"),z&&S<8&&(d.gutters.style.zIndex=-1,d.scroller.style.paddingRight=0),!E&&!(c&&be)&&(d.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(d.wrapper):e(d.wrapper)),d.viewFrom=d.viewTo=r.first,d.reportedViewFrom=d.reportedViewTo=r.first,d.view=[],d.renderedView=null,d.externalMeasured=null,d.viewOffset=0,d.lastWrapHeight=d.lastWrapWidth=0,d.updateLineNumbers=null,d.nativeBarWidth=d.barHeight=d.barWidth=0,d.scrollbarsClipped=!1,d.lineNumWidth=d.lineNumInnerWidth=d.lineNumChars=null,d.alignWidgets=!1,d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.maxLine=null,d.maxLineLength=0,d.maxLineChanged=!1,d.wheelDX=d.wheelDY=d.wheelStartX=d.wheelStartY=null,d.shift=!1,d.selForContextMenu=null,d.activeTouch=null,d.gutterSpecs=Z1(a.gutters,a.lineNumbers),$c(d),s.init(d)}var Tl=0,Qt=null;z?Qt=-.53:c?Qt=15:B?Qt=-.7:J&&(Qt=-1/3);function Pc(e){var r=e.wheelDeltaX,s=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:r,y:s}}function lf(e){var r=Pc(e);return r.x*=Qt,r.y*=Qt,r}function Dc(e,r){var s=Pc(r),a=s.x,d=s.y,p=e.display,v=p.scroller,m=v.scrollWidth>v.clientWidth,y=v.scrollHeight>v.clientHeight;if(a&&m||d&&y){if(d&&ve&&E){e:for(var C=r.target,T=p.view;C!=v;C=C.parentNode)for(var I=0;I<T.length;I++)if(T[I].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!c&&!H&&Qt!=null){d&&y&&Gt(e,Math.max(0,v.scrollTop+d*Qt)),$o(e,Math.max(0,v.scrollLeft+a*Qt)),(!d||d&&y)&&vr(r),p.wheelStartX=null;return}if(d&&Qt!=null){var V=d*Qt,F=e.doc.scrollTop,K=F+p.wrapper.clientHeight;V<0?F=Math.max(0,F+V-50):K=Math.min(e.doc.height,K+V+50),B1(e,{top:F,bottom:K})}Tl<20&&(p.wheelStartX==null?(p.wheelStartX=v.scrollLeft,p.wheelStartY=v.scrollTop,p.wheelDX=a,p.wheelDY=d,setTimeout(function(){if(p.wheelStartX!=null){var ne=v.scrollLeft-p.wheelStartX,he=v.scrollTop-p.wheelStartY,me=he&&p.wheelDY&&he/p.wheelDY||ne&&p.wheelDX&&ne/p.wheelDX;p.wheelStartX=p.wheelStartY=null,me&&(Qt=(Qt*Tl+me)/(Tl+1),++Tl)}},200)):(p.wheelDX+=a,p.wheelDY+=d))}}var hn=function(e,r){this.ranges=e,this.primIndex=r};hn.prototype.primary=function(){return this.ranges[this.primIndex]},hn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=e.ranges[r];if(!A(s.anchor,a.anchor)||!A(s.head,a.head))return!1}return!0},hn.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new St(te(this.ranges[r].anchor),te(this.ranges[r].head));return new hn(e,this.primIndex)},hn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},hn.prototype.contains=function(e,r){r||(r=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(x(r,a.from())>=0&&x(e,a.to())<=0)return s}return-1};var St=function(e,r){this.anchor=e,this.head=r};St.prototype.from=function(){return Ke(this.anchor,this.head)},St.prototype.to=function(){return de(this.anchor,this.head)},St.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Er(e,r,s){var a=e&&e.options.selectionsMayTouch,d=r[s];r.sort(function(V,F){return x(V.from(),F.from())}),s=Le(r,d);for(var p=1;p<r.length;p++){var v=r[p],m=r[p-1],y=x(m.to(),v.from());if(a&&!v.empty()?y>0:y>=0){var C=Ke(m.from(),v.from()),T=de(m.to(),v.to()),I=m.empty()?v.from()==v.head:m.from()==m.head;p<=s&&--s,r.splice(--p,2,new St(I?T:C,I?C:T))}}return new hn(r,s)}function ao(e,r){return new hn([new St(e,r||e)],0)}function so(e){return e.text?ae(e.from.line+e.text.length-1,Qe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function zn(e,r){if(x(e,r.from)<0)return e;if(x(e,r.to)<=0)return so(r);var s=e.line+r.text.length-(r.to.line-r.from.line)-1,a=e.ch;return e.line==r.to.line&&(a+=so(r).ch-r.to.ch),ae(s,a)}function U1(e,r){for(var s=[],a=0;a<e.sel.ranges.length;a++){var d=e.sel.ranges[a];s.push(new St(zn(d.anchor,r),zn(d.head,r)))}return Er(e.cm,s,e.sel.primIndex)}function Nc(e,r,s){return e.line==r.line?ae(s.line,e.ch-r.ch+s.ch):ae(s.line+(e.line-r.line),e.ch)}function uf(e,r,s){for(var a=[],d=ae(e.first,0),p=d,v=0;v<r.length;v++){var m=r[v],y=Nc(m.from,d,p),C=Nc(so(m),d,p);if(d=m.to,p=C,s=="around"){var T=e.sel.ranges[v],I=x(T.head,T.anchor)<0;a[v]=new St(I?C:y,I?y:C)}else a[v]=new St(y,y)}return new hn(a,e.sel.primIndex)}function G1(e){e.doc.mode=sa(e.options,e.doc.modeOption),ms(e)}function ms(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ii(e,100),e.state.modeGen++,e.curOp&&ot(e)}function q1(e,r){return r.from.ch==0&&r.to.ch==0&&Qe(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function kl(e,r,s,a){function d(xe){return s?s[xe]:null}function p(xe,ye,Se){pc(xe,ye,Se,a),lr(xe,"change",xe,r)}function v(xe,ye){for(var Se=[],Fe=xe;Fe<ye;++Fe)Se.push(new _r(C[Fe],d(Fe),a));return Se}var m=r.from,y=r.to,C=r.text,T=Ee(e,m.line),I=Ee(e,y.line),V=Qe(C),F=d(C.length-1),K=y.line-m.line;if(r.full)e.insert(0,v(0,C.length)),e.remove(C.length,e.size-C.length);else if(q1(e,r)){var ne=v(0,C.length-1);p(I,I.text,F),K&&e.remove(m.line,K),ne.length&&e.insert(m.line,ne)}else if(T==I)if(C.length==1)p(T,T.text.slice(0,m.ch)+V+T.text.slice(y.ch),F);else{var he=v(1,C.length-1);he.push(new _r(V+T.text.slice(y.ch),F,a)),p(T,T.text.slice(0,m.ch)+C[0],d(0)),e.insert(m.line+1,he)}else if(C.length==1)p(T,T.text.slice(0,m.ch)+C[0]+I.text.slice(y.ch),d(0)),e.remove(m.line+1,K);else{p(T,T.text.slice(0,m.ch)+C[0],d(0)),p(I,V+I.text.slice(y.ch),F);var me=v(1,C.length-1);K>1&&e.remove(m.line+1,K-1),e.insert(m.line+1,me)}lr(e,"change",e,r)}function lo(e,r,s){function a(d,p,v){if(d.linked)for(var m=0;m<d.linked.length;++m){var y=d.linked[m];if(y.doc!=p){var C=v&&y.sharedHist;s&&!C||(r(y.doc,C),a(y.doc,d,C))}}}a(e,null,!0)}function Rc(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,Ji(e),G1(e),Ol(e),e.options.direction=r.direction,e.options.lineWrapping||ss(e),e.options.mode=r.modeOption,ot(e)}function Ol(e){(e.doc.direction=="rtl"?et:ue)(e.display.lineDiv,"CodeMirror-rtl")}function ys(e){kr(e,function(){Ol(e),ot(e)})}function Do(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function j1(e,r){var s={from:te(r.from),to:so(r),text:dn(e,r.from,r.to)};return Hc(e,s,r.from.line,r.to.line+1),lo(e,function(a){return Hc(a,s,r.from.line,r.to.line+1)},!0),s}function K1(e){for(;e.length;){var r=Qe(e);if(r.ranges)e.pop();else break}}function cf(e,r){if(r)return K1(e.done),Qe(e.done);if(e.done.length&&!Qe(e.done).ranges)return Qe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Qe(e.done)}function ai(e,r,s,a){var d=e.history;d.undone.length=0;var p=+new Date,v,m;if((d.lastOp==a||d.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&d.lastModTime>p-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(v=cf(d,d.lastOp==a)))m=Qe(v.changes),x(r.from,r.to)==0&&x(r.from,m.to)==0?m.to=so(r):v.changes.push(j1(e,r));else{var y=Qe(d.done);for((!y||!y.ranges)&&Xr(e.sel,d.done),v={changes:[j1(e,r)],generation:d.generation},d.done.push(v);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(s),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=p,d.lastOp=d.lastSelOp=a,d.lastOrigin=d.lastSelOrigin=r.origin,m||qe(e,"historyAdded")}function Y1(e,r,s,a){var d=r.charAt(0);return d=="*"||d=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function No(e,r,s,a){var d=e.history,p=a&&a.origin;s==d.lastSelOp||p&&d.lastSelOrigin==p&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==p||Y1(e,p,Qe(d.done),r))?d.done[d.done.length-1]=r:Xr(r,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=p,d.lastSelOp=s,a&&a.clearRedo!==!1&&K1(d.undone)}function Xr(e,r){var s=Qe(r);s&&s.ranges&&s.equals(e)||r.push(e)}function Hc(e,r,s,a){var d=r["spans_"+e.id],p=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(v){v.markedSpans&&((d||(d=r["spans_"+e.id]={}))[p]=v.markedSpans),++p})}function Fc(e){if(!e)return null;for(var r,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?r||(r=e.slice(0,s)):r&&r.push(e[s]);return r?r.length?r:null:e}function Bc(e,r){var s=r["spans_"+e.id];if(!s)return null;for(var a=[],d=0;d<r.text.length;++d)a.push(Fc(s[d]));return a}function Ca(e,r){var s=Bc(e,r),a=M1(e,r);if(!s)return a;if(!a)return s;for(var d=0;d<s.length;++d){var p=s[d],v=a[d];if(p&&v)e:for(var m=0;m<v.length;++m){for(var y=v[m],C=0;C<p.length;++C)if(p[C].marker==y.marker)continue e;p.push(y)}else v&&(s[d]=v)}return s}function pn(e,r,s){for(var a=[],d=0;d<e.length;++d){var p=e[d];if(p.ranges){a.push(s?hn.prototype.deepCopy.call(p):p);continue}var v=p.changes,m=[];a.push({changes:m});for(var y=0;y<v.length;++y){var C=v[y],T=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),r)for(var I in C)(T=I.match(/^spans_(\d+)$/))&&Le(r,Number(T[1]))>-1&&(Qe(m)[I]=C[I],delete C[I])}}return a}function El(e,r,s,a){if(a){var d=e.anchor;if(s){var p=x(r,d)<0;p!=x(s,d)<0?(d=r,r=s):p!=x(r,s)<0&&(r=s)}return new St(d,r)}else return new St(s||r,r)}function Il(e,r,s,a,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),br(e,new hn([El(e.sel.primary(),r,s,d)],0),a)}function Cs(e,r,s){for(var a=[],d=e.cm&&(e.cm.display.shift||e.extend),p=0;p<e.sel.ranges.length;p++)a[p]=El(e.sel.ranges[p],r[p],null,d);var v=Er(e.cm,a,e.sel.primIndex);br(e,v,s)}function X1(e,r,s,a){var d=e.sel.ranges.slice(0);d[r]=s,br(e,Er(e.cm,d,e.sel.primIndex),a)}function J1(e,r,s,a){br(e,ao(r,s),a)}function Ir(e,r,s){var a={ranges:r.ranges,update:function(d){this.ranges=[];for(var p=0;p<d.length;p++)this.ranges[p]=new St(we(e,d[p].anchor),we(e,d[p].head))},origin:s&&s.origin};return qe(e,"beforeSelectionChange",e,a),e.cm&&qe(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=r.ranges?Er(e.cm,a.ranges,a.ranges.length-1):r}function Al(e,r,s){var a=e.history.done,d=Qe(a);d&&d.ranges?(a[a.length-1]=r,gn(e,r,s)):br(e,r,s)}function br(e,r,s){gn(e,r,s),No(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function gn(e,r,s){(gr(e,"beforeSelectionChange")||e.cm&&gr(e.cm,"beforeSelectionChange"))&&(r=Ir(e,r,s));var a=s&&s.bias||(x(r.primary().head,e.sel.primary().head)<0?-1:1);$l(e,uo(e,r,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ro(e.cm)}function $l(e,r){r.equals(e.sel)||(e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,oa(e.cm)),lr(e,"cursorActivity",e))}function ws(e){$l(e,uo(e,e.sel,null,!1))}function uo(e,r,s,a){for(var d,p=0;p<r.ranges.length;p++){var v=r.ranges[p],m=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[p],y=mr(e,v.anchor,m&&m.anchor,s,a),C=mr(e,v.head,m&&m.head,s,a);(d||y!=v.anchor||C!=v.head)&&(d||(d=r.ranges.slice(0,p)),d[p]=new St(y,C))}return d?Er(e.cm,d,r.primIndex):r}function Ro(e,r,s,a,d){var p=Ee(e,r.line);if(p.markedSpans)for(var v=0;v<p.markedSpans.length;++v){var m=p.markedSpans[v],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,T="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=r.ch:m.from<r.ch))&&(m.to==null||(T?m.to>=r.ch:m.to>r.ch))){if(d&&(qe(y,"beforeCursorEnter"),y.explicitlyCleared))if(p.markedSpans){--v;continue}else break;if(!y.atomic)continue;if(s){var I=y.find(a<0?1:-1),V=void 0;if((a<0?T:C)&&(I=Pl(e,I,-a,I&&I.line==r.line?p:null)),I&&I.line==r.line&&(V=x(I,s))&&(a<0?V<0:V>0))return Ro(e,I,r,a,d)}var F=y.find(a<0?-1:1);return(a<0?C:T)&&(F=Pl(e,F,a,F.line==r.line?p:null)),F?Ro(e,F,r,a,d):null}}return r}function mr(e,r,s,a,d){var p=a||1,v=Ro(e,r,s,p,d)||!d&&Ro(e,r,s,p,!0)||Ro(e,r,s,-p,d)||!d&&Ro(e,r,s,-p,!0);return v||(e.cantEdit=!0,ae(e.first,0))}function Pl(e,r,s,a){return s<0&&r.ch==0?r.line>e.first?we(e,ae(r.line-1)):null:s>0&&r.ch==(a||Ee(e,r.line)).text.length?r.line<e.first+e.size-1?ae(r.line+1,0):null:new ae(r.line,r.ch+s)}function Vc(e){e.setSelection(ae(e.firstLine(),0),ae(e.lastLine()),st)}function Wc(e,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(d,p,v,m){d&&(a.from=we(e,d)),p&&(a.to=we(e,p)),v&&(a.text=v),m!==void 0&&(a.origin=m)}),qe(e,"beforeChange",e,a),e.cm&&qe(e.cm,"beforeChange",e.cm,a),a.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function wa(e,r,s){if(e.cm){if(!e.cm.curOp)return qt(e.cm,wa)(e,r,s);if(e.cm.state.suppressEdits)return}if(!((gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"))&&(r=Wc(e,r,!0),!r))){var a=S1&&!s&&_1(e,r.from,r.to);if(a)for(var d=a.length-1;d>=0;--d)Dl(e,{from:a[d].from,to:a[d].to,text:d?[""]:r.text,origin:r.origin});else Dl(e,r)}}function Dl(e,r){if(!(r.text.length==1&&r.text[0]==""&&x(r.from,r.to)==0)){var s=U1(e,r);ai(e,r,s,e.cm?e.cm.curOp.id:NaN),za(e,r,s,M1(e,r));var a=[];lo(e,function(d,p){!p&&Le(a,d.history)==-1&&(Uc(d.history,r),a.push(d.history)),za(d,r,null,M1(d,r))})}}function Nl(e,r,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var d=e.history,p,v=e.sel,m=r=="undo"?d.done:d.undone,y=r=="undo"?d.undone:d.done,C=0;C<m.length&&(p=m[C],!(s?p.ranges&&!p.equals(e.sel):!p.ranges));C++);if(C!=m.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(p=m.pop(),p.ranges){if(Xr(p,y),s&&!p.equals(e.sel)){br(e,p,{clearRedo:!1});return}v=p}else if(a){m.push(p);return}else break;var T=[];Xr(v,y),y.push({changes:T,generation:d.generation}),d.generation=p.generation||++d.maxGeneration;for(var I=gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"),V=function(ne){var he=p.changes[ne];if(he.origin=r,I&&!Wc(e,he,!1))return m.length=0,{};T.push(j1(e,he));var me=ne?U1(e,he):Qe(m);za(e,he,me,Ca(e,he)),!ne&&e.cm&&e.cm.scrollIntoView({from:he.from,to:so(he)});var xe=[];lo(e,function(ye,Se){!Se&&Le(xe,ye.history)==-1&&(Uc(ye.history,he),xe.push(ye.history)),za(ye,he,null,Ca(ye,he))})},F=p.changes.length-1;F>=0;--F){var K=V(F);if(K)return K.v}}}}function xa(e,r){if(r!=0&&(e.first+=r,e.sel=new hn(bt(e.sel.ranges,function(d){return new St(ae(d.anchor.line+r,d.anchor.ch),ae(d.head.line+r,d.head.ch))}),e.sel.primIndex),e.cm)){ot(e.cm,e.first,e.first-r,r);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)Qi(e.cm,a,"gutter")}}function za(e,r,s,a){if(e.cm&&!e.cm.curOp)return qt(e.cm,za)(e,r,s,a);if(r.to.line<e.first){xa(e,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>e.lastLine())){if(r.from.line<e.first){var d=r.text.length-1-(e.first-r.from.line);xa(e,d),r={from:ae(e.first,0),to:ae(r.to.line+d,r.to.ch),text:[Qe(r.text)],origin:r.origin}}var p=e.lastLine();r.to.line>p&&(r={from:r.from,to:ae(p,Ee(e,p).text.length),text:[r.text[0]],origin:r.origin}),r.removed=dn(e,r.from,r.to),s||(s=U1(e,r)),e.cm?df(e.cm,r,a):kl(e,r,a),gn(e,s,st),e.cantEdit&&mr(e,ae(e.firstLine(),0))&&(e.cantEdit=!1)}}function df(e,r,s){var a=e.doc,d=e.display,p=r.from,v=r.to,m=!1,y=p.line;e.options.lineWrapping||(y=Lt(Qn(Ee(a,p.line))),a.iter(y,v.line+1,function(F){if(F==d.maxLine)return m=!0,!0})),a.sel.contains(r.from,r.to)>-1&&oa(e),kl(a,r,s,Tc(e)),e.options.lineWrapping||(a.iter(y,p.line+r.text.length,function(F){var K=as(F);K>d.maxLineLength&&(d.maxLine=F,d.maxLineLength=K,d.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),$d(a,p.line),ii(e,400);var C=r.text.length-(v.line-p.line)-1;r.full?ot(e):p.line==v.line&&r.text.length==1&&!q1(e.doc,r)?Qi(e,p.line,"text"):ot(e,p.line,v.line+1,C);var T=gr(e,"changes"),I=gr(e,"change");if(I||T){var V={from:p,to:v,text:r.text,removed:r.removed,origin:r.origin};I&&lr(e,"change",e,V),T&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(V)}e.display.selForContextMenu=null}function La(e,r,s,a,d){var p;a||(a=s),x(a,s)<0&&(p=[a,s],s=p[0],a=p[1]),typeof r=="string"&&(r=e.splitLines(r)),wa(e,{from:s,to:a,text:r,origin:d})}function Sa(e,r,s,a){s<e.line?e.line+=a:r<e.line&&(e.line=r,e.ch=0)}function Zc(e,r,s,a){for(var d=0;d<e.length;++d){var p=e[d],v=!0;if(p.ranges){p.copied||(p=e[d]=p.deepCopy(),p.copied=!0);for(var m=0;m<p.ranges.length;m++)Sa(p.ranges[m].anchor,r,s,a),Sa(p.ranges[m].head,r,s,a);continue}for(var y=0;y<p.changes.length;++y){var C=p.changes[y];if(s<C.from.line)C.from=ae(C.from.line+a,C.from.ch),C.to=ae(C.to.line+a,C.to.ch);else if(r<=C.to.line){v=!1;break}}v||(e.splice(0,d+1),d=0)}}function Uc(e,r){var s=r.from.line,a=r.to.line,d=r.text.length-(a-s)-1;Zc(e.done,s,a,d),Zc(e.undone,s,a,d)}function Ho(e,r,s,a){var d=r,p=r;return typeof r=="number"?p=Ee(e,gt(e,r)):d=Lt(r),d==null?null:(a(p,d)&&e.cm&&Qi(e.cm,d,s),p)}function Ma(e){this.lines=e,this.parent=null;for(var r=0,s=0;s<e.length;++s)e[s].parent=this,r+=e[s].height;this.height=r}Ma.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var s=e,a=e+r;s<a;++s){var d=this.lines[s];this.height-=d.height,gc(d),lr(d,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(e,r,s){for(var a=e+r;e<a;++e)if(s(this.lines[e]))return!0}};function xs(e){this.children=e;for(var r=0,s=0,a=0;a<e.length;++a){var d=e[a];r+=d.chunkSize(),s+=d.height,d.parent=this}this.size=r,this.height=s,this.parent=null}xs.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],d=a.chunkSize();if(e<d){var p=Math.min(r,d-e),v=a.height;if(a.removeInner(e,p),this.height-=v-a.height,d==p&&(this.children.splice(s--,1),a.parent=null),(r-=p)==0)break;e=0}else e-=d}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof Ma))){var m=[];this.collapse(m),this.children=[new Ma(m)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<=p){if(d.insertInner(e,r,s),d.lines&&d.lines.length>50){for(var v=d.lines.length%25+25,m=v;m<d.lines.length;){var y=new Ma(d.lines.slice(m,m+=25));d.height-=y.height,this.children.splice(++a,0,y),y.parent=this}d.lines=d.lines.slice(0,v),this.maybeSpill()}break}e-=p}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var r=e.children.splice(e.children.length-5,5),s=new xs(r);if(e.parent){e.size-=s.size,e.height-=s.height;var d=Le(e.parent.children,e);e.parent.children.splice(d+1,0,s)}else{var a=new xs(e.children);a.parent=e,e.children=[a,s],e=a}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,r,s){for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<p){var v=Math.min(r,p-e);if(d.iterN(e,v,s))return!0;if((r-=v)==0)break;e=0}else e-=p}}};var zs=function(e,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=r};zs.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,s=this.line,a=Lt(s);if(!(a==null||!r)){for(var d=0;d<r.length;++d)r[d]==this&&r.splice(d--,1);r.length||(s.widgets=null);var p=To(this);tn(s,Math.max(0,s.height-p)),e&&(kr(e,function(){Gc(e,s,-p),Qi(e,a,"widget")}),lr(e,"lineWidgetCleared",e,this,a))}},zs.prototype.changed=function(){var e=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var d=To(this)-r;d&&(Ut(this.doc,a)||tn(a,a.height+d),s&&kr(s,function(){s.curOp.forceUpdate=!0,Gc(s,a,d),lr(s,"lineWidgetChanged",s,e,Lt(a))}))},Nn(zs);function Gc(e,r,s){jr(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ba(e,s)}function qc(e,r,s,a){var d=new zs(e,s,a),p=e.cm;return p&&d.noHScroll&&(p.display.alignWidgets=!0),Ho(e,r,"widget",function(v){var m=v.widgets||(v.widgets=[]);if(d.insertAt==null?m.push(d):m.splice(Math.min(m.length,Math.max(0,d.insertAt)),0,d),d.line=v,p&&!Ut(e,v)){var y=jr(v)<e.scrollTop;tn(v,v.height+To(d)),y&&ba(p,d.height),p.curOp.forceUpdate=!0}return!0}),p&&lr(p,"lineWidgetAdded",p,d,typeof r=="number"?r:Lt(r)),d}var Rl=0,co=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++Rl};co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,r=e&&!e.curOp;if(r&&Zn(e),gr(this,"clear")){var s=this.find();s&&lr(this,"clear",s.from,s.to)}for(var a=null,d=null,p=0;p<this.lines.length;++p){var v=this.lines[p],m=is(v.markedSpans,this);e&&!this.collapsed?Qi(e,Lt(v),"text"):e&&(m.to!=null&&(d=Lt(v)),m.from!=null&&(a=Lt(v))),v.markedSpans=Pd(v.markedSpans,m),m.from==null&&this.collapsed&&!Ut(this.doc,v)&&e&&tn(v,Xi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=Qn(this.lines[y]),T=as(C);T>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=T,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&ot(e,a,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ws(e.doc)),e&&lr(e,"markerCleared",e,this,a,d),r&&ni(e),this.parent&&this.parent.clear()}},co.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,d=0;d<this.lines.length;++d){var p=this.lines[d],v=is(p.markedSpans,this);if(v.from!=null&&(s=ae(r?p:Lt(p),v.from),e==-1))return s;if(v.to!=null&&(a=ae(r?p:Lt(p),v.to),e==1))return a}return s&&{from:s,to:a}},co.prototype.changed=function(){var e=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||kr(a,function(){var d=r.line,p=Lt(r.line),v=R1(a,p);if(v&&(Lc(v),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Ut(s.doc,d)&&s.height!=null){var m=s.height;s.height=null;var y=To(s)-m;y&&tn(d,d.height+y)}lr(a,"markerChanged",a,e)})},co.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||Le(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},co.prototype.detachLine=function(e){if(this.lines.splice(Le(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Nn(co);function fo(e,r,s,a,d){if(a&&a.shared)return jc(e,r,s,a,d);if(e.cm&&!e.cm.curOp)return qt(e.cm,fo)(e,r,s,a,d);var p=new co(e,d),v=x(r,s);if(a&&Tt(a,p,!1),v>0||v==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=O("span",[p.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(fc(e,r.line,r,s,p)||r.line!=s.line&&fc(e,s.line,r,s,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");sc()}p.addToHistory&&ai(e,{from:r,to:s,origin:"markText"},e.sel,NaN);var m=r.line,y=e.cm,C;if(e.iter(m,s.line+1,function(I){y&&p.collapsed&&!y.options.lineWrapping&&Qn(I)==y.display.maxLine&&(C=!0),p.collapsed&&m!=r.line&&tn(I,0),lc(I,new cl(p,m==r.line?r.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),p.collapsed&&e.iter(r.line,s.line+1,function(I){Ut(e,I)&&tn(I,0)}),p.clearOnEnter&&Ve(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(ac(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),p.collapsed&&(p.id=++Rl,p.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),p.collapsed)ot(y,r.line,s.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var T=r.line;T<=s.line;T++)Qi(y,T,"text");p.atomic&&ws(y.doc),lr(y,"markerAdded",y,p)}return p}var _a=function(e,r){this.markers=e,this.primary=r;for(var s=0;s<e.length;++s)e[s].parent=this};_a.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();lr(this,"clear")}},_a.prototype.find=function(e,r){return this.primary.find(e,r)},Nn(_a);function jc(e,r,s,a,d){a=Tt(a),a.shared=!1;var p=[fo(e,r,s,a,d)],v=p[0],m=a.widgetNode;return lo(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),p.push(fo(y,we(y,r),we(y,s),a,d));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;v=Qe(p)}),new _a(p,v)}function Q1(e){return e.findMarks(ae(e.first,0),e.clipPos(ae(e.lastLine())),function(r){return r.parent})}function Hl(e,r){for(var s=0;s<r.length;s++){var a=r[s],d=a.find(),p=e.clipPos(d.from),v=e.clipPos(d.to);if(x(p,v)){var m=fo(e,p,v,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function ff(e){for(var r=function(a){var d=e[a],p=[d.primary.doc];lo(d.primary.doc,function(y){return p.push(y)});for(var v=0;v<d.markers.length;v++){var m=d.markers[v];Le(p,m.doc)==-1&&(m.parent=null,d.markers.splice(v--,1))}},s=0;s<e.length;s++)r(s)}var Kc=0,Nr=function(e,r,s,a,d){if(!(this instanceof Nr))return new Nr(e,r,s,a,d);s==null&&(s=0),xs.call(this,[new Ma([new _r("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var p=ae(s,0);this.sel=ao(p),this.history=new Do(null),this.id=++Kc,this.modeOption=r,this.lineSep=a,this.direction=d=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),kl(this,{from:p,to:p,text:e}),br(this,ao(p),st)};Nr.prototype=en(xs.prototype,{constructor:Nr,iter:function(e,r,s){s?this.iterN(e-this.first,r-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(e-this.first,r,s)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=rs(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:M(function(e){var r=ae(this.first,0),s=this.first+this.size-1;wa(this,{from:r,to:ae(s,Ee(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&hs(this.cm,0,0),br(this,ao(r),st)}),replaceRange:function(e,r,s,a){r=we(this,r),s=s?we(this,s):r,La(this,e,r,s,a)},getRange:function(e,r,s){var a=dn(this,we(this,e),we(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(Ui(this,e))return Ee(this,e)},getLineNumber:function(e){return Lt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ee(this,e)),Qn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return we(this,e)},getCursor:function(e){var r=this.sel.primary(),s;return e==null||e=="head"?s=r.head:e=="anchor"?s=r.anchor:e=="end"||e=="to"||e===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:M(function(e,r,s){J1(this,we(this,typeof e=="number"?ae(e,r||0):e),null,s)}),setSelection:M(function(e,r,s){J1(this,we(this,e),we(this,r||e),s)}),extendSelection:M(function(e,r,s){Il(this,we(this,e),r&&we(this,r),s)}),extendSelections:M(function(e,r){Cs(this,rn(this,e),r)}),extendSelectionsBy:M(function(e,r){var s=bt(this.sel.ranges,e);Cs(this,rn(this,s),r)}),setSelections:M(function(e,r,s){if(e.length){for(var a=[],d=0;d<e.length;d++)a[d]=new St(we(this,e[d].anchor),we(this,e[d].head||e[d].anchor));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),br(this,Er(this.cm,a,r),s)}}),addSelection:M(function(e,r,s){var a=this.sel.ranges.slice(0);a.push(new St(we(this,e),we(this,r||e))),br(this,Er(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var d=dn(this,r[a].from(),r[a].to());s=s?s.concat(d):d}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var d=dn(this,s[a].from(),s[a].to());e!==!1&&(d=d.join(e||this.lineSeparator())),r[a]=d}return r},replaceSelection:function(e,r,s){for(var a=[],d=0;d<this.sel.ranges.length;d++)a[d]=e;this.replaceSelections(a,r,s||"+input")},replaceSelections:M(function(e,r,s){for(var a=[],d=this.sel,p=0;p<d.ranges.length;p++){var v=d.ranges[p];a[p]={from:v.from(),to:v.to(),text:this.splitLines(e[p]),origin:s}}for(var m=r&&r!="end"&&uf(this,a,r),y=a.length-1;y>=0;y--)wa(this,a[y]);m?Al(this,m):this.cm&&ro(this.cm)}),undo:M(function(){Nl(this,"undo")}),redo:M(function(){Nl(this,"redo")}),undoSelection:M(function(){Nl(this,"undo",!0)}),redoSelection:M(function(){Nl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++r;for(var d=0;d<e.undone.length;d++)e.undone[d].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var e=this;this.history=new Do(this.history),lo(this,function(r){return r.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:pn(this.history.done),undone:pn(this.history.undone)}},setHistory:function(e){var r=this.history=new Do(this.history);r.done=pn(e.done.slice(0),null,!0),r.undone=pn(e.undone.slice(0),null,!0)},setGutterMarker:M(function(e,r,s){return Ho(this,e,"gutter",function(a){var d=a.gutterMarkers||(a.gutterMarkers={});return d[r]=s,!s&&se(d)&&(a.gutterMarkers=null),!0})}),clearGutter:M(function(e){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Ho(r,s,"gutter",function(){return s.gutterMarkers[e]=null,se(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!Ui(this,e)||(r=e,e=Ee(this,e),!e))return null}else if(r=Lt(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:M(function(e,r,s){return Ho(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[d])a[d]=s;else{if(Ce(s).test(a[d]))return!1;a[d]+=" "+s}return!0})}),removeLineClass:M(function(e,r,s){return Ho(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",p=a[d];if(p)if(s==null)a[d]=null;else{var v=p.match(Ce(s));if(!v)return!1;var m=v.index+v[0].length;a[d]=p.slice(0,v.index)+(!v.index||m==p.length?"":" ")+p.slice(m)||null}else return!1;return!0})}),addLineWidget:M(function(e,r,s){return qc(this,e,r,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,s){return fo(this,we(this,e),we(this,r),s,s&&s.type||"range")},setBookmark:function(e,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return e=we(this,e),fo(this,e,e,s,"bookmark")},findMarksAt:function(e){e=we(this,e);var r=[],s=Ee(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var d=s[a];(d.from==null||d.from<=e.ch)&&(d.to==null||d.to>=e.ch)&&r.push(d.marker.parent||d.marker)}return r},findMarks:function(e,r,s){e=we(this,e),r=we(this,r);var a=[],d=e.line;return this.iter(e.line,r.line+1,function(p){var v=p.markedSpans;if(v)for(var m=0;m<v.length;m++){var y=v[m];!(y.to!=null&&d==e.line&&e.ch>=y.to||y.from==null&&d!=e.line||y.from!=null&&d==r.line&&y.from>=r.ch)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++d}),a},getAllMarks:function(){var e=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&e.push(s[a].marker)}),e},posFromIndex:function(e){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(d){var p=d.text.length+a;if(p>e)return r=e,!0;e-=p,++s}),we(this,ae(s,r))},indexFromPos:function(e){e=we(this,e);var r=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(a){r+=a.text.length+s}),r},copy:function(e){var r=new Nr(rs(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,s=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Nr(rs(this,r,s),e.mode||this.modeOption,r,this.lineSep,this.direction);return e.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:e.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Hl(a,Q1(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==e){this.linked.splice(r,1),e.unlinkDoc(this),ff(Q1(this));break}}if(e.history==this.history){var a=[e.id];lo(e,function(d){return a.push(d.id)},!0),e.history=new Do(null),e.history.done=pn(this.history.done,a),e.history.undone=pn(this.history.undone,a)}},iterLinkedDocs:function(e){lo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):zo(e)},lineSeparator:function(){return this.lineSep||`
2977
+ left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(p),p.scrollIntoView(d),e.display.lineSpace.removeChild(p)}}}function Yd(e,r,s,a){a==null&&(a=0);var d;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?ae(r.line,r.ch+1,"before"):r,r=r.ch?ae(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var p=0;p<5;p++){var v=!1,m=Wn(e,r),y=!s||s==r?m:Wn(e,s);d={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-a,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+a};var C=va(e,d),T=e.doc.scrollTop,I=e.doc.scrollLeft;if(C.scrollTop!=null&&(Gt(e,C.scrollTop),Math.abs(e.doc.scrollTop-T)>1&&(v=!0)),C.scrollLeft!=null&&($o(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-I)>1&&(v=!0)),!v)break}return d}function Xd(e,r){var s=va(e,r);s.scrollTop!=null&&Gt(e,s.scrollTop),s.scrollLeft!=null&&$o(e,s.scrollLeft)}function va(e,r){var s=e.display,a=Xi(e.display);r.top<0&&(r.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,p=ml(e),v={};r.bottom-r.top>p&&(r.bottom=r.top+p);var m=e.doc.height+Yr(s),y=r.top<a,C=r.bottom>m-a;if(r.top<d)v.scrollTop=y?0:r.top;else if(r.bottom>d+p){var T=Math.min(r.top,(C?m:r.bottom)-p);T!=d&&(v.scrollTop=T)}var I=e.options.fixedGutter?0:s.gutters.offsetWidth,V=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-I,F=ji(e)-s.gutters.offsetWidth,K=r.right-r.left>F;return K&&(r.right=r.left+F),r.left<10?v.scrollLeft=0:r.left<V?v.scrollLeft=Math.max(0,r.left+I-(K?0:10)):r.right>F+V-3&&(v.scrollLeft=r.right+(K?0:10)-F),v}function ba(e,r){r!=null&&(Sl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function ro(e){Sl(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function hs(e,r,s){(r!=null||s!=null)&&Sl(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function Ec(e,r){Sl(e),e.curOp.scrollToPos=r}function Sl(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=_c(e,r.from),a=_c(e,r.to);Ic(e,s,a,r.margin)}}function Ic(e,r,s,a){var d=va(e,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});hs(e,d.scrollLeft,d.scrollTop)}function Gt(e,r){Math.abs(e.doc.scrollTop-r)<2||(c||B1(e,{top:r}),Tr(e,r,!0),c&&B1(e),ii(e,100))}function Tr(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function $o(e,r,s,a){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!a)&&(e.doc.scrollLeft=r,Ac(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function ps(e){var r=e.display,s=r.gutters.offsetWidth,a=Math.round(e.doc.height+Yr(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+nn(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var no=function(e,r,s){this.cm=s;var a=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=d.tabIndex=-1,e(a),e(d),Ve(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),Ve(d,"scroll",function(){d.clientWidth&&r(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,z&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};no.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var d=e.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var p=e.viewWidth-e.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+p)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},no.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},no.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},no.prototype.zeroWidthHack=function(){var e=ve&&!pe?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new rt,this.disableVert=new rt},no.prototype.enableZeroWidthBar=function(e,r,s){e.style.pointerEvents="auto";function a(){var d=e.getBoundingClientRect(),p=s=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);p!=e?e.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},no.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var gs=function(){};gs.prototype.update=function(){return{bottom:0,right:0}},gs.prototype.setScrollLeft=function(){},gs.prototype.setScrollTop=function(){},gs.prototype.clear=function(){};function io(e,r){r||(r=ps(e));var s=e.display.barWidth,a=e.display.barHeight;ma(e,r);for(var d=0;d<4&&s!=e.display.barWidth||a!=e.display.barHeight;d++)s!=e.display.barWidth&&e.options.lineWrapping&&eo(e),ma(e,ps(e)),s=e.display.barWidth,a=e.display.barHeight}function ma(e,r){var s=e.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Ml={native:no,null:gs};function Po(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ue(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ml[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),Ve(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?$o(e,r):Gt(e,r)},e),e.display.scrollbars.addClass&&et(e.display.wrapper,e.display.scrollbars.addClass)}var vs=0;function Zn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++vs,markArrays:null},qi(e.curOp)}function ni(e){var r=e.curOp;r&&Wd(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;ya(s)})}function ya(e){for(var r=e.ops,s=0;s<r.length;s++)Jd(r[s]);for(var a=0;a<r.length;a++)Qd(r[a]);for(var d=0;d<r.length;d++)ef(r[d]);for(var p=0;p<r.length;p++)tf(r[p]);for(var v=0;v<r.length;v++)rf(r[v])}function Jd(e){var r=e.cm,s=r.display;vt(r),e.updateMaxLine&&ss(r),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Xr(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Qd(e){e.updatedDisplay=e.mustUpdate&&F1(e.cm,e.update)}function ef(e){var r=e.cm,s=r.display;e.updatedDisplay&&eo(r),e.barMeasure=ps(r),s.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=wc(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+nn(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-ji(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function tf(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&$o(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=e.focus&&e.focus==Ae();e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=r.doc.height)&&io(r,e.barMeasure),e.updatedDisplay&&W1(r,e.barMeasure),e.selectionChanged&&pa(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),s&&H1(e.cm)}function rf(e){var r=e.cm,s=r.display,a=r.doc;if(e.updatedDisplay&&oo(r,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Tr(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&$o(r,e.scrollLeft,!0,!0),e.scrollToPos){var d=Yd(r,we(a,e.scrollToPos.from),we(a,e.scrollToPos.to),e.scrollToPos.margin);Kd(r,d)}var p=e.maybeHiddenMarkers,v=e.maybeUnhiddenMarkers;if(p)for(var m=0;m<p.length;++m)p[m].lines.length||qe(p[m],"hide");if(v)for(var y=0;y<v.length;++y)v[y].lines.length&&qe(v[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&qe(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function kr(e,r){if(e.curOp)return r();Zn(e);try{return r()}finally{ni(e)}}function qt(e,r){return function(){if(e.curOp)return r.apply(e,arguments);Zn(e);try{return r.apply(e,arguments)}finally{ni(e)}}}function Or(e){return function(){if(this.curOp)return e.apply(this,arguments);Zn(this);try{return e.apply(this,arguments)}finally{ni(this)}}}function M(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);Zn(r);try{return e.apply(this,arguments)}finally{ni(r)}}}function ii(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,or(_l,e))}function _l(e){var r=e.doc;if(!(r.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=ua(e,r.highlightFrontier),d=[];r.iter(a.line,Math.min(r.first+r.size,e.display.viewTo+500),function(p){if(a.line>=e.display.viewFrom){var v=p.styles,m=p.text.length>e.options.maxHighlightLength?cn(r.mode,a.state):null,y=nc(e,p,a,!0);m&&(a.state=m),p.styles=y.styles;var C=p.styleClasses,T=y.classes;T?p.styleClasses=T:C&&(p.styleClasses=null);for(var I=!v||v.length!=p.styles.length||C!=T&&(!C||!T||C.bgClass!=T.bgClass||C.textClass!=T.textClass),V=0;!I&&V<v.length;++V)I=v[V]!=p.styles[V];I&&d.push(a.line),p.stateAfter=a.save(),a.nextLine()}else p.text.length<=e.options.maxHighlightLength&&ns(e,p.text,a),p.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ii(e,e.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),d.length&&kr(e,function(){for(var p=0;p<d.length;p++)Qi(e,d[p],"text")})}}var Xr=function(e,r,s){var a=e.display;this.viewport=r,this.visible=Ao(a,e.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=ji(e),this.force=s,this.dims=on(e),this.events=[]};Xr.prototype.signal=function(e,r){gr(e,r)&&this.events.push(arguments)},Xr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)qe.apply(null,this.events[e])};function vt(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=nn(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=nn(e)+"px",r.scrollbarsClipped=!0)}function nf(e){if(e.hasFocus())return null;var r=Ae();if(!r||!ce(e.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ce(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function of(e){if(!(!e||!e.activeElt||e.activeElt==Ae())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ce(document.body,e.anchorNode)&&ce(document.body,e.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(e.focusNode,e.focusOffset)}}function F1(e,r){var s=e.display,a=e.doc;if(r.editorIsHidden)return xi(e),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&kc(e)==0)return!1;oi(e)&&(xi(e),r.dims=on(e));var d=a.first+a.size,p=Math.max(r.visible.from-e.options.viewportMargin,a.first),v=Math.min(d,r.visible.to+e.options.viewportMargin);s.viewFrom<p&&p-s.viewFrom<20&&(p=Math.max(a.first,s.viewFrom)),s.viewTo>v&&s.viewTo-v<20&&(v=Math.min(d,s.viewTo)),Jn&&(p=pl(e.doc,p),v=hc(e.doc,v));var m=p!=s.viewFrom||v!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;jd(e,p,v),s.viewOffset=Kr(Ee(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=kc(e);if(!m&&y==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=nf(e);return y>4&&(s.lineDiv.style.display="none"),af(e,s.updateLineNumbers,r.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,of(C),Q(s.cursorDiv),Q(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,ii(e,400)),s.updateLineNumbers=null,!0}function oo(e,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||r.oldDisplayWidth==ji(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Yr(e.display)-ml(e),s.top)}),r.visible=Ao(e.display,e.doc,s),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else a&&(r.visible=Ao(e.display,e.doc,s));if(!F1(e,r))break;eo(e);var d=ps(e);ds(e),io(e,d),W1(e,d),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function B1(e,r){var s=new Xr(e,r);if(F1(e,s)){eo(e),oo(e,s);var a=ps(e);ds(e),io(e,a),W1(e,a),s.finish()}}function af(e,r,s){var a=e.display,d=e.options.lineNumbers,p=a.lineDiv,v=p.firstChild;function m(K){var ne=K.nextSibling;return E&&ve&&e.display.currentWheelTarget==K?K.style.display="none":K.parentNode.removeChild(K),ne}for(var y=a.view,C=a.viewFrom,T=0;T<y.length;T++){var I=y[T];if(!I.hidden)if(!I.node||I.node.parentNode!=p){var V=P1(e,I,C,s);p.insertBefore(V,v)}else{for(;v!=I.node;)v=m(v);var F=d&&r!=null&&r<=C&&I.lineNumber;I.changes&&(Le(I.changes,"gutter")>-1&&(F=!1),mc(e,I,C,s)),F&&(Q(I.lineNumber),I.lineNumber.appendChild(document.createTextNode(la(e.options,C)))),v=I.node.nextSibling}C+=I.size}for(;v;)v=m(v)}function V1(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",lr(e,"gutterChanged",e)}function W1(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+nn(e)+"px"}function Ac(e){var r=e.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var a=ha(r)-r.scroller.scrollLeft+e.doc.scrollLeft,d=r.gutters.offsetWidth,p=a+"px",v=0;v<s.length;v++)if(!s[v].hidden){e.options.fixedGutter&&(s[v].gutter&&(s[v].gutter.style.left=p),s[v].gutterBackground&&(s[v].gutterBackground.style.left=p));var m=s[v].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=p}e.options.fixedGutter&&(r.gutters.style.left=a+d+"px")}}function oi(e){if(!e.options.lineNumbers)return!1;var r=e.doc,s=la(e.options,r.first+r.size-1),a=e.display;if(s.length!=a.lineNumChars){var d=a.measure.appendChild(k("div",[k("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),p=d.firstChild.offsetWidth,v=d.offsetWidth-p;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(p,a.lineGutter.offsetWidth-v)+1,a.lineNumWidth=a.lineNumInnerWidth+v,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",V1(e.display),!0}return!1}function Z1(e,r){for(var s=[],a=!1,d=0;d<e.length;d++){var p=e[d],v=null;if(typeof p!="string"&&(v=p.style,p=p.className),p=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:p,style:v})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function $c(e){var r=e.gutters,s=e.gutterSpecs;Q(r),e.lineGutter=null;for(var a=0;a<s.length;++a){var d=s[a],p=d.className,v=d.style,m=r.appendChild(k("div",null,"CodeMirror-gutter "+p));v&&(m.style.cssText=v),p=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",V1(e)}function bs(e){$c(e.display),ot(e),Ac(e)}function sf(e,r,s,a){var d=this;this.input=s,d.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),d.scrollbarFiller.setAttribute("cm-not-content","true"),d.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),d.gutterFiller.setAttribute("cm-not-content","true"),d.lineDiv=O("div",null,"CodeMirror-code"),d.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),d.cursorDiv=k("div",null,"CodeMirror-cursors"),d.measure=k("div",null,"CodeMirror-measure"),d.lineMeasure=k("div",null,"CodeMirror-measure"),d.lineSpace=O("div",[d.measure,d.lineMeasure,d.selectionDiv,d.cursorDiv,d.lineDiv],null,"position: relative; outline: none");var p=O("div",[d.lineSpace],"CodeMirror-lines");d.mover=k("div",[p],null,"position: relative"),d.sizer=k("div",[d.mover],"CodeMirror-sizer"),d.sizerWidth=null,d.heightForcer=k("div",null,null,"position: absolute; height: "+Ne+"px; width: 1px;"),d.gutters=k("div",null,"CodeMirror-gutters"),d.lineGutter=null,d.scroller=k("div",[d.sizer,d.heightForcer,d.gutters],"CodeMirror-scroll"),d.scroller.setAttribute("tabIndex","-1"),d.wrapper=k("div",[d.scrollbarFiller,d.gutterFiller,d.scroller],"CodeMirror"),d.wrapper.setAttribute("translate","no"),z&&S<8&&(d.gutters.style.zIndex=-1,d.scroller.style.paddingRight=0),!E&&!(c&&be)&&(d.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(d.wrapper):e(d.wrapper)),d.viewFrom=d.viewTo=r.first,d.reportedViewFrom=d.reportedViewTo=r.first,d.view=[],d.renderedView=null,d.externalMeasured=null,d.viewOffset=0,d.lastWrapHeight=d.lastWrapWidth=0,d.updateLineNumbers=null,d.nativeBarWidth=d.barHeight=d.barWidth=0,d.scrollbarsClipped=!1,d.lineNumWidth=d.lineNumInnerWidth=d.lineNumChars=null,d.alignWidgets=!1,d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.maxLine=null,d.maxLineLength=0,d.maxLineChanged=!1,d.wheelDX=d.wheelDY=d.wheelStartX=d.wheelStartY=null,d.shift=!1,d.selForContextMenu=null,d.activeTouch=null,d.gutterSpecs=Z1(a.gutters,a.lineNumbers),$c(d),s.init(d)}var Tl=0,Qt=null;z?Qt=-.53:c?Qt=15:B?Qt=-.7:J&&(Qt=-1/3);function Pc(e){var r=e.wheelDeltaX,s=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:r,y:s}}function lf(e){var r=Pc(e);return r.x*=Qt,r.y*=Qt,r}function Dc(e,r){var s=Pc(r),a=s.x,d=s.y,p=e.display,v=p.scroller,m=v.scrollWidth>v.clientWidth,y=v.scrollHeight>v.clientHeight;if(a&&m||d&&y){if(d&&ve&&E){e:for(var C=r.target,T=p.view;C!=v;C=C.parentNode)for(var I=0;I<T.length;I++)if(T[I].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!c&&!H&&Qt!=null){d&&y&&Gt(e,Math.max(0,v.scrollTop+d*Qt)),$o(e,Math.max(0,v.scrollLeft+a*Qt)),(!d||d&&y)&&vr(r),p.wheelStartX=null;return}if(d&&Qt!=null){var V=d*Qt,F=e.doc.scrollTop,K=F+p.wrapper.clientHeight;V<0?F=Math.max(0,F+V-50):K=Math.min(e.doc.height,K+V+50),B1(e,{top:F,bottom:K})}Tl<20&&(p.wheelStartX==null?(p.wheelStartX=v.scrollLeft,p.wheelStartY=v.scrollTop,p.wheelDX=a,p.wheelDY=d,setTimeout(function(){if(p.wheelStartX!=null){var ne=v.scrollLeft-p.wheelStartX,he=v.scrollTop-p.wheelStartY,me=he&&p.wheelDY&&he/p.wheelDY||ne&&p.wheelDX&&ne/p.wheelDX;p.wheelStartX=p.wheelStartY=null,me&&(Qt=(Qt*Tl+me)/(Tl+1),++Tl)}},200)):(p.wheelDX+=a,p.wheelDY+=d))}}var hn=function(e,r){this.ranges=e,this.primIndex=r};hn.prototype.primary=function(){return this.ranges[this.primIndex]},hn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=e.ranges[r];if(!A(s.anchor,a.anchor)||!A(s.head,a.head))return!1}return!0},hn.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new St(te(this.ranges[r].anchor),te(this.ranges[r].head));return new hn(e,this.primIndex)},hn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},hn.prototype.contains=function(e,r){r||(r=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(x(r,a.from())>=0&&x(e,a.to())<=0)return s}return-1};var St=function(e,r){this.anchor=e,this.head=r};St.prototype.from=function(){return Ke(this.anchor,this.head)},St.prototype.to=function(){return de(this.anchor,this.head)},St.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Er(e,r,s){var a=e&&e.options.selectionsMayTouch,d=r[s];r.sort(function(V,F){return x(V.from(),F.from())}),s=Le(r,d);for(var p=1;p<r.length;p++){var v=r[p],m=r[p-1],y=x(m.to(),v.from());if(a&&!v.empty()?y>0:y>=0){var C=Ke(m.from(),v.from()),T=de(m.to(),v.to()),I=m.empty()?v.from()==v.head:m.from()==m.head;p<=s&&--s,r.splice(--p,2,new St(I?T:C,I?C:T))}}return new hn(r,s)}function ao(e,r){return new hn([new St(e,r||e)],0)}function so(e){return e.text?ae(e.from.line+e.text.length-1,Qe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function zn(e,r){if(x(e,r.from)<0)return e;if(x(e,r.to)<=0)return so(r);var s=e.line+r.text.length-(r.to.line-r.from.line)-1,a=e.ch;return e.line==r.to.line&&(a+=so(r).ch-r.to.ch),ae(s,a)}function U1(e,r){for(var s=[],a=0;a<e.sel.ranges.length;a++){var d=e.sel.ranges[a];s.push(new St(zn(d.anchor,r),zn(d.head,r)))}return Er(e.cm,s,e.sel.primIndex)}function Nc(e,r,s){return e.line==r.line?ae(s.line,e.ch-r.ch+s.ch):ae(s.line+(e.line-r.line),e.ch)}function uf(e,r,s){for(var a=[],d=ae(e.first,0),p=d,v=0;v<r.length;v++){var m=r[v],y=Nc(m.from,d,p),C=Nc(so(m),d,p);if(d=m.to,p=C,s=="around"){var T=e.sel.ranges[v],I=x(T.head,T.anchor)<0;a[v]=new St(I?C:y,I?y:C)}else a[v]=new St(y,y)}return new hn(a,e.sel.primIndex)}function G1(e){e.doc.mode=sa(e.options,e.doc.modeOption),ms(e)}function ms(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ii(e,100),e.state.modeGen++,e.curOp&&ot(e)}function q1(e,r){return r.from.ch==0&&r.to.ch==0&&Qe(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function kl(e,r,s,a){function d(xe){return s?s[xe]:null}function p(xe,ye,Se){pc(xe,ye,Se,a),lr(xe,"change",xe,r)}function v(xe,ye){for(var Se=[],Fe=xe;Fe<ye;++Fe)Se.push(new _r(C[Fe],d(Fe),a));return Se}var m=r.from,y=r.to,C=r.text,T=Ee(e,m.line),I=Ee(e,y.line),V=Qe(C),F=d(C.length-1),K=y.line-m.line;if(r.full)e.insert(0,v(0,C.length)),e.remove(C.length,e.size-C.length);else if(q1(e,r)){var ne=v(0,C.length-1);p(I,I.text,F),K&&e.remove(m.line,K),ne.length&&e.insert(m.line,ne)}else if(T==I)if(C.length==1)p(T,T.text.slice(0,m.ch)+V+T.text.slice(y.ch),F);else{var he=v(1,C.length-1);he.push(new _r(V+T.text.slice(y.ch),F,a)),p(T,T.text.slice(0,m.ch)+C[0],d(0)),e.insert(m.line+1,he)}else if(C.length==1)p(T,T.text.slice(0,m.ch)+C[0]+I.text.slice(y.ch),d(0)),e.remove(m.line+1,K);else{p(T,T.text.slice(0,m.ch)+C[0],d(0)),p(I,V+I.text.slice(y.ch),F);var me=v(1,C.length-1);K>1&&e.remove(m.line+1,K-1),e.insert(m.line+1,me)}lr(e,"change",e,r)}function lo(e,r,s){function a(d,p,v){if(d.linked)for(var m=0;m<d.linked.length;++m){var y=d.linked[m];if(y.doc!=p){var C=v&&y.sharedHist;s&&!C||(r(y.doc,C),a(y.doc,d,C))}}}a(e,null,!0)}function Rc(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,Ji(e),G1(e),Ol(e),e.options.direction=r.direction,e.options.lineWrapping||ss(e),e.options.mode=r.modeOption,ot(e)}function Ol(e){(e.doc.direction=="rtl"?et:ue)(e.display.lineDiv,"CodeMirror-rtl")}function ys(e){kr(e,function(){Ol(e),ot(e)})}function Do(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function j1(e,r){var s={from:te(r.from),to:so(r),text:dn(e,r.from,r.to)};return Hc(e,s,r.from.line,r.to.line+1),lo(e,function(a){return Hc(a,s,r.from.line,r.to.line+1)},!0),s}function K1(e){for(;e.length;){var r=Qe(e);if(r.ranges)e.pop();else break}}function cf(e,r){if(r)return K1(e.done),Qe(e.done);if(e.done.length&&!Qe(e.done).ranges)return Qe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Qe(e.done)}function ai(e,r,s,a){var d=e.history;d.undone.length=0;var p=+new Date,v,m;if((d.lastOp==a||d.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&d.lastModTime>p-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(v=cf(d,d.lastOp==a)))m=Qe(v.changes),x(r.from,r.to)==0&&x(r.from,m.to)==0?m.to=so(r):v.changes.push(j1(e,r));else{var y=Qe(d.done);for((!y||!y.ranges)&&Jr(e.sel,d.done),v={changes:[j1(e,r)],generation:d.generation},d.done.push(v);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(s),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=p,d.lastOp=d.lastSelOp=a,d.lastOrigin=d.lastSelOrigin=r.origin,m||qe(e,"historyAdded")}function Y1(e,r,s,a){var d=r.charAt(0);return d=="*"||d=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function No(e,r,s,a){var d=e.history,p=a&&a.origin;s==d.lastSelOp||p&&d.lastSelOrigin==p&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==p||Y1(e,p,Qe(d.done),r))?d.done[d.done.length-1]=r:Jr(r,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=p,d.lastSelOp=s,a&&a.clearRedo!==!1&&K1(d.undone)}function Jr(e,r){var s=Qe(r);s&&s.ranges&&s.equals(e)||r.push(e)}function Hc(e,r,s,a){var d=r["spans_"+e.id],p=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(v){v.markedSpans&&((d||(d=r["spans_"+e.id]={}))[p]=v.markedSpans),++p})}function Fc(e){if(!e)return null;for(var r,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?r||(r=e.slice(0,s)):r&&r.push(e[s]);return r?r.length?r:null:e}function Bc(e,r){var s=r["spans_"+e.id];if(!s)return null;for(var a=[],d=0;d<r.text.length;++d)a.push(Fc(s[d]));return a}function Ca(e,r){var s=Bc(e,r),a=M1(e,r);if(!s)return a;if(!a)return s;for(var d=0;d<s.length;++d){var p=s[d],v=a[d];if(p&&v)e:for(var m=0;m<v.length;++m){for(var y=v[m],C=0;C<p.length;++C)if(p[C].marker==y.marker)continue e;p.push(y)}else v&&(s[d]=v)}return s}function pn(e,r,s){for(var a=[],d=0;d<e.length;++d){var p=e[d];if(p.ranges){a.push(s?hn.prototype.deepCopy.call(p):p);continue}var v=p.changes,m=[];a.push({changes:m});for(var y=0;y<v.length;++y){var C=v[y],T=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),r)for(var I in C)(T=I.match(/^spans_(\d+)$/))&&Le(r,Number(T[1]))>-1&&(Qe(m)[I]=C[I],delete C[I])}}return a}function El(e,r,s,a){if(a){var d=e.anchor;if(s){var p=x(r,d)<0;p!=x(s,d)<0?(d=r,r=s):p!=x(r,s)<0&&(r=s)}return new St(d,r)}else return new St(s||r,r)}function Il(e,r,s,a,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),br(e,new hn([El(e.sel.primary(),r,s,d)],0),a)}function Cs(e,r,s){for(var a=[],d=e.cm&&(e.cm.display.shift||e.extend),p=0;p<e.sel.ranges.length;p++)a[p]=El(e.sel.ranges[p],r[p],null,d);var v=Er(e.cm,a,e.sel.primIndex);br(e,v,s)}function X1(e,r,s,a){var d=e.sel.ranges.slice(0);d[r]=s,br(e,Er(e.cm,d,e.sel.primIndex),a)}function J1(e,r,s,a){br(e,ao(r,s),a)}function Ir(e,r,s){var a={ranges:r.ranges,update:function(d){this.ranges=[];for(var p=0;p<d.length;p++)this.ranges[p]=new St(we(e,d[p].anchor),we(e,d[p].head))},origin:s&&s.origin};return qe(e,"beforeSelectionChange",e,a),e.cm&&qe(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=r.ranges?Er(e.cm,a.ranges,a.ranges.length-1):r}function Al(e,r,s){var a=e.history.done,d=Qe(a);d&&d.ranges?(a[a.length-1]=r,gn(e,r,s)):br(e,r,s)}function br(e,r,s){gn(e,r,s),No(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function gn(e,r,s){(gr(e,"beforeSelectionChange")||e.cm&&gr(e.cm,"beforeSelectionChange"))&&(r=Ir(e,r,s));var a=s&&s.bias||(x(r.primary().head,e.sel.primary().head)<0?-1:1);$l(e,uo(e,r,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ro(e.cm)}function $l(e,r){r.equals(e.sel)||(e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,oa(e.cm)),lr(e,"cursorActivity",e))}function ws(e){$l(e,uo(e,e.sel,null,!1))}function uo(e,r,s,a){for(var d,p=0;p<r.ranges.length;p++){var v=r.ranges[p],m=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[p],y=mr(e,v.anchor,m&&m.anchor,s,a),C=mr(e,v.head,m&&m.head,s,a);(d||y!=v.anchor||C!=v.head)&&(d||(d=r.ranges.slice(0,p)),d[p]=new St(y,C))}return d?Er(e.cm,d,r.primIndex):r}function Ro(e,r,s,a,d){var p=Ee(e,r.line);if(p.markedSpans)for(var v=0;v<p.markedSpans.length;++v){var m=p.markedSpans[v],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,T="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=r.ch:m.from<r.ch))&&(m.to==null||(T?m.to>=r.ch:m.to>r.ch))){if(d&&(qe(y,"beforeCursorEnter"),y.explicitlyCleared))if(p.markedSpans){--v;continue}else break;if(!y.atomic)continue;if(s){var I=y.find(a<0?1:-1),V=void 0;if((a<0?T:C)&&(I=Pl(e,I,-a,I&&I.line==r.line?p:null)),I&&I.line==r.line&&(V=x(I,s))&&(a<0?V<0:V>0))return Ro(e,I,r,a,d)}var F=y.find(a<0?-1:1);return(a<0?C:T)&&(F=Pl(e,F,a,F.line==r.line?p:null)),F?Ro(e,F,r,a,d):null}}return r}function mr(e,r,s,a,d){var p=a||1,v=Ro(e,r,s,p,d)||!d&&Ro(e,r,s,p,!0)||Ro(e,r,s,-p,d)||!d&&Ro(e,r,s,-p,!0);return v||(e.cantEdit=!0,ae(e.first,0))}function Pl(e,r,s,a){return s<0&&r.ch==0?r.line>e.first?we(e,ae(r.line-1)):null:s>0&&r.ch==(a||Ee(e,r.line)).text.length?r.line<e.first+e.size-1?ae(r.line+1,0):null:new ae(r.line,r.ch+s)}function Vc(e){e.setSelection(ae(e.firstLine(),0),ae(e.lastLine()),st)}function Wc(e,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(d,p,v,m){d&&(a.from=we(e,d)),p&&(a.to=we(e,p)),v&&(a.text=v),m!==void 0&&(a.origin=m)}),qe(e,"beforeChange",e,a),e.cm&&qe(e.cm,"beforeChange",e.cm,a),a.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function wa(e,r,s){if(e.cm){if(!e.cm.curOp)return qt(e.cm,wa)(e,r,s);if(e.cm.state.suppressEdits)return}if(!((gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"))&&(r=Wc(e,r,!0),!r))){var a=S1&&!s&&_1(e,r.from,r.to);if(a)for(var d=a.length-1;d>=0;--d)Dl(e,{from:a[d].from,to:a[d].to,text:d?[""]:r.text,origin:r.origin});else Dl(e,r)}}function Dl(e,r){if(!(r.text.length==1&&r.text[0]==""&&x(r.from,r.to)==0)){var s=U1(e,r);ai(e,r,s,e.cm?e.cm.curOp.id:NaN),za(e,r,s,M1(e,r));var a=[];lo(e,function(d,p){!p&&Le(a,d.history)==-1&&(Uc(d.history,r),a.push(d.history)),za(d,r,null,M1(d,r))})}}function Nl(e,r,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var d=e.history,p,v=e.sel,m=r=="undo"?d.done:d.undone,y=r=="undo"?d.undone:d.done,C=0;C<m.length&&(p=m[C],!(s?p.ranges&&!p.equals(e.sel):!p.ranges));C++);if(C!=m.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(p=m.pop(),p.ranges){if(Jr(p,y),s&&!p.equals(e.sel)){br(e,p,{clearRedo:!1});return}v=p}else if(a){m.push(p);return}else break;var T=[];Jr(v,y),y.push({changes:T,generation:d.generation}),d.generation=p.generation||++d.maxGeneration;for(var I=gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"),V=function(ne){var he=p.changes[ne];if(he.origin=r,I&&!Wc(e,he,!1))return m.length=0,{};T.push(j1(e,he));var me=ne?U1(e,he):Qe(m);za(e,he,me,Ca(e,he)),!ne&&e.cm&&e.cm.scrollIntoView({from:he.from,to:so(he)});var xe=[];lo(e,function(ye,Se){!Se&&Le(xe,ye.history)==-1&&(Uc(ye.history,he),xe.push(ye.history)),za(ye,he,null,Ca(ye,he))})},F=p.changes.length-1;F>=0;--F){var K=V(F);if(K)return K.v}}}}function xa(e,r){if(r!=0&&(e.first+=r,e.sel=new hn(bt(e.sel.ranges,function(d){return new St(ae(d.anchor.line+r,d.anchor.ch),ae(d.head.line+r,d.head.ch))}),e.sel.primIndex),e.cm)){ot(e.cm,e.first,e.first-r,r);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)Qi(e.cm,a,"gutter")}}function za(e,r,s,a){if(e.cm&&!e.cm.curOp)return qt(e.cm,za)(e,r,s,a);if(r.to.line<e.first){xa(e,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>e.lastLine())){if(r.from.line<e.first){var d=r.text.length-1-(e.first-r.from.line);xa(e,d),r={from:ae(e.first,0),to:ae(r.to.line+d,r.to.ch),text:[Qe(r.text)],origin:r.origin}}var p=e.lastLine();r.to.line>p&&(r={from:r.from,to:ae(p,Ee(e,p).text.length),text:[r.text[0]],origin:r.origin}),r.removed=dn(e,r.from,r.to),s||(s=U1(e,r)),e.cm?df(e.cm,r,a):kl(e,r,a),gn(e,s,st),e.cantEdit&&mr(e,ae(e.firstLine(),0))&&(e.cantEdit=!1)}}function df(e,r,s){var a=e.doc,d=e.display,p=r.from,v=r.to,m=!1,y=p.line;e.options.lineWrapping||(y=Lt(Qn(Ee(a,p.line))),a.iter(y,v.line+1,function(F){if(F==d.maxLine)return m=!0,!0})),a.sel.contains(r.from,r.to)>-1&&oa(e),kl(a,r,s,Tc(e)),e.options.lineWrapping||(a.iter(y,p.line+r.text.length,function(F){var K=as(F);K>d.maxLineLength&&(d.maxLine=F,d.maxLineLength=K,d.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),$d(a,p.line),ii(e,400);var C=r.text.length-(v.line-p.line)-1;r.full?ot(e):p.line==v.line&&r.text.length==1&&!q1(e.doc,r)?Qi(e,p.line,"text"):ot(e,p.line,v.line+1,C);var T=gr(e,"changes"),I=gr(e,"change");if(I||T){var V={from:p,to:v,text:r.text,removed:r.removed,origin:r.origin};I&&lr(e,"change",e,V),T&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(V)}e.display.selForContextMenu=null}function La(e,r,s,a,d){var p;a||(a=s),x(a,s)<0&&(p=[a,s],s=p[0],a=p[1]),typeof r=="string"&&(r=e.splitLines(r)),wa(e,{from:s,to:a,text:r,origin:d})}function Sa(e,r,s,a){s<e.line?e.line+=a:r<e.line&&(e.line=r,e.ch=0)}function Zc(e,r,s,a){for(var d=0;d<e.length;++d){var p=e[d],v=!0;if(p.ranges){p.copied||(p=e[d]=p.deepCopy(),p.copied=!0);for(var m=0;m<p.ranges.length;m++)Sa(p.ranges[m].anchor,r,s,a),Sa(p.ranges[m].head,r,s,a);continue}for(var y=0;y<p.changes.length;++y){var C=p.changes[y];if(s<C.from.line)C.from=ae(C.from.line+a,C.from.ch),C.to=ae(C.to.line+a,C.to.ch);else if(r<=C.to.line){v=!1;break}}v||(e.splice(0,d+1),d=0)}}function Uc(e,r){var s=r.from.line,a=r.to.line,d=r.text.length-(a-s)-1;Zc(e.done,s,a,d),Zc(e.undone,s,a,d)}function Ho(e,r,s,a){var d=r,p=r;return typeof r=="number"?p=Ee(e,gt(e,r)):d=Lt(r),d==null?null:(a(p,d)&&e.cm&&Qi(e.cm,d,s),p)}function Ma(e){this.lines=e,this.parent=null;for(var r=0,s=0;s<e.length;++s)e[s].parent=this,r+=e[s].height;this.height=r}Ma.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var s=e,a=e+r;s<a;++s){var d=this.lines[s];this.height-=d.height,gc(d),lr(d,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(e,r,s){for(var a=e+r;e<a;++e)if(s(this.lines[e]))return!0}};function xs(e){this.children=e;for(var r=0,s=0,a=0;a<e.length;++a){var d=e[a];r+=d.chunkSize(),s+=d.height,d.parent=this}this.size=r,this.height=s,this.parent=null}xs.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],d=a.chunkSize();if(e<d){var p=Math.min(r,d-e),v=a.height;if(a.removeInner(e,p),this.height-=v-a.height,d==p&&(this.children.splice(s--,1),a.parent=null),(r-=p)==0)break;e=0}else e-=d}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof Ma))){var m=[];this.collapse(m),this.children=[new Ma(m)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<=p){if(d.insertInner(e,r,s),d.lines&&d.lines.length>50){for(var v=d.lines.length%25+25,m=v;m<d.lines.length;){var y=new Ma(d.lines.slice(m,m+=25));d.height-=y.height,this.children.splice(++a,0,y),y.parent=this}d.lines=d.lines.slice(0,v),this.maybeSpill()}break}e-=p}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var r=e.children.splice(e.children.length-5,5),s=new xs(r);if(e.parent){e.size-=s.size,e.height-=s.height;var d=Le(e.parent.children,e);e.parent.children.splice(d+1,0,s)}else{var a=new xs(e.children);a.parent=e,e.children=[a,s],e=a}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,r,s){for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<p){var v=Math.min(r,p-e);if(d.iterN(e,v,s))return!0;if((r-=v)==0)break;e=0}else e-=p}}};var zs=function(e,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=r};zs.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,s=this.line,a=Lt(s);if(!(a==null||!r)){for(var d=0;d<r.length;++d)r[d]==this&&r.splice(d--,1);r.length||(s.widgets=null);var p=To(this);tn(s,Math.max(0,s.height-p)),e&&(kr(e,function(){Gc(e,s,-p),Qi(e,a,"widget")}),lr(e,"lineWidgetCleared",e,this,a))}},zs.prototype.changed=function(){var e=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var d=To(this)-r;d&&(Ut(this.doc,a)||tn(a,a.height+d),s&&kr(s,function(){s.curOp.forceUpdate=!0,Gc(s,a,d),lr(s,"lineWidgetChanged",s,e,Lt(a))}))},Nn(zs);function Gc(e,r,s){Kr(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ba(e,s)}function qc(e,r,s,a){var d=new zs(e,s,a),p=e.cm;return p&&d.noHScroll&&(p.display.alignWidgets=!0),Ho(e,r,"widget",function(v){var m=v.widgets||(v.widgets=[]);if(d.insertAt==null?m.push(d):m.splice(Math.min(m.length,Math.max(0,d.insertAt)),0,d),d.line=v,p&&!Ut(e,v)){var y=Kr(v)<e.scrollTop;tn(v,v.height+To(d)),y&&ba(p,d.height),p.curOp.forceUpdate=!0}return!0}),p&&lr(p,"lineWidgetAdded",p,d,typeof r=="number"?r:Lt(r)),d}var Rl=0,co=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++Rl};co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,r=e&&!e.curOp;if(r&&Zn(e),gr(this,"clear")){var s=this.find();s&&lr(this,"clear",s.from,s.to)}for(var a=null,d=null,p=0;p<this.lines.length;++p){var v=this.lines[p],m=is(v.markedSpans,this);e&&!this.collapsed?Qi(e,Lt(v),"text"):e&&(m.to!=null&&(d=Lt(v)),m.from!=null&&(a=Lt(v))),v.markedSpans=Pd(v.markedSpans,m),m.from==null&&this.collapsed&&!Ut(this.doc,v)&&e&&tn(v,Xi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=Qn(this.lines[y]),T=as(C);T>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=T,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&ot(e,a,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ws(e.doc)),e&&lr(e,"markerCleared",e,this,a,d),r&&ni(e),this.parent&&this.parent.clear()}},co.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,d=0;d<this.lines.length;++d){var p=this.lines[d],v=is(p.markedSpans,this);if(v.from!=null&&(s=ae(r?p:Lt(p),v.from),e==-1))return s;if(v.to!=null&&(a=ae(r?p:Lt(p),v.to),e==1))return a}return s&&{from:s,to:a}},co.prototype.changed=function(){var e=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||kr(a,function(){var d=r.line,p=Lt(r.line),v=R1(a,p);if(v&&(Lc(v),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Ut(s.doc,d)&&s.height!=null){var m=s.height;s.height=null;var y=To(s)-m;y&&tn(d,d.height+y)}lr(a,"markerChanged",a,e)})},co.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||Le(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},co.prototype.detachLine=function(e){if(this.lines.splice(Le(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Nn(co);function fo(e,r,s,a,d){if(a&&a.shared)return jc(e,r,s,a,d);if(e.cm&&!e.cm.curOp)return qt(e.cm,fo)(e,r,s,a,d);var p=new co(e,d),v=x(r,s);if(a&&Tt(a,p,!1),v>0||v==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=O("span",[p.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(fc(e,r.line,r,s,p)||r.line!=s.line&&fc(e,s.line,r,s,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");sc()}p.addToHistory&&ai(e,{from:r,to:s,origin:"markText"},e.sel,NaN);var m=r.line,y=e.cm,C;if(e.iter(m,s.line+1,function(I){y&&p.collapsed&&!y.options.lineWrapping&&Qn(I)==y.display.maxLine&&(C=!0),p.collapsed&&m!=r.line&&tn(I,0),lc(I,new cl(p,m==r.line?r.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),p.collapsed&&e.iter(r.line,s.line+1,function(I){Ut(e,I)&&tn(I,0)}),p.clearOnEnter&&Ve(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(ac(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),p.collapsed&&(p.id=++Rl,p.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),p.collapsed)ot(y,r.line,s.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var T=r.line;T<=s.line;T++)Qi(y,T,"text");p.atomic&&ws(y.doc),lr(y,"markerAdded",y,p)}return p}var _a=function(e,r){this.markers=e,this.primary=r;for(var s=0;s<e.length;++s)e[s].parent=this};_a.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();lr(this,"clear")}},_a.prototype.find=function(e,r){return this.primary.find(e,r)},Nn(_a);function jc(e,r,s,a,d){a=Tt(a),a.shared=!1;var p=[fo(e,r,s,a,d)],v=p[0],m=a.widgetNode;return lo(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),p.push(fo(y,we(y,r),we(y,s),a,d));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;v=Qe(p)}),new _a(p,v)}function Q1(e){return e.findMarks(ae(e.first,0),e.clipPos(ae(e.lastLine())),function(r){return r.parent})}function Hl(e,r){for(var s=0;s<r.length;s++){var a=r[s],d=a.find(),p=e.clipPos(d.from),v=e.clipPos(d.to);if(x(p,v)){var m=fo(e,p,v,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function ff(e){for(var r=function(a){var d=e[a],p=[d.primary.doc];lo(d.primary.doc,function(y){return p.push(y)});for(var v=0;v<d.markers.length;v++){var m=d.markers[v];Le(p,m.doc)==-1&&(m.parent=null,d.markers.splice(v--,1))}},s=0;s<e.length;s++)r(s)}var Kc=0,Nr=function(e,r,s,a,d){if(!(this instanceof Nr))return new Nr(e,r,s,a,d);s==null&&(s=0),xs.call(this,[new Ma([new _r("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var p=ae(s,0);this.sel=ao(p),this.history=new Do(null),this.id=++Kc,this.modeOption=r,this.lineSep=a,this.direction=d=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),kl(this,{from:p,to:p,text:e}),br(this,ao(p),st)};Nr.prototype=en(xs.prototype,{constructor:Nr,iter:function(e,r,s){s?this.iterN(e-this.first,r-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(e-this.first,r,s)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=rs(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:M(function(e){var r=ae(this.first,0),s=this.first+this.size-1;wa(this,{from:r,to:ae(s,Ee(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&hs(this.cm,0,0),br(this,ao(r),st)}),replaceRange:function(e,r,s,a){r=we(this,r),s=s?we(this,s):r,La(this,e,r,s,a)},getRange:function(e,r,s){var a=dn(this,we(this,e),we(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(Ui(this,e))return Ee(this,e)},getLineNumber:function(e){return Lt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ee(this,e)),Qn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return we(this,e)},getCursor:function(e){var r=this.sel.primary(),s;return e==null||e=="head"?s=r.head:e=="anchor"?s=r.anchor:e=="end"||e=="to"||e===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:M(function(e,r,s){J1(this,we(this,typeof e=="number"?ae(e,r||0):e),null,s)}),setSelection:M(function(e,r,s){J1(this,we(this,e),we(this,r||e),s)}),extendSelection:M(function(e,r,s){Il(this,we(this,e),r&&we(this,r),s)}),extendSelections:M(function(e,r){Cs(this,rn(this,e),r)}),extendSelectionsBy:M(function(e,r){var s=bt(this.sel.ranges,e);Cs(this,rn(this,s),r)}),setSelections:M(function(e,r,s){if(e.length){for(var a=[],d=0;d<e.length;d++)a[d]=new St(we(this,e[d].anchor),we(this,e[d].head||e[d].anchor));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),br(this,Er(this.cm,a,r),s)}}),addSelection:M(function(e,r,s){var a=this.sel.ranges.slice(0);a.push(new St(we(this,e),we(this,r||e))),br(this,Er(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var d=dn(this,r[a].from(),r[a].to());s=s?s.concat(d):d}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var d=dn(this,s[a].from(),s[a].to());e!==!1&&(d=d.join(e||this.lineSeparator())),r[a]=d}return r},replaceSelection:function(e,r,s){for(var a=[],d=0;d<this.sel.ranges.length;d++)a[d]=e;this.replaceSelections(a,r,s||"+input")},replaceSelections:M(function(e,r,s){for(var a=[],d=this.sel,p=0;p<d.ranges.length;p++){var v=d.ranges[p];a[p]={from:v.from(),to:v.to(),text:this.splitLines(e[p]),origin:s}}for(var m=r&&r!="end"&&uf(this,a,r),y=a.length-1;y>=0;y--)wa(this,a[y]);m?Al(this,m):this.cm&&ro(this.cm)}),undo:M(function(){Nl(this,"undo")}),redo:M(function(){Nl(this,"redo")}),undoSelection:M(function(){Nl(this,"undo",!0)}),redoSelection:M(function(){Nl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++r;for(var d=0;d<e.undone.length;d++)e.undone[d].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var e=this;this.history=new Do(this.history),lo(this,function(r){return r.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:pn(this.history.done),undone:pn(this.history.undone)}},setHistory:function(e){var r=this.history=new Do(this.history);r.done=pn(e.done.slice(0),null,!0),r.undone=pn(e.undone.slice(0),null,!0)},setGutterMarker:M(function(e,r,s){return Ho(this,e,"gutter",function(a){var d=a.gutterMarkers||(a.gutterMarkers={});return d[r]=s,!s&&se(d)&&(a.gutterMarkers=null),!0})}),clearGutter:M(function(e){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Ho(r,s,"gutter",function(){return s.gutterMarkers[e]=null,se(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!Ui(this,e)||(r=e,e=Ee(this,e),!e))return null}else if(r=Lt(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:M(function(e,r,s){return Ho(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[d])a[d]=s;else{if(Ce(s).test(a[d]))return!1;a[d]+=" "+s}return!0})}),removeLineClass:M(function(e,r,s){return Ho(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",p=a[d];if(p)if(s==null)a[d]=null;else{var v=p.match(Ce(s));if(!v)return!1;var m=v.index+v[0].length;a[d]=p.slice(0,v.index)+(!v.index||m==p.length?"":" ")+p.slice(m)||null}else return!1;return!0})}),addLineWidget:M(function(e,r,s){return qc(this,e,r,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,s){return fo(this,we(this,e),we(this,r),s,s&&s.type||"range")},setBookmark:function(e,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return e=we(this,e),fo(this,e,e,s,"bookmark")},findMarksAt:function(e){e=we(this,e);var r=[],s=Ee(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var d=s[a];(d.from==null||d.from<=e.ch)&&(d.to==null||d.to>=e.ch)&&r.push(d.marker.parent||d.marker)}return r},findMarks:function(e,r,s){e=we(this,e),r=we(this,r);var a=[],d=e.line;return this.iter(e.line,r.line+1,function(p){var v=p.markedSpans;if(v)for(var m=0;m<v.length;m++){var y=v[m];!(y.to!=null&&d==e.line&&e.ch>=y.to||y.from==null&&d!=e.line||y.from!=null&&d==r.line&&y.from>=r.ch)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++d}),a},getAllMarks:function(){var e=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&e.push(s[a].marker)}),e},posFromIndex:function(e){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(d){var p=d.text.length+a;if(p>e)return r=e,!0;e-=p,++s}),we(this,ae(s,r))},indexFromPos:function(e){e=we(this,e);var r=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(a){r+=a.text.length+s}),r},copy:function(e){var r=new Nr(rs(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,s=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Nr(rs(this,r,s),e.mode||this.modeOption,r,this.lineSep,this.direction);return e.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:e.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Hl(a,Q1(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==e){this.linked.splice(r,1),e.unlinkDoc(this),ff(Q1(this));break}}if(e.history==this.history){var a=[e.id];lo(e,function(d){return a.push(d.id)},!0),e.history=new Do(null),e.history.done=pn(this.history.done,a),e.history.undone=pn(this.history.undone,a)}},iterLinkedDocs:function(e){lo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):zo(e)},lineSeparator:function(){return this.lineSep||`
2954
2978
  `},setDirection:M(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&ys(this.cm))})}),Nr.prototype.eachLine=Nr.prototype.iter;var Yc=0;function Xc(e){var r=this;if(tu(r),!(Jt(r,e)||wi(r.display,e))){vr(e),z&&(Yc=+new Date);var s=ti(r,e,!0),a=e.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var d=a.length,p=Array(d),v=0,m=function(){++v==d&&qt(r,function(){s=we(r.doc,s);var F={from:s,to:s,text:r.doc.splitLines(p.filter(function(K){return K!=null}).join(r.doc.lineSeparator())),origin:"paste"};wa(r.doc,F),Al(r.doc,ao(we(r.doc,s),we(r.doc,so(F))))})()},y=function(F,K){if(r.options.allowDropFileTypes&&Le(r.options.allowDropFileTypes,F.type)==-1){m();return}var ne=new FileReader;ne.onerror=function(){return m()},ne.onload=function(){var he=ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(he)){m();return}p[K]=he,m()},ne.readAsText(F)},C=0;C<a.length;C++)y(a[C],C);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var T=e.dataTransfer.getData("Text");if(T){var I;if(r.state.draggingText&&!r.state.draggingText.copy&&(I=r.listSelections()),gn(r.doc,ao(s,s)),I)for(var V=0;V<I.length;++V)La(r.doc,"",I[V].anchor,I[V].head,"drag");r.replaceSelection(T,"around","paste"),r.display.input.focus()}}catch{}}}}function hf(e,r){if(z&&(!e.state.draggingText||+new Date-Yc<100)){wo(r);return}if(!(Jt(e,r)||wi(e.display,r))&&(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!J)){var s=k("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",H&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),H&&s.parentNode.removeChild(s)}}function eu(e,r){var s=ti(e,r);if(s){var a=document.createDocumentFragment();zi(e,s,a),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),$(e.display.dragCursor,a)}}function tu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Fl(e){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var d=r[a].CodeMirror;d&&s.push(d)}s.length&&s[0].operation(function(){for(var p=0;p<s.length;p++)e(s[p])})}}var Jc=!1;function ru(){Jc||(dt(),Jc=!0)}function dt(){var e;Ve(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Fl(pf)},100))}),Ve(window,"blur",function(){return Fl(Io)})}function pf(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var ho={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Li=0;Li<10;Li++)ho[Li+48]=ho[Li+96]=String(Li);for(var Ls=65;Ls<=90;Ls++)ho[Ls]=String.fromCharCode(Ls);for(var Ss=1;Ss<=12;Ss++)ho[Ss+111]=ho[Ss+63235]="F"+Ss;var Si={};Si.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Si.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Si.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Si.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Si.default=ve?Si.macDefault:Si.pcDefault;function Ln(e){var r=e.split(/-(?!$)/);e=r[r.length-1];for(var s,a,d,p,v=0;v<r.length-1;v++){var m=r[v];if(/^(cmd|meta|m)$/i.test(m))p=!0;else if(/^a(lt)?$/i.test(m))s=!0;else if(/^(c|ctrl|control)$/i.test(m))a=!0;else if(/^s(hift)?$/i.test(m))d=!0;else throw new Error("Unrecognized modifier name: "+m)}return s&&(e="Alt-"+e),a&&(e="Ctrl-"+e),p&&(e="Cmd-"+e),d&&(e="Shift-"+e),e}function gf(e){var r={};for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete e[s];continue}for(var d=bt(s.split(" "),Ln),p=0;p<d.length;p++){var v=void 0,m=void 0;p==d.length-1?(m=d.join(" "),v=a):(m=d.slice(0,p+1).join(" "),v="...");var y=r[m];if(!y)r[m]=v;else if(y!=v)throw new Error("Inconsistent bindings for "+m)}delete e[s]}for(var C in r)e[C]=r[C];return e}function Mi(e,r,s,a){r=Rr(r);var d=r.call?r.call(e,a):r[e];if(d===!1)return"nothing";if(d==="...")return"multi";if(d!=null&&s(d))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return Mi(e,r.fallthrough,s,a);for(var p=0;p<r.fallthrough.length;p++){var v=Mi(e,r.fallthrough[p],s,a);if(v)return v}}}function Bl(e){var r=typeof e=="string"?e:ho[e.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function nu(e,r,s){var a=e;return r.altKey&&a!="Alt"&&(e="Alt-"+e),(je?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(e="Ctrl-"+e),(je?r.ctrlKey:r.metaKey)&&a!="Mod"&&(e="Cmd-"+e),!s&&r.shiftKey&&a!="Shift"&&(e="Shift-"+e),e}function iu(e,r){if(H&&e.keyCode==34&&e.char)return!1;var s=ho[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),nu(s,e,r))}function Rr(e){return typeof e=="string"?Si[e]:e}function vn(e,r){for(var s=e.doc.sel.ranges,a=[],d=0;d<s.length;d++){for(var p=r(s[d]);a.length&&x(p.from,Qe(a).to)<=0;){var v=a.pop();if(x(v.from,p.from)<0){p.from=v.from;break}}a.push(p)}kr(e,function(){for(var m=a.length-1;m>=0;m--)La(e.doc,"",a[m].from,a[m].to,"+delete");ro(e)})}function Ms(e,r,s){var a=sr(e.text,r+s,s);return a<0||a>e.text.length?null:a}function Vl(e,r,s){var a=Ms(e,r.ch,s);return a==null?null:new ae(r.line,a,s<0?"after":"before")}function Ta(e,r,s,a,d){if(e){r.doc.direction=="rtl"&&(d=-d);var p=Dr(s,r.doc.direction);if(p){var v=d<0?Qe(p):p[0],m=d<0==(v.level==1),y=m?"after":"before",C;if(v.level>0||r.doc.direction=="rtl"){var T=Vn(r,s);C=d<0?s.text.length-1:0;var I=ei(r,T,C).top;C=Lr(function(V){return ei(r,T,V).top==I},d<0==(v.level==1)?v.from:v.to-1,C),y=="before"&&(C=Ms(s,C,1))}else C=d<0?v.to:v.from;return new ae(a,C,y)}}return new ae(a,d<0?s.text.length:0,d<0?"before":"after")}function Qc(e,r,s,a){var d=Dr(r,e.doc.direction);if(!d)return Vl(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var p=Wt(d,s.ch,s.sticky),v=d[p];if(e.doc.direction=="ltr"&&v.level%2==0&&(a>0?v.to>s.ch:v.from<s.ch))return Vl(r,s,a);var m=function(me,xe){return Ms(r,me instanceof ae?me.ch:me,xe)},y,C=function(me){return e.options.lineWrapping?(y=y||Vn(e,r),j(e,r,y,me)):{begin:0,end:r.text.length}},T=C(s.sticky=="before"?m(s,-1):s.ch);if(e.doc.direction=="rtl"||v.level==1){var I=v.level==1==a<0,V=m(s,I?1:-1);if(V!=null&&(I?V<=v.to&&V<=T.end:V>=v.from&&V>=T.begin)){var F=I?"before":"after";return new ae(s.line,V,F)}}var K=function(me,xe,ye){for(var Se=function(It,rr){return rr?new ae(s.line,m(It,1),"before"):new ae(s.line,It,"after")};me>=0&&me<d.length;me+=xe){var Fe=d[me],Pe=xe>0==(Fe.level!=1),ut=Pe?ye.begin:m(ye.end,-1);if(Fe.from<=ut&&ut<Fe.to||(ut=Pe?Fe.from:m(Fe.to,-1),ye.begin<=ut&&ut<ye.end))return Se(ut,Pe)}},ne=K(p+a,a,T);if(ne)return ne;var he=a>0?T.end:m(T.begin,-1);return he!=null&&!(a>0&&he==r.text.length)&&(ne=K(a>0?0:d.length-1,a,C(he)),ne)?ne:null}var Fo={selectAll:Vc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),st)},killLine:function(e){return vn(e,function(r){if(r.empty()){var s=Ee(e.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<e.lastLine()?{from:r.head,to:ae(r.head.line+1,0)}:{from:r.head,to:ae(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(e){return vn(e,function(r){return{from:ae(r.from().line,0),to:we(e.doc,ae(r.to().line+1,0))}})},delLineLeft:function(e){return vn(e,function(r){return{from:ae(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(e){return vn(e,function(r){var s=e.charCoords(r.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(e){return vn(e,function(r){var s=e.charCoords(r.head,"div").top+5,a=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:a}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ae(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ae(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(r){return ou(e,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(r){return Wl(e,r.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(r){return au(e,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},Ue)},goLineLeft:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},Ue)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return a.ch<e.getLine(a.line).search(/\S/)?Wl(e,r.head):a},Ue)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var r=[],s=e.listSelections(),a=e.options.tabSize,d=0;d<s.length;d++){var p=s[d].from(),v=zt(e.getLine(p.line),p.ch,a);r.push(tr(a-v%a))}e.replaceSelections(r)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return kr(e,function(){for(var r=e.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var d=r[a].head,p=Ee(e.doc,d.line).text;if(p){if(d.ch==p.length&&(d=new ae(d.line,d.ch-1)),d.ch>0)d=new ae(d.line,d.ch+1),e.replaceRange(p.charAt(d.ch-1)+p.charAt(d.ch-2),ae(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var v=Ee(e.doc,d.line-1).text;v&&(d=new ae(d.line,1),e.replaceRange(p.charAt(0)+e.doc.lineSeparator()+v.charAt(v.length-1),ae(d.line-1,v.length-1),d,"+transpose"))}}s.push(new St(d,d))}e.setSelections(s)})},newlineAndIndent:function(e){return kr(e,function(){for(var r=e.listSelections(),s=r.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=e.listSelections();for(var a=0;a<r.length;a++)e.indentLine(r[a].from().line,null,!0);ro(e)})},openLine:function(e){return e.replaceSelection(`
2955
2979
  `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ou(e,r){var s=Ee(e.doc,r),a=Qn(s);return a!=s&&(r=Lt(a)),Ta(!0,e,a,r,1)}function au(e,r){var s=Ee(e.doc,r),a=Hd(s);return a!=s&&(r=Lt(a)),Ta(!0,e,s,r,-1)}function Wl(e,r){var s=ou(e,r.line),a=Ee(e.doc,s.line),d=Dr(a,e.doc.direction);if(!d||d[0].level==0){var p=Math.max(s.ch,a.text.search(/\S/)),v=r.line==s.line&&r.ch<=p&&r.ch;return ae(s.line,v?0:p,s.sticky)}return s}function Un(e,r,s){if(typeof r=="string"&&(r=Fo[r],!r))return!1;e.display.input.ensurePolled();var a=e.display.shift,d=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),d=r(e)!=Ge}finally{e.display.shift=a,e.state.suppressEdits=!1}return d}function vf(e,r,s){for(var a=0;a<e.state.keyMaps.length;a++){var d=Mi(r,e.state.keyMaps[a],s,e);if(d)return d}return e.options.extraKeys&&Mi(r,e.options.extraKeys,s,e)||Mi(r,e.options.keyMap,s,e)}var po=new rt;function ka(e,r,s,a){var d=e.state.keySeq;if(d){if(Bl(r))return"handled";if(/\'$/.test(r)?e.state.keySeq=null:po.set(50,function(){e.state.keySeq==d&&(e.state.keySeq=null,e.display.input.reset())}),su(e,d+" "+r,s,a))return!0}return su(e,r,s,a)}function su(e,r,s,a){var d=vf(e,r,a);return d=="multi"&&(e.state.keySeq=r),d=="handled"&&lr(e,"keyHandled",e,r,s),(d=="handled"||d=="multi")&&(vr(s),pa(e)),!!d}function Zl(e,r){var s=iu(r,!0);return s?r.shiftKey&&!e.state.keySeq?ka(e,"Shift-"+s,r,function(a){return Un(e,a,!0)})||ka(e,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Un(e,a)}):ka(e,s,r,function(a){return Un(e,a)}):!1}function bf(e,r,s){return ka(e,"'"+s+"'",r,function(a){return Un(e,a,!0)})}var lu=null;function e0(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&(r.curOp.focus=Ae(),!Jt(r,e))){z&&S<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;r.display.shift=s==16||e.shiftKey;var a=Zl(r,e);H&&(lu=a?s:null,!a&&s==88&&!ol&&(ve?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),c&&!ve&&!a&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&t0(r)}}function t0(e){var r=e.display.lineDiv;et(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(ue(r,"CodeMirror-crosshair"),Sr(document,"keyup",s),Sr(document,"mouseover",s))}Ve(document,"keyup",s),Ve(document,"mouseover",s)}function uu(e){e.keyCode==16&&(this.doc.sel.shift=!1),Jt(this,e)}function r0(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&!(wi(r.display,e)||Jt(r,e)||e.ctrlKey&&!e.altKey||ve&&e.metaKey)){var s=e.keyCode,a=e.charCode;if(H&&s==lu){lu=null,vr(e);return}if(!(H&&(!e.which||e.which<10)&&Zl(r,e))){var d=String.fromCharCode(a==null?s:a);d!="\b"&&(bf(r,e,d)||r.display.input.onKeyPress(e))}}}var n0=400,Ul=function(e,r,s){this.time=e,this.pos=r,this.button=s};Ul.prototype.compare=function(e,r,s){return this.time+n0>e&&x(r,this.pos)==0&&s==this.button};var yr,an;function mf(e,r){var s=+new Date;return an&&an.compare(s,e,r)?(yr=an=null,"triple"):yr&&yr.compare(s,e,r)?(an=new Ul(s,e,r),yr=null,"double"):(yr=new Ul(s,e,r),an=null,"single")}function i0(e){var r=this,s=r.display;if(!(Jt(r,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,wi(s,e)){E||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!cu(r,e)){var a=ti(r,e),d=Xa(e),p=a?mf(a,d):"single";window.focus(),d==1&&r.state.selectingText&&r.state.selectingText(e),!(a&&Gl(r,d,a,p,e))&&(d==1?a?o0(r,a,p,e):Wi(e)==s.scroller&&vr(e):d==2?(a&&Il(r.doc,a),setTimeout(function(){return s.input.focus()},20)):d==3&&(Ye?r.display.input.onContextMenu(e):Ll(r)))}}}function Gl(e,r,s,a,d){var p="Click";return a=="double"?p="Double"+p:a=="triple"&&(p="Triple"+p),p=(r==1?"Left":r==2?"Middle":"Right")+p,ka(e,nu(p,d),d,function(v){if(typeof v=="string"&&(v=Fo[v]),!v)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=v(e,s)!=Ge}finally{e.state.suppressEdits=!1}return m})}function Oa(e,r,s){var a=e.getOption("configureMouse"),d=a?a(e,r,s):{};if(d.unit==null){var p=ke?s.shiftKey&&s.metaKey:s.altKey;d.unit=p?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||s.shiftKey),d.addNew==null&&(d.addNew=ve?s.metaKey:s.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(ve?s.altKey:s.ctrlKey)),d}function o0(e,r,s,a){z?setTimeout(or(H1,e),0):e.curOp.focus=Ae();var d=Oa(e,s,a),p=e.doc.sel,v;e.options.dragDrop&&Ja&&!e.isReadOnly()&&s=="single"&&(v=p.contains(r))>-1&&(x((v=p.ranges[v]).from(),r)<0||r.xRel>0)&&(x(v.to(),r)>0||r.xRel<0)?a0(e,a,r,d):l0(e,a,r,d)}function a0(e,r,s,a){var d=e.display,p=!1,v=qt(e,function(C){E&&(d.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ll(e)),Sr(d.wrapper.ownerDocument,"mouseup",v),Sr(d.wrapper.ownerDocument,"mousemove",m),Sr(d.scroller,"dragstart",y),Sr(d.scroller,"drop",v),p||(vr(C),a.addNew||Il(e.doc,s,null,null,a.extend),E&&!J||z&&S==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),m=function(C){p=p||Math.abs(r.clientX-C.clientX)+Math.abs(r.clientY-C.clientY)>=10},y=function(){return p=!0};E&&(d.scroller.draggable=!0),e.state.draggingText=v,v.copy=!a.moveOnDrag,Ve(d.wrapper.ownerDocument,"mouseup",v),Ve(d.wrapper.ownerDocument,"mousemove",m),Ve(d.scroller,"dragstart",y),Ve(d.scroller,"drop",v),e.state.delayingBlurEvent=!0,setTimeout(function(){return d.input.focus()},20),d.scroller.dragDrop&&d.scroller.dragDrop()}function s0(e,r,s){if(s=="char")return new St(r,r);if(s=="word")return e.findWordAt(r);if(s=="line")return new St(ae(r.line,0),we(e.doc,ae(r.line+1,0)));var a=s(e,r);return new St(a.from,a.to)}function l0(e,r,s,a){z&&Ll(e);var d=e.display,p=e.doc;vr(r);var v,m,y=p.sel,C=y.ranges;if(a.addNew&&!a.extend?(m=p.sel.contains(s),m>-1?v=C[m]:v=new St(s,s)):(v=p.sel.primary(),m=p.sel.primIndex),a.unit=="rectangle")a.addNew||(v=new St(s,s)),s=ti(e,r,!0,!0),m=-1;else{var T=s0(e,s,a.unit);a.extend?v=El(v,T.anchor,T.head,a.extend):v=T}a.addNew?m==-1?(m=C.length,br(p,Er(e,C.concat([v]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&a.unit=="char"&&!a.extend?(br(p,Er(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=p.sel):X1(p,m,v,lt):(m=0,br(p,new hn([v],0),lt),y=p.sel);var I=s;function V(ye){if(x(I,ye)!=0)if(I=ye,a.unit=="rectangle"){for(var Se=[],Fe=e.options.tabSize,Pe=zt(Ee(p,s.line).text,s.ch,Fe),ut=zt(Ee(p,ye.line).text,ye.ch,Fe),It=Math.min(Pe,ut),rr=Math.max(Pe,ut),Nt=Math.min(s.line,ye.line),Fr=Math.min(e.lastLine(),Math.max(s.line,ye.line));Nt<=Fr;Nt++){var Br=Ee(p,Nt).text,Xt=Zt(Br,It,Fe);It==rr?Se.push(new St(ae(Nt,Xt),ae(Nt,Xt))):Br.length>Xt&&Se.push(new St(ae(Nt,Xt),ae(Nt,Zt(Br,rr,Fe))))}Se.length||Se.push(new St(s,s)),br(p,Er(e,y.ranges.slice(0,m).concat(Se),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ye)}else{var Cr=v,cr=s0(e,ye,a.unit),$t=Cr.anchor,Ft;x(cr.anchor,$t)>0?(Ft=cr.head,$t=Ke(Cr.from(),cr.anchor)):(Ft=cr.anchor,$t=de(Cr.to(),cr.head));var jt=y.ranges.slice(0);jt[m]=Ea(e,new St(we(p,$t),Ft)),br(p,Er(e,jt,m),lt)}}var F=d.wrapper.getBoundingClientRect(),K=0;function ne(ye){var Se=++K,Fe=ti(e,ye,!0,a.unit=="rectangle");if(Fe)if(x(Fe,I)!=0){e.curOp.focus=Ae(),V(Fe);var Pe=Ao(d,p);(Fe.line>=Pe.to||Fe.line<Pe.from)&&setTimeout(qt(e,function(){K==Se&&ne(ye)}),150)}else{var ut=ye.clientY<F.top?-20:ye.clientY>F.bottom?20:0;ut&&setTimeout(qt(e,function(){K==Se&&(d.scroller.scrollTop+=ut,ne(ye))}),50)}}function he(ye){e.state.selectingText=!1,K=1/0,ye&&(vr(ye),d.input.focus()),Sr(d.wrapper.ownerDocument,"mousemove",me),Sr(d.wrapper.ownerDocument,"mouseup",xe),p.history.lastSelOrigin=null}var me=qt(e,function(ye){ye.buttons===0||!Xa(ye)?he(ye):ne(ye)}),xe=qt(e,he);e.state.selectingText=xe,Ve(d.wrapper.ownerDocument,"mousemove",me),Ve(d.wrapper.ownerDocument,"mouseup",xe)}function Ea(e,r){var s=r.anchor,a=r.head,d=Ee(e.doc,s.line);if(x(s,a)==0&&s.sticky==a.sticky)return r;var p=Dr(d);if(!p)return r;var v=Wt(p,s.ch,s.sticky),m=p[v];if(m.from!=s.ch&&m.to!=s.ch)return r;var y=v+(m.from==s.ch==(m.level!=1)?0:1);if(y==0||y==p.length)return r;var C;if(a.line!=s.line)C=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var T=Wt(p,a.ch,a.sticky),I=T-v||(a.ch-s.ch)*(m.level==1?-1:1);T==y-1||T==y?C=I<0:C=I>0}var V=p[y+(C?-1:0)],F=C==(V.level==1),K=F?V.from:V.to,ne=F?"after":"before";return s.ch==K&&s.sticky==ne?r:new St(new ae(s.line,K,ne),a)}function Ia(e,r,s,a){var d,p;if(r.touches)d=r.touches[0].clientX,p=r.touches[0].clientY;else try{d=r.clientX,p=r.clientY}catch{return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&vr(r);var v=e.display,m=v.lineDiv.getBoundingClientRect();if(p>m.bottom||!gr(e,s))return ln(r);p-=m.top-v.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=v.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=d){var T=Fn(e.doc,p),I=e.display.gutterSpecs[y];return qe(e,s,e,T,I.className,r),ln(r)}}}function cu(e,r){return Ia(e,r,"gutterClick",!0)}function du(e,r){wi(e.display,r)||u0(e,r)||Jt(e,r,"contextmenu")||Ye||e.display.input.onContextMenu(r)}function u0(e,r){return gr(e,"gutterContextMenu")?Ia(e,r,"gutterContextMenu",!1):!1}function _s(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),cs(e)}var Bo={toString:function(){return"CodeMirror.Init"}},Ts={},Aa={};function ql(e){var r=e.optionHandlers;function s(a,d,p,v){e.defaults[a]=d,p&&(r[a]=v?function(m,y,C){C!=Bo&&p(m,y,C)}:p)}e.defineOption=s,e.Init=Bo,s("value","",function(a,d){return a.setValue(d)},!0),s("mode",null,function(a,d){a.doc.modeOption=d,G1(a)},!0),s("indentUnit",2,G1,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){ms(a),cs(a),ot(a)},!0),s("lineSeparator",null,function(a,d){if(a.doc.lineSep=d,!!d){var p=[],v=a.doc.first;a.doc.iter(function(y){for(var C=0;;){var T=y.text.indexOf(d,C);if(T==-1)break;C=T+d.length,p.push(ae(v,T))}v++});for(var m=p.length-1;m>=0;m--)La(a.doc,d,p[m],ae(p[m].line,p[m].ch+d.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,d,p){a.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),p!=Bo&&a.refresh()}),s("specialCharPlaceholder",fn,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",be?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,d){return a.getInputField().spellcheck=d},!0),s("autocorrect",!1,function(a,d){return a.getInputField().autocorrect=d},!0),s("autocapitalize",!1,function(a,d){return a.getInputField().autocapitalize=d},!0),s("rtlMoveVisually",!$e),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){_s(a),bs(a)},!0),s("keyMap","default",function(a,d,p){var v=Rr(d),m=p!=Bo&&Rr(p);m&&m.detach&&m.detach(a,v),v.attach&&v.attach(a,m||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,c0,!0),s("gutters",[],function(a,d){a.display.gutterSpecs=Z1(d,a.options.lineNumbers),bs(a)},!0),s("fixedGutter",!0,function(a,d){a.display.gutters.style.left=d?ha(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return io(a)},!0),s("scrollbarStyle","native",function(a){Po(a),io(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,d){a.display.gutterSpecs=Z1(a.options.gutters,d),bs(a)},!0),s("firstLineNumber",1,bs,!0),s("lineNumberFormatter",function(a){return a},bs,!0),s("showCursorWhenSelecting",!1,ds,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,d){d=="nocursor"&&(Io(a),a.display.input.blur()),a.display.input.readOnlyChanged(d)}),s("screenReaderLabel",null,function(a,d){d=d===""?null:d,a.display.input.screenReaderLabelChanged(d)}),s("disableInput",!1,function(a,d){d||a.display.input.reset()},!0),s("dragDrop",!0,yf),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,ds,!0),s("singleCursorHeightPerLine",!0,ds,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,ms,!0),s("addModeClass",!1,ms,!0),s("pollInterval",100),s("undoDepth",200,function(a,d){return a.doc.history.undoDepth=d}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,ms,!0),s("moveInputWithCursor",!0,function(a,d){d||a.display.input.resetPosition()}),s("tabindex",null,function(a,d){return a.display.input.getField().tabIndex=d||""}),s("autofocus",null),s("direction","ltr",function(a,d){return a.doc.setDirection(d)},!0),s("phrases",null)}function yf(e,r,s){var a=s&&s!=Bo;if(!r!=!a){var d=e.display.dragFunctions,p=r?Ve:Sr;p(e.display.scroller,"dragstart",d.start),p(e.display.scroller,"dragenter",d.enter),p(e.display.scroller,"dragover",d.over),p(e.display.scroller,"dragleave",d.leave),p(e.display.scroller,"drop",d.drop)}}function c0(e){e.options.lineWrapping?(et(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ue(e.display.wrapper,"CodeMirror-wrap"),ss(e)),Ji(e),ot(e),cs(e),setTimeout(function(){return io(e)},100)}function Dt(e,r){var s=this;if(!(this instanceof Dt))return new Dt(e,r);this.options=r=r?Tt(r):{},Tt(Ts,r,!1);var a=r.value;typeof a=="string"?a=new Nr(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var d=new Dt.inputStyles[r.inputStyle](this),p=this.display=new sf(e,a,d,r);p.wrapper.CodeMirror=this,_s(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Po(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new rt,keySeq:null,specialChars:null},r.autofocus&&!be&&p.input.focus(),z&&S<11&&setTimeout(function(){return s.display.input.reset(!0)},20),d0(this),ru(),Zn(this),this.curOp.forceUpdate=!0,Rc(this,a),r.autofocus&&!be||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&ga(s)},20):Io(this);for(var v in Aa)Aa.hasOwnProperty(v)&&Aa[v](this,r[v],Bo);oi(this),r.finishInit&&r.finishInit(this);for(var m=0;m<ks.length;++m)ks[m](this);ni(this),E&&r.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}Dt.defaults=Ts,Dt.optionHandlers=Aa;function d0(e){var r=e.display;Ve(r.scroller,"mousedown",qt(e,i0)),z&&S<11?Ve(r.scroller,"dblclick",qt(e,function(y){if(!Jt(e,y)){var C=ti(e,y);if(!(!C||cu(e,y)||wi(e.display,y))){vr(y);var T=e.findWordAt(C);Il(e.doc,T.anchor,T.head)}}})):Ve(r.scroller,"dblclick",function(y){return Jt(e,y)||vr(y)}),Ve(r.scroller,"contextmenu",function(y){return du(e,y)}),Ve(r.input.getField(),"contextmenu",function(y){r.scroller.contains(y.target)||du(e,y)});var s,a={end:0};function d(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function p(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function v(y,C){if(C.left==null)return!0;var T=C.left-y.left,I=C.top-y.top;return T*T+I*I>20*20}Ve(r.scroller,"touchstart",function(y){if(!Jt(e,y)&&!p(y)&&!cu(e,y)){r.input.ensurePolled(),clearTimeout(s);var C=+new Date;r.activeTouch={start:C,moved:!1,prev:C-a.end<=300?a:null},y.touches.length==1&&(r.activeTouch.left=y.touches[0].pageX,r.activeTouch.top=y.touches[0].pageY)}}),Ve(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ve(r.scroller,"touchend",function(y){var C=r.activeTouch;if(C&&!wi(r,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var T=e.coordsChar(r.activeTouch,"page"),I;!C.prev||v(C,C.prev)?I=new St(T,T):!C.prev.prev||v(C,C.prev.prev)?I=e.findWordAt(T):I=new St(ae(T.line,0),we(e.doc,ae(T.line+1,0))),e.setSelection(I.anchor,I.head),e.focus(),vr(y)}d()}),Ve(r.scroller,"touchcancel",d),Ve(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Gt(e,r.scroller.scrollTop),$o(e,r.scroller.scrollLeft,!0),qe(e,"scroll",e))}),Ve(r.scroller,"mousewheel",function(y){return Dc(e,y)}),Ve(r.scroller,"DOMMouseScroll",function(y){return Dc(e,y)}),Ve(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(y){Jt(e,y)||wo(y)},over:function(y){Jt(e,y)||(eu(e,y),wo(y))},start:function(y){return hf(e,y)},drop:qt(e,Xc),leave:function(y){Jt(e,y)||tu(e)}};var m=r.input.getField();Ve(m,"keyup",function(y){return uu.call(e,y)}),Ve(m,"keydown",qt(e,e0)),Ve(m,"keypress",qt(e,r0)),Ve(m,"focus",function(y){return ga(e,y)}),Ve(m,"blur",function(y){return Io(e,y)})}var ks=[];Dt.defineInitHook=function(e){return ks.push(e)};function Os(e,r,s,a){var d=e.doc,p;s==null&&(s="add"),s=="smart"&&(d.mode.indent?p=ua(e,r).state:s="prev");var v=e.options.tabSize,m=Ee(d,r),y=zt(m.text,null,v);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],T;if(!a&&!/\S/.test(m.text))T=0,s="not";else if(s=="smart"&&(T=d.mode.indent(p,m.text.slice(C.length),m.text),T==Ge||T>150)){if(!a)return;s="prev"}s=="prev"?r>d.first?T=zt(Ee(d,r-1).text,null,v):T=0:s=="add"?T=y+e.options.indentUnit:s=="subtract"?T=y-e.options.indentUnit:typeof s=="number"&&(T=y+s),T=Math.max(0,T);var I="",V=0;if(e.options.indentWithTabs)for(var F=Math.floor(T/v);F;--F)V+=v,I+=" ";if(V<T&&(I+=tr(T-V)),I!=C)return La(d,I,ae(r,0),ae(r,C.length),"+input"),m.stateAfter=null,!0;for(var K=0;K<d.sel.ranges.length;K++){var ne=d.sel.ranges[K];if(ne.head.line==r&&ne.head.ch<C.length){var he=ae(r,C.length);X1(d,K,new St(he,he));break}}}var Sn=null;function Mn(e){Sn=e}function jl(e,r,s,a,d){var p=e.doc;e.display.shift=!1,a||(a=p.sel);var v=+new Date-200,m=d=="paste"||e.state.pasteIncoming>v,y=zo(r),C=null;if(m&&a.ranges.length>1)if(Sn&&Sn.text.join(`
2956
2980
  `)==r){if(a.ranges.length%Sn.text.length==0){C=[];for(var T=0;T<Sn.text.length;T++)C.push(p.splitLines(Sn.text[T]))}}else y.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(C=bt(y,function(me){return[me]}));for(var I=e.curOp.updateInput,V=a.ranges.length-1;V>=0;V--){var F=a.ranges[V],K=F.from(),ne=F.to();F.empty()&&(s&&s>0?K=ae(K.line,K.ch-s):e.state.overwrite&&!m?ne=ae(ne.line,Math.min(Ee(p,ne.line).text.length,ne.ch+Qe(y).length)):m&&Sn&&Sn.lineWise&&Sn.text.join(`
2957
2981
  `)==y.join(`
2958
- `)&&(K=ne=ae(K.line,0)));var he={from:K,to:ne,text:C?C[V%C.length]:y,origin:d||(m?"paste":e.state.cutIncoming>v?"cut":"+input")};wa(e.doc,he),lr(e,"inputRead",e,he)}r&&!m&&f0(e,r),ro(e),e.curOp.updateInput<2&&(e.curOp.updateInput=I),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function fu(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&kr(r,function(){return jl(r,s,0,null,"paste")}),!0}function f0(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var d=s.ranges[a];if(!(d.head.ch>100||a&&s.ranges[a-1].head.line==d.head.line)){var p=e.getModeAt(d.head),v=!1;if(p.electricChars){for(var m=0;m<p.electricChars.length;m++)if(r.indexOf(p.electricChars.charAt(m))>-1){v=Os(e,d.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(Ee(e.doc,d.head.line).text.slice(0,d.head.ch))&&(v=Os(e,d.head.line,"smart"));v&&lr(e,"electricInput",e,d.head.line)}}}function hu(e){for(var r=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var d=e.doc.sel.ranges[a].head.line,p={anchor:ae(d,0),head:ae(d+1,0)};s.push(p),r.push(e.getRange(p.anchor,p.head))}return{text:r,ranges:s}}function h0(e,r,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!r)}function p0(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return E?e.style.width="1000px":e.setAttribute("wrap","off"),Te&&(e.style.border="1px solid black"),h0(e),r}function _i(e){var r=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,d){var p=this.options,v=p[a];p[a]==d&&a!="mode"||(p[a]=d,r.hasOwnProperty(a)&&qt(this,r[a])(this,d,v),qe(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,d){this.state.keyMaps[d?"push":"unshift"](Rr(a))},removeKeyMap:function(a){for(var d=this.state.keyMaps,p=0;p<d.length;++p)if(d[p]==a||d[p].name==a)return d.splice(p,1),!0},addOverlay:Or(function(a,d){var p=a.token?a:e.getMode(this.options,a);if(p.startState)throw new Error("Overlays may not be stateful.");Et(this.state.overlays,{mode:p,modeSpec:a,opaque:d&&d.opaque,priority:d&&d.priority||0},function(v){return v.priority}),this.state.modeGen++,ot(this)}),removeOverlay:Or(function(a){for(var d=this.state.overlays,p=0;p<d.length;++p){var v=d[p].modeSpec;if(v==a||typeof a=="string"&&v.name==a){d.splice(p,1),this.state.modeGen++,ot(this);return}}}),indentLine:Or(function(a,d,p){typeof d!="string"&&typeof d!="number"&&(d==null?d=this.options.smartIndent?"smart":"prev":d=d?"add":"subtract"),Ui(this.doc,a)&&Os(this,a,d,p)}),indentSelection:Or(function(a){for(var d=this.doc.sel.ranges,p=-1,v=0;v<d.length;v++){var m=d[v];if(m.empty())m.head.line>p&&(Os(this,m.head.line,a,!0),p=m.head.line,v==this.doc.sel.primIndex&&ro(this));else{var y=m.from(),C=m.to(),T=Math.max(p,y.line);p=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var I=T;I<p;++I)Os(this,I,a);var V=this.doc.sel.ranges;y.ch==0&&d.length==V.length&&V[v].from().ch>0&&X1(this.doc,v,new St(y,V[v].to()),st)}}}),getTokenAt:function(a,d){return ul(this,a,d)},getLineTokens:function(a,d){return ul(this,ae(a),d,!0)},getTokenTypeAt:function(a){a=we(this.doc,a);var d=z1(this,Ee(this.doc,a.line)),p=0,v=(d.length-1)/2,m=a.ch,y;if(m==0)y=d[2];else for(;;){var C=p+v>>1;if((C?d[C*2-1]:0)>=m)v=C;else if(d[C*2+1]<m)p=C+1;else{y=d[C*2+2];break}}var T=y?y.indexOf("overlay "):-1;return T<0?y:T==0?null:y.slice(0,T-1)},getModeAt:function(a){var d=this.doc.mode;return d.innerMode?e.innerMode(d,this.getTokenAt(a).state).mode:d},getHelper:function(a,d){return this.getHelpers(a,d)[0]},getHelpers:function(a,d){var p=[];if(!s.hasOwnProperty(d))return p;var v=s[d],m=this.getModeAt(a);if(typeof m[d]=="string")v[m[d]]&&p.push(v[m[d]]);else if(m[d])for(var y=0;y<m[d].length;y++){var C=v[m[d][y]];C&&p.push(C)}else m.helperType&&v[m.helperType]?p.push(v[m.helperType]):v[m.name]&&p.push(v[m.name]);for(var T=0;T<v._global.length;T++){var I=v._global[T];I.pred(m,this)&&Le(p,I.val)==-1&&p.push(I.val)}return p},getStateAfter:function(a,d){var p=this.doc;return a=gt(p,a==null?p.first+p.size-1:a),ua(this,a+1,d).state},cursorCoords:function(a,d){var p,v=this.doc.sel.primary();return a==null?p=v.head:typeof a=="object"?p=we(this.doc,a):p=a?v.from():v.to(),Wn(this,p,d||"page")},charCoords:function(a,d){return zl(this,we(this.doc,a),d||"page")},coordsChar:function(a,d){return a=Mc(this,a,d||"page"),W(this,a.left,a.top)},lineAtHeight:function(a,d){return a=Mc(this,{top:a,left:0},d||"page").top,Fn(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,d,p){var v=!1,m;if(typeof a=="number"){var y=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>y&&(a=y,v=!0),m=Ee(this.doc,a)}else m=a;return xl(this,m,{top:0,left:0},d||"page",p||v).top+(v?this.doc.height-jr(m):0)},defaultTextHeight:function(){return Xi(this.display)},defaultCharWidth:function(){return fa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,d,p,v,m){var y=this.display;a=Wn(this,we(this.doc,a));var C=a.bottom,T=a.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),y.sizer.appendChild(d),v=="over")C=a.top;else if(v=="above"||v=="near"){var I=Math.max(y.wrapper.clientHeight,this.doc.height),V=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(v=="above"||a.bottom+d.offsetHeight>I)&&a.top>d.offsetHeight?C=a.top-d.offsetHeight:a.bottom+d.offsetHeight<=I&&(C=a.bottom),T+d.offsetWidth>V&&(T=V-d.offsetWidth)}d.style.top=C+"px",d.style.left=d.style.right="",m=="right"?(T=y.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(m=="left"?T=0:m=="middle"&&(T=(y.sizer.clientWidth-d.offsetWidth)/2),d.style.left=T+"px"),p&&Xd(this,{left:T,top:C,right:T+d.offsetWidth,bottom:C+d.offsetHeight})},triggerOnKeyDown:Or(e0),triggerOnKeyPress:Or(r0),triggerOnKeyUp:uu,triggerOnMouseDown:Or(i0),execCommand:function(a){if(Fo.hasOwnProperty(a))return Fo[a].call(null,this)},triggerElectric:Or(function(a){f0(this,a)}),findPosH:function(a,d,p,v){var m=1;d<0&&(m=-1,d=-d);for(var y=we(this.doc,a),C=0;C<d&&(y=Es(this.doc,y,m,p,v),!y.hitSide);++C);return y},moveH:Or(function(a,d){var p=this;this.extendSelectionsBy(function(v){return p.display.shift||p.doc.extend||v.empty()?Es(p.doc,v.head,a,d,p.options.rtlMoveVisually):a<0?v.from():v.to()},Ue)}),deleteH:Or(function(a,d){var p=this.doc.sel,v=this.doc;p.somethingSelected()?v.replaceSelection("",null,"+delete"):vn(this,function(m){var y=Es(v,m.head,a,d,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,d,p,v){var m=1,y=v;d<0&&(m=-1,d=-d);for(var C=we(this.doc,a),T=0;T<d;++T){var I=Wn(this,C,"div");if(y==null?y=I.left:I.left=y,C=Kl(this,I,m,p),C.hitSide)break}return C},moveV:Or(function(a,d){var p=this,v=this.doc,m=[],y=!this.display.shift&&!v.extend&&v.sel.somethingSelected();if(v.extendSelectionsBy(function(T){if(y)return a<0?T.from():T.to();var I=Wn(p,T.head,"div");T.goalColumn!=null&&(I.left=T.goalColumn),m.push(I.left);var V=Kl(p,I,a,d);return d=="page"&&T==v.sel.primary()&&ba(p,zl(p,V,"div").top-I.top),V},Ue),m.length)for(var C=0;C<v.sel.ranges.length;C++)v.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var d=this.doc,p=Ee(d,a.line).text,v=a.ch,m=a.ch;if(p){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==p.length)&&v?--v:++m;for(var C=p.charAt(v),T=U(C,y)?function(I){return U(I,y)}:/\s/.test(C)?function(I){return/\s/.test(I)}:function(I){return!/\s/.test(I)&&!U(I)};v>0&&T(p.charAt(v-1));)--v;for(;m<p.length&&T(p.charAt(m));)++m}return new St(ae(a.line,v),ae(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?et(this.display.cursorDiv,"CodeMirror-overwrite"):ue(this.display.cursorDiv,"CodeMirror-overwrite"),qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Or(function(a,d){hs(this,a,d)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-nn(this)-this.display.barHeight,width:a.scrollWidth-nn(this)-this.display.barWidth,clientHeight:ml(this),clientWidth:ji(this)}},scrollIntoView:Or(function(a,d){a==null?(a={from:this.doc.sel.primary().head,to:null},d==null&&(d=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ae(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=d||0,a.from.line!=null?Ec(this,a):Ic(this,a.from,a.to,a.margin)}),setSize:Or(function(a,d){var p=this,v=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=v(a)),d!=null&&(this.display.wrapper.style.height=v(d)),this.options.lineWrapping&&Sc(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(y){if(y.widgets){for(var C=0;C<y.widgets.length;C++)if(y.widgets[C].noHScroll){Qi(p,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,qe(this,"refresh",this)}),operation:function(a){return kr(this,a)},startOperation:function(){return Zn(this)},endOperation:function(){return ni(this)},refresh:Or(function(){var a=this.display.cachedTextHeight;ot(this),this.curOp.forceUpdate=!0,cs(this),hs(this,this.doc.scrollLeft,this.doc.scrollTop),V1(this.display),(a==null||Math.abs(a-Xi(this.display))>.5||this.options.lineWrapping)&&Ji(this),qe(this,"refresh",this)}),swapDoc:Or(function(a){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),Rc(this,a),cs(this),this.display.input.reset(),hs(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,lr(this,"swapDoc",this,d),d}),phrase:function(a){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,a)?d[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Nn(e),e.registerHelper=function(a,d,p){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][d]=p},e.registerGlobalHelper=function(a,d,p,v){e.registerHelper(a,d,v),s[a]._global.push({pred:p,val:v})}}function Es(e,r,s,a,d){var p=r,v=s,m=Ee(e,r.line),y=d&&e.direction=="rtl"?-s:s;function C(){var xe=r.line+y;return xe<e.first||xe>=e.first+e.size?!1:(r=new ae(xe,r.ch,r.sticky),m=Ee(e,xe))}function T(xe){var ye;if(a=="codepoint"){var Se=m.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(Se))ye=null;else{var Fe=s>0?Se>=55296&&Se<56320:Se>=56320&&Se<57343;ye=new ae(r.line,Math.max(0,Math.min(m.text.length,r.ch+s*(Fe?2:1))),-s)}}else d?ye=Qc(e.cm,m,r,s):ye=Vl(m,r,s);if(ye==null)if(!xe&&C())r=Ta(d,e.cm,m,r.line,y);else return!1;else r=ye;return!0}if(a=="char"||a=="codepoint")T();else if(a=="column")T(!0);else if(a=="word"||a=="group")for(var I=null,V=a=="group",F=e.cm&&e.cm.getHelper(r,"wordChars"),K=!0;!(s<0&&!T(!K));K=!1){var ne=m.text.charAt(r.ch)||`
2982
+ `)&&(K=ne=ae(K.line,0)));var he={from:K,to:ne,text:C?C[V%C.length]:y,origin:d||(m?"paste":e.state.cutIncoming>v?"cut":"+input")};wa(e.doc,he),lr(e,"inputRead",e,he)}r&&!m&&f0(e,r),ro(e),e.curOp.updateInput<2&&(e.curOp.updateInput=I),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function fu(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&kr(r,function(){return jl(r,s,0,null,"paste")}),!0}function f0(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var d=s.ranges[a];if(!(d.head.ch>100||a&&s.ranges[a-1].head.line==d.head.line)){var p=e.getModeAt(d.head),v=!1;if(p.electricChars){for(var m=0;m<p.electricChars.length;m++)if(r.indexOf(p.electricChars.charAt(m))>-1){v=Os(e,d.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(Ee(e.doc,d.head.line).text.slice(0,d.head.ch))&&(v=Os(e,d.head.line,"smart"));v&&lr(e,"electricInput",e,d.head.line)}}}function hu(e){for(var r=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var d=e.doc.sel.ranges[a].head.line,p={anchor:ae(d,0),head:ae(d+1,0)};s.push(p),r.push(e.getRange(p.anchor,p.head))}return{text:r,ranges:s}}function h0(e,r,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!r)}function p0(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return E?e.style.width="1000px":e.setAttribute("wrap","off"),Te&&(e.style.border="1px solid black"),h0(e),r}function _i(e){var r=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,d){var p=this.options,v=p[a];p[a]==d&&a!="mode"||(p[a]=d,r.hasOwnProperty(a)&&qt(this,r[a])(this,d,v),qe(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,d){this.state.keyMaps[d?"push":"unshift"](Rr(a))},removeKeyMap:function(a){for(var d=this.state.keyMaps,p=0;p<d.length;++p)if(d[p]==a||d[p].name==a)return d.splice(p,1),!0},addOverlay:Or(function(a,d){var p=a.token?a:e.getMode(this.options,a);if(p.startState)throw new Error("Overlays may not be stateful.");Et(this.state.overlays,{mode:p,modeSpec:a,opaque:d&&d.opaque,priority:d&&d.priority||0},function(v){return v.priority}),this.state.modeGen++,ot(this)}),removeOverlay:Or(function(a){for(var d=this.state.overlays,p=0;p<d.length;++p){var v=d[p].modeSpec;if(v==a||typeof a=="string"&&v.name==a){d.splice(p,1),this.state.modeGen++,ot(this);return}}}),indentLine:Or(function(a,d,p){typeof d!="string"&&typeof d!="number"&&(d==null?d=this.options.smartIndent?"smart":"prev":d=d?"add":"subtract"),Ui(this.doc,a)&&Os(this,a,d,p)}),indentSelection:Or(function(a){for(var d=this.doc.sel.ranges,p=-1,v=0;v<d.length;v++){var m=d[v];if(m.empty())m.head.line>p&&(Os(this,m.head.line,a,!0),p=m.head.line,v==this.doc.sel.primIndex&&ro(this));else{var y=m.from(),C=m.to(),T=Math.max(p,y.line);p=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var I=T;I<p;++I)Os(this,I,a);var V=this.doc.sel.ranges;y.ch==0&&d.length==V.length&&V[v].from().ch>0&&X1(this.doc,v,new St(y,V[v].to()),st)}}}),getTokenAt:function(a,d){return ul(this,a,d)},getLineTokens:function(a,d){return ul(this,ae(a),d,!0)},getTokenTypeAt:function(a){a=we(this.doc,a);var d=z1(this,Ee(this.doc,a.line)),p=0,v=(d.length-1)/2,m=a.ch,y;if(m==0)y=d[2];else for(;;){var C=p+v>>1;if((C?d[C*2-1]:0)>=m)v=C;else if(d[C*2+1]<m)p=C+1;else{y=d[C*2+2];break}}var T=y?y.indexOf("overlay "):-1;return T<0?y:T==0?null:y.slice(0,T-1)},getModeAt:function(a){var d=this.doc.mode;return d.innerMode?e.innerMode(d,this.getTokenAt(a).state).mode:d},getHelper:function(a,d){return this.getHelpers(a,d)[0]},getHelpers:function(a,d){var p=[];if(!s.hasOwnProperty(d))return p;var v=s[d],m=this.getModeAt(a);if(typeof m[d]=="string")v[m[d]]&&p.push(v[m[d]]);else if(m[d])for(var y=0;y<m[d].length;y++){var C=v[m[d][y]];C&&p.push(C)}else m.helperType&&v[m.helperType]?p.push(v[m.helperType]):v[m.name]&&p.push(v[m.name]);for(var T=0;T<v._global.length;T++){var I=v._global[T];I.pred(m,this)&&Le(p,I.val)==-1&&p.push(I.val)}return p},getStateAfter:function(a,d){var p=this.doc;return a=gt(p,a==null?p.first+p.size-1:a),ua(this,a+1,d).state},cursorCoords:function(a,d){var p,v=this.doc.sel.primary();return a==null?p=v.head:typeof a=="object"?p=we(this.doc,a):p=a?v.from():v.to(),Wn(this,p,d||"page")},charCoords:function(a,d){return zl(this,we(this.doc,a),d||"page")},coordsChar:function(a,d){return a=Mc(this,a,d||"page"),W(this,a.left,a.top)},lineAtHeight:function(a,d){return a=Mc(this,{top:a,left:0},d||"page").top,Fn(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,d,p){var v=!1,m;if(typeof a=="number"){var y=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>y&&(a=y,v=!0),m=Ee(this.doc,a)}else m=a;return xl(this,m,{top:0,left:0},d||"page",p||v).top+(v?this.doc.height-Kr(m):0)},defaultTextHeight:function(){return Xi(this.display)},defaultCharWidth:function(){return fa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,d,p,v,m){var y=this.display;a=Wn(this,we(this.doc,a));var C=a.bottom,T=a.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),y.sizer.appendChild(d),v=="over")C=a.top;else if(v=="above"||v=="near"){var I=Math.max(y.wrapper.clientHeight,this.doc.height),V=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(v=="above"||a.bottom+d.offsetHeight>I)&&a.top>d.offsetHeight?C=a.top-d.offsetHeight:a.bottom+d.offsetHeight<=I&&(C=a.bottom),T+d.offsetWidth>V&&(T=V-d.offsetWidth)}d.style.top=C+"px",d.style.left=d.style.right="",m=="right"?(T=y.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(m=="left"?T=0:m=="middle"&&(T=(y.sizer.clientWidth-d.offsetWidth)/2),d.style.left=T+"px"),p&&Xd(this,{left:T,top:C,right:T+d.offsetWidth,bottom:C+d.offsetHeight})},triggerOnKeyDown:Or(e0),triggerOnKeyPress:Or(r0),triggerOnKeyUp:uu,triggerOnMouseDown:Or(i0),execCommand:function(a){if(Fo.hasOwnProperty(a))return Fo[a].call(null,this)},triggerElectric:Or(function(a){f0(this,a)}),findPosH:function(a,d,p,v){var m=1;d<0&&(m=-1,d=-d);for(var y=we(this.doc,a),C=0;C<d&&(y=Es(this.doc,y,m,p,v),!y.hitSide);++C);return y},moveH:Or(function(a,d){var p=this;this.extendSelectionsBy(function(v){return p.display.shift||p.doc.extend||v.empty()?Es(p.doc,v.head,a,d,p.options.rtlMoveVisually):a<0?v.from():v.to()},Ue)}),deleteH:Or(function(a,d){var p=this.doc.sel,v=this.doc;p.somethingSelected()?v.replaceSelection("",null,"+delete"):vn(this,function(m){var y=Es(v,m.head,a,d,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,d,p,v){var m=1,y=v;d<0&&(m=-1,d=-d);for(var C=we(this.doc,a),T=0;T<d;++T){var I=Wn(this,C,"div");if(y==null?y=I.left:I.left=y,C=Kl(this,I,m,p),C.hitSide)break}return C},moveV:Or(function(a,d){var p=this,v=this.doc,m=[],y=!this.display.shift&&!v.extend&&v.sel.somethingSelected();if(v.extendSelectionsBy(function(T){if(y)return a<0?T.from():T.to();var I=Wn(p,T.head,"div");T.goalColumn!=null&&(I.left=T.goalColumn),m.push(I.left);var V=Kl(p,I,a,d);return d=="page"&&T==v.sel.primary()&&ba(p,zl(p,V,"div").top-I.top),V},Ue),m.length)for(var C=0;C<v.sel.ranges.length;C++)v.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var d=this.doc,p=Ee(d,a.line).text,v=a.ch,m=a.ch;if(p){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==p.length)&&v?--v:++m;for(var C=p.charAt(v),T=U(C,y)?function(I){return U(I,y)}:/\s/.test(C)?function(I){return/\s/.test(I)}:function(I){return!/\s/.test(I)&&!U(I)};v>0&&T(p.charAt(v-1));)--v;for(;m<p.length&&T(p.charAt(m));)++m}return new St(ae(a.line,v),ae(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?et(this.display.cursorDiv,"CodeMirror-overwrite"):ue(this.display.cursorDiv,"CodeMirror-overwrite"),qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Or(function(a,d){hs(this,a,d)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-nn(this)-this.display.barHeight,width:a.scrollWidth-nn(this)-this.display.barWidth,clientHeight:ml(this),clientWidth:ji(this)}},scrollIntoView:Or(function(a,d){a==null?(a={from:this.doc.sel.primary().head,to:null},d==null&&(d=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ae(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=d||0,a.from.line!=null?Ec(this,a):Ic(this,a.from,a.to,a.margin)}),setSize:Or(function(a,d){var p=this,v=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=v(a)),d!=null&&(this.display.wrapper.style.height=v(d)),this.options.lineWrapping&&Sc(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(y){if(y.widgets){for(var C=0;C<y.widgets.length;C++)if(y.widgets[C].noHScroll){Qi(p,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,qe(this,"refresh",this)}),operation:function(a){return kr(this,a)},startOperation:function(){return Zn(this)},endOperation:function(){return ni(this)},refresh:Or(function(){var a=this.display.cachedTextHeight;ot(this),this.curOp.forceUpdate=!0,cs(this),hs(this,this.doc.scrollLeft,this.doc.scrollTop),V1(this.display),(a==null||Math.abs(a-Xi(this.display))>.5||this.options.lineWrapping)&&Ji(this),qe(this,"refresh",this)}),swapDoc:Or(function(a){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),Rc(this,a),cs(this),this.display.input.reset(),hs(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,lr(this,"swapDoc",this,d),d}),phrase:function(a){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,a)?d[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Nn(e),e.registerHelper=function(a,d,p){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][d]=p},e.registerGlobalHelper=function(a,d,p,v){e.registerHelper(a,d,v),s[a]._global.push({pred:p,val:v})}}function Es(e,r,s,a,d){var p=r,v=s,m=Ee(e,r.line),y=d&&e.direction=="rtl"?-s:s;function C(){var xe=r.line+y;return xe<e.first||xe>=e.first+e.size?!1:(r=new ae(xe,r.ch,r.sticky),m=Ee(e,xe))}function T(xe){var ye;if(a=="codepoint"){var Se=m.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(Se))ye=null;else{var Fe=s>0?Se>=55296&&Se<56320:Se>=56320&&Se<57343;ye=new ae(r.line,Math.max(0,Math.min(m.text.length,r.ch+s*(Fe?2:1))),-s)}}else d?ye=Qc(e.cm,m,r,s):ye=Vl(m,r,s);if(ye==null)if(!xe&&C())r=Ta(d,e.cm,m,r.line,y);else return!1;else r=ye;return!0}if(a=="char"||a=="codepoint")T();else if(a=="column")T(!0);else if(a=="word"||a=="group")for(var I=null,V=a=="group",F=e.cm&&e.cm.getHelper(r,"wordChars"),K=!0;!(s<0&&!T(!K));K=!1){var ne=m.text.charAt(r.ch)||`
2959
2983
  `,he=U(ne,F)?"w":V&&ne==`
2960
2984
  `?"n":!V||/\s/.test(ne)?null:"p";if(V&&!K&&!he&&(he="s"),I&&I!=he){s<0&&(s=1,T(),r.sticky="after");break}if(he&&(I=he),s>0&&!T(!K))break}var me=mr(e,r,p,v,!0);return A(p,me)&&(me.hitSide=!0),me}function Kl(e,r,s,a){var d=e.doc,p=r.left,v;if(a=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(m-.5*Xi(e.display),3);v=(s>0?r.bottom:r.top)+s*y}else a=="line"&&(v=s>0?r.bottom+3:r.top-3);for(var C;C=W(e,p,v),!!C.outside;){if(s<0?v<=0:v>=d.height){C.hitSide=!0;break}v+=s*5}return C}var Mt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new rt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Mt.prototype.init=function(e){var r=this,s=this,a=s.cm,d=s.div=e.lineDiv;d.contentEditable=!0,h0(d,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function p(m){for(var y=m.target;y;y=y.parentNode){if(y==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}Ve(d,"paste",function(m){!p(m)||Jt(a,m)||fu(m,a)||S<=11&&setTimeout(qt(a,function(){return r.updateFromDOM()}),20)}),Ve(d,"compositionstart",function(m){r.composing={data:m.data,done:!1}}),Ve(d,"compositionupdate",function(m){r.composing||(r.composing={data:m.data,done:!1})}),Ve(d,"compositionend",function(m){r.composing&&(m.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Ve(d,"touchstart",function(){return s.forceCompositionEnd()}),Ve(d,"input",function(){r.composing||r.readFromDOMSoon()});function v(m){if(!(!p(m)||Jt(a,m))){if(a.somethingSelected())Mn({lineWise:!1,text:a.getSelections()}),m.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var y=hu(a);Mn({lineWise:!0,text:y.text}),m.type=="cut"&&a.operation(function(){a.setSelections(y.ranges,0,st),a.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=Sn.text.join(`
2961
2985
  `);if(m.clipboardData.setData("Text",C),m.clipboardData.getData("Text")==C){m.preventDefault();return}}var T=p0(),I=T.firstChild;a.display.lineSpace.insertBefore(T,a.display.lineSpace.firstChild),I.value=Sn.text.join(`
@@ -2964,8 +2988,8 @@ b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],a=e.length;r<=a;){var d=e.
2964
2988
  `)>-1?s.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Yt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Yt.prototype.onKeyPress=function(){z&&S>=9&&(this.hasSelection=null),this.fastPoll()},Yt.prototype.onContextMenu=function(e){var r=this,s=r.cm,a=s.display,d=r.textarea;r.contextMenuPending&&r.contextMenuPending();var p=ti(s,e),v=a.scroller.scrollTop;if(!p||H)return;var m=s.options.resetSelectionOnContextMenu;m&&s.doc.sel.contains(p)==-1&&qt(s,br)(s.doc,ao(p),st);var y=d.style.cssText,C=r.wrapper.style.cssText,T=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px;
2965
2989
  top: `+(e.clientY-T.top-5)+"px; left: "+(e.clientX-T.left-5)+`px;
2966
2990
  z-index: 1000; background: `+(z?"rgba(255, 255, 255, .05)":"transparent")+`;
2967
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var I;E&&(I=window.scrollY),a.input.focus(),E&&window.scrollTo(null,I),a.input.reset(),s.somethingSelected()||(d.value=r.prevInput=" "),r.contextMenuPending=F,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function V(){if(d.selectionStart!=null){var ne=s.somethingSelected(),he="​"+(ne?d.value:"");d.value="⇚",d.value=he,r.prevInput=ne?"":"​",d.selectionStart=1,d.selectionEnd=he.length,a.selForContextMenu=s.doc.sel}}function F(){if(r.contextMenuPending==F&&(r.contextMenuPending=!1,r.wrapper.style.cssText=C,d.style.cssText=y,z&&S<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=v),d.selectionStart!=null)){(!z||z&&S<9)&&V();var ne=0,he=function(){a.selForContextMenu==s.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&r.prevInput=="​"?qt(s,Vc)(s):ne++<10?a.detectingSelectAll=setTimeout(he,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(he,200)}}if(z&&S>=9&&V(),Ye){wo(e);var K=function(){Sr(window,"mouseup",K),setTimeout(F,20)};Ve(window,"mouseup",K)}else setTimeout(F,50)},Yt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Yt.prototype.setUneditable=function(){},Yt.prototype.needsContentAttribute=!1;function pu(e,r){if(r=r?Tt(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var s=Ae();r.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function a(){e.value=m.getValue()}var d;if(e.form&&(Ve(e.form,"submit",a),!r.leaveSubmitMethodAlone)){var p=e.form;d=p.submit;try{var v=p.submit=function(){a(),p.submit=d,p.submit(),p.submit=v}}catch{}}r.finishInit=function(y){y.save=a,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,a(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(Sr(e.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var m=Dt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},r);return m}function g0(e){e.off=Sr,e.on=Ve,e.wheelEventPixels=lf,e.Doc=Nr,e.splitLines=zo,e.countColumn=zt,e.findColumn=Zt,e.isWordChar=it,e.Pass=Ge,e.signal=qe,e.Line=_r,e.changeEnd=so,e.scrollbarModel=Ml,e.Pos=ae,e.cmpPos=x,e.modes=Cn,e.mimeModes=un,e.resolveMode=Lo,e.getMode=sa,e.modeExtensions=Rn,e.extendMode=Hn,e.copyState=cn,e.startState=ts,e.innerMode=es,e.commands=Fo,e.keyMap=Si,e.keyName=iu,e.isModifierKey=Bl,e.lookupKey=Mi,e.normalizeKeyMap=gf,e.StringStream=Bt,e.SharedTextMarker=_a,e.TextMarker=co,e.LineWidget=zs,e.e_preventDefault=vr,e.e_stopPropagation=aa,e.e_stop=wo,e.addClass=et,e.contains=ce,e.rmClass=ue,e.keyNames=ho}ql(Dt),_i(Dt);var Hr="iter insert remove copy getEditor constructor".split(" ");for(var Xl in Nr.prototype)Nr.prototype.hasOwnProperty(Xl)&&Le(Hr,Xl)<0&&(Dt.prototype[Xl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Nr.prototype[Xl]));return Nn(Nr),Dt.inputStyles={textarea:Yt,contenteditable:Mt},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),al.apply(this,arguments)},Dt.defineMIME=yi,Dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Dt.defineMIME("text/plain","null"),Dt.defineExtension=function(e,r){Dt.prototype[e]=r},Dt.defineDocExtension=function(e,r){Nr.prototype[e]=r},Dt.fromTextArea=pu,g0(Dt),Dt.version="5.62.3",Dt})})(r4);var na=r4.exports;const Mu=g6(na),zC=`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:#14ff1480;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
2968
- `,LC=le`
2991
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var I;E&&(I=window.scrollY),a.input.focus(),E&&window.scrollTo(null,I),a.input.reset(),s.somethingSelected()||(d.value=r.prevInput=" "),r.contextMenuPending=F,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function V(){if(d.selectionStart!=null){var ne=s.somethingSelected(),he="​"+(ne?d.value:"");d.value="⇚",d.value=he,r.prevInput=ne?"":"​",d.selectionStart=1,d.selectionEnd=he.length,a.selForContextMenu=s.doc.sel}}function F(){if(r.contextMenuPending==F&&(r.contextMenuPending=!1,r.wrapper.style.cssText=C,d.style.cssText=y,z&&S<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=v),d.selectionStart!=null)){(!z||z&&S<9)&&V();var ne=0,he=function(){a.selForContextMenu==s.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&r.prevInput=="​"?qt(s,Vc)(s):ne++<10?a.detectingSelectAll=setTimeout(he,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(he,200)}}if(z&&S>=9&&V(),Ye){wo(e);var K=function(){Sr(window,"mouseup",K),setTimeout(F,20)};Ve(window,"mouseup",K)}else setTimeout(F,50)},Yt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Yt.prototype.setUneditable=function(){},Yt.prototype.needsContentAttribute=!1;function pu(e,r){if(r=r?Tt(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var s=Ae();r.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function a(){e.value=m.getValue()}var d;if(e.form&&(Ve(e.form,"submit",a),!r.leaveSubmitMethodAlone)){var p=e.form;d=p.submit;try{var v=p.submit=function(){a(),p.submit=d,p.submit(),p.submit=v}}catch{}}r.finishInit=function(y){y.save=a,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,a(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(Sr(e.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var m=Dt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},r);return m}function g0(e){e.off=Sr,e.on=Ve,e.wheelEventPixels=lf,e.Doc=Nr,e.splitLines=zo,e.countColumn=zt,e.findColumn=Zt,e.isWordChar=it,e.Pass=Ge,e.signal=qe,e.Line=_r,e.changeEnd=so,e.scrollbarModel=Ml,e.Pos=ae,e.cmpPos=x,e.modes=Cn,e.mimeModes=un,e.resolveMode=Lo,e.getMode=sa,e.modeExtensions=Rn,e.extendMode=Hn,e.copyState=cn,e.startState=ts,e.innerMode=es,e.commands=Fo,e.keyMap=Si,e.keyName=iu,e.isModifierKey=Bl,e.lookupKey=Mi,e.normalizeKeyMap=gf,e.StringStream=Bt,e.SharedTextMarker=_a,e.TextMarker=co,e.LineWidget=zs,e.e_preventDefault=vr,e.e_stopPropagation=aa,e.e_stop=wo,e.addClass=et,e.contains=ce,e.rmClass=ue,e.keyNames=ho}ql(Dt),_i(Dt);var Hr="iter insert remove copy getEditor constructor".split(" ");for(var Xl in Nr.prototype)Nr.prototype.hasOwnProperty(Xl)&&Le(Hr,Xl)<0&&(Dt.prototype[Xl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Nr.prototype[Xl]));return Nn(Nr),Dt.inputStyles={textarea:Yt,contenteditable:Mt},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),al.apply(this,arguments)},Dt.defineMIME=yi,Dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Dt.defineMIME("text/plain","null"),Dt.defineExtension=function(e,r){Dt.prototype[e]=r},Dt.defineDocExtension=function(e,r){Nr.prototype[e]=r},Dt.fromTextArea=pu,g0(Dt),Dt.version="5.62.3",Dt})})(r4);var na=r4.exports;const Mu=g6(na),LC=`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:#14ff1480;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
2992
+ `,SC=le`
2969
2993
  .cm-s-skedulo .cm-header {
2970
2994
  color: blue;
2971
2995
  }
@@ -3045,12 +3069,12 @@ b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],a=e.length;r<=a;){var d=e.
3045
3069
  .cm-invalidchar {
3046
3070
  color: #f00;
3047
3071
  }
3048
- `;(function(o,t){(function(n){n(na)})(function(n){n.overlayMode=function(l,c,g){return{startState:function(){return{base:n.startState(l),overlay:n.startState(c),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(h){return{base:n.copyState(l,h.base),overlay:n.copyState(c,h.overlay),basePos:h.basePos,baseCur:null,overlayPos:h.overlayPos,overlayCur:null}},token:function(h,w){return(h!=w.streamSeen||Math.min(w.basePos,w.overlayPos)<h.start)&&(w.streamSeen=h,w.basePos=w.overlayPos=h.start),h.start==w.basePos&&(w.baseCur=l.token(h,w.base),w.basePos=h.pos),h.start==w.overlayPos&&(h.pos=h.start,w.overlayCur=c.token(h,w.overlay),w.overlayPos=h.pos),h.pos=Math.min(w.basePos,w.overlayPos),w.overlayCur==null?w.baseCur:w.baseCur!=null&&w.overlay.combineTokens||g&&w.overlay.combineTokens==null?w.baseCur+" "+w.overlayCur:w.overlayCur},indent:l.indent&&function(h,w,z){return l.indent(h.base,w,z)},electricChars:l.electricChars,innerMode:function(h){return{state:h.base,mode:l}},blankLine:function(h){var w,z;return l.blankLine&&(w=l.blankLine(h.base)),c.blankLine&&(z=c.blankLine(h.overlay)),z==null?w:g&&w!=null?w+" "+z:z}}}})})();(function(o,t){(function(n){n(na)})(function(n){n.defineMode("jinja2",function(){var l=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],c=/^[+\-*&%=<>!?|~^]/,g=/^[:\[\(\{]/,h=["true","false"],w=/^(\d[+\-\*\/])?\d+(\.\d+)?/;l=new RegExp("(("+l.join(")|(")+"))\\b"),h=new RegExp("(("+h.join(")|(")+"))\\b");function z(S,E){var D=S.peek();if(E.incomment)return S.skipTo("#}")?(S.eatWhile(/\#|}/),E.incomment=!1):S.skipToEnd(),"comment";if(E.intag){if(E.operator){if(E.operator=!1,S.match(h))return"atom";if(S.match(w))return"number"}if(E.sign){if(E.sign=!1,S.match(h))return"atom";if(S.match(w))return"number"}if(E.instring)return D==E.instring&&(E.instring=!1),S.next(),"string";if(D=="'"||D=='"')return E.instring=D,S.next(),"string";if(S.match(E.intag+"}")||S.eat("-")&&S.match(E.intag+"}"))return E.intag=!1,"tag";if(S.match(c))return E.operator=!0,"operator";if(S.match(g))E.sign=!0;else if(S.eat(" ")||S.sol()){if(S.match(l))return"keyword";if(S.match(h))return"atom";if(S.match(w))return"number";S.sol()&&S.next()}else S.next();return"variable"}else if(S.eat("{")){if(S.eat("#"))return E.incomment=!0,S.skipTo("#}")?(S.eatWhile(/\#|}/),E.incomment=!1):S.skipToEnd(),"comment";if(D=S.eat(/\{|%/))return E.intag=D,D=="{"&&(E.intag="}"),S.eat("-"),"tag"}S.next()}return{startState:function(){return{tokenize:z}},token:function(S,E){return E.tokenize(S,E)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),n.defineMIME("text/jinja2","jinja2")})})();var SC={exports:{}};(function(o,t){(function(n){n(na)})(function(n){var l={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(g,h){var w=g.indentUnit,z={},S=h.htmlMode?l:c;for(var E in S)z[E]=S[E];for(var E in h)z[E]=h[E];var D,B;function H(k,O){function X(et){return O.tokenize=et,et(k,O)}var ce=k.next();if(ce=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?X(ge("atom","]]>")):null:k.match("--")?X(ge("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),X(Te(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),O.tokenize=ge("meta","?>"),"meta"):(D=k.eat("/")?"closeTag":"openTag",O.tokenize=J,"tag bracket");if(ce=="&"){var Ae;return k.eat("#")?k.eat("x")?Ae=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):Ae=k.eatWhile(/[\d]/)&&k.eat(";"):Ae=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),Ae?"atom":"error"}else return k.eatWhile(/[^&<]/),null}H.isInText=!0;function J(k,O){var X=k.next();if(X==">"||X=="/"&&k.eat(">"))return O.tokenize=H,D=X==">"?"endTag":"selfcloseTag","tag bracket";if(X=="=")return D="equals",null;if(X=="<"){O.tokenize=H,O.state=ke,O.tagName=O.tagStart=null;var ce=O.tokenize(k,O);return ce?ce+" tag error":"tag error"}else return/[\'\"]/.test(X)?(O.tokenize=pe(X),O.stringStartCol=k.column(),O.tokenize(k,O)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function pe(k){var O=function(X,ce){for(;!X.eol();)if(X.next()==k){ce.tokenize=J;break}return"string"};return O.isInAttribute=!0,O}function ge(k,O){return function(X,ce){for(;!X.eol();){if(X.match(O)){ce.tokenize=H;break}X.next()}return k}}function Te(k){return function(O,X){for(var ce;(ce=O.next())!=null;){if(ce=="<")return X.tokenize=Te(k+1),X.tokenize(O,X);if(ce==">")if(k==1){X.tokenize=H;break}else return X.tokenize=Te(k-1),X.tokenize(O,X)}return"meta"}}function Ie(k,O,X){this.prev=k.context,this.tagName=O||"",this.indent=k.indented,this.startOfLine=X,(z.doNotIndent.hasOwnProperty(O)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function be(k){k.context&&(k.context=k.context.prev)}function ve(k,O){for(var X;;){if(!k.context||(X=k.context.tagName,!z.contextGrabbers.hasOwnProperty(X)||!z.contextGrabbers[X].hasOwnProperty(O)))return;be(k)}}function ke(k,O,X){return k=="openTag"?(X.tagStart=O.column(),$e):k=="closeTag"?De:ke}function $e(k,O,X){return k=="word"?(X.tagName=O.current(),B="tag",Ce):z.allowMissingTagName&&k=="endTag"?(B="tag bracket",Ce(k,O,X)):(B="error",$e)}function De(k,O,X){if(k=="word"){var ce=O.current();return X.context&&X.context.tagName!=ce&&z.implicitlyClosed.hasOwnProperty(X.context.tagName)&&be(X),X.context&&X.context.tagName==ce||z.matchClosing===!1?(B="tag",je):(B="tag error",Ye)}else return z.allowMissingTagName&&k=="endTag"?(B="tag bracket",je(k,O,X)):(B="error",Ye)}function je(k,O,X){return k!="endTag"?(B="error",je):(be(X),ke)}function Ye(k,O,X){return B="error",je(k,O,X)}function Ce(k,O,X){if(k=="word")return B="attribute",ue;if(k=="endTag"||k=="selfcloseTag"){var ce=X.tagName,Ae=X.tagStart;return X.tagName=X.tagStart=null,k=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(ce)?ve(X,ce):(ve(X,ce),X.context=new Ie(X,ce,Ae==X.indented)),ke}return B="error",Ce}function ue(k,O,X){return k=="equals"?Q:(z.allowMissing||(B="error"),Ce(k,O,X))}function Q(k,O,X){return k=="string"?$:k=="word"&&z.allowUnquoted?(B="string",Ce):(B="error",Ce(k,O,X))}function $(k,O,X){return k=="string"?$:Ce(k,O,X)}return{startState:function(k){var O={tokenize:H,state:ke,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(O.baseIndent=k),O},token:function(k,O){if(!O.tagName&&k.sol()&&(O.indented=k.indentation()),k.eatSpace())return null;D=null;var X=O.tokenize(k,O);return(X||D)&&X!="comment"&&(B=null,O.state=O.state(D||X,k,O),B&&(X=B=="error"?X+" error":B)),X},indent:function(k,O,X){var ce=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+w;if(ce&&ce.noIndent)return n.Pass;if(k.tokenize!=J&&k.tokenize!=H)return X?X.match(/^(\s*)/)[0].length:0;if(k.tagName)return z.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+w*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(O))return 0;var Ae=O&&/^<(\/)?([\w_:\.-]*)/.exec(O);if(Ae&&Ae[1])for(;ce;)if(ce.tagName==Ae[2]){ce=ce.prev;break}else if(z.implicitlyClosed.hasOwnProperty(ce.tagName))ce=ce.prev;else break;else if(Ae)for(;ce;){var et=z.contextGrabbers[ce.tagName];if(et&&et.hasOwnProperty(Ae[2]))ce=ce.prev;else break}for(;ce&&ce.prev&&!ce.startOfLine;)ce=ce.prev;return ce?ce.indent+w:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(k){k.state==Q&&(k.state=Ce)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var O=[],X=k.context;X;X=X.prev)O.push(X.tagName);return O.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var MC=SC.exports,_C={exports:{}};(function(o,t){(function(n){n(na)})(function(n){n.defineMode("javascript",function(l,c){var g=l.indentUnit,h=c.statementIndent,w=c.jsonld,z=c.json||w,S=c.trackScope!==!1,E=c.typescript,D=c.wordCharacters||/[\w$\xa1-\uffff]/,B=function(){function x(Mr){return{type:Mr,style:"keyword"}}var A=x("keyword a"),te=x("keyword b"),de=x("keyword c"),Ke=x("keyword d"),gt=x("operator"),we={type:"atom",style:"atom"};return{if:x("if"),while:A,with:A,else:te,do:te,try:te,finally:te,return:Ke,break:Ke,continue:Ke,new:x("new"),delete:de,void:de,throw:de,debugger:x("debugger"),var:x("var"),const:x("var"),let:x("var"),function:x("function"),catch:x("catch"),for:x("for"),switch:x("switch"),case:x("case"),default:x("default"),in:gt,typeof:gt,instanceof:gt,true:we,false:we,null:we,undefined:we,NaN:we,Infinity:we,this:x("this"),class:x("class"),super:x("atom"),yield:de,export:x("export"),import:x("import"),extends:de,await:de}}(),H=/[+\-*&%=<>!?|~^@]/,J=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function pe(x){for(var A=!1,te,de=!1;(te=x.next())!=null;){if(!A){if(te=="/"&&!de)return;te=="["?de=!0:de&&te=="]"&&(de=!1)}A=!A&&te=="\\"}}var ge,Te;function Ie(x,A,te){return ge=x,Te=te,A}function be(x,A){var te=x.next();if(te=='"'||te=="'")return A.tokenize=ve(te),A.tokenize(x,A);if(te=="."&&x.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(te=="."&&x.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(te))return Ie(te);if(te=="="&&x.eat(">"))return Ie("=>","operator");if(te=="0"&&x.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(te))return x.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(te=="/")return x.eat("*")?(A.tokenize=ke,ke(x,A)):x.eat("/")?(x.skipToEnd(),Ie("comment","comment")):ae(x,A,1)?(pe(x),x.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(x.eat("="),Ie("operator","operator",x.current()));if(te=="`")return A.tokenize=$e,$e(x,A);if(te=="#"&&x.peek()=="!")return x.skipToEnd(),Ie("meta","meta");if(te=="#"&&x.eatWhile(D))return Ie("variable","property");if(te=="<"&&x.match("!--")||te=="-"&&x.match("->")&&!/\S/.test(x.string.slice(0,x.start)))return x.skipToEnd(),Ie("comment","comment");if(H.test(te))return(te!=">"||!A.lexical||A.lexical.type!=">")&&(x.eat("=")?(te=="!"||te=="=")&&x.eat("="):/[<>*+\-|&?]/.test(te)&&(x.eat(te),te==">"&&x.eat(te))),te=="?"&&x.eat(".")?Ie("."):Ie("operator","operator",x.current());if(D.test(te)){x.eatWhile(D);var de=x.current();if(A.lastType!="."){if(B.propertyIsEnumerable(de)){var Ke=B[de];return Ie(Ke.type,Ke.style,de)}if(de=="async"&&x.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",de)}return Ie("variable","variable",de)}}function ve(x){return function(A,te){var de=!1,Ke;if(w&&A.peek()=="@"&&A.match(J))return te.tokenize=be,Ie("jsonld-keyword","meta");for(;(Ke=A.next())!=null&&!(Ke==x&&!de);)de=!de&&Ke=="\\";return de||(te.tokenize=be),Ie("string","string")}}function ke(x,A){for(var te=!1,de;de=x.next();){if(de=="/"&&te){A.tokenize=be;break}te=de=="*"}return Ie("comment","comment")}function $e(x,A){for(var te=!1,de;(de=x.next())!=null;){if(!te&&(de=="`"||de=="$"&&x.eat("{"))){A.tokenize=be;break}te=!te&&de=="\\"}return Ie("quasi","string-2",x.current())}var De="([{}])";function je(x,A){A.fatArrowAt&&(A.fatArrowAt=null);var te=x.string.indexOf("=>",x.start);if(!(te<0)){if(E){var de=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(x.string.slice(x.start,te));de&&(te=de.index)}for(var Ke=0,gt=!1,we=te-1;we>=0;--we){var Mr=x.string.charAt(we),rn=De.indexOf(Mr);if(rn>=0&&rn<3){if(!Ke){++we;break}if(--Ke==0){Mr=="("&&(gt=!0);break}}else if(rn>=3&&rn<6)++Ke;else if(D.test(Mr))gt=!0;else if(/["'\/`]/.test(Mr))for(;;--we){if(we==0)return;var Ci=x.string.charAt(we-1);if(Ci==Mr&&x.string.charAt(we-2)!="\\"){we--;break}}else if(gt&&!Ke){++we;break}}gt&&!Ke&&(A.fatArrowAt=we)}}var Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Ce(x,A,te,de,Ke,gt){this.indented=x,this.column=A,this.type=te,this.prev=Ke,this.info=gt,de!=null&&(this.align=de)}function ue(x,A){if(!S)return!1;for(var te=x.localVars;te;te=te.next)if(te.name==A)return!0;for(var de=x.context;de;de=de.prev)for(var te=de.vars;te;te=te.next)if(te.name==A)return!0}function Q(x,A,te,de,Ke){var gt=x.cc;for($.state=x,$.stream=Ke,$.marked=null,$.cc=gt,$.style=A,x.lexical.hasOwnProperty("align")||(x.lexical.align=!0);;){var we=gt.length?gt.pop():z?Ue:st;if(we(te,de)){for(;gt.length&&gt[gt.length-1].lex;)gt.pop()();return $.marked?$.marked:te=="variable"&&ue(x,de)?"variable-2":A}}}var $={state:null,column:null,marked:null,cc:null};function k(){for(var x=arguments.length-1;x>=0;x--)$.cc.push(arguments[x])}function O(){return k.apply(null,arguments),!0}function X(x,A){for(var te=A;te;te=te.next)if(te.name==x)return!0;return!1}function ce(x){var A=$.state;if($.marked="def",!!S){if(A.context){if(A.lexical.info=="var"&&A.context&&A.context.block){var te=Ae(x,A.context);if(te!=null){A.context=te;return}}else if(!X(x,A.localVars)){A.localVars=new yt(x,A.localVars);return}}c.globalVars&&!X(x,A.globalVars)&&(A.globalVars=new yt(x,A.globalVars))}}function Ae(x,A){if(A)if(A.block){var te=Ae(x,A.prev);return te?te==A.prev?A:new pt(te,A.vars,!0):null}else return X(x,A.vars)?A:new pt(A.prev,new yt(x,A.vars),!1);else return null}function et(x){return x=="public"||x=="private"||x=="protected"||x=="abstract"||x=="readonly"}function pt(x,A,te){this.prev=x,this.vars=A,this.block=te}function yt(x,A){this.name=x,this.next=A}var or=new yt("this",new yt("arguments",null));function Tt(){$.state.context=new pt($.state.context,$.state.localVars,!1),$.state.localVars=or}function zt(){$.state.context=new pt($.state.context,$.state.localVars,!0),$.state.localVars=null}function rt(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}rt.lex=!0;function Le(x,A){var te=function(){var de=$.state,Ke=de.indented;if(de.lexical.type=="stat")Ke=de.lexical.indented;else for(var gt=de.lexical;gt&&gt.type==")"&&gt.align;gt=gt.prev)Ke=gt.indented;de.lexical=new Ce(Ke,$.stream.column(),x,null,de.lexical,A)};return te.lex=!0,te}function Ne(){var x=$.state;x.lexical.prev&&(x.lexical.type==")"&&(x.indented=x.lexical.indented),x.lexical=x.lexical.prev)}Ne.lex=!0;function Ge(x){function A(te){return te==x?O():x==";"||te=="}"||te==")"||te=="]"?k():O(A)}return A}function st(x,A){return x=="var"?O(Le("vardef",A),Ja,Ge(";"),Ne):x=="keyword a"?O(Le("form"),Ur,st,Ne):x=="keyword b"?O(Le("form"),st,Ne):x=="keyword d"?$.stream.match(/^\s*$/,!1)?O():O(Le("stat"),Qe,Ge(";"),Ne):x=="debugger"?O(Ge(";")):x=="{"?O(Le("}"),zt,Dr,Ne,rt):x==";"?O():x=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==Ne&&$.state.cc.pop()(),O(Le("form"),Ur,st,Ne,il)):x=="function"?O(Cn):x=="for"?O(Le("form"),zt,ol,st,rt,Ne):x=="class"||E&&A=="interface"?($.marked="keyword",O(Le("form",x=="class"?x:A),sa,Ne)):x=="variable"?E&&A=="declare"?($.marked="keyword",O(st)):E&&(A=="module"||A=="enum"||A=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",A=="enum"?O(Fn):A=="type"?O(al,Ge("operator"),qe,Ge(";")):O(Le("form"),qr,Ge("{"),Le("}"),Dr,Ne,Ne)):E&&A=="namespace"?($.marked="keyword",O(Le("form"),Ue,st,Ne)):E&&A=="abstract"?($.marked="keyword",O(st)):O(Le("stat"),tt):x=="switch"?O(Le("form"),Ur,Ge("{"),Le("}","switch"),zt,Dr,Ne,Ne,rt):x=="case"?O(Ue,Ge(":")):x=="default"?O(Ge(":")):x=="catch"?O(Le("form"),Tt,lt,st,Ne,rt):x=="export"?O(Le("stat"),es,Ne):x=="import"?O(Le("stat"),Bt,Ne):x=="async"?O(st):A=="@"?O(Ue,st):k(Le("stat"),Ue,Ge(";"),Ne)}function lt(x){if(x=="(")return O(yi,Ge(")"))}function Ue(x,A){return tr(x,A,!1)}function Zt(x,A){return tr(x,A,!0)}function Ur(x){return x!="("?k():O(Le(")"),Qe,Ge(")"),Ne)}function tr(x,A,te){if($.state.fatArrowAt==$.stream.start){var de=te?it:ar;if(x=="(")return O(Tt,Le(")"),Wt(yi,")"),Ne,Ge("=>"),de,rt);if(x=="variable")return k(Tt,qr,Ge("=>"),de,rt)}var Ke=te?Et:bt;return Ye.hasOwnProperty(x)?O(Ke):x=="function"?O(Cn,Ke):x=="class"||E&&A=="interface"?($.marked="keyword",O(Le("form"),Lo,Ne)):x=="keyword c"||x=="async"?O(te?Zt:Ue):x=="("?O(Le(")"),Qe,Ge(")"),Ne,Ke):x=="operator"||x=="spread"?O(te?Zt:Ue):x=="["?O(Le("]"),Lt,Ne,Ke):x=="{"?mi(Lr,"}",null,Ke):x=="quasi"?k(Pr,Ke):x=="new"?O(U(te)):O()}function Qe(x){return x.match(/[;\}\)\],]/)?k():k(Ue)}function bt(x,A){return x==","?O(Qe):Et(x,A,!1)}function Et(x,A,te){var de=te==!1?bt:Et,Ke=te==!1?Ue:Zt;if(x=="=>")return O(Tt,te?it:ar,rt);if(x=="operator")return/\+\+|--/.test(A)||E&&A=="!"?O(de):E&&A=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(Le(">"),Wt(qe,">"),Ne,de):A=="?"?O(Ue,Ge(":"),Ke):O(Ke);if(x=="quasi")return k(Pr,de);if(x!=";"){if(x=="(")return mi(Zt,")","call",de);if(x==".")return O(sr,de);if(x=="[")return O(Le("]"),Qe,Ge("]"),Ne,de);if(E&&A=="as")return $.marked="keyword",O(qe,de);if(x=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),O(Ke)}}function Pr(x,A){return x!="quasi"?k():A.slice(A.length-2)!="${"?O(Pr):O(Qe,en)}function en(x){if(x=="}")return $.marked="string-2",$.state.tokenize=$e,O(Pr)}function ar(x){return je($.stream,$.state),k(x=="{"?st:Ue)}function it(x){return je($.stream,$.state),k(x=="{"?st:Zt)}function U(x){return function(A){return A=="."?O(x?Y:se):A=="variable"&&E?O(wo,x?Et:bt):k(x?Zt:Ue)}}function se(x,A){if(A=="target")return $.marked="keyword",O(bt)}function Y(x,A){if(A=="target")return $.marked="keyword",O(Et)}function tt(x){return x==":"?O(Ne,st):k(bt,Ge(";"),Ne)}function sr(x){if(x=="variable")return $.marked="property",O()}function Lr(x,A){if(x=="async")return $.marked="property",O(Lr);if(x=="variable"||$.style=="keyword"){if($.marked="property",A=="get"||A=="set")return O(Pn);var te;return E&&$.state.fatArrowAt==$.stream.start&&(te=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+te[0].length),O(Gr)}else{if(x=="number"||x=="string")return $.marked=w?"property":$.style+" property",O(Gr);if(x=="jsonld-keyword")return O(Gr);if(E&&et(A))return $.marked="keyword",O(Lr);if(x=="[")return O(Ue,Dn,Ge("]"),Gr);if(x=="spread")return O(Zt,Gr);if(A=="*")return $.marked="keyword",O(Lr);if(x==":")return k(Gr)}}function Pn(x){return x!="variable"?k(Gr):($.marked="property",O(Cn))}function Gr(x){if(x==":")return O(Zt);if(x=="(")return k(Cn)}function Wt(x,A,te){function de(Ke,gt){if(te?te.indexOf(Ke)>-1:Ke==","){var we=$.state.lexical;return we.info=="call"&&(we.pos=(we.pos||0)+1),O(function(Mr,rn){return Mr==A||rn==A?k():k(x)},de)}return Ke==A||gt==A?O():te&&te.indexOf(";")>-1?k(x):O(Ge(A))}return function(Ke,gt){return Ke==A||gt==A?O():k(x,de)}}function mi(x,A,te){for(var de=3;de<arguments.length;de++)$.cc.push(arguments[de]);return O(Le(A,te),Wt(x,A),Ne)}function Dr(x){return x=="}"?O():k(st,Dr)}function Dn(x,A){if(E){if(x==":")return O(qe);if(A=="?")return O(Dn)}}function Ve(x,A){if(E&&(x==":"||A=="in"))return O(qe)}function Vi(x){if(E&&x==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?O(Ue,Sr,qe):O(qe)}function Sr(x,A){if(A=="is")return $.marked="keyword",O()}function qe(x,A){if(A=="keyof"||A=="typeof"||A=="infer"||A=="readonly")return $.marked="keyword",O(A=="typeof"?Zt:qe);if(x=="variable"||A=="void")return $.marked="type",O(ln);if(A=="|"||A=="&")return O(qe);if(x=="string"||x=="number"||x=="atom")return O(ln);if(x=="[")return O(Le("]"),Wt(qe,"]",","),Ne,ln);if(x=="{")return O(Le("}"),oa,Ne,ln);if(x=="(")return O(Wt(aa,")"),Jt,ln);if(x=="<")return O(Wt(qe,">"),qe);if(x=="quasi")return k(Nn,ln)}function Jt(x){if(x=="=>")return O(qe)}function oa(x){return x.match(/[\}\)\]]/)?O():x==","||x==";"?O(oa):k(gr,oa)}function gr(x,A){if(x=="variable"||$.style=="keyword")return $.marked="property",O(gr);if(A=="?"||x=="number"||x=="string")return O(gr);if(x==":")return O(qe);if(x=="[")return O(Ge("variable"),Ve,Ge("]"),gr);if(x=="(")return k(un,gr);if(!x.match(/[;\}\)\],]/))return O()}function Nn(x,A){return x!="quasi"?k():A.slice(A.length-2)!="${"?O(Nn):O(qe,vr)}function vr(x){if(x=="}")return $.marked="string-2",$.state.tokenize=$e,O(Nn)}function aa(x,A){return x=="variable"&&$.stream.match(/^\s*[?:]/,!1)||A=="?"?O(aa):x==":"?O(qe):x=="spread"?O(aa):k(qe)}function ln(x,A){if(A=="<")return O(Le(">"),Wt(qe,">"),Ne,ln);if(A=="|"||x=="."||A=="&")return O(qe);if(x=="[")return O(qe,Ge("]"),ln);if(A=="extends"||A=="implements")return $.marked="keyword",O(qe);if(A=="?")return O(qe,Ge(":"),qe)}function wo(x,A){if(A=="<")return O(Le(">"),Wt(qe,">"),Ne,ln)}function Wi(){return k(qe,Xa)}function Xa(x,A){if(A=="=")return O(qe)}function Ja(x,A){return A=="enum"?($.marked="keyword",O(Fn)):k(qr,Dn,Xn,zo)}function qr(x,A){if(E&&et(A))return $.marked="keyword",O(qr);if(x=="variable")return ce(A),O();if(x=="spread")return O(qr);if(x=="[")return mi(xo,"]");if(x=="{")return mi(nl,"}")}function nl(x,A){return x=="variable"&&!$.stream.match(/^\s*:/,!1)?(ce(A),O(Xn)):(x=="variable"&&($.marked="property"),x=="spread"?O(qr):x=="}"?k():x=="["?O(Ue,Ge("]"),Ge(":"),nl):O(Ge(":"),qr,Xn))}function xo(){return k(qr,Xn)}function Xn(x,A){if(A=="=")return O(Zt)}function zo(x){if(x==",")return O(Ja)}function il(x,A){if(x=="keyword b"&&A=="else")return O(Le("form","else"),st,Ne)}function ol(x,A){if(A=="await")return O(ol);if(x=="(")return O(Le(")"),Qa,Ne)}function Qa(x){return x=="var"?O(Ja,Zi):x=="variable"?O(Zi):k(Zi)}function Zi(x,A){return x==")"?O():x==";"?O(Zi):A=="in"||A=="of"?($.marked="keyword",O(Ue,Zi)):k(Ue,Zi)}function Cn(x,A){if(A=="*")return $.marked="keyword",O(Cn);if(x=="variable")return ce(A),O(Cn);if(x=="(")return O(Tt,Le(")"),Wt(yi,")"),Ne,Vi,st,rt);if(E&&A=="<")return O(Le(">"),Wt(Wi,">"),Ne,Cn)}function un(x,A){if(A=="*")return $.marked="keyword",O(un);if(x=="variable")return ce(A),O(un);if(x=="(")return O(Tt,Le(")"),Wt(yi,")"),Ne,Vi,rt);if(E&&A=="<")return O(Le(">"),Wt(Wi,">"),Ne,un)}function al(x,A){if(x=="keyword"||x=="variable")return $.marked="type",O(al);if(A=="<")return O(Le(">"),Wt(Wi,">"),Ne)}function yi(x,A){return A=="@"&&O(Ue,yi),x=="spread"?O(yi):E&&et(A)?($.marked="keyword",O(yi)):E&&x=="this"?O(Dn,Xn):k(qr,Dn,Xn)}function Lo(x,A){return x=="variable"?sa(x,A):Rn(x,A)}function sa(x,A){if(x=="variable")return ce(A),O(Rn)}function Rn(x,A){if(A=="<")return O(Le(">"),Wt(Wi,">"),Ne,Rn);if(A=="extends"||A=="implements"||E&&x==",")return A=="implements"&&($.marked="keyword"),O(E?qe:Ue,Rn);if(x=="{")return O(Le("}"),Hn,Ne)}function Hn(x,A){if(x=="async"||x=="variable"&&(A=="static"||A=="get"||A=="set"||E&&et(A))&&$.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return $.marked="keyword",O(Hn);if(x=="variable"||$.style=="keyword")return $.marked="property",O(cn,Hn);if(x=="number"||x=="string")return O(cn,Hn);if(x=="[")return O(Ue,Dn,Ge("]"),cn,Hn);if(A=="*")return $.marked="keyword",O(Hn);if(E&&x=="(")return k(un,Hn);if(x==";"||x==",")return O(Hn);if(x=="}")return O();if(A=="@")return O(Ue,Hn)}function cn(x,A){if(A=="!"||A=="?")return O(cn);if(x==":")return O(qe,Xn);if(A=="=")return O(Zt);var te=$.state.lexical.prev,de=te&&te.info=="interface";return k(de?un:Cn)}function es(x,A){return A=="*"?($.marked="keyword",O(tn,Ge(";"))):A=="default"?($.marked="keyword",O(Ue,Ge(";"))):x=="{"?O(Wt(ts,"}"),tn,Ge(";")):k(st)}function ts(x,A){if(A=="as")return $.marked="keyword",O(Ge("variable"));if(x=="variable")return k(Zt,ts)}function Bt(x){return x=="string"?O():x=="("?k(Ue):x=="."?k(bt):k(Ee,dn,tn)}function Ee(x,A){return x=="{"?mi(Ee,"}"):(x=="variable"&&ce(A),A=="*"&&($.marked="keyword"),O(rs))}function dn(x){if(x==",")return O(Ee,dn)}function rs(x,A){if(A=="as")return $.marked="keyword",O(Ee)}function tn(x,A){if(A=="from")return $.marked="keyword",O(Ue)}function Lt(x){return x=="]"?O():k(Wt(Zt,"]"))}function Fn(){return k(Le("form"),qr,Ge("{"),Le("}"),Wt(Ui,"}"),Ne,Ne)}function Ui(){return k(qr,Xn)}function la(x,A){return x.lastType=="operator"||x.lastType==","||H.test(A.charAt(0))||/[,.]/.test(A.charAt(0))}function ae(x,A,te){return A.tokenize==be&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(A.lastType)||A.lastType=="quasi"&&/\{\s*$/.test(x.string.slice(0,x.pos-(te||0)))}return{startState:function(x){var A={tokenize:be,lastType:"sof",cc:[],lexical:new Ce((x||0)-g,0,"block",!1),localVars:c.localVars,context:c.localVars&&new pt(null,null,!1),indented:x||0};return c.globalVars&&typeof c.globalVars=="object"&&(A.globalVars=c.globalVars),A},token:function(x,A){if(x.sol()&&(A.lexical.hasOwnProperty("align")||(A.lexical.align=!1),A.indented=x.indentation(),je(x,A)),A.tokenize!=ke&&x.eatSpace())return null;var te=A.tokenize(x,A);return ge=="comment"?te:(A.lastType=ge=="operator"&&(Te=="++"||Te=="--")?"incdec":ge,Q(A,te,ge,Te,x))},indent:function(x,A){if(x.tokenize==ke||x.tokenize==$e)return n.Pass;if(x.tokenize!=be)return 0;var te=A&&A.charAt(0),de=x.lexical,Ke;if(!/^\s*else\b/.test(A))for(var gt=x.cc.length-1;gt>=0;--gt){var we=x.cc[gt];if(we==Ne)de=de.prev;else if(we!=il&&we!=rt)break}for(;(de.type=="stat"||de.type=="form")&&(te=="}"||(Ke=x.cc[x.cc.length-1])&&(Ke==bt||Ke==Et)&&!/^[,\.=+\-*:?[\(]/.test(A));)de=de.prev;h&&de.type==")"&&de.prev.type=="stat"&&(de=de.prev);var Mr=de.type,rn=te==Mr;return Mr=="vardef"?de.indented+(x.lastType=="operator"||x.lastType==","?de.info.length+1:0):Mr=="form"&&te=="{"?de.indented:Mr=="form"?de.indented+g:Mr=="stat"?de.indented+(la(x,A)?h||g:0):de.info=="switch"&&!rn&&c.doubleIndentSwitch!=!1?de.indented+(/^(?:case|default)\b/.test(A)?g:2*g):de.align?de.column+(rn?0:1):de.indented+(rn?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",blockCommentContinue:z?null:" * ",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:w,jsonMode:z,expressionAllowed:ae,skipExpression:function(x){Q(x,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var TC=_C.exports,Ap={exports:{}},$p;function kC(){return $p||($p=1,function(o,t){(function(n){n(na)})(function(n){n.defineMode("css",function(Ce,ue){var Q=ue.inline;ue.propertyKeywords||(ue=n.resolveMode("text/css"));var $=Ce.indentUnit,k=ue.tokenHooks,O=ue.documentTypes||{},X=ue.mediaTypes||{},ce=ue.mediaFeatures||{},Ae=ue.mediaValueKeywords||{},et=ue.propertyKeywords||{},pt=ue.nonStandardPropertyKeywords||{},yt=ue.fontProperties||{},or=ue.counterDescriptors||{},Tt=ue.colorKeywords||{},zt=ue.valueKeywords||{},rt=ue.allowNested,Le=ue.lineComment,Ne=ue.supportsAtComponent===!0,Ge=Ce.highlightNonStandardPropertyKeywords!==!1,st,lt;function Ue(U,se){return st=se,U}function Zt(U,se){var Y=U.next();if(k[Y]){var tt=k[Y](U,se);if(tt!==!1)return tt}if(Y=="@")return U.eatWhile(/[\w\\\-]/),Ue("def",U.current());if(Y=="="||(Y=="~"||Y=="|")&&U.eat("="))return Ue(null,"compare");if(Y=='"'||Y=="'")return se.tokenize=Ur(Y),se.tokenize(U,se);if(Y=="#")return U.eatWhile(/[\w\\\-]/),Ue("atom","hash");if(Y=="!")return U.match(/^\s*\w*/),Ue("keyword","important");if(/\d/.test(Y)||Y=="."&&U.eat(/\d/))return U.eatWhile(/[\w.%]/),Ue("number","unit");if(Y==="-"){if(/[\d.]/.test(U.peek()))return U.eatWhile(/[\w.%]/),Ue("number","unit");if(U.match(/^-[\w\\\-]*/))return U.eatWhile(/[\w\\\-]/),U.match(/^\s*:/,!1)?Ue("variable-2","variable-definition"):Ue("variable-2","variable");if(U.match(/^\w+-/))return Ue("meta","meta")}else return/[,+>*\/]/.test(Y)?Ue(null,"select-op"):Y=="."&&U.match(/^-?[_a-z][_a-z0-9-]*/i)?Ue("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(Y)?Ue(null,Y):U.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(U.current())&&(se.tokenize=tr),Ue("variable callee","variable")):/[\w\\\-]/.test(Y)?(U.eatWhile(/[\w\\\-]/),Ue("property","word")):Ue(null,null)}function Ur(U){return function(se,Y){for(var tt=!1,sr;(sr=se.next())!=null;){if(sr==U&&!tt){U==")"&&se.backUp(1);break}tt=!tt&&sr=="\\"}return(sr==U||!tt&&U!=")")&&(Y.tokenize=null),Ue("string","string")}}function tr(U,se){return U.next(),U.match(/^\s*[\"\')]/,!1)?se.tokenize=null:se.tokenize=Ur(")"),Ue(null,"(")}function Qe(U,se,Y){this.type=U,this.indent=se,this.prev=Y}function bt(U,se,Y,tt){return U.context=new Qe(Y,se.indentation()+(tt===!1?0:$),U.context),Y}function Et(U){return U.context.prev&&(U.context=U.context.prev),U.context.type}function Pr(U,se,Y){return it[Y.context.type](U,se,Y)}function en(U,se,Y,tt){for(var sr=tt||1;sr>0;sr--)Y.context=Y.context.prev;return Pr(U,se,Y)}function ar(U){var se=U.current().toLowerCase();zt.hasOwnProperty(se)?lt="atom":Tt.hasOwnProperty(se)?lt="keyword":lt="variable"}var it={};return it.top=function(U,se,Y){if(U=="{")return bt(Y,se,"block");if(U=="}"&&Y.context.prev)return Et(Y);if(Ne&&/@component/i.test(U))return bt(Y,se,"atComponentBlock");if(/^@(-moz-)?document$/i.test(U))return bt(Y,se,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(U))return bt(Y,se,"atBlock");if(/^@(font-face|counter-style)/i.test(U))return Y.stateArg=U,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(U))return"keyframes";if(U&&U.charAt(0)=="@")return bt(Y,se,"at");if(U=="hash")lt="builtin";else if(U=="word")lt="tag";else{if(U=="variable-definition")return"maybeprop";if(U=="interpolation")return bt(Y,se,"interpolation");if(U==":")return"pseudo";if(rt&&U=="(")return bt(Y,se,"parens")}return Y.context.type},it.block=function(U,se,Y){if(U=="word"){var tt=se.current().toLowerCase();return et.hasOwnProperty(tt)?(lt="property","maybeprop"):pt.hasOwnProperty(tt)?(lt=Ge?"string-2":"property","maybeprop"):rt?(lt=se.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(lt+=" error","maybeprop")}else return U=="meta"?"block":!rt&&(U=="hash"||U=="qualifier")?(lt="error","block"):it.top(U,se,Y)},it.maybeprop=function(U,se,Y){return U==":"?bt(Y,se,"prop"):Pr(U,se,Y)},it.prop=function(U,se,Y){if(U==";")return Et(Y);if(U=="{"&&rt)return bt(Y,se,"propBlock");if(U=="}"||U=="{")return en(U,se,Y);if(U=="(")return bt(Y,se,"parens");if(U=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(se.current()))lt+=" error";else if(U=="word")ar(se);else if(U=="interpolation")return bt(Y,se,"interpolation");return"prop"},it.propBlock=function(U,se,Y){return U=="}"?Et(Y):U=="word"?(lt="property","maybeprop"):Y.context.type},it.parens=function(U,se,Y){return U=="{"||U=="}"?en(U,se,Y):U==")"?Et(Y):U=="("?bt(Y,se,"parens"):U=="interpolation"?bt(Y,se,"interpolation"):(U=="word"&&ar(se),"parens")},it.pseudo=function(U,se,Y){return U=="meta"?"pseudo":U=="word"?(lt="variable-3",Y.context.type):Pr(U,se,Y)},it.documentTypes=function(U,se,Y){return U=="word"&&O.hasOwnProperty(se.current())?(lt="tag",Y.context.type):it.atBlock(U,se,Y)},it.atBlock=function(U,se,Y){if(U=="(")return bt(Y,se,"atBlock_parens");if(U=="}"||U==";")return en(U,se,Y);if(U=="{")return Et(Y)&&bt(Y,se,rt?"block":"top");if(U=="interpolation")return bt(Y,se,"interpolation");if(U=="word"){var tt=se.current().toLowerCase();tt=="only"||tt=="not"||tt=="and"||tt=="or"?lt="keyword":X.hasOwnProperty(tt)?lt="attribute":ce.hasOwnProperty(tt)?lt="property":Ae.hasOwnProperty(tt)?lt="keyword":et.hasOwnProperty(tt)?lt="property":pt.hasOwnProperty(tt)?lt=Ge?"string-2":"property":zt.hasOwnProperty(tt)?lt="atom":Tt.hasOwnProperty(tt)?lt="keyword":lt="error"}return Y.context.type},it.atComponentBlock=function(U,se,Y){return U=="}"?en(U,se,Y):U=="{"?Et(Y)&&bt(Y,se,rt?"block":"top",!1):(U=="word"&&(lt="error"),Y.context.type)},it.atBlock_parens=function(U,se,Y){return U==")"?Et(Y):U=="{"||U=="}"?en(U,se,Y,2):it.atBlock(U,se,Y)},it.restricted_atBlock_before=function(U,se,Y){return U=="{"?bt(Y,se,"restricted_atBlock"):U=="word"&&Y.stateArg=="@counter-style"?(lt="variable","restricted_atBlock_before"):Pr(U,se,Y)},it.restricted_atBlock=function(U,se,Y){return U=="}"?(Y.stateArg=null,Et(Y)):U=="word"?(Y.stateArg=="@font-face"&&!yt.hasOwnProperty(se.current().toLowerCase())||Y.stateArg=="@counter-style"&&!or.hasOwnProperty(se.current().toLowerCase())?lt="error":lt="property","maybeprop"):"restricted_atBlock"},it.keyframes=function(U,se,Y){return U=="word"?(lt="variable","keyframes"):U=="{"?bt(Y,se,"top"):Pr(U,se,Y)},it.at=function(U,se,Y){return U==";"?Et(Y):U=="{"||U=="}"?en(U,se,Y):(U=="word"?lt="tag":U=="hash"&&(lt="builtin"),"at")},it.interpolation=function(U,se,Y){return U=="}"?Et(Y):U=="{"||U==";"?en(U,se,Y):(U=="word"?lt="variable":U!="variable"&&U!="("&&U!=")"&&(lt="error"),"interpolation")},{startState:function(U){return{tokenize:null,state:Q?"block":"top",stateArg:null,context:new Qe(Q?"block":"top",U||0,null)}},token:function(U,se){if(!se.tokenize&&U.eatSpace())return null;var Y=(se.tokenize||Zt)(U,se);return Y&&typeof Y=="object"&&(st=Y[1],Y=Y[0]),lt=Y,st!="comment"&&(se.state=it[se.state](st,U,se)),lt},indent:function(U,se){var Y=U.context,tt=se&&se.charAt(0),sr=Y.indent;return Y.type=="prop"&&(tt=="}"||tt==")")&&(Y=Y.prev),Y.prev&&(tt=="}"&&(Y.type=="block"||Y.type=="top"||Y.type=="interpolation"||Y.type=="restricted_atBlock")?(Y=Y.prev,sr=Y.indent):(tt==")"&&(Y.type=="parens"||Y.type=="atBlock_parens")||tt=="{"&&(Y.type=="at"||Y.type=="atBlock"))&&(sr=Math.max(0,Y.indent-$))),sr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Le,fold:"brace"}});function l(Ce){for(var ue={},Q=0;Q<Ce.length;++Q)ue[Ce[Q].toLowerCase()]=!0;return ue}var c=["domain","regexp","url","url-prefix"],g=l(c),h=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],w=l(h),z=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],S=l(z),E=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],D=l(E),B=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],H=l(B),J=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],pe=l(J),ge=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Te=l(ge),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],be=l(Ie),ve=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],ke=l(ve),$e=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],De=l($e),je=c.concat(h).concat(z).concat(E).concat(B).concat(J).concat(ve).concat($e);n.registerHelper("hintWords","css",je);function Ye(Ce,ue){for(var Q=!1,$;($=Ce.next())!=null;){if(Q&&$=="/"){ue.tokenize=null;break}Q=$=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:g,mediaTypes:w,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:H,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:ke,valueKeywords:De,tokenHooks:{"/":function(Ce,ue){return Ce.eat("*")?(ue.tokenize=Ye,Ye(Ce,ue)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:w,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:H,nonStandardPropertyKeywords:pe,colorKeywords:ke,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,ue){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(ue.tokenize=Ye,Ye(Ce,ue)):["operator","operator"]},":":function(Ce){return Ce.match(/^\s*\{/,!1)?[null,null]:!1},$:function(Ce){return Ce.match(/^[\w-]+/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(Ce){return Ce.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:w,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:H,nonStandardPropertyKeywords:pe,colorKeywords:ke,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,ue){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(ue.tokenize=Ye,Ye(Ce,ue)):["operator","operator"]},"@":function(Ce){return Ce.eat("{")?[null,"interpolation"]:Ce.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(Ce.eatWhile(/[\w\\\-]/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:g,mediaTypes:w,mediaFeatures:S,propertyKeywords:H,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:ke,valueKeywords:De,supportsAtComponent:!0,tokenHooks:{"/":function(Ce,ue){return Ce.eat("*")?(ue.tokenize=Ye,Ye(Ce,ue)):!1}},name:"css",helperType:"gss"})})}()),Ap.exports}(function(o,t){(function(n){n(na,MC,TC,kC())})(function(n){var l={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function c(D,B,H){var J=D.current(),pe=J.search(B);return pe>-1?D.backUp(J.length-pe):J.match(/<\/?$/)&&(D.backUp(J.length),D.match(B,!1)||D.match(J)),H}var g={};function h(D){var B=g[D];return B||(g[D]=new RegExp("\\s+"+D+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function w(D,B){var H=D.match(h(B));return H?/^\s*(.*?)\s*$/.exec(H[2])[1]:""}function z(D,B){return new RegExp((B?"^":"")+"</s*"+D+"s*>","i")}function S(D,B){for(var H in D)for(var J=B[H]||(B[H]=[]),pe=D[H],ge=pe.length-1;ge>=0;ge--)J.unshift(pe[ge])}function E(D,B){for(var H=0;H<D.length;H++){var J=D[H];if(!J[0]||J[1].test(w(B,J[0])))return J[2]}}n.defineMode("htmlmixed",function(D,B){var H=n.getMode(D,{name:"xml",htmlMode:!0,multilineTagIndentFactor:B.multilineTagIndentFactor,multilineTagIndentPastTag:B.multilineTagIndentPastTag,allowMissingTagName:B.allowMissingTagName}),J={},pe=B&&B.tags,ge=B&&B.scriptTypes;if(S(l,J),pe&&S(pe,J),ge)for(var Te=ge.length-1;Te>=0;Te--)J.script.unshift(["type",ge[Te].matches,ge[Te].mode]);function Ie(be,ve){var ke=H.token(be,ve.htmlState),$e=/\btag\b/.test(ke),De;if($e&&!/[<>\s\/]/.test(be.current())&&(De=ve.htmlState.tagName&&ve.htmlState.tagName.toLowerCase())&&J.hasOwnProperty(De))ve.inTag=De+" ";else if(ve.inTag&&$e&&/>$/.test(be.current())){var je=/^([\S]+) (.*)/.exec(ve.inTag);ve.inTag=null;var Ye=be.current()==">"&&E(J[je[1]],je[2]),Ce=n.getMode(D,Ye),ue=z(je[1],!0),Q=z(je[1],!1);ve.token=function($,k){return $.match(ue,!1)?(k.token=Ie,k.localState=k.localMode=null,null):c($,Q,k.localMode.token($,k.localState))},ve.localMode=Ce,ve.localState=n.startState(Ce,H.indent(ve.htmlState,"",""))}else ve.inTag&&(ve.inTag+=be.current(),be.eol()&&(ve.inTag+=" "));return ke}return{startState:function(){var be=n.startState(H);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:be}},copyState:function(be){var ve;return be.localState&&(ve=n.copyState(be.localMode,be.localState)),{token:be.token,inTag:be.inTag,localMode:be.localMode,localState:ve,htmlState:n.copyState(H,be.htmlState)}},token:function(be,ve){return ve.token(be,ve)},indent:function(be,ve,ke){return!be.localMode||/^\s*<\//.test(ve)?H.indent(be.htmlState,ve,ke):be.localMode.indent?be.localMode.indent(be.localState,ve,ke):n.Pass},innerMode:function(be){return{state:be.localState||be.htmlState,mode:be.localMode||H}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})();(function(o,t){(function(n){n(na)})(function(n){n.defineMode("solr",function(){var l=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,c=/[\|\!\+\-\*\?\~\^\&]/,g=/^(OR|AND|NOT|TO)$/i;function h(D){return parseFloat(D).toString()===D}function w(D){return function(B,H){for(var J=!1,pe;(pe=B.next())!=null&&!(pe==D&&!J);)J=!J&&pe=="\\";return J||(H.tokenize=E),"string"}}function z(D){return function(B,H){var J="operator";return D=="+"?J+=" positive":D=="-"?J+=" negative":D=="|"?B.eat(/\|/):D=="&"?B.eat(/\&/):D=="^"&&(J+=" boost"),H.tokenize=E,J}}function S(D){return function(B,H){for(var J=D;(D=B.peek())&&D.match(l)!=null;)J+=B.next();return H.tokenize=E,g.test(J)?"operator":h(J)?"number":B.peek()==":"?"field":"string"}}function E(D,B){var H=D.next();return H=='"'?B.tokenize=w(H):c.test(H)?B.tokenize=z(H):l.test(H)&&(B.tokenize=S(H)),B.tokenize!=E?B.tokenize(D,B):null}return{startState:function(){return{tokenize:E}},token:function(D,B){return D.eatSpace()?null:B.tokenize(D,B)}}}),n.defineMIME("text/x-solr","solr")})})();(function(o,t){(function(n){n(na)})(function(n){n.defineOption("placeholder","",function(S,E,D){var B=D&&D!=n.Init;if(E&&!B)S.on("blur",h),S.on("change",w),S.on("swapDoc",w),n.on(S.getInputField(),"compositionupdate",S.state.placeholderCompose=function(){g(S)}),w(S);else if(!E&&B){S.off("blur",h),S.off("change",w),S.off("swapDoc",w),n.off(S.getInputField(),"compositionupdate",S.state.placeholderCompose),l(S);var H=S.getWrapperElement();H.className=H.className.replace(" CodeMirror-empty","")}E&&!S.hasFocus()&&h(S)});function l(S){S.state.placeholder&&(S.state.placeholder.parentNode.removeChild(S.state.placeholder),S.state.placeholder=null)}function c(S){l(S);var E=S.state.placeholder=document.createElement("pre");E.style.cssText="height: 0; overflow: visible",E.style.direction=S.getOption("direction"),E.className="CodeMirror-placeholder CodeMirror-line-like";var D=S.getOption("placeholder");typeof D=="string"&&(D=document.createTextNode(D)),E.appendChild(D),S.display.lineSpace.insertBefore(E,S.display.lineSpace.firstChild)}function g(S){setTimeout(function(){var E=!1;if(S.lineCount()==1){var D=S.getInputField();E=D.nodeName=="TEXTAREA"?!S.getLine(0).length:!/[^\u200b]/.test(D.querySelector(".CodeMirror-line").textContent)}E?c(S):l(S)},20)}function h(S){z(S)&&c(S)}function w(S){var E=S.getWrapperElement(),D=z(S);E.className=E.className.replace(" CodeMirror-empty","")+(D?" CodeMirror-empty":""),D?c(S):l(S)}function z(S){return S.lineCount()===1&&S.getLine(0)===""}})})();var OC=Object.defineProperty,EC=Object.getOwnPropertyDescriptor,b1=(o,t,n,l)=>{for(var c=l>1?void 0:l?EC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&OC(t,n,c),c};Mu.defineMode("nunjucks",(o,t)=>Mu.overlayMode(Mu.getMode(o,t.backdrop||"text/html"),Mu.getMode(o,"jinja2")));const n4=ze("input-code"),IC=["json","nunjucks","javascript","solr"],AC={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends yn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(t){this.value=t.getValue(),this.dispatchChange()}updated(t){var l,c;super.updated(t);const n=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),n!==((l=this.editor)==null?void 0:l.isReadOnly())&&((c=this.editor)==null||c.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var g;return(g=this.editor)==null?void 0:g.refresh()})}get editorValue(){var t;return((t=this.editor)==null?void 0:t.getDoc().getValue())||""}set editorValue(t){var n;(n=this.editor)==null||n.setValue(t)}firstUpdated(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");t&&(this.editor=Mu.fromTextArea(t,{mode:AC[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:l=>{const c=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.editor)==null||t.off("change",this.changeHandler)}renderInput(){return G`
3072
+ `;(function(o,t){(function(n){n(na)})(function(n){n.overlayMode=function(l,c,g){return{startState:function(){return{base:n.startState(l),overlay:n.startState(c),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(h){return{base:n.copyState(l,h.base),overlay:n.copyState(c,h.overlay),basePos:h.basePos,baseCur:null,overlayPos:h.overlayPos,overlayCur:null}},token:function(h,w){return(h!=w.streamSeen||Math.min(w.basePos,w.overlayPos)<h.start)&&(w.streamSeen=h,w.basePos=w.overlayPos=h.start),h.start==w.basePos&&(w.baseCur=l.token(h,w.base),w.basePos=h.pos),h.start==w.overlayPos&&(h.pos=h.start,w.overlayCur=c.token(h,w.overlay),w.overlayPos=h.pos),h.pos=Math.min(w.basePos,w.overlayPos),w.overlayCur==null?w.baseCur:w.baseCur!=null&&w.overlay.combineTokens||g&&w.overlay.combineTokens==null?w.baseCur+" "+w.overlayCur:w.overlayCur},indent:l.indent&&function(h,w,z){return l.indent(h.base,w,z)},electricChars:l.electricChars,innerMode:function(h){return{state:h.base,mode:l}},blankLine:function(h){var w,z;return l.blankLine&&(w=l.blankLine(h.base)),c.blankLine&&(z=c.blankLine(h.overlay)),z==null?w:g&&w!=null?w+" "+z:z}}}})})();(function(o,t){(function(n){n(na)})(function(n){n.defineMode("jinja2",function(){var l=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],c=/^[+\-*&%=<>!?|~^]/,g=/^[:\[\(\{]/,h=["true","false"],w=/^(\d[+\-\*\/])?\d+(\.\d+)?/;l=new RegExp("(("+l.join(")|(")+"))\\b"),h=new RegExp("(("+h.join(")|(")+"))\\b");function z(S,E){var D=S.peek();if(E.incomment)return S.skipTo("#}")?(S.eatWhile(/\#|}/),E.incomment=!1):S.skipToEnd(),"comment";if(E.intag){if(E.operator){if(E.operator=!1,S.match(h))return"atom";if(S.match(w))return"number"}if(E.sign){if(E.sign=!1,S.match(h))return"atom";if(S.match(w))return"number"}if(E.instring)return D==E.instring&&(E.instring=!1),S.next(),"string";if(D=="'"||D=='"')return E.instring=D,S.next(),"string";if(S.match(E.intag+"}")||S.eat("-")&&S.match(E.intag+"}"))return E.intag=!1,"tag";if(S.match(c))return E.operator=!0,"operator";if(S.match(g))E.sign=!0;else if(S.eat(" ")||S.sol()){if(S.match(l))return"keyword";if(S.match(h))return"atom";if(S.match(w))return"number";S.sol()&&S.next()}else S.next();return"variable"}else if(S.eat("{")){if(S.eat("#"))return E.incomment=!0,S.skipTo("#}")?(S.eatWhile(/\#|}/),E.incomment=!1):S.skipToEnd(),"comment";if(D=S.eat(/\{|%/))return E.intag=D,D=="{"&&(E.intag="}"),S.eat("-"),"tag"}S.next()}return{startState:function(){return{tokenize:z}},token:function(S,E){return E.tokenize(S,E)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),n.defineMIME("text/jinja2","jinja2")})})();var MC={exports:{}};(function(o,t){(function(n){n(na)})(function(n){var l={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(g,h){var w=g.indentUnit,z={},S=h.htmlMode?l:c;for(var E in S)z[E]=S[E];for(var E in h)z[E]=h[E];var D,B;function H(k,O){function X(et){return O.tokenize=et,et(k,O)}var ce=k.next();if(ce=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?X(ge("atom","]]>")):null:k.match("--")?X(ge("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),X(Te(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),O.tokenize=ge("meta","?>"),"meta"):(D=k.eat("/")?"closeTag":"openTag",O.tokenize=J,"tag bracket");if(ce=="&"){var Ae;return k.eat("#")?k.eat("x")?Ae=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):Ae=k.eatWhile(/[\d]/)&&k.eat(";"):Ae=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),Ae?"atom":"error"}else return k.eatWhile(/[^&<]/),null}H.isInText=!0;function J(k,O){var X=k.next();if(X==">"||X=="/"&&k.eat(">"))return O.tokenize=H,D=X==">"?"endTag":"selfcloseTag","tag bracket";if(X=="=")return D="equals",null;if(X=="<"){O.tokenize=H,O.state=ke,O.tagName=O.tagStart=null;var ce=O.tokenize(k,O);return ce?ce+" tag error":"tag error"}else return/[\'\"]/.test(X)?(O.tokenize=pe(X),O.stringStartCol=k.column(),O.tokenize(k,O)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function pe(k){var O=function(X,ce){for(;!X.eol();)if(X.next()==k){ce.tokenize=J;break}return"string"};return O.isInAttribute=!0,O}function ge(k,O){return function(X,ce){for(;!X.eol();){if(X.match(O)){ce.tokenize=H;break}X.next()}return k}}function Te(k){return function(O,X){for(var ce;(ce=O.next())!=null;){if(ce=="<")return X.tokenize=Te(k+1),X.tokenize(O,X);if(ce==">")if(k==1){X.tokenize=H;break}else return X.tokenize=Te(k-1),X.tokenize(O,X)}return"meta"}}function Ie(k,O,X){this.prev=k.context,this.tagName=O||"",this.indent=k.indented,this.startOfLine=X,(z.doNotIndent.hasOwnProperty(O)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function be(k){k.context&&(k.context=k.context.prev)}function ve(k,O){for(var X;;){if(!k.context||(X=k.context.tagName,!z.contextGrabbers.hasOwnProperty(X)||!z.contextGrabbers[X].hasOwnProperty(O)))return;be(k)}}function ke(k,O,X){return k=="openTag"?(X.tagStart=O.column(),$e):k=="closeTag"?De:ke}function $e(k,O,X){return k=="word"?(X.tagName=O.current(),B="tag",Ce):z.allowMissingTagName&&k=="endTag"?(B="tag bracket",Ce(k,O,X)):(B="error",$e)}function De(k,O,X){if(k=="word"){var ce=O.current();return X.context&&X.context.tagName!=ce&&z.implicitlyClosed.hasOwnProperty(X.context.tagName)&&be(X),X.context&&X.context.tagName==ce||z.matchClosing===!1?(B="tag",je):(B="tag error",Ye)}else return z.allowMissingTagName&&k=="endTag"?(B="tag bracket",je(k,O,X)):(B="error",Ye)}function je(k,O,X){return k!="endTag"?(B="error",je):(be(X),ke)}function Ye(k,O,X){return B="error",je(k,O,X)}function Ce(k,O,X){if(k=="word")return B="attribute",ue;if(k=="endTag"||k=="selfcloseTag"){var ce=X.tagName,Ae=X.tagStart;return X.tagName=X.tagStart=null,k=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(ce)?ve(X,ce):(ve(X,ce),X.context=new Ie(X,ce,Ae==X.indented)),ke}return B="error",Ce}function ue(k,O,X){return k=="equals"?Q:(z.allowMissing||(B="error"),Ce(k,O,X))}function Q(k,O,X){return k=="string"?$:k=="word"&&z.allowUnquoted?(B="string",Ce):(B="error",Ce(k,O,X))}function $(k,O,X){return k=="string"?$:Ce(k,O,X)}return{startState:function(k){var O={tokenize:H,state:ke,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(O.baseIndent=k),O},token:function(k,O){if(!O.tagName&&k.sol()&&(O.indented=k.indentation()),k.eatSpace())return null;D=null;var X=O.tokenize(k,O);return(X||D)&&X!="comment"&&(B=null,O.state=O.state(D||X,k,O),B&&(X=B=="error"?X+" error":B)),X},indent:function(k,O,X){var ce=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+w;if(ce&&ce.noIndent)return n.Pass;if(k.tokenize!=J&&k.tokenize!=H)return X?X.match(/^(\s*)/)[0].length:0;if(k.tagName)return z.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+w*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(O))return 0;var Ae=O&&/^<(\/)?([\w_:\.-]*)/.exec(O);if(Ae&&Ae[1])for(;ce;)if(ce.tagName==Ae[2]){ce=ce.prev;break}else if(z.implicitlyClosed.hasOwnProperty(ce.tagName))ce=ce.prev;else break;else if(Ae)for(;ce;){var et=z.contextGrabbers[ce.tagName];if(et&&et.hasOwnProperty(Ae[2]))ce=ce.prev;else break}for(;ce&&ce.prev&&!ce.startOfLine;)ce=ce.prev;return ce?ce.indent+w:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(k){k.state==Q&&(k.state=Ce)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var O=[],X=k.context;X;X=X.prev)O.push(X.tagName);return O.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var _C=MC.exports,TC={exports:{}};(function(o,t){(function(n){n(na)})(function(n){n.defineMode("javascript",function(l,c){var g=l.indentUnit,h=c.statementIndent,w=c.jsonld,z=c.json||w,S=c.trackScope!==!1,E=c.typescript,D=c.wordCharacters||/[\w$\xa1-\uffff]/,B=function(){function x(Mr){return{type:Mr,style:"keyword"}}var A=x("keyword a"),te=x("keyword b"),de=x("keyword c"),Ke=x("keyword d"),gt=x("operator"),we={type:"atom",style:"atom"};return{if:x("if"),while:A,with:A,else:te,do:te,try:te,finally:te,return:Ke,break:Ke,continue:Ke,new:x("new"),delete:de,void:de,throw:de,debugger:x("debugger"),var:x("var"),const:x("var"),let:x("var"),function:x("function"),catch:x("catch"),for:x("for"),switch:x("switch"),case:x("case"),default:x("default"),in:gt,typeof:gt,instanceof:gt,true:we,false:we,null:we,undefined:we,NaN:we,Infinity:we,this:x("this"),class:x("class"),super:x("atom"),yield:de,export:x("export"),import:x("import"),extends:de,await:de}}(),H=/[+\-*&%=<>!?|~^@]/,J=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function pe(x){for(var A=!1,te,de=!1;(te=x.next())!=null;){if(!A){if(te=="/"&&!de)return;te=="["?de=!0:de&&te=="]"&&(de=!1)}A=!A&&te=="\\"}}var ge,Te;function Ie(x,A,te){return ge=x,Te=te,A}function be(x,A){var te=x.next();if(te=='"'||te=="'")return A.tokenize=ve(te),A.tokenize(x,A);if(te=="."&&x.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(te=="."&&x.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(te))return Ie(te);if(te=="="&&x.eat(">"))return Ie("=>","operator");if(te=="0"&&x.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(te))return x.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(te=="/")return x.eat("*")?(A.tokenize=ke,ke(x,A)):x.eat("/")?(x.skipToEnd(),Ie("comment","comment")):ae(x,A,1)?(pe(x),x.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(x.eat("="),Ie("operator","operator",x.current()));if(te=="`")return A.tokenize=$e,$e(x,A);if(te=="#"&&x.peek()=="!")return x.skipToEnd(),Ie("meta","meta");if(te=="#"&&x.eatWhile(D))return Ie("variable","property");if(te=="<"&&x.match("!--")||te=="-"&&x.match("->")&&!/\S/.test(x.string.slice(0,x.start)))return x.skipToEnd(),Ie("comment","comment");if(H.test(te))return(te!=">"||!A.lexical||A.lexical.type!=">")&&(x.eat("=")?(te=="!"||te=="=")&&x.eat("="):/[<>*+\-|&?]/.test(te)&&(x.eat(te),te==">"&&x.eat(te))),te=="?"&&x.eat(".")?Ie("."):Ie("operator","operator",x.current());if(D.test(te)){x.eatWhile(D);var de=x.current();if(A.lastType!="."){if(B.propertyIsEnumerable(de)){var Ke=B[de];return Ie(Ke.type,Ke.style,de)}if(de=="async"&&x.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",de)}return Ie("variable","variable",de)}}function ve(x){return function(A,te){var de=!1,Ke;if(w&&A.peek()=="@"&&A.match(J))return te.tokenize=be,Ie("jsonld-keyword","meta");for(;(Ke=A.next())!=null&&!(Ke==x&&!de);)de=!de&&Ke=="\\";return de||(te.tokenize=be),Ie("string","string")}}function ke(x,A){for(var te=!1,de;de=x.next();){if(de=="/"&&te){A.tokenize=be;break}te=de=="*"}return Ie("comment","comment")}function $e(x,A){for(var te=!1,de;(de=x.next())!=null;){if(!te&&(de=="`"||de=="$"&&x.eat("{"))){A.tokenize=be;break}te=!te&&de=="\\"}return Ie("quasi","string-2",x.current())}var De="([{}])";function je(x,A){A.fatArrowAt&&(A.fatArrowAt=null);var te=x.string.indexOf("=>",x.start);if(!(te<0)){if(E){var de=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(x.string.slice(x.start,te));de&&(te=de.index)}for(var Ke=0,gt=!1,we=te-1;we>=0;--we){var Mr=x.string.charAt(we),rn=De.indexOf(Mr);if(rn>=0&&rn<3){if(!Ke){++we;break}if(--Ke==0){Mr=="("&&(gt=!0);break}}else if(rn>=3&&rn<6)++Ke;else if(D.test(Mr))gt=!0;else if(/["'\/`]/.test(Mr))for(;;--we){if(we==0)return;var Ci=x.string.charAt(we-1);if(Ci==Mr&&x.string.charAt(we-2)!="\\"){we--;break}}else if(gt&&!Ke){++we;break}}gt&&!Ke&&(A.fatArrowAt=we)}}var Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Ce(x,A,te,de,Ke,gt){this.indented=x,this.column=A,this.type=te,this.prev=Ke,this.info=gt,de!=null&&(this.align=de)}function ue(x,A){if(!S)return!1;for(var te=x.localVars;te;te=te.next)if(te.name==A)return!0;for(var de=x.context;de;de=de.prev)for(var te=de.vars;te;te=te.next)if(te.name==A)return!0}function Q(x,A,te,de,Ke){var gt=x.cc;for($.state=x,$.stream=Ke,$.marked=null,$.cc=gt,$.style=A,x.lexical.hasOwnProperty("align")||(x.lexical.align=!0);;){var we=gt.length?gt.pop():z?Ue:st;if(we(te,de)){for(;gt.length&&gt[gt.length-1].lex;)gt.pop()();return $.marked?$.marked:te=="variable"&&ue(x,de)?"variable-2":A}}}var $={state:null,column:null,marked:null,cc:null};function k(){for(var x=arguments.length-1;x>=0;x--)$.cc.push(arguments[x])}function O(){return k.apply(null,arguments),!0}function X(x,A){for(var te=A;te;te=te.next)if(te.name==x)return!0;return!1}function ce(x){var A=$.state;if($.marked="def",!!S){if(A.context){if(A.lexical.info=="var"&&A.context&&A.context.block){var te=Ae(x,A.context);if(te!=null){A.context=te;return}}else if(!X(x,A.localVars)){A.localVars=new yt(x,A.localVars);return}}c.globalVars&&!X(x,A.globalVars)&&(A.globalVars=new yt(x,A.globalVars))}}function Ae(x,A){if(A)if(A.block){var te=Ae(x,A.prev);return te?te==A.prev?A:new pt(te,A.vars,!0):null}else return X(x,A.vars)?A:new pt(A.prev,new yt(x,A.vars),!1);else return null}function et(x){return x=="public"||x=="private"||x=="protected"||x=="abstract"||x=="readonly"}function pt(x,A,te){this.prev=x,this.vars=A,this.block=te}function yt(x,A){this.name=x,this.next=A}var or=new yt("this",new yt("arguments",null));function Tt(){$.state.context=new pt($.state.context,$.state.localVars,!1),$.state.localVars=or}function zt(){$.state.context=new pt($.state.context,$.state.localVars,!0),$.state.localVars=null}function rt(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}rt.lex=!0;function Le(x,A){var te=function(){var de=$.state,Ke=de.indented;if(de.lexical.type=="stat")Ke=de.lexical.indented;else for(var gt=de.lexical;gt&&gt.type==")"&&gt.align;gt=gt.prev)Ke=gt.indented;de.lexical=new Ce(Ke,$.stream.column(),x,null,de.lexical,A)};return te.lex=!0,te}function Ne(){var x=$.state;x.lexical.prev&&(x.lexical.type==")"&&(x.indented=x.lexical.indented),x.lexical=x.lexical.prev)}Ne.lex=!0;function Ge(x){function A(te){return te==x?O():x==";"||te=="}"||te==")"||te=="]"?k():O(A)}return A}function st(x,A){return x=="var"?O(Le("vardef",A),Ja,Ge(";"),Ne):x=="keyword a"?O(Le("form"),Gr,st,Ne):x=="keyword b"?O(Le("form"),st,Ne):x=="keyword d"?$.stream.match(/^\s*$/,!1)?O():O(Le("stat"),Qe,Ge(";"),Ne):x=="debugger"?O(Ge(";")):x=="{"?O(Le("}"),zt,Dr,Ne,rt):x==";"?O():x=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==Ne&&$.state.cc.pop()(),O(Le("form"),Gr,st,Ne,il)):x=="function"?O(Cn):x=="for"?O(Le("form"),zt,ol,st,rt,Ne):x=="class"||E&&A=="interface"?($.marked="keyword",O(Le("form",x=="class"?x:A),sa,Ne)):x=="variable"?E&&A=="declare"?($.marked="keyword",O(st)):E&&(A=="module"||A=="enum"||A=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",A=="enum"?O(Fn):A=="type"?O(al,Ge("operator"),qe,Ge(";")):O(Le("form"),jr,Ge("{"),Le("}"),Dr,Ne,Ne)):E&&A=="namespace"?($.marked="keyword",O(Le("form"),Ue,st,Ne)):E&&A=="abstract"?($.marked="keyword",O(st)):O(Le("stat"),tt):x=="switch"?O(Le("form"),Gr,Ge("{"),Le("}","switch"),zt,Dr,Ne,Ne,rt):x=="case"?O(Ue,Ge(":")):x=="default"?O(Ge(":")):x=="catch"?O(Le("form"),Tt,lt,st,Ne,rt):x=="export"?O(Le("stat"),es,Ne):x=="import"?O(Le("stat"),Bt,Ne):x=="async"?O(st):A=="@"?O(Ue,st):k(Le("stat"),Ue,Ge(";"),Ne)}function lt(x){if(x=="(")return O(yi,Ge(")"))}function Ue(x,A){return tr(x,A,!1)}function Zt(x,A){return tr(x,A,!0)}function Gr(x){return x!="("?k():O(Le(")"),Qe,Ge(")"),Ne)}function tr(x,A,te){if($.state.fatArrowAt==$.stream.start){var de=te?it:ar;if(x=="(")return O(Tt,Le(")"),Wt(yi,")"),Ne,Ge("=>"),de,rt);if(x=="variable")return k(Tt,jr,Ge("=>"),de,rt)}var Ke=te?Et:bt;return Ye.hasOwnProperty(x)?O(Ke):x=="function"?O(Cn,Ke):x=="class"||E&&A=="interface"?($.marked="keyword",O(Le("form"),Lo,Ne)):x=="keyword c"||x=="async"?O(te?Zt:Ue):x=="("?O(Le(")"),Qe,Ge(")"),Ne,Ke):x=="operator"||x=="spread"?O(te?Zt:Ue):x=="["?O(Le("]"),Lt,Ne,Ke):x=="{"?mi(Lr,"}",null,Ke):x=="quasi"?k(Pr,Ke):x=="new"?O(U(te)):O()}function Qe(x){return x.match(/[;\}\)\],]/)?k():k(Ue)}function bt(x,A){return x==","?O(Qe):Et(x,A,!1)}function Et(x,A,te){var de=te==!1?bt:Et,Ke=te==!1?Ue:Zt;if(x=="=>")return O(Tt,te?it:ar,rt);if(x=="operator")return/\+\+|--/.test(A)||E&&A=="!"?O(de):E&&A=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(Le(">"),Wt(qe,">"),Ne,de):A=="?"?O(Ue,Ge(":"),Ke):O(Ke);if(x=="quasi")return k(Pr,de);if(x!=";"){if(x=="(")return mi(Zt,")","call",de);if(x==".")return O(sr,de);if(x=="[")return O(Le("]"),Qe,Ge("]"),Ne,de);if(E&&A=="as")return $.marked="keyword",O(qe,de);if(x=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),O(Ke)}}function Pr(x,A){return x!="quasi"?k():A.slice(A.length-2)!="${"?O(Pr):O(Qe,en)}function en(x){if(x=="}")return $.marked="string-2",$.state.tokenize=$e,O(Pr)}function ar(x){return je($.stream,$.state),k(x=="{"?st:Ue)}function it(x){return je($.stream,$.state),k(x=="{"?st:Zt)}function U(x){return function(A){return A=="."?O(x?Y:se):A=="variable"&&E?O(wo,x?Et:bt):k(x?Zt:Ue)}}function se(x,A){if(A=="target")return $.marked="keyword",O(bt)}function Y(x,A){if(A=="target")return $.marked="keyword",O(Et)}function tt(x){return x==":"?O(Ne,st):k(bt,Ge(";"),Ne)}function sr(x){if(x=="variable")return $.marked="property",O()}function Lr(x,A){if(x=="async")return $.marked="property",O(Lr);if(x=="variable"||$.style=="keyword"){if($.marked="property",A=="get"||A=="set")return O(Pn);var te;return E&&$.state.fatArrowAt==$.stream.start&&(te=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+te[0].length),O(qr)}else{if(x=="number"||x=="string")return $.marked=w?"property":$.style+" property",O(qr);if(x=="jsonld-keyword")return O(qr);if(E&&et(A))return $.marked="keyword",O(Lr);if(x=="[")return O(Ue,Dn,Ge("]"),qr);if(x=="spread")return O(Zt,qr);if(A=="*")return $.marked="keyword",O(Lr);if(x==":")return k(qr)}}function Pn(x){return x!="variable"?k(qr):($.marked="property",O(Cn))}function qr(x){if(x==":")return O(Zt);if(x=="(")return k(Cn)}function Wt(x,A,te){function de(Ke,gt){if(te?te.indexOf(Ke)>-1:Ke==","){var we=$.state.lexical;return we.info=="call"&&(we.pos=(we.pos||0)+1),O(function(Mr,rn){return Mr==A||rn==A?k():k(x)},de)}return Ke==A||gt==A?O():te&&te.indexOf(";")>-1?k(x):O(Ge(A))}return function(Ke,gt){return Ke==A||gt==A?O():k(x,de)}}function mi(x,A,te){for(var de=3;de<arguments.length;de++)$.cc.push(arguments[de]);return O(Le(A,te),Wt(x,A),Ne)}function Dr(x){return x=="}"?O():k(st,Dr)}function Dn(x,A){if(E){if(x==":")return O(qe);if(A=="?")return O(Dn)}}function Ve(x,A){if(E&&(x==":"||A=="in"))return O(qe)}function Vi(x){if(E&&x==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?O(Ue,Sr,qe):O(qe)}function Sr(x,A){if(A=="is")return $.marked="keyword",O()}function qe(x,A){if(A=="keyof"||A=="typeof"||A=="infer"||A=="readonly")return $.marked="keyword",O(A=="typeof"?Zt:qe);if(x=="variable"||A=="void")return $.marked="type",O(ln);if(A=="|"||A=="&")return O(qe);if(x=="string"||x=="number"||x=="atom")return O(ln);if(x=="[")return O(Le("]"),Wt(qe,"]",","),Ne,ln);if(x=="{")return O(Le("}"),oa,Ne,ln);if(x=="(")return O(Wt(aa,")"),Jt,ln);if(x=="<")return O(Wt(qe,">"),qe);if(x=="quasi")return k(Nn,ln)}function Jt(x){if(x=="=>")return O(qe)}function oa(x){return x.match(/[\}\)\]]/)?O():x==","||x==";"?O(oa):k(gr,oa)}function gr(x,A){if(x=="variable"||$.style=="keyword")return $.marked="property",O(gr);if(A=="?"||x=="number"||x=="string")return O(gr);if(x==":")return O(qe);if(x=="[")return O(Ge("variable"),Ve,Ge("]"),gr);if(x=="(")return k(un,gr);if(!x.match(/[;\}\)\],]/))return O()}function Nn(x,A){return x!="quasi"?k():A.slice(A.length-2)!="${"?O(Nn):O(qe,vr)}function vr(x){if(x=="}")return $.marked="string-2",$.state.tokenize=$e,O(Nn)}function aa(x,A){return x=="variable"&&$.stream.match(/^\s*[?:]/,!1)||A=="?"?O(aa):x==":"?O(qe):x=="spread"?O(aa):k(qe)}function ln(x,A){if(A=="<")return O(Le(">"),Wt(qe,">"),Ne,ln);if(A=="|"||x=="."||A=="&")return O(qe);if(x=="[")return O(qe,Ge("]"),ln);if(A=="extends"||A=="implements")return $.marked="keyword",O(qe);if(A=="?")return O(qe,Ge(":"),qe)}function wo(x,A){if(A=="<")return O(Le(">"),Wt(qe,">"),Ne,ln)}function Wi(){return k(qe,Xa)}function Xa(x,A){if(A=="=")return O(qe)}function Ja(x,A){return A=="enum"?($.marked="keyword",O(Fn)):k(jr,Dn,Xn,zo)}function jr(x,A){if(E&&et(A))return $.marked="keyword",O(jr);if(x=="variable")return ce(A),O();if(x=="spread")return O(jr);if(x=="[")return mi(xo,"]");if(x=="{")return mi(nl,"}")}function nl(x,A){return x=="variable"&&!$.stream.match(/^\s*:/,!1)?(ce(A),O(Xn)):(x=="variable"&&($.marked="property"),x=="spread"?O(jr):x=="}"?k():x=="["?O(Ue,Ge("]"),Ge(":"),nl):O(Ge(":"),jr,Xn))}function xo(){return k(jr,Xn)}function Xn(x,A){if(A=="=")return O(Zt)}function zo(x){if(x==",")return O(Ja)}function il(x,A){if(x=="keyword b"&&A=="else")return O(Le("form","else"),st,Ne)}function ol(x,A){if(A=="await")return O(ol);if(x=="(")return O(Le(")"),Qa,Ne)}function Qa(x){return x=="var"?O(Ja,Zi):x=="variable"?O(Zi):k(Zi)}function Zi(x,A){return x==")"?O():x==";"?O(Zi):A=="in"||A=="of"?($.marked="keyword",O(Ue,Zi)):k(Ue,Zi)}function Cn(x,A){if(A=="*")return $.marked="keyword",O(Cn);if(x=="variable")return ce(A),O(Cn);if(x=="(")return O(Tt,Le(")"),Wt(yi,")"),Ne,Vi,st,rt);if(E&&A=="<")return O(Le(">"),Wt(Wi,">"),Ne,Cn)}function un(x,A){if(A=="*")return $.marked="keyword",O(un);if(x=="variable")return ce(A),O(un);if(x=="(")return O(Tt,Le(")"),Wt(yi,")"),Ne,Vi,rt);if(E&&A=="<")return O(Le(">"),Wt(Wi,">"),Ne,un)}function al(x,A){if(x=="keyword"||x=="variable")return $.marked="type",O(al);if(A=="<")return O(Le(">"),Wt(Wi,">"),Ne)}function yi(x,A){return A=="@"&&O(Ue,yi),x=="spread"?O(yi):E&&et(A)?($.marked="keyword",O(yi)):E&&x=="this"?O(Dn,Xn):k(jr,Dn,Xn)}function Lo(x,A){return x=="variable"?sa(x,A):Rn(x,A)}function sa(x,A){if(x=="variable")return ce(A),O(Rn)}function Rn(x,A){if(A=="<")return O(Le(">"),Wt(Wi,">"),Ne,Rn);if(A=="extends"||A=="implements"||E&&x==",")return A=="implements"&&($.marked="keyword"),O(E?qe:Ue,Rn);if(x=="{")return O(Le("}"),Hn,Ne)}function Hn(x,A){if(x=="async"||x=="variable"&&(A=="static"||A=="get"||A=="set"||E&&et(A))&&$.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return $.marked="keyword",O(Hn);if(x=="variable"||$.style=="keyword")return $.marked="property",O(cn,Hn);if(x=="number"||x=="string")return O(cn,Hn);if(x=="[")return O(Ue,Dn,Ge("]"),cn,Hn);if(A=="*")return $.marked="keyword",O(Hn);if(E&&x=="(")return k(un,Hn);if(x==";"||x==",")return O(Hn);if(x=="}")return O();if(A=="@")return O(Ue,Hn)}function cn(x,A){if(A=="!"||A=="?")return O(cn);if(x==":")return O(qe,Xn);if(A=="=")return O(Zt);var te=$.state.lexical.prev,de=te&&te.info=="interface";return k(de?un:Cn)}function es(x,A){return A=="*"?($.marked="keyword",O(tn,Ge(";"))):A=="default"?($.marked="keyword",O(Ue,Ge(";"))):x=="{"?O(Wt(ts,"}"),tn,Ge(";")):k(st)}function ts(x,A){if(A=="as")return $.marked="keyword",O(Ge("variable"));if(x=="variable")return k(Zt,ts)}function Bt(x){return x=="string"?O():x=="("?k(Ue):x=="."?k(bt):k(Ee,dn,tn)}function Ee(x,A){return x=="{"?mi(Ee,"}"):(x=="variable"&&ce(A),A=="*"&&($.marked="keyword"),O(rs))}function dn(x){if(x==",")return O(Ee,dn)}function rs(x,A){if(A=="as")return $.marked="keyword",O(Ee)}function tn(x,A){if(A=="from")return $.marked="keyword",O(Ue)}function Lt(x){return x=="]"?O():k(Wt(Zt,"]"))}function Fn(){return k(Le("form"),jr,Ge("{"),Le("}"),Wt(Ui,"}"),Ne,Ne)}function Ui(){return k(jr,Xn)}function la(x,A){return x.lastType=="operator"||x.lastType==","||H.test(A.charAt(0))||/[,.]/.test(A.charAt(0))}function ae(x,A,te){return A.tokenize==be&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(A.lastType)||A.lastType=="quasi"&&/\{\s*$/.test(x.string.slice(0,x.pos-(te||0)))}return{startState:function(x){var A={tokenize:be,lastType:"sof",cc:[],lexical:new Ce((x||0)-g,0,"block",!1),localVars:c.localVars,context:c.localVars&&new pt(null,null,!1),indented:x||0};return c.globalVars&&typeof c.globalVars=="object"&&(A.globalVars=c.globalVars),A},token:function(x,A){if(x.sol()&&(A.lexical.hasOwnProperty("align")||(A.lexical.align=!1),A.indented=x.indentation(),je(x,A)),A.tokenize!=ke&&x.eatSpace())return null;var te=A.tokenize(x,A);return ge=="comment"?te:(A.lastType=ge=="operator"&&(Te=="++"||Te=="--")?"incdec":ge,Q(A,te,ge,Te,x))},indent:function(x,A){if(x.tokenize==ke||x.tokenize==$e)return n.Pass;if(x.tokenize!=be)return 0;var te=A&&A.charAt(0),de=x.lexical,Ke;if(!/^\s*else\b/.test(A))for(var gt=x.cc.length-1;gt>=0;--gt){var we=x.cc[gt];if(we==Ne)de=de.prev;else if(we!=il&&we!=rt)break}for(;(de.type=="stat"||de.type=="form")&&(te=="}"||(Ke=x.cc[x.cc.length-1])&&(Ke==bt||Ke==Et)&&!/^[,\.=+\-*:?[\(]/.test(A));)de=de.prev;h&&de.type==")"&&de.prev.type=="stat"&&(de=de.prev);var Mr=de.type,rn=te==Mr;return Mr=="vardef"?de.indented+(x.lastType=="operator"||x.lastType==","?de.info.length+1:0):Mr=="form"&&te=="{"?de.indented:Mr=="form"?de.indented+g:Mr=="stat"?de.indented+(la(x,A)?h||g:0):de.info=="switch"&&!rn&&c.doubleIndentSwitch!=!1?de.indented+(/^(?:case|default)\b/.test(A)?g:2*g):de.align?de.column+(rn?0:1):de.indented+(rn?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",blockCommentContinue:z?null:" * ",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:w,jsonMode:z,expressionAllowed:ae,skipExpression:function(x){Q(x,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var kC=TC.exports,Ap={exports:{}},$p;function OC(){return $p||($p=1,function(o,t){(function(n){n(na)})(function(n){n.defineMode("css",function(Ce,ue){var Q=ue.inline;ue.propertyKeywords||(ue=n.resolveMode("text/css"));var $=Ce.indentUnit,k=ue.tokenHooks,O=ue.documentTypes||{},X=ue.mediaTypes||{},ce=ue.mediaFeatures||{},Ae=ue.mediaValueKeywords||{},et=ue.propertyKeywords||{},pt=ue.nonStandardPropertyKeywords||{},yt=ue.fontProperties||{},or=ue.counterDescriptors||{},Tt=ue.colorKeywords||{},zt=ue.valueKeywords||{},rt=ue.allowNested,Le=ue.lineComment,Ne=ue.supportsAtComponent===!0,Ge=Ce.highlightNonStandardPropertyKeywords!==!1,st,lt;function Ue(U,se){return st=se,U}function Zt(U,se){var Y=U.next();if(k[Y]){var tt=k[Y](U,se);if(tt!==!1)return tt}if(Y=="@")return U.eatWhile(/[\w\\\-]/),Ue("def",U.current());if(Y=="="||(Y=="~"||Y=="|")&&U.eat("="))return Ue(null,"compare");if(Y=='"'||Y=="'")return se.tokenize=Gr(Y),se.tokenize(U,se);if(Y=="#")return U.eatWhile(/[\w\\\-]/),Ue("atom","hash");if(Y=="!")return U.match(/^\s*\w*/),Ue("keyword","important");if(/\d/.test(Y)||Y=="."&&U.eat(/\d/))return U.eatWhile(/[\w.%]/),Ue("number","unit");if(Y==="-"){if(/[\d.]/.test(U.peek()))return U.eatWhile(/[\w.%]/),Ue("number","unit");if(U.match(/^-[\w\\\-]*/))return U.eatWhile(/[\w\\\-]/),U.match(/^\s*:/,!1)?Ue("variable-2","variable-definition"):Ue("variable-2","variable");if(U.match(/^\w+-/))return Ue("meta","meta")}else return/[,+>*\/]/.test(Y)?Ue(null,"select-op"):Y=="."&&U.match(/^-?[_a-z][_a-z0-9-]*/i)?Ue("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(Y)?Ue(null,Y):U.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(U.current())&&(se.tokenize=tr),Ue("variable callee","variable")):/[\w\\\-]/.test(Y)?(U.eatWhile(/[\w\\\-]/),Ue("property","word")):Ue(null,null)}function Gr(U){return function(se,Y){for(var tt=!1,sr;(sr=se.next())!=null;){if(sr==U&&!tt){U==")"&&se.backUp(1);break}tt=!tt&&sr=="\\"}return(sr==U||!tt&&U!=")")&&(Y.tokenize=null),Ue("string","string")}}function tr(U,se){return U.next(),U.match(/^\s*[\"\')]/,!1)?se.tokenize=null:se.tokenize=Gr(")"),Ue(null,"(")}function Qe(U,se,Y){this.type=U,this.indent=se,this.prev=Y}function bt(U,se,Y,tt){return U.context=new Qe(Y,se.indentation()+(tt===!1?0:$),U.context),Y}function Et(U){return U.context.prev&&(U.context=U.context.prev),U.context.type}function Pr(U,se,Y){return it[Y.context.type](U,se,Y)}function en(U,se,Y,tt){for(var sr=tt||1;sr>0;sr--)Y.context=Y.context.prev;return Pr(U,se,Y)}function ar(U){var se=U.current().toLowerCase();zt.hasOwnProperty(se)?lt="atom":Tt.hasOwnProperty(se)?lt="keyword":lt="variable"}var it={};return it.top=function(U,se,Y){if(U=="{")return bt(Y,se,"block");if(U=="}"&&Y.context.prev)return Et(Y);if(Ne&&/@component/i.test(U))return bt(Y,se,"atComponentBlock");if(/^@(-moz-)?document$/i.test(U))return bt(Y,se,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(U))return bt(Y,se,"atBlock");if(/^@(font-face|counter-style)/i.test(U))return Y.stateArg=U,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(U))return"keyframes";if(U&&U.charAt(0)=="@")return bt(Y,se,"at");if(U=="hash")lt="builtin";else if(U=="word")lt="tag";else{if(U=="variable-definition")return"maybeprop";if(U=="interpolation")return bt(Y,se,"interpolation");if(U==":")return"pseudo";if(rt&&U=="(")return bt(Y,se,"parens")}return Y.context.type},it.block=function(U,se,Y){if(U=="word"){var tt=se.current().toLowerCase();return et.hasOwnProperty(tt)?(lt="property","maybeprop"):pt.hasOwnProperty(tt)?(lt=Ge?"string-2":"property","maybeprop"):rt?(lt=se.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(lt+=" error","maybeprop")}else return U=="meta"?"block":!rt&&(U=="hash"||U=="qualifier")?(lt="error","block"):it.top(U,se,Y)},it.maybeprop=function(U,se,Y){return U==":"?bt(Y,se,"prop"):Pr(U,se,Y)},it.prop=function(U,se,Y){if(U==";")return Et(Y);if(U=="{"&&rt)return bt(Y,se,"propBlock");if(U=="}"||U=="{")return en(U,se,Y);if(U=="(")return bt(Y,se,"parens");if(U=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(se.current()))lt+=" error";else if(U=="word")ar(se);else if(U=="interpolation")return bt(Y,se,"interpolation");return"prop"},it.propBlock=function(U,se,Y){return U=="}"?Et(Y):U=="word"?(lt="property","maybeprop"):Y.context.type},it.parens=function(U,se,Y){return U=="{"||U=="}"?en(U,se,Y):U==")"?Et(Y):U=="("?bt(Y,se,"parens"):U=="interpolation"?bt(Y,se,"interpolation"):(U=="word"&&ar(se),"parens")},it.pseudo=function(U,se,Y){return U=="meta"?"pseudo":U=="word"?(lt="variable-3",Y.context.type):Pr(U,se,Y)},it.documentTypes=function(U,se,Y){return U=="word"&&O.hasOwnProperty(se.current())?(lt="tag",Y.context.type):it.atBlock(U,se,Y)},it.atBlock=function(U,se,Y){if(U=="(")return bt(Y,se,"atBlock_parens");if(U=="}"||U==";")return en(U,se,Y);if(U=="{")return Et(Y)&&bt(Y,se,rt?"block":"top");if(U=="interpolation")return bt(Y,se,"interpolation");if(U=="word"){var tt=se.current().toLowerCase();tt=="only"||tt=="not"||tt=="and"||tt=="or"?lt="keyword":X.hasOwnProperty(tt)?lt="attribute":ce.hasOwnProperty(tt)?lt="property":Ae.hasOwnProperty(tt)?lt="keyword":et.hasOwnProperty(tt)?lt="property":pt.hasOwnProperty(tt)?lt=Ge?"string-2":"property":zt.hasOwnProperty(tt)?lt="atom":Tt.hasOwnProperty(tt)?lt="keyword":lt="error"}return Y.context.type},it.atComponentBlock=function(U,se,Y){return U=="}"?en(U,se,Y):U=="{"?Et(Y)&&bt(Y,se,rt?"block":"top",!1):(U=="word"&&(lt="error"),Y.context.type)},it.atBlock_parens=function(U,se,Y){return U==")"?Et(Y):U=="{"||U=="}"?en(U,se,Y,2):it.atBlock(U,se,Y)},it.restricted_atBlock_before=function(U,se,Y){return U=="{"?bt(Y,se,"restricted_atBlock"):U=="word"&&Y.stateArg=="@counter-style"?(lt="variable","restricted_atBlock_before"):Pr(U,se,Y)},it.restricted_atBlock=function(U,se,Y){return U=="}"?(Y.stateArg=null,Et(Y)):U=="word"?(Y.stateArg=="@font-face"&&!yt.hasOwnProperty(se.current().toLowerCase())||Y.stateArg=="@counter-style"&&!or.hasOwnProperty(se.current().toLowerCase())?lt="error":lt="property","maybeprop"):"restricted_atBlock"},it.keyframes=function(U,se,Y){return U=="word"?(lt="variable","keyframes"):U=="{"?bt(Y,se,"top"):Pr(U,se,Y)},it.at=function(U,se,Y){return U==";"?Et(Y):U=="{"||U=="}"?en(U,se,Y):(U=="word"?lt="tag":U=="hash"&&(lt="builtin"),"at")},it.interpolation=function(U,se,Y){return U=="}"?Et(Y):U=="{"||U==";"?en(U,se,Y):(U=="word"?lt="variable":U!="variable"&&U!="("&&U!=")"&&(lt="error"),"interpolation")},{startState:function(U){return{tokenize:null,state:Q?"block":"top",stateArg:null,context:new Qe(Q?"block":"top",U||0,null)}},token:function(U,se){if(!se.tokenize&&U.eatSpace())return null;var Y=(se.tokenize||Zt)(U,se);return Y&&typeof Y=="object"&&(st=Y[1],Y=Y[0]),lt=Y,st!="comment"&&(se.state=it[se.state](st,U,se)),lt},indent:function(U,se){var Y=U.context,tt=se&&se.charAt(0),sr=Y.indent;return Y.type=="prop"&&(tt=="}"||tt==")")&&(Y=Y.prev),Y.prev&&(tt=="}"&&(Y.type=="block"||Y.type=="top"||Y.type=="interpolation"||Y.type=="restricted_atBlock")?(Y=Y.prev,sr=Y.indent):(tt==")"&&(Y.type=="parens"||Y.type=="atBlock_parens")||tt=="{"&&(Y.type=="at"||Y.type=="atBlock"))&&(sr=Math.max(0,Y.indent-$))),sr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Le,fold:"brace"}});function l(Ce){for(var ue={},Q=0;Q<Ce.length;++Q)ue[Ce[Q].toLowerCase()]=!0;return ue}var c=["domain","regexp","url","url-prefix"],g=l(c),h=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],w=l(h),z=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],S=l(z),E=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],D=l(E),B=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],H=l(B),J=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],pe=l(J),ge=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Te=l(ge),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],be=l(Ie),ve=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],ke=l(ve),$e=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],De=l($e),je=c.concat(h).concat(z).concat(E).concat(B).concat(J).concat(ve).concat($e);n.registerHelper("hintWords","css",je);function Ye(Ce,ue){for(var Q=!1,$;($=Ce.next())!=null;){if(Q&&$=="/"){ue.tokenize=null;break}Q=$=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:g,mediaTypes:w,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:H,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:ke,valueKeywords:De,tokenHooks:{"/":function(Ce,ue){return Ce.eat("*")?(ue.tokenize=Ye,Ye(Ce,ue)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:w,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:H,nonStandardPropertyKeywords:pe,colorKeywords:ke,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,ue){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(ue.tokenize=Ye,Ye(Ce,ue)):["operator","operator"]},":":function(Ce){return Ce.match(/^\s*\{/,!1)?[null,null]:!1},$:function(Ce){return Ce.match(/^[\w-]+/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(Ce){return Ce.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:w,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:H,nonStandardPropertyKeywords:pe,colorKeywords:ke,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,ue){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(ue.tokenize=Ye,Ye(Ce,ue)):["operator","operator"]},"@":function(Ce){return Ce.eat("{")?[null,"interpolation"]:Ce.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(Ce.eatWhile(/[\w\\\-]/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:g,mediaTypes:w,mediaFeatures:S,propertyKeywords:H,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:ke,valueKeywords:De,supportsAtComponent:!0,tokenHooks:{"/":function(Ce,ue){return Ce.eat("*")?(ue.tokenize=Ye,Ye(Ce,ue)):!1}},name:"css",helperType:"gss"})})}()),Ap.exports}(function(o,t){(function(n){n(na,_C,kC,OC())})(function(n){var l={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function c(D,B,H){var J=D.current(),pe=J.search(B);return pe>-1?D.backUp(J.length-pe):J.match(/<\/?$/)&&(D.backUp(J.length),D.match(B,!1)||D.match(J)),H}var g={};function h(D){var B=g[D];return B||(g[D]=new RegExp("\\s+"+D+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function w(D,B){var H=D.match(h(B));return H?/^\s*(.*?)\s*$/.exec(H[2])[1]:""}function z(D,B){return new RegExp((B?"^":"")+"</s*"+D+"s*>","i")}function S(D,B){for(var H in D)for(var J=B[H]||(B[H]=[]),pe=D[H],ge=pe.length-1;ge>=0;ge--)J.unshift(pe[ge])}function E(D,B){for(var H=0;H<D.length;H++){var J=D[H];if(!J[0]||J[1].test(w(B,J[0])))return J[2]}}n.defineMode("htmlmixed",function(D,B){var H=n.getMode(D,{name:"xml",htmlMode:!0,multilineTagIndentFactor:B.multilineTagIndentFactor,multilineTagIndentPastTag:B.multilineTagIndentPastTag,allowMissingTagName:B.allowMissingTagName}),J={},pe=B&&B.tags,ge=B&&B.scriptTypes;if(S(l,J),pe&&S(pe,J),ge)for(var Te=ge.length-1;Te>=0;Te--)J.script.unshift(["type",ge[Te].matches,ge[Te].mode]);function Ie(be,ve){var ke=H.token(be,ve.htmlState),$e=/\btag\b/.test(ke),De;if($e&&!/[<>\s\/]/.test(be.current())&&(De=ve.htmlState.tagName&&ve.htmlState.tagName.toLowerCase())&&J.hasOwnProperty(De))ve.inTag=De+" ";else if(ve.inTag&&$e&&/>$/.test(be.current())){var je=/^([\S]+) (.*)/.exec(ve.inTag);ve.inTag=null;var Ye=be.current()==">"&&E(J[je[1]],je[2]),Ce=n.getMode(D,Ye),ue=z(je[1],!0),Q=z(je[1],!1);ve.token=function($,k){return $.match(ue,!1)?(k.token=Ie,k.localState=k.localMode=null,null):c($,Q,k.localMode.token($,k.localState))},ve.localMode=Ce,ve.localState=n.startState(Ce,H.indent(ve.htmlState,"",""))}else ve.inTag&&(ve.inTag+=be.current(),be.eol()&&(ve.inTag+=" "));return ke}return{startState:function(){var be=n.startState(H);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:be}},copyState:function(be){var ve;return be.localState&&(ve=n.copyState(be.localMode,be.localState)),{token:be.token,inTag:be.inTag,localMode:be.localMode,localState:ve,htmlState:n.copyState(H,be.htmlState)}},token:function(be,ve){return ve.token(be,ve)},indent:function(be,ve,ke){return!be.localMode||/^\s*<\//.test(ve)?H.indent(be.htmlState,ve,ke):be.localMode.indent?be.localMode.indent(be.localState,ve,ke):n.Pass},innerMode:function(be){return{state:be.localState||be.htmlState,mode:be.localMode||H}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})();(function(o,t){(function(n){n(na)})(function(n){n.defineMode("solr",function(){var l=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,c=/[\|\!\+\-\*\?\~\^\&]/,g=/^(OR|AND|NOT|TO)$/i;function h(D){return parseFloat(D).toString()===D}function w(D){return function(B,H){for(var J=!1,pe;(pe=B.next())!=null&&!(pe==D&&!J);)J=!J&&pe=="\\";return J||(H.tokenize=E),"string"}}function z(D){return function(B,H){var J="operator";return D=="+"?J+=" positive":D=="-"?J+=" negative":D=="|"?B.eat(/\|/):D=="&"?B.eat(/\&/):D=="^"&&(J+=" boost"),H.tokenize=E,J}}function S(D){return function(B,H){for(var J=D;(D=B.peek())&&D.match(l)!=null;)J+=B.next();return H.tokenize=E,g.test(J)?"operator":h(J)?"number":B.peek()==":"?"field":"string"}}function E(D,B){var H=D.next();return H=='"'?B.tokenize=w(H):c.test(H)?B.tokenize=z(H):l.test(H)&&(B.tokenize=S(H)),B.tokenize!=E?B.tokenize(D,B):null}return{startState:function(){return{tokenize:E}},token:function(D,B){return D.eatSpace()?null:B.tokenize(D,B)}}}),n.defineMIME("text/x-solr","solr")})})();(function(o,t){(function(n){n(na)})(function(n){n.defineOption("placeholder","",function(S,E,D){var B=D&&D!=n.Init;if(E&&!B)S.on("blur",h),S.on("change",w),S.on("swapDoc",w),n.on(S.getInputField(),"compositionupdate",S.state.placeholderCompose=function(){g(S)}),w(S);else if(!E&&B){S.off("blur",h),S.off("change",w),S.off("swapDoc",w),n.off(S.getInputField(),"compositionupdate",S.state.placeholderCompose),l(S);var H=S.getWrapperElement();H.className=H.className.replace(" CodeMirror-empty","")}E&&!S.hasFocus()&&h(S)});function l(S){S.state.placeholder&&(S.state.placeholder.parentNode.removeChild(S.state.placeholder),S.state.placeholder=null)}function c(S){l(S);var E=S.state.placeholder=document.createElement("pre");E.style.cssText="height: 0; overflow: visible",E.style.direction=S.getOption("direction"),E.className="CodeMirror-placeholder CodeMirror-line-like";var D=S.getOption("placeholder");typeof D=="string"&&(D=document.createTextNode(D)),E.appendChild(D),S.display.lineSpace.insertBefore(E,S.display.lineSpace.firstChild)}function g(S){setTimeout(function(){var E=!1;if(S.lineCount()==1){var D=S.getInputField();E=D.nodeName=="TEXTAREA"?!S.getLine(0).length:!/[^\u200b]/.test(D.querySelector(".CodeMirror-line").textContent)}E?c(S):l(S)},20)}function h(S){z(S)&&c(S)}function w(S){var E=S.getWrapperElement(),D=z(S);E.className=E.className.replace(" CodeMirror-empty","")+(D?" CodeMirror-empty":""),D?c(S):l(S)}function z(S){return S.lineCount()===1&&S.getLine(0)===""}})})();var EC=Object.defineProperty,IC=Object.getOwnPropertyDescriptor,b1=(o,t,n,l)=>{for(var c=l>1?void 0:l?IC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&EC(t,n,c),c};Mu.defineMode("nunjucks",(o,t)=>Mu.overlayMode(Mu.getMode(o,t.backdrop||"text/html"),Mu.getMode(o,"jinja2")));const n4=ze("input-code"),AC=["json","nunjucks","javascript","solr"],$C={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends yn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(t){this.value=t.getValue(),this.dispatchChange()}updated(t){var l,c;super.updated(t);const n=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),n!==((l=this.editor)==null?void 0:l.isReadOnly())&&((c=this.editor)==null||c.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var g;return(g=this.editor)==null?void 0:g.refresh()})}get editorValue(){var t;return((t=this.editor)==null?void 0:t.getDoc().getValue())||""}set editorValue(t){var n;(n=this.editor)==null||n.setValue(t)}firstUpdated(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");t&&(this.editor=Mu.fromTextArea(t,{mode:$C[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:l=>{const c=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.editor)==null||t.off("change",this.changeHandler)}renderInput(){return G`
3049
3073
  <textarea class="editor" placeholder="${Ct(this.placeholder)}">
3050
3074
  ${this.value}</textarea
3051
3075
  >
3052
3076
  `}};exports.InputCode.styles=[...yn.styles,le`
3053
- ${Ua(zC)}
3077
+ ${Ua(LC)}
3054
3078
 
3055
3079
  :host([size="full"]) {
3056
3080
  width: 100%;
@@ -3114,7 +3138,7 @@ ${this.value}</textarea
3114
3138
  .CodeMirror pre.CodeMirror-placeholder {
3115
3139
  color: var(--brz-color-neutral-500);
3116
3140
  }
3117
- `,LC];b1([R()],exports.InputCode.prototype,"mode",2);b1([R({reflect:!0})],exports.InputCode.prototype,"size",2);b1([R({type:Number})],exports.InputCode.prototype,"height",2);b1([R({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);b1([Re()],exports.InputCode.prototype,"editor",2);exports.InputCode=b1([ee(n4)],exports.InputCode);var $C=Object.defineProperty,PC=Object.getOwnPropertyDescriptor,qu=(o,t,n,l)=>{for(var c=l>1?void 0:l?PC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&$C(t,n,c),c};const i4=ze("input-select");exports.InputSelect=class extends zr{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabel(this.value),this.resetSearch()}handleSelect(t){this.setValue(t.detail.selected[0])}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(t=>{t.selected=this.value===t.value})}renderReferenceElement(){var t;return this.applySelectedStatusToChildren(),this.controlled||this.search(),G`
3141
+ `,SC];b1([N()],exports.InputCode.prototype,"mode",2);b1([N({reflect:!0})],exports.InputCode.prototype,"size",2);b1([N({type:Number})],exports.InputCode.prototype,"height",2);b1([N({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);b1([Re()],exports.InputCode.prototype,"editor",2);exports.InputCode=b1([ee(n4)],exports.InputCode);var PC=Object.defineProperty,DC=Object.getOwnPropertyDescriptor,qu=(o,t,n,l)=>{for(var c=l>1?void 0:l?DC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&PC(t,n,c),c};const i4=ze("input-select");exports.InputSelect=class extends zr{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabel(this.value),this.resetSearch()}handleSelect(t){this.setValue(t.detail.selected[0])}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(t=>{t.selected=this.value===t.value})}renderReferenceElement(){var t;return this.applySelectedStatusToChildren(),this.controlled||this.search(),G`
3118
3142
  <button
3119
3143
  type="button"
3120
3144
  class="wrapper"
@@ -3181,7 +3205,7 @@ ${this.value}</textarea
3181
3205
  .placeholder {
3182
3206
  color: var(--input-placeholder-font-color);
3183
3207
  }
3184
- `];qu([R({type:String})],exports.InputSelect.prototype,"value",2);qu([Re()],exports.InputSelect.prototype,"query",2);qu([Re()],exports.InputSelect.prototype,"valueLabel",2);qu([Re()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=qu([ee(i4)],exports.InputSelect);var DC=Object.defineProperty,NC=Object.getOwnPropertyDescriptor,Fi=(o,t,n,l)=>{for(var c=l>1?void 0:l?NC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&DC(t,n,c),c};const o4=ze("lozenge"),RC=["neutral","green","orange","red","cyan","purple","sapphire"],HC=["solid","subtle","border"],FC=["small","medium","large"];class a4 extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends We{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1,this.noTruncate=!1,this.isOverflowing=!1}async checkOverflow(){this.isOverflowing=(await this.message).scrollWidth>(await this.message).clientWidth}_handleDeleteClick(t){t.stopPropagation(),this.dispatchEvent(new a4)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var t;return this.updateComplete.then(()=>this.checkOverflow()),G`
3208
+ `];qu([N({type:String})],exports.InputSelect.prototype,"value",2);qu([Re()],exports.InputSelect.prototype,"query",2);qu([Re()],exports.InputSelect.prototype,"valueLabel",2);qu([Re()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=qu([ee(i4)],exports.InputSelect);var NC=Object.defineProperty,RC=Object.getOwnPropertyDescriptor,Fi=(o,t,n,l)=>{for(var c=l>1?void 0:l?RC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&NC(t,n,c),c};const o4=ze("lozenge"),HC=["neutral","green","orange","red","cyan","purple","sapphire"],FC=["solid","subtle","border"],BC=["small","medium","large"];class a4 extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends We{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1,this.noTruncate=!1,this.isOverflowing=!1}async checkOverflow(){this.isOverflowing=(await this.message).scrollWidth>(await this.message).clientWidth}_handleDeleteClick(t){t.stopPropagation(),this.dispatchEvent(new a4)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var t;return this.updateComplete.then(()=>this.checkOverflow()),G`
3185
3209
  <brz-tooltip
3186
3210
  content=${(t=this.defaultSlot[0])==null?void 0:t.textContent}
3187
3211
  ?disabled=${!this.isOverflowing}
@@ -3351,7 +3375,7 @@ ${this.value}</textarea
3351
3375
  color: var(--brz-color-neutral-550);
3352
3376
  cursor: unset;
3353
3377
  }
3354
- `;Fi([R({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Fi([R({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Fi([R({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Fi([R({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Fi([R({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Fi([R({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Fi([R({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Fi([Oh()],exports.Lozenge.prototype,"defaultSlot",2);Fi([Ev(".message")],exports.Lozenge.prototype,"message",2);Fi([Re()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Fi([ee(o4)],exports.Lozenge);var BC=Object.defineProperty,VC=Object.getOwnPropertyDescriptor,ju=(o,t,n,l)=>{for(var c=l>1?void 0:l?VC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&BC(t,n,c),c};const s4=ze("input-multiselect");exports.InputMultiselect=class extends zr{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(t){super.updated(t),this.dropdown&&(this.dropdown.multiselect=!0),(t.has("value")||t.has("selected-items"))&&this.renderSelectedItems(),this.isDataDriven&&!this.innerOptions.find(n=>n.id===$i)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:t,toggled:n}=[...this.getItems()].reduce((l,c)=>c.id===$i?l:{enabled:c.disabled?l.enabled:l.enabled+1,toggled:c.selected?l.toggled+1:l.toggled},{enabled:0,toggled:0});return t===n}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.controlled&&this.dispatchEvent(new jh({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(t){this.setValue(t.detail.selected)}handleItemSelect({detail:{item:t}}){t.id===$i&&this.toggleAllSelected()}toggleAllSelected(){const t=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==$i&&t.push(n.value)}),this.setValue(t),this.handleValueChange()}toggleSelection(t){const n=this.value?[...this.value]:[],l=n.indexOf(t);l>-1&&n.splice(l,1),l===-1&&n.push(t),this.setValue(n)}syncSelected(){this.getItems().forEach(t=>{const n=this.value&&this.value.includes(t.value);t.selected=t.id===$i?this.allSelected:n})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?G`<span class="truncation"
3378
+ `;Fi([N({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Fi([N({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Fi([N({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Fi([N({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Fi([N({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Fi([N({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Fi([N({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Fi([Oh()],exports.Lozenge.prototype,"defaultSlot",2);Fi([Ev(".message")],exports.Lozenge.prototype,"message",2);Fi([Re()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Fi([ee(o4)],exports.Lozenge);var VC=Object.defineProperty,WC=Object.getOwnPropertyDescriptor,ju=(o,t,n,l)=>{for(var c=l>1?void 0:l?WC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&VC(t,n,c),c};const s4=ze("input-multiselect");exports.InputMultiselect=class extends zr{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(t){super.updated(t),this.dropdown&&(this.dropdown.multiselect=!0),(t.has("value")||t.has("selected-items"))&&this.renderSelectedItems(),this.isDataDriven&&!this.innerOptions.find(n=>n.id===$i)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:t,toggled:n}=[...this.getItems()].reduce((l,c)=>c.id===$i?l:{enabled:c.disabled?l.enabled:l.enabled+1,toggled:c.selected?l.toggled+1:l.toggled},{enabled:0,toggled:0});return t===n}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.controlled&&this.dispatchEvent(new jh({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(t){this.setValue(t.detail.selected)}handleItemSelect({detail:{item:t}}){t.id===$i&&this.toggleAllSelected()}toggleAllSelected(){const t=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==$i&&t.push(n.value)}),this.setValue(t),this.handleValueChange()}toggleSelection(t){const n=this.value?[...this.value]:[],l=n.indexOf(t);l>-1&&n.splice(l,1),l===-1&&n.push(t),this.setValue(n)}syncSelected(){this.getItems().forEach(t=>{const n=this.value&&this.value.includes(t.value);t.selected=t.id===$i?this.allSelected:n})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?G`<span class="truncation"
3355
3379
  >+${this.value.length-this.truncateValuesAfter} more</span
3356
3380
  >`:null}handleKeyDown(t){super.handleKeyDown(t),t.key==="Backspace"&&(!this.queryInput||this.queryInput.value==="")&&!this.isReadonlyOrDisabled&&this.removeLastValue()}renderReferenceElement(){return this.syncSelected(),this.controlled||this.search(),this.updateComplete.then(()=>{this.renderSelectedItems()}),G`
3357
3381
  <button
@@ -3462,10 +3486,10 @@ ${this.value}</textarea
3462
3486
  brz-icon[icon='chevronDown'] {
3463
3487
  color: var(--brz-color-neutral-750);
3464
3488
  }
3465
- `];ju([R({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);ju([R({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);ju([R({type:Array})],exports.InputMultiselect.prototype,"value",2);ju([Re()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=ju([ee(s4)],exports.InputMultiselect);class rl extends Error{}class WC extends rl{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class ZC extends rl{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class UC extends rl{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class _u extends rl{}class l4 extends rl{constructor(t){super(`Invalid unit ${t}`)}}class di extends rl{}class Fa extends rl{constructor(){super("Zone is an abstract class")}}const _e="numeric",Ri="short",Yn="long",td={year:_e,month:_e,day:_e},u4={year:_e,month:Ri,day:_e},GC={year:_e,month:Ri,day:_e,weekday:Ri},c4={year:_e,month:Yn,day:_e},d4={year:_e,month:Yn,day:_e,weekday:Yn},f4={hour:_e,minute:_e},h4={hour:_e,minute:_e,second:_e},p4={hour:_e,minute:_e,second:_e,timeZoneName:Ri},g4={hour:_e,minute:_e,second:_e,timeZoneName:Yn},v4={hour:_e,minute:_e,hourCycle:"h23"},b4={hour:_e,minute:_e,second:_e,hourCycle:"h23"},m4={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:Ri},y4={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:Yn},C4={year:_e,month:_e,day:_e,hour:_e,minute:_e},w4={year:_e,month:_e,day:_e,hour:_e,minute:_e,second:_e},x4={year:_e,month:Ri,day:_e,hour:_e,minute:_e},z4={year:_e,month:Ri,day:_e,hour:_e,minute:_e,second:_e},qC={year:_e,month:Ri,day:_e,weekday:Ri,hour:_e,minute:_e},L4={year:_e,month:Yn,day:_e,hour:_e,minute:_e,timeZoneName:Ri},S4={year:_e,month:Yn,day:_e,hour:_e,minute:_e,second:_e,timeZoneName:Ri},M4={year:_e,month:Yn,day:_e,weekday:Yn,hour:_e,minute:_e,timeZoneName:Yn},_4={year:_e,month:Yn,day:_e,weekday:Yn,hour:_e,minute:_e,second:_e,timeZoneName:Yn};class Ku{get type(){throw new Fa}get name(){throw new Fa}get ianaName(){return this.name}get isUniversal(){throw new Fa}offsetName(t,n){throw new Fa}formatOffset(t,n){throw new Fa}offset(t){throw new Fa}equals(t){throw new Fa}get isValid(){throw new Fa}}let Kf=null;class yd extends Ku{static get instance(){return Kf===null&&(Kf=new yd),Kf}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return k4(t,n,l)}formatOffset(t,n){return Au(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let D0={};function jC(o){return D0[o]||(D0[o]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),D0[o]}const KC={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function YC(o,t){const n=o.format(t).replace(/\u200E/g,""),l=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,c,g,h,w,z,S,E]=l;return[h,c,g,w,z,S,E]}function XC(o,t){const n=o.formatToParts(t),l=[];for(let c=0;c<n.length;c++){const{type:g,value:h}=n[c],w=KC[g];g==="era"?l[w]=h:_t(w)||(l[w]=parseInt(h,10))}return l}let M0={};class Xo extends Ku{static create(t){return M0[t]||(M0[t]=new Xo(t)),M0[t]}static resetCache(){M0={},D0={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Xo.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return k4(t,n,l,this.name)}formatOffset(t,n){return Au(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const l=jC(this.name);let[c,g,h,w,z,S,E]=l.formatToParts?XC(l,n):YC(l,n);w==="BC"&&(c=-Math.abs(c)+1);const B=wd({year:c,month:g,day:h,hour:z===24?0:z,minute:S,second:E,millisecond:0});let H=+n;const J=H%1e3;return H-=J>=0?J:1e3+J,(B-H)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Pp={};function JC(o,t={}){const n=JSON.stringify([o,t]);let l=Pp[n];return l||(l=new Intl.ListFormat(o,t),Pp[n]=l),l}let bh={};function mh(o,t={}){const n=JSON.stringify([o,t]);let l=bh[n];return l||(l=new Intl.DateTimeFormat(o,t),bh[n]=l),l}let yh={};function QC(o,t={}){const n=JSON.stringify([o,t]);let l=yh[n];return l||(l=new Intl.NumberFormat(o,t),yh[n]=l),l}let Ch={};function ew(o,t={}){const{base:n,...l}=t,c=JSON.stringify([o,l]);let g=Ch[c];return g||(g=new Intl.RelativeTimeFormat(o,t),Ch[c]=g),g}let Tu=null;function tw(){return Tu||(Tu=new Intl.DateTimeFormat().resolvedOptions().locale,Tu)}function rw(o){const t=o.indexOf("-x-");t!==-1&&(o=o.substring(0,t));const n=o.indexOf("-u-");if(n===-1)return[o];{let l,c;try{l=mh(o).resolvedOptions(),c=o}catch{const z=o.substring(0,n);l=mh(z).resolvedOptions(),c=z}const{numberingSystem:g,calendar:h}=l;return[c,g,h]}}function nw(o,t,n){return(n||t)&&(o.includes("-u-")||(o+="-u"),n&&(o+=`-ca-${n}`),t&&(o+=`-nu-${t}`)),o}function iw(o){const t=[];for(let n=1;n<=12;n++){const l=at.utc(2009,n,1);t.push(o(l))}return t}function ow(o){const t=[];for(let n=1;n<=7;n++){const l=at.utc(2016,11,13+n);t.push(o(l))}return t}function _0(o,t,n,l){const c=o.listingMode();return c==="error"?null:c==="en"?n(t):l(t)}function aw(o){return o.numberingSystem&&o.numberingSystem!=="latn"?!1:o.numberingSystem==="latn"||!o.locale||o.locale.startsWith("en")||new Intl.DateTimeFormat(o.intl).resolvedOptions().numberingSystem==="latn"}class sw{constructor(t,n,l){this.padTo=l.padTo||0,this.floor=l.floor||!1;const{padTo:c,floor:g,...h}=l;if(!n||Object.keys(h).length>0){const w={useGrouping:!1,...l};l.padTo>0&&(w.minimumIntegerDigits=l.padTo),this.inf=QC(t,w)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Xh(t,3);return xr(n,this.padTo)}}}class lw{constructor(t,n,l){this.opts=l,this.originalZone=void 0;let c;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const h=-1*(t.offset/60),w=h>=0?`Etc/GMT+${h}`:`Etc/GMT${h}`;t.offset!==0&&Xo.create(w).valid?(c=w,this.dt=t):(c="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,c=t.zone.name):(c="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const g={...this.opts};g.timeZone=g.timeZone||c,this.dtf=mh(n,g)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const l=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:l}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class uw{constructor(t,n,l){this.opts={style:"long",...l},!n&&T4()&&(this.rtf=ew(t,l))}format(t,n){return this.rtf?this.rtf.format(t,n):Mw(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class Kt{static fromOpts(t){return Kt.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,l,c=!1){const g=t||wr.defaultLocale,h=g||(c?"en-US":tw()),w=n||wr.defaultNumberingSystem,z=l||wr.defaultOutputCalendar;return new Kt(h,w,z,g)}static resetCache(){Tu=null,bh={},yh={},Ch={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:l}={}){return Kt.create(t,n,l)}constructor(t,n,l,c){const[g,h,w]=rw(t);this.locale=g,this.numberingSystem=n||h||null,this.outputCalendar=l||w||null,this.intl=nw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=c,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=aw(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Kt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return _0(this,t,I4,()=>{const l=n?{month:t,day:"numeric"}:{month:t},c=n?"format":"standalone";return this.monthsCache[c][t]||(this.monthsCache[c][t]=iw(g=>this.extract(g,l,"month"))),this.monthsCache[c][t]})}weekdays(t,n=!1){return _0(this,t,P4,()=>{const l=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},c=n?"format":"standalone";return this.weekdaysCache[c][t]||(this.weekdaysCache[c][t]=ow(g=>this.extract(g,l,"weekday"))),this.weekdaysCache[c][t]})}meridiems(){return _0(this,void 0,()=>D4,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[at.utc(2016,11,13,9),at.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return _0(this,t,N4,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[at.utc(-40,1,1),at.utc(2017,1,1)].map(l=>this.extract(l,n,"era"))),this.eraCache[t]})}extract(t,n,l){const c=this.dtFormatter(t,n),g=c.formatToParts(),h=g.find(w=>w.type.toLowerCase()===l);return h?h.value:null}numberFormatter(t={}){return new sw(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new lw(t,this.intl,n)}relFormatter(t={}){return new uw(this.intl,this.isEnglish(),t)}listFormatter(t={}){return JC(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let Yf=null;class mn extends Ku{static get utcInstance(){return Yf===null&&(Yf=new mn(0)),Yf}static instance(t){return t===0?mn.utcInstance:new mn(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new mn(xd(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Au(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Au(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Au(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class cw extends Ku{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Za(o,t){if(_t(o)||o===null)return t;if(o instanceof Ku)return o;if(dw(o)){const n=o.toLowerCase();return n==="default"?t:n==="local"||n==="system"?yd.instance:n==="utc"||n==="gmt"?mn.utcInstance:mn.parseSpecifier(n)||Xo.create(o)}else return Gs(o)?mn.instance(o):typeof o=="object"&&"offset"in o&&typeof o.offset=="function"?o:new cw(o)}let Dp=()=>Date.now(),Np="system",Rp=null,Hp=null,Fp=null,Bp=60,Vp;class wr{static get now(){return Dp}static set now(t){Dp=t}static set defaultZone(t){Np=t}static get defaultZone(){return Za(Np,yd.instance)}static get defaultLocale(){return Rp}static set defaultLocale(t){Rp=t}static get defaultNumberingSystem(){return Hp}static set defaultNumberingSystem(t){Hp=t}static get defaultOutputCalendar(){return Fp}static set defaultOutputCalendar(t){Fp=t}static get twoDigitCutoffYear(){return Bp}static set twoDigitCutoffYear(t){Bp=t%100}static get throwOnInvalid(){return Vp}static set throwOnInvalid(t){Vp=t}static resetCaches(){Kt.resetCache(),Xo.resetCache()}}function _t(o){return typeof o=="undefined"}function Gs(o){return typeof o=="number"}function Cd(o){return typeof o=="number"&&o%1===0}function dw(o){return typeof o=="string"}function fw(o){return Object.prototype.toString.call(o)==="[object Date]"}function T4(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hw(o){return Array.isArray(o)?o:[o]}function Wp(o,t,n){if(o.length!==0)return o.reduce((l,c)=>{const g=[t(c),c];return l&&n(l[0],g[0])===l[0]?l:g},null)[1]}function pw(o,t){return t.reduce((n,l)=>(n[l]=o[l],n),{})}function g1(o,t){return Object.prototype.hasOwnProperty.call(o,t)}function Ko(o,t,n){return Cd(o)&&o>=t&&o<=n}function gw(o,t){return o-t*Math.floor(o/t)}function xr(o,t=2){const n=o<0;let l;return n?l="-"+(""+-o).padStart(t,"0"):l=(""+o).padStart(t,"0"),l}function Va(o){if(!(_t(o)||o===null||o===""))return parseInt(o,10)}function Rs(o){if(!(_t(o)||o===null||o===""))return parseFloat(o)}function Yh(o){if(!(_t(o)||o===null||o==="")){const t=parseFloat("0."+o)*1e3;return Math.floor(t)}}function Xh(o,t,n=!1){const l=10**t;return(n?Math.trunc:Math.round)(o*l)/l}function Yu(o){return o%4===0&&(o%100!==0||o%400===0)}function Iu(o){return Yu(o)?366:365}function rd(o,t){const n=gw(t-1,12)+1,l=o+(t-n)/12;return n===2?Yu(l)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function wd(o){let t=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond);return o.year<100&&o.year>=0&&(t=new Date(t),t.setUTCFullYear(o.year,o.month-1,o.day)),+t}function nd(o){const t=(o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400))%7,n=o-1,l=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||l===3?53:52}function wh(o){return o>99?o:o>wr.twoDigitCutoffYear?1900+o:2e3+o}function k4(o,t,n,l=null){const c=new Date(o),g={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};l&&(g.timeZone=l);const h={timeZoneName:t,...g},w=new Intl.DateTimeFormat(n,h).formatToParts(c).find(z=>z.type.toLowerCase()==="timezonename");return w?w.value:null}function xd(o,t){let n=parseInt(o,10);Number.isNaN(n)&&(n=0);const l=parseInt(t,10)||0,c=n<0||Object.is(n,-0)?-l:l;return n*60+c}function O4(o){const t=Number(o);if(typeof o=="boolean"||o===""||Number.isNaN(t))throw new di(`Invalid unit value ${o}`);return t}function id(o,t){const n={};for(const l in o)if(g1(o,l)){const c=o[l];if(c==null)continue;n[t(l)]=O4(c)}return n}function Au(o,t){const n=Math.trunc(Math.abs(o/60)),l=Math.trunc(Math.abs(o%60)),c=o>=0?"+":"-";switch(t){case"short":return`${c}${xr(n,2)}:${xr(l,2)}`;case"narrow":return`${c}${n}${l>0?`:${l}`:""}`;case"techie":return`${c}${xr(n,2)}${xr(l,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function zd(o){return pw(o,["hour","minute","second","millisecond"])}const vw=["January","February","March","April","May","June","July","August","September","October","November","December"],E4=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],bw=["J","F","M","A","M","J","J","A","S","O","N","D"];function I4(o){switch(o){case"narrow":return[...bw];case"short":return[...E4];case"long":return[...vw];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const A4=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],$4=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],mw=["M","T","W","T","F","S","S"];function P4(o){switch(o){case"narrow":return[...mw];case"short":return[...$4];case"long":return[...A4];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const D4=["AM","PM"],yw=["Before Christ","Anno Domini"],Cw=["BC","AD"],ww=["B","A"];function N4(o){switch(o){case"narrow":return[...ww];case"short":return[...Cw];case"long":return[...yw];default:return null}}function xw(o){return D4[o.hour<12?0:1]}function zw(o,t){return P4(t)[o.weekday-1]}function Lw(o,t){return I4(t)[o.month-1]}function Sw(o,t){return N4(t)[o.year<0?0:1]}function Mw(o,t,n="always",l=!1){const c={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},g=["hours","minutes","seconds"].indexOf(o)===-1;if(n==="auto"&&g){const D=o==="days";switch(t){case 1:return D?"tomorrow":`next ${c[o][0]}`;case-1:return D?"yesterday":`last ${c[o][0]}`;case 0:return D?"today":`this ${c[o][0]}`}}const h=Object.is(t,-0)||t<0,w=Math.abs(t),z=w===1,S=c[o],E=l?z?S[1]:S[2]||S[1]:z?c[o][0]:o;return h?`${w} ${E} ago`:`in ${w} ${E}`}function Zp(o,t){let n="";for(const l of o)l.literal?n+=l.val:n+=t(l.val);return n}const _w={D:td,DD:u4,DDD:c4,DDDD:d4,t:f4,tt:h4,ttt:p4,tttt:g4,T:v4,TT:b4,TTT:m4,TTTT:y4,f:C4,ff:x4,fff:L4,ffff:M4,F:w4,FF:z4,FFF:S4,FFFF:_4};class sn{static create(t,n={}){return new sn(t,n)}static parseFormat(t){let n=null,l="",c=!1;const g=[];for(let h=0;h<t.length;h++){const w=t.charAt(h);w==="'"?(l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),n=null,l="",c=!c):c||w===n?l+=w:(l.length>0&&g.push({literal:/^\s+$/.test(l),val:l}),l=w,n=w)}return l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),g}static macroTokenToFormatOpts(t){return _w[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return xr(t,n);const l={...this.opts};return n>0&&(l.padTo=n),this.loc.numberFormatter(l).format(t)}formatDateTimeFromString(t,n){const l=this.loc.listingMode()==="en",c=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",g=(H,J)=>this.loc.extract(t,H,J),h=H=>t.isOffsetFixed&&t.offset===0&&H.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,H.format):"",w=()=>l?xw(t):g({hour:"numeric",hourCycle:"h12"},"dayperiod"),z=(H,J)=>l?Lw(t,H):g(J?{month:H}:{month:H,day:"numeric"},"month"),S=(H,J)=>l?zw(t,H):g(J?{weekday:H}:{weekday:H,month:"long",day:"numeric"},"weekday"),E=H=>{const J=sn.macroTokenToFormatOpts(H);return J?this.formatWithSystemDefault(t,J):H},D=H=>l?Sw(t,H):g({era:H},"era"),B=H=>{switch(H){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return h({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return h({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return h({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return w();case"d":return c?g({day:"numeric"},"day"):this.num(t.day);case"dd":return c?g({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return S("short",!0);case"cccc":return S("long",!0);case"ccccc":return S("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return S("short",!1);case"EEEE":return S("long",!1);case"EEEEE":return S("narrow",!1);case"L":return c?g({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return c?g({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return z("short",!0);case"LLLL":return z("long",!0);case"LLLLL":return z("narrow",!0);case"M":return c?g({month:"numeric"},"month"):this.num(t.month);case"MM":return c?g({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return z("short",!1);case"MMMM":return z("long",!1);case"MMMMM":return z("narrow",!1);case"y":return c?g({year:"numeric"},"year"):this.num(t.year);case"yy":return c?g({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return c?g({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return c?g({year:"numeric"},"year"):this.num(t.year,6);case"G":return D("short");case"GG":return D("long");case"GGGGG":return D("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return E(H)}};return Zp(sn.parseFormat(n),B)}formatDurationFromString(t,n){const l=z=>{switch(z[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},c=z=>S=>{const E=l(S);return E?this.num(z.get(E),S.length):S},g=sn.parseFormat(n),h=g.reduce((z,{literal:S,val:E})=>S?z:z.concat(E),[]),w=t.shiftTo(...h.map(l).filter(z=>z));return Zp(g,c(w))}}class Pi{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const R4=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function m1(...o){const t=o.reduce((n,l)=>n+l.source,"");return RegExp(`^${t}$`)}function y1(...o){return t=>o.reduce(([n,l,c],g)=>{const[h,w,z]=g(t,c);return[{...n,...h},w||l,z]},[{},null,1]).slice(0,2)}function C1(o,...t){if(o==null)return[null,null];for(const[n,l]of t){const c=n.exec(o);if(c)return l(c)}return[null,null]}function H4(...o){return(t,n)=>{const l={};let c;for(c=0;c<o.length;c++)l[o[c]]=Va(t[n+c]);return[l,null,n+c]}}const F4=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Tw=`(?:${F4.source}?(?:\\[(${R4.source})\\])?)?`,Jh=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,B4=RegExp(`${Jh.source}${Tw}`),Qh=RegExp(`(?:T${B4.source})?`),kw=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ow=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ew=/(\d{4})-?(\d{3})/,Iw=H4("weekYear","weekNumber","weekDay"),Aw=H4("year","ordinal"),$w=/(\d{4})-(\d\d)-(\d\d)/,V4=RegExp(`${Jh.source} ?(?:${F4.source}|(${R4.source}))?`),Pw=RegExp(`(?: ${V4.source})?`);function a1(o,t,n){const l=o[t];return _t(l)?n:Va(l)}function Dw(o,t){return[{year:a1(o,t),month:a1(o,t+1,1),day:a1(o,t+2,1)},null,t+3]}function w1(o,t){return[{hours:a1(o,t,0),minutes:a1(o,t+1,0),seconds:a1(o,t+2,0),milliseconds:Yh(o[t+3])},null,t+4]}function Xu(o,t){const n=!o[t]&&!o[t+1],l=xd(o[t+1],o[t+2]),c=n?null:mn.instance(l);return[{},c,t+3]}function Ju(o,t){const n=o[t]?Xo.create(o[t]):null;return[{},n,t+1]}const Nw=RegExp(`^T?${Jh.source}$`),Rw=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Hw(o){const[t,n,l,c,g,h,w,z,S]=o,E=t[0]==="-",D=z&&z[0]==="-",B=(H,J=!1)=>H!==void 0&&(J||H&&E)?-H:H;return[{years:B(Rs(n)),months:B(Rs(l)),weeks:B(Rs(c)),days:B(Rs(g)),hours:B(Rs(h)),minutes:B(Rs(w)),seconds:B(Rs(z),z==="-0"),milliseconds:B(Yh(S),D)}]}const Fw={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function e2(o,t,n,l,c,g,h){const w={year:t.length===2?wh(Va(t)):Va(t),month:E4.indexOf(n)+1,day:Va(l),hour:Va(c),minute:Va(g)};return h&&(w.second=Va(h)),o&&(w.weekday=o.length>3?A4.indexOf(o)+1:$4.indexOf(o)+1),w}const Bw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Vw(o){const[,t,n,l,c,g,h,w,z,S,E,D]=o,B=e2(t,c,l,n,g,h,w);let H;return z?H=Fw[z]:S?H=0:H=xd(E,D),[B,new mn(H)]}function Ww(o){return o.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Zw=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Uw=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Gw=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Up(o){const[,t,n,l,c,g,h,w]=o;return[e2(t,c,l,n,g,h,w),mn.utcInstance]}function qw(o){const[,t,n,l,c,g,h,w]=o;return[e2(t,w,n,l,c,g,h),mn.utcInstance]}const jw=m1(kw,Qh),Kw=m1(Ow,Qh),Yw=m1(Ew,Qh),Xw=m1(B4),W4=y1(Dw,w1,Xu,Ju),Jw=y1(Iw,w1,Xu,Ju),Qw=y1(Aw,w1,Xu,Ju),ex=y1(w1,Xu,Ju);function tx(o){return C1(o,[jw,W4],[Kw,Jw],[Yw,Qw],[Xw,ex])}function rx(o){return C1(Ww(o),[Bw,Vw])}function nx(o){return C1(o,[Zw,Up],[Uw,Up],[Gw,qw])}function ix(o){return C1(o,[Rw,Hw])}const ox=y1(w1);function ax(o){return C1(o,[Nw,ox])}const sx=m1($w,Pw),lx=m1(V4),ux=y1(w1,Xu,Ju);function cx(o){return C1(o,[sx,W4],[lx,ux])}const dx="Invalid Duration",Z4={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},fx={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Z4},ci=146097/400,r1=146097/4800,hx={years:{quarters:4,months:12,weeks:ci/7,days:ci,hours:ci*24,minutes:ci*24*60,seconds:ci*24*60*60,milliseconds:ci*24*60*60*1e3},quarters:{months:3,weeks:ci/28,days:ci/4,hours:ci*24/4,minutes:ci*24*60/4,seconds:ci*24*60*60/4,milliseconds:ci*24*60*60*1e3/4},months:{weeks:r1/7,days:r1,hours:r1*24,minutes:r1*24*60,seconds:r1*24*60*60,milliseconds:r1*24*60*60*1e3},...Z4},Fs=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],U4=Fs.slice(0).reverse();function Ba(o,t,n=!1){const l={values:n?t.values:{...o.values,...t.values||{}},loc:o.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||o.conversionAccuracy,matrix:t.matrix||o.matrix};return new Ot(l)}function Gp(o){return Math.trunc(o*1e3)/1e3}function G4(o,t,n,l,c){const g=o[c][n],h=t[n]/g,w=Math.floor(h);l[c]=Gp(l[c]+w),t[n]=Gp(t[n]-w*g)}function px(o,t){U4.reduce((n,l)=>_t(t[l])?n:(n&&G4(o,t,n,t,l),l),null)}function gx(o){const t={};for(const[n,l]of Object.entries(o))l!==0&&(t[n]=l);return t}class Ot{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let l=n?hx:fx;t.matrix&&(l=t.matrix),this.values=t.values,this.loc=t.loc||Kt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=l,this.isLuxonDuration=!0}static fromMillis(t,n){return Ot.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new di(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Ot({values:id(t,Ot.normalizeUnit),loc:Kt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Gs(t))return Ot.fromMillis(t);if(Ot.isDuration(t))return t;if(typeof t=="object")return Ot.fromObject(t);throw new di(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[l]=ix(t);return l?Ot.fromObject(l,n):Ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[l]=ax(t);return l?Ot.fromObject(l,n):Ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Duration is invalid");const l=t instanceof Pi?t:new Pi(t,n);if(wr.throwOnInvalid)throw new UC(l);return new Ot({invalid:l})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new l4(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const l={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?sn.create(this.loc,l).formatDurationFromString(this,t):dx}toHuman(t={}){const n=Fs.map(l=>{const c=this.values[l];return _t(c)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:l.slice(0,-1)}).format(c)}).filter(l=>l);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Xh(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},at.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var n,l;let t=(n=this.values.milliseconds)!=null?n:0;for(let c of U4.slice(1))(l=this.values)!=null&&l[c]&&(t+=this.values[c]*this.matrix[c].milliseconds);return t}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t),l={};for(const c of Fs)(g1(n.values,c)||g1(this.values,c))&&(l[c]=n.get(c)+this.get(c));return Ba(this,{values:l},!0)}minus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const l of Object.keys(this.values))n[l]=O4(t(this.values[l],l));return Ba(this,{values:n},!0)}get(t){return this[Ot.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...id(t,Ot.normalizeUnit)};return Ba(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:l,matrix:c}={}){const h={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:c,conversionAccuracy:l};return Ba(this,h)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return this.valueOf()>=0?(px(this.matrix,t),Ba(this,{values:t},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const t=gx(this.normalize().shiftToAll().toObject());return Ba(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(h=>Ot.normalizeUnit(h));const n={},l={},c=this.toObject();let g;for(const h of Fs)if(t.indexOf(h)>=0){g=h;let w=0;for(const S in l)w+=this.matrix[S][h]*l[S],l[S]=0;Gs(c[h])&&(w+=c[h]);const z=Math.trunc(w);n[h]=z,l[h]=(w*1e3-z*1e3)/1e3;for(const S in c)Fs.indexOf(S)>Fs.indexOf(h)&&G4(this.matrix,c,S,n,h)}else Gs(c[h])&&(l[h]=c[h]);for(const h in l)l[h]!==0&&(n[g]+=h===g?l[h]:l[h]/this.matrix[g][h]);return Ba(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ba(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(l,c){return l===void 0||l===0?c===void 0||c===0:l===c}for(const l of Fs)if(!n(this.values[l],t.values[l]))return!1;return!0}}const n1="Invalid Interval";function vx(o,t){return!o||!o.isValid?ir.invalid("missing or invalid start"):!t||!t.isValid?ir.invalid("missing or invalid end"):t<o?ir.invalid("end before start",`The end of an interval must be after its start, but you had start=${o.toISO()} and end=${t.toISO()}`):null}class ir{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Interval is invalid");const l=t instanceof Pi?t:new Pi(t,n);if(wr.throwOnInvalid)throw new ZC(l);return new ir({invalid:l})}static fromDateTimes(t,n){const l=Lu(t),c=Lu(n),g=vx(l,c);return g==null?new ir({start:l,end:c}):g}static after(t,n){const l=Ot.fromDurationLike(n),c=Lu(t);return ir.fromDateTimes(c,c.plus(l))}static before(t,n){const l=Ot.fromDurationLike(n),c=Lu(t);return ir.fromDateTimes(c.minus(l),c)}static fromISO(t,n){const[l,c]=(t||"").split("/",2);if(l&&c){let g,h;try{g=at.fromISO(l,n),h=g.isValid}catch{h=!1}let w,z;try{w=at.fromISO(c,n),z=w.isValid}catch{z=!1}if(h&&z)return ir.fromDateTimes(g,w);if(h){const S=Ot.fromISO(c,n);if(S.isValid)return ir.after(g,S)}else if(z){const S=Ot.fromISO(l,n);if(S.isValid)return ir.before(w,S)}}return ir.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),l=this.end.startOf(t);return Math.floor(l.diff(n,t).get(t))+(l.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?ir.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Lu).filter(h=>this.contains(h)).sort(),l=[];let{s:c}=this,g=0;for(;c<this.e;){const h=n[g]||this.e,w=+h>+this.e?this.e:h;l.push(ir.fromDateTimes(c,w)),c=w,g+=1}return l}splitBy(t){const n=Ot.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:l}=this,c=1,g;const h=[];for(;l<this.e;){const w=this.start.plus(n.mapUnits(z=>z*c));g=+w>+this.e?this.e:w,h.push(ir.fromDateTimes(l,g)),l=g,c+=1}return h}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,l=this.e<t.e?this.e:t.e;return n>=l?null:ir.fromDateTimes(n,l)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,l=this.e>t.e?this.e:t.e;return ir.fromDateTimes(n,l)}static merge(t){const[n,l]=t.sort((c,g)=>c.s-g.s).reduce(([c,g],h)=>g?g.overlaps(h)||g.abutsStart(h)?[c,g.union(h)]:[c.concat([g]),h]:[c,h],[[],null]);return l&&n.push(l),n}static xor(t){let n=null,l=0;const c=[],g=t.map(z=>[{time:z.s,type:"s"},{time:z.e,type:"e"}]),h=Array.prototype.concat(...g),w=h.sort((z,S)=>z.time-S.time);for(const z of w)l+=z.type==="s"?1:-1,l===1?n=z.time:(n&&+n!=+z.time&&c.push(ir.fromDateTimes(n,z.time)),n=null);return ir.merge(c)}difference(...t){return ir.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:n1}toLocaleString(t=td,n={}){return this.isValid?sn.create(this.s.loc.clone(n),t).formatInterval(this):n1}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:n1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:n1}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:n1}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:n1}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Ot.invalid(this.invalidReason)}mapEndpoints(t){return ir.fromDateTimes(t(this.s),t(this.e))}}class T0{static hasDST(t=wr.defaultZone){const n=at.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Xo.isValidZone(t)}static normalizeZone(t){return Za(t,wr.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Kt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Kt.create(n,null,"gregory").eras(t)}static features(){return{relative:T4()}}}function qp(o,t){const n=c=>c.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),l=n(t)-n(o);return Math.floor(Ot.fromMillis(l).as("days"))}function bx(o,t,n){const l=[["years",(z,S)=>S.year-z.year],["quarters",(z,S)=>S.quarter-z.quarter+(S.year-z.year)*4],["months",(z,S)=>S.month-z.month+(S.year-z.year)*12],["weeks",(z,S)=>{const E=qp(z,S);return(E-E%7)/7}],["days",qp]],c={},g=o;let h,w;for(const[z,S]of l)n.indexOf(z)>=0&&(h=z,c[z]=S(o,t),w=g.plus(c),w>t?(c[z]--,o=g.plus(c),o>t&&(w=o,c[z]--,o=g.plus(c))):o=w);return[o,c,w,h]}function mx(o,t,n,l){let[c,g,h,w]=bx(o,t,n);const z=t-c,S=n.filter(D=>["hours","minutes","seconds","milliseconds"].indexOf(D)>=0);S.length===0&&(h<t&&(h=c.plus({[w]:1})),h!==c&&(g[w]=(g[w]||0)+z/(h-c)));const E=Ot.fromObject(g,l);return S.length>0?Ot.fromMillis(z,l).shiftTo(...S).plus(E):E}const t2={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},jp={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yx=t2.hanidec.replace(/[\[|\]]/g,"").split("");function Cx(o){let t=parseInt(o,10);if(isNaN(t)){t="";for(let n=0;n<o.length;n++){const l=o.charCodeAt(n);if(o[n].search(t2.hanidec)!==-1)t+=yx.indexOf(o[n]);else for(const c in jp){const[g,h]=jp[c];l>=g&&l<=h&&(t+=l-g)}}return parseInt(t,10)}else return t}function Ii({numberingSystem:o},t=""){return new RegExp(`${t2[o||"latn"]}${t}`)}const wx="missing Intl.DateTimeFormat.formatToParts support";function Pt(o,t=n=>n){return{regex:o,deser:([n])=>t(Cx(n))}}const xx=String.fromCharCode(160),q4=`[ ${xx}]`,j4=new RegExp(q4,"g");function zx(o){return o.replace(/\./g,"\\.?").replace(j4,q4)}function Kp(o){return o.replace(/\./g,"").replace(j4," ").toLowerCase()}function Ai(o,t){return o===null?null:{regex:RegExp(o.map(zx).join("|")),deser:([n])=>o.findIndex(l=>Kp(n)===Kp(l))+t}}function Yp(o,t){return{regex:o,deser:([,n,l])=>xd(n,l),groups:t}}function k0(o){return{regex:o,deser:([t])=>t}}function Lx(o){return o.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Sx(o,t){const n=Ii(t),l=Ii(t,"{2}"),c=Ii(t,"{3}"),g=Ii(t,"{4}"),h=Ii(t,"{6}"),w=Ii(t,"{1,2}"),z=Ii(t,"{1,3}"),S=Ii(t,"{1,6}"),E=Ii(t,"{1,9}"),D=Ii(t,"{2,4}"),B=Ii(t,"{4,6}"),H=ge=>({regex:RegExp(Lx(ge.val)),deser:([Te])=>Te,literal:!0}),pe=(ge=>{if(o.literal)return H(ge);switch(ge.val){case"G":return Ai(t.eras("short"),0);case"GG":return Ai(t.eras("long"),0);case"y":return Pt(S);case"yy":return Pt(D,wh);case"yyyy":return Pt(g);case"yyyyy":return Pt(B);case"yyyyyy":return Pt(h);case"M":return Pt(w);case"MM":return Pt(l);case"MMM":return Ai(t.months("short",!0),1);case"MMMM":return Ai(t.months("long",!0),1);case"L":return Pt(w);case"LL":return Pt(l);case"LLL":return Ai(t.months("short",!1),1);case"LLLL":return Ai(t.months("long",!1),1);case"d":return Pt(w);case"dd":return Pt(l);case"o":return Pt(z);case"ooo":return Pt(c);case"HH":return Pt(l);case"H":return Pt(w);case"hh":return Pt(l);case"h":return Pt(w);case"mm":return Pt(l);case"m":return Pt(w);case"q":return Pt(w);case"qq":return Pt(l);case"s":return Pt(w);case"ss":return Pt(l);case"S":return Pt(z);case"SSS":return Pt(c);case"u":return k0(E);case"uu":return k0(w);case"uuu":return Pt(n);case"a":return Ai(t.meridiems(),0);case"kkkk":return Pt(g);case"kk":return Pt(D,wh);case"W":return Pt(w);case"WW":return Pt(l);case"E":case"c":return Pt(n);case"EEE":return Ai(t.weekdays("short",!1),1);case"EEEE":return Ai(t.weekdays("long",!1),1);case"ccc":return Ai(t.weekdays("short",!0),1);case"cccc":return Ai(t.weekdays("long",!0),1);case"Z":case"ZZ":return Yp(new RegExp(`([+-]${w.source})(?::(${l.source}))?`),2);case"ZZZ":return Yp(new RegExp(`([+-]${w.source})(${l.source})?`),2);case"z":return k0(/[a-z_+-/]{1,256}?/i);case" ":return k0(/[^\S\n\r]/);default:return H(ge)}})(o)||{invalidReason:wx};return pe.token=o,pe}const Mx={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function _x(o,t,n){const{type:l,value:c}=o;if(l==="literal"){const z=/^\s+$/.test(c);return{literal:!z,val:z?" ":c}}const g=t[l];let h=l;l==="hour"&&(t.hour12!=null?h=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?h="hour12":h="hour24":h=n.hour12?"hour12":"hour24");let w=Mx[h];if(typeof w=="object"&&(w=w[g]),w)return{literal:!1,val:w}}function Tx(o){return[`^${o.map(n=>n.regex).reduce((n,l)=>`${n}(${l.source})`,"")}$`,o]}function kx(o,t,n){const l=o.match(t);if(l){const c={};let g=1;for(const h in n)if(g1(n,h)){const w=n[h],z=w.groups?w.groups+1:1;!w.literal&&w.token&&(c[w.token.val[0]]=w.deser(l.slice(g,g+z))),g+=z}return[l,c]}else return[l,{}]}function Ox(o){const t=g=>{switch(g){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,l;return _t(o.z)||(n=Xo.create(o.z)),_t(o.Z)||(n||(n=new mn(o.Z)),l=o.Z),_t(o.q)||(o.M=(o.q-1)*3+1),_t(o.h)||(o.h<12&&o.a===1?o.h+=12:o.h===12&&o.a===0&&(o.h=0)),o.G===0&&o.y&&(o.y=-o.y),_t(o.u)||(o.S=Yh(o.u)),[Object.keys(o).reduce((g,h)=>{const w=t(h);return w&&(g[w]=o[h]),g},{}),n,l]}let Xf=null;function Ex(){return Xf||(Xf=at.fromMillis(1555555555555)),Xf}function Ix(o,t){if(o.literal)return o;const n=sn.macroTokenToFormatOpts(o.val),l=X4(n,t);return l==null||l.includes(void 0)?o:l}function K4(o,t){return Array.prototype.concat(...o.map(n=>Ix(n,t)))}function Y4(o,t,n){const l=K4(sn.parseFormat(n),o),c=l.map(h=>Sx(h,o)),g=c.find(h=>h.invalidReason);if(g)return{input:t,tokens:l,invalidReason:g.invalidReason};{const[h,w]=Tx(c),z=RegExp(h,"i"),[S,E]=kx(t,z,w),[D,B,H]=E?Ox(E):[null,null,void 0];if(g1(E,"a")&&g1(E,"H"))throw new _u("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:l,regex:z,rawMatches:S,matches:E,result:D,zone:B,specificOffset:H}}}function Ax(o,t,n){const{result:l,zone:c,specificOffset:g,invalidReason:h}=Y4(o,t,n);return[l,c,g,h]}function X4(o,t){if(!o)return null;const l=sn.create(t,o).dtFormatter(Ex()),c=l.formatToParts(),g=l.resolvedOptions();return c.map(h=>_x(h,o,g))}const J4=[0,31,59,90,120,151,181,212,243,273,304,334],Q4=[0,31,60,91,121,152,182,213,244,274,305,335];function fi(o,t){return new Pi("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${o}, which is invalid`)}function e3(o,t,n){const l=new Date(Date.UTC(o,t-1,n));o<100&&o>=0&&l.setUTCFullYear(l.getUTCFullYear()-1900);const c=l.getUTCDay();return c===0?7:c}function t3(o,t,n){return n+(Yu(o)?Q4:J4)[t-1]}function r3(o,t){const n=Yu(o)?Q4:J4,l=n.findIndex(g=>g<t),c=t-n[l];return{month:l+1,day:c}}function xh(o){const{year:t,month:n,day:l}=o,c=t3(t,n,l),g=e3(t,n,l);let h=Math.floor((c-g+10)/7),w;return h<1?(w=t-1,h=nd(w)):h>nd(t)?(w=t+1,h=1):w=t,{weekYear:w,weekNumber:h,weekday:g,...zd(o)}}function Xp(o){const{weekYear:t,weekNumber:n,weekday:l}=o,c=e3(t,1,4),g=Iu(t);let h=n*7+l-c-3,w;h<1?(w=t-1,h+=Iu(w)):h>g?(w=t+1,h-=Iu(t)):w=t;const{month:z,day:S}=r3(w,h);return{year:w,month:z,day:S,...zd(o)}}function Jf(o){const{year:t,month:n,day:l}=o,c=t3(t,n,l);return{year:t,ordinal:c,...zd(o)}}function Jp(o){const{year:t,ordinal:n}=o,{month:l,day:c}=r3(t,n);return{year:t,month:l,day:c,...zd(o)}}function $x(o){const t=Cd(o.weekYear),n=Ko(o.weekNumber,1,nd(o.weekYear)),l=Ko(o.weekday,1,7);return t?n?l?!1:fi("weekday",o.weekday):fi("week",o.week):fi("weekYear",o.weekYear)}function Px(o){const t=Cd(o.year),n=Ko(o.ordinal,1,Iu(o.year));return t?n?!1:fi("ordinal",o.ordinal):fi("year",o.year)}function n3(o){const t=Cd(o.year),n=Ko(o.month,1,12),l=Ko(o.day,1,rd(o.year,o.month));return t?n?l?!1:fi("day",o.day):fi("month",o.month):fi("year",o.year)}function i3(o){const{hour:t,minute:n,second:l,millisecond:c}=o,g=Ko(t,0,23)||t===24&&n===0&&l===0&&c===0,h=Ko(n,0,59),w=Ko(l,0,59),z=Ko(c,0,999);return g?h?w?z?!1:fi("millisecond",c):fi("second",l):fi("minute",n):fi("hour",t)}const Qf="Invalid DateTime",Qp=864e13;function O0(o){return new Pi("unsupported zone",`the zone "${o.name}" is not supported`)}function eh(o){return o.weekData===null&&(o.weekData=xh(o.c)),o.weekData}function Hs(o,t){const n={ts:o.ts,zone:o.zone,c:o.c,o:o.o,loc:o.loc,invalid:o.invalid};return new at({...n,...t,old:n})}function o3(o,t,n){let l=o-t*60*1e3;const c=n.offset(l);if(t===c)return[l,t];l-=(c-t)*60*1e3;const g=n.offset(l);return c===g?[l,c]:[o-Math.min(c,g)*60*1e3,Math.max(c,g)]}function E0(o,t){o+=t*60*1e3;const n=new Date(o);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function N0(o,t,n){return o3(wd(o),t,n)}function e5(o,t){const n=o.o,l=o.c.year+Math.trunc(t.years),c=o.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,g={...o.c,year:l,month:c,day:Math.min(o.c.day,rd(l,c))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},h=Ot.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),w=wd(g);let[z,S]=o3(w,n,o.zone);return h!==0&&(z+=h,S=o.zone.offset(z)),{ts:z,o:S}}function zu(o,t,n,l,c,g){const{setZone:h,zone:w}=n;if(o&&Object.keys(o).length!==0||t){const z=t||w,S=at.fromObject(o,{...n,zone:z,specificOffset:g});return h?S:S.setZone(w)}else return at.invalid(new Pi("unparsable",`the input "${c}" can't be parsed as ${l}`))}function I0(o,t,n=!0){return o.isValid?sn.create(Kt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(o,t):null}function th(o,t){const n=o.c.year>9999||o.c.year<0;let l="";return n&&o.c.year>=0&&(l+="+"),l+=xr(o.c.year,n?6:4),t?(l+="-",l+=xr(o.c.month),l+="-",l+=xr(o.c.day)):(l+=xr(o.c.month),l+=xr(o.c.day)),l}function t5(o,t,n,l,c,g){let h=xr(o.c.hour);return t?(h+=":",h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=":")):h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=xr(o.c.second),(o.c.millisecond!==0||!l)&&(h+=".",h+=xr(o.c.millisecond,3))),c&&(o.isOffsetFixed&&o.offset===0&&!g?h+="Z":o.o<0?(h+="-",h+=xr(Math.trunc(-o.o/60)),h+=":",h+=xr(Math.trunc(-o.o%60))):(h+="+",h+=xr(Math.trunc(o.o/60)),h+=":",h+=xr(Math.trunc(o.o%60)))),g&&(h+="["+o.zone.ianaName+"]"),h}const a3={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Dx={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Nx={ordinal:1,hour:0,minute:0,second:0,millisecond:0},s3=["year","month","day","hour","minute","second","millisecond"],Rx=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Hx=["year","ordinal","hour","minute","second","millisecond"];function r5(o){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[o.toLowerCase()];if(!t)throw new l4(o);return t}function n5(o,t){const n=Za(t.zone,wr.defaultZone),l=Kt.fromObject(t),c=wr.now();let g,h;if(_t(o.year))g=c;else{for(const S of s3)_t(o[S])&&(o[S]=a3[S]);const w=n3(o)||i3(o);if(w)return at.invalid(w);const z=n.offset(c);[g,h]=N0(o,z,n)}return new at({ts:g,zone:n,loc:l,o:h})}function i5(o,t,n){const l=_t(n.round)?!0:n.round,c=(h,w)=>(h=Xh(h,l||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(h,w)),g=h=>n.calendary?t.hasSame(o,h)?0:t.startOf(h).diff(o.startOf(h),h).get(h):t.diff(o,h).get(h);if(n.unit)return c(g(n.unit),n.unit);for(const h of n.units){const w=g(h);if(Math.abs(w)>=1)return c(w,h)}return c(o>t?-0:0,n.units[n.units.length-1])}function o5(o){let t={},n;return o.length>0&&typeof o[o.length-1]=="object"?(t=o[o.length-1],n=Array.from(o).slice(0,o.length-1)):n=Array.from(o),[t,n]}class at{constructor(t){const n=t.zone||wr.defaultZone;let l=t.invalid||(Number.isNaN(t.ts)?new Pi("invalid input"):null)||(n.isValid?null:O0(n));this.ts=_t(t.ts)?wr.now():t.ts;let c=null,g=null;if(!l)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[c,g]=[t.old.c,t.old.o];else{const w=n.offset(this.ts);c=E0(this.ts,w),l=Number.isNaN(c.year)?new Pi("invalid input"):null,c=l?null:c,g=l?null:w}this._zone=n,this.loc=t.loc||Kt.create(),this.invalid=l,this.weekData=null,this.c=c,this.o=g,this.isLuxonDateTime=!0}static now(){return new at({})}static local(){const[t,n]=o5(arguments),[l,c,g,h,w,z,S]=n;return n5({year:l,month:c,day:g,hour:h,minute:w,second:z,millisecond:S},t)}static utc(){const[t,n]=o5(arguments),[l,c,g,h,w,z,S]=n;return t.zone=mn.utcInstance,n5({year:l,month:c,day:g,hour:h,minute:w,second:z,millisecond:S},t)}static fromJSDate(t,n={}){const l=fw(t)?t.valueOf():NaN;if(Number.isNaN(l))return at.invalid("invalid input");const c=Za(n.zone,wr.defaultZone);return c.isValid?new at({ts:l,zone:c,loc:Kt.fromObject(n)}):at.invalid(O0(c))}static fromMillis(t,n={}){if(Gs(t))return t<-Qp||t>Qp?at.invalid("Timestamp out of range"):new at({ts:t,zone:Za(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Gs(t))return new at({ts:t*1e3,zone:Za(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const l=Za(n.zone,wr.defaultZone);if(!l.isValid)return at.invalid(O0(l));const c=wr.now(),g=_t(n.specificOffset)?l.offset(c):n.specificOffset,h=id(t,r5),w=!_t(h.ordinal),z=!_t(h.year),S=!_t(h.month)||!_t(h.day),E=z||S,D=h.weekYear||h.weekNumber,B=Kt.fromObject(n);if((E||w)&&D)throw new _u("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&w)throw new _u("Can't mix ordinal dates with month/day");const H=D||h.weekday&&!E;let J,pe,ge=E0(c,g);H?(J=Rx,pe=Dx,ge=xh(ge)):w?(J=Hx,pe=Nx,ge=Jf(ge)):(J=s3,pe=a3);let Te=!1;for(const je of J){const Ye=h[je];_t(Ye)?Te?h[je]=pe[je]:h[je]=ge[je]:Te=!0}const Ie=H?$x(h):w?Px(h):n3(h),be=Ie||i3(h);if(be)return at.invalid(be);const ve=H?Xp(h):w?Jp(h):h,[ke,$e]=N0(ve,g,l),De=new at({ts:ke,zone:l,o:$e,loc:B});return h.weekday&&E&&t.weekday!==De.weekday?at.invalid("mismatched weekday",`you can't specify both a weekday of ${h.weekday} and a date of ${De.toISO()}`):De}static fromISO(t,n={}){const[l,c]=tx(t);return zu(l,c,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[l,c]=rx(t);return zu(l,c,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[l,c]=nx(t);return zu(l,c,n,"HTTP",n)}static fromFormat(t,n,l={}){if(_t(t)||_t(n))throw new di("fromFormat requires an input string and a format");const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0}),[w,z,S,E]=Ax(h,t,n);return E?at.invalid(E):zu(w,z,l,`format ${n}`,t,S)}static fromString(t,n,l={}){return at.fromFormat(t,n,l)}static fromSQL(t,n={}){const[l,c]=cx(t);return zu(l,c,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the DateTime is invalid");const l=t instanceof Pi?t:new Pi(t,n);if(wr.throwOnInvalid)throw new WC(l);return new at({invalid:l})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const l=X4(t,Kt.fromObject(n));return l?l.map(c=>c?c.val:null).join(""):null}static expandFormat(t,n={}){return K4(sn.parseFormat(t),Kt.fromObject(n)).map(c=>c.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?eh(this).weekYear:NaN}get weekNumber(){return this.isValid?eh(this).weekNumber:NaN}get weekday(){return this.isValid?eh(this).weekday:NaN}get ordinal(){return this.isValid?Jf(this.c).ordinal:NaN}get monthShort(){return this.isValid?T0.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?T0.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?T0.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?T0.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,l=wd(this.c),c=this.zone.offset(l-t),g=this.zone.offset(l+t),h=this.zone.offset(l-c*n),w=this.zone.offset(l-g*n);if(h===w)return[this];const z=l-h*n,S=l-w*n,E=E0(z,h),D=E0(S,w);return E.hour===D.hour&&E.minute===D.minute&&E.second===D.second&&E.millisecond===D.millisecond?[Hs(this,{ts:z}),Hs(this,{ts:S})]:[this]}get isInLeapYear(){return Yu(this.year)}get daysInMonth(){return rd(this.year,this.month)}get daysInYear(){return this.isValid?Iu(this.year):NaN}get weeksInWeekYear(){return this.isValid?nd(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:l,calendar:c}=sn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:l,outputCalendar:c}}toUTC(t=0,n={}){return this.setZone(mn.instance(t),n)}toLocal(){return this.setZone(wr.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:l=!1}={}){if(t=Za(t,wr.defaultZone),t.equals(this.zone))return this;if(t.isValid){let c=this.ts;if(n||l){const g=t.offset(this.ts),h=this.toObject();[c]=N0(h,g,t)}return Hs(this,{ts:c,zone:t})}else return at.invalid(O0(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:l}={}){const c=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:l});return Hs(this,{loc:c})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=id(t,r5),l=!_t(n.weekYear)||!_t(n.weekNumber)||!_t(n.weekday),c=!_t(n.ordinal),g=!_t(n.year),h=!_t(n.month)||!_t(n.day),w=g||h,z=n.weekYear||n.weekNumber;if((w||c)&&z)throw new _u("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new _u("Can't mix ordinal dates with month/day");let S;l?S=Xp({...xh(this.c),...n}):_t(n.ordinal)?(S={...this.toObject(),...n},_t(n.day)&&(S.day=Math.min(rd(S.year,S.month),S.day))):S=Jp({...Jf(this.c),...n});const[E,D]=N0(S,this.o,this.zone);return Hs(this,{ts:E,o:D})}plus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t);return Hs(this,e5(this,n))}minus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t).negate();return Hs(this,e5(this,n))}startOf(t){if(!this.isValid)return this;const n={},l=Ot.normalizeUnit(t);switch(l){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(l==="weeks"&&(n.weekday=1),l==="quarters"){const c=Math.ceil(this.month/3);n.month=(c-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?sn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Qf}toLocaleString(t=td,n={}){return this.isValid?sn.create(this.loc.clone(n),t).formatDateTime(this):Qf}toLocaleParts(t={}){return this.isValid?sn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:l=!1,includeOffset:c=!0,extendedZone:g=!1}={}){if(!this.isValid)return null;const h=t==="extended";let w=th(this,h);return w+="T",w+=t5(this,h,n,l,c,g),w}toISODate({format:t="extended"}={}){return this.isValid?th(this,t==="extended"):null}toISOWeekDate(){return I0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:l=!0,includePrefix:c=!1,extendedZone:g=!1,format:h="extended"}={}){return this.isValid?(c?"T":"")+t5(this,h==="extended",n,t,l,g):null}toRFC2822(){return I0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return I0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?th(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:l=!0}={}){let c="HH:mm:ss.SSS";return(n||t)&&(l&&(c+=" "),n?c+="z":t&&(c+="ZZ")),I0(this,c,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Qf}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",l={}){if(!this.isValid||!t.isValid)return Ot.invalid("created by diffing an invalid DateTime");const c={locale:this.locale,numberingSystem:this.numberingSystem,...l},g=hw(n).map(Ot.normalizeUnit),h=t.valueOf()>this.valueOf(),w=h?this:t,z=h?t:this,S=mx(w,z,g,c);return h?S.negate():S}diffNow(t="milliseconds",n={}){return this.diff(at.now(),t,n)}until(t){return this.isValid?ir.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const l=t.valueOf(),c=this.setZone(t.zone,{keepLocalTime:!0});return c.startOf(n)<=l&&l<=c.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||at.fromObject({},{zone:this.zone}),l=t.padding?this<n?-t.padding:t.padding:0;let c=["years","months","days","hours","minutes","seconds"],g=t.unit;return Array.isArray(t.unit)&&(c=t.unit,g=void 0),i5(n,this.plus(l),{...t,numeric:"always",units:c,unit:g})}toRelativeCalendar(t={}){return this.isValid?i5(t.base||at.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(at.isDateTime))throw new di("min requires all arguments be DateTimes");return Wp(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(at.isDateTime))throw new di("max requires all arguments be DateTimes");return Wp(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,l={}){const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0});return Y4(h,t,n)}static fromStringExplain(t,n,l={}){return at.fromFormatExplain(t,n,l)}static get DATE_SHORT(){return td}static get DATE_MED(){return u4}static get DATE_MED_WITH_WEEKDAY(){return GC}static get DATE_FULL(){return c4}static get DATE_HUGE(){return d4}static get TIME_SIMPLE(){return f4}static get TIME_WITH_SECONDS(){return h4}static get TIME_WITH_SHORT_OFFSET(){return p4}static get TIME_WITH_LONG_OFFSET(){return g4}static get TIME_24_SIMPLE(){return v4}static get TIME_24_WITH_SECONDS(){return b4}static get TIME_24_WITH_SHORT_OFFSET(){return m4}static get TIME_24_WITH_LONG_OFFSET(){return y4}static get DATETIME_SHORT(){return C4}static get DATETIME_SHORT_WITH_SECONDS(){return w4}static get DATETIME_MED(){return x4}static get DATETIME_MED_WITH_SECONDS(){return z4}static get DATETIME_MED_WITH_WEEKDAY(){return qC}static get DATETIME_FULL(){return L4}static get DATETIME_FULL_WITH_SECONDS(){return S4}static get DATETIME_HUGE(){return M4}static get DATETIME_HUGE_WITH_SECONDS(){return _4}}function Lu(o){if(at.isDateTime(o))return o;if(o&&o.valueOf&&Gs(o.valueOf()))return at.fromJSDate(o);if(o&&typeof o=="object")return at.fromObject(o);throw new di(`Unknown datetime argument: ${o}, of type ${typeof o}`)}const Fx={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},Bx=o=>at.local().setZone(o).isValid,zh=o=>o.hour<12,a5=o=>!zh(o),Vx=(o,t)=>zh(o)&&zh(t)||a5(o)&&a5(t),s5=(o,t)=>{var c;const n=t&&Bx(t)?t:"utc",l=(c=Fx[n.split("/")[0]])!=null?c:"en-us";return o.setZone(n).setLocale(l)},l5=o=>Wx(l3(o)),Wx=o=>o.replace(/Sept/,"Sep"),l3=o=>o.replace(/(AM|PM)/,t=>t.toLowerCase());var Zx=Object.defineProperty,Ux=Object.getOwnPropertyDescriptor,Ya=(o,t,n,l)=>{for(var c=l>1?void 0:l?Ux(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Zx(t,n,c),c};const u3=ze("input-time"),c3="h:mma",d3=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,f3=/^(1[3-9]|2[0-3]).*/,h3=/^(\d\d?)(am?|pm?)/,Gx=["UTC","AEST"],p3=(o,t)=>({label:`${o}${t?` (${t})`:""}`,value:o}),u5=(o,t)=>{const l=Math.ceil(1440/o),c=at.local().startOf("day");return Array(l).fill(null).map((g,h)=>{const w=c.plus({minutes:o*h}),z=l3(w.toFormat(c3));return p3(z,t)})},qx=(o,t)=>{const n=o.trim(),l=o.match(d3);if(!n||!l)return[];const[,c,g,h]=l,w=parseInt(c,10),z=w>12?`${w-12}`:`${w}`,S=`${g}${h||0}`,E=`${z}:${S}`;return["am","pm"].map(D=>p3(`${E}${D}`,t))},jx=(o,{value:t})=>{const n=o.match(f3);if(!n||!t)return!1;const[,l]=n,c=`${parseInt(l,10)-12}`,g=o.substring(l.length).replace(":",""),h=`${c}:${g}`;return t.startsWith(h)&&t.endsWith("pm")},Kx=(o,{value:t})=>{const n=o.match(h3);if(!n)return!1;const[,l,c]=n;return!!(t!=null&&t.replace(":00","").startsWith(`${l}${c}`))},Yx=(...o)=>Kx(...o)||jx(...o);exports.InputTime=class extends exports.InputSelect{constructor(){super(...arguments),this.canSearch=!0,this.increment=15,this.isFreeform=!1,this.placeholder="Select time",this.trailingIcon="time",this.freeformOptions=[]}connectedCallback(){super.connectedCallback(),this.options=u5(this.increment,this.suffix)}updated(t){super.updated(t),t.has("increment")&&(this.options=u5(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var t;this.valueLabel=this.value&&this.value!==this.placeholder?(t=this.getItems().find(({value:n})=>n===this.value))==null?void 0:t.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(t){return this.query?Yx(this.query,t):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=qx(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return G`
3489
+ `];ju([N({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);ju([N({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);ju([N({type:Array})],exports.InputMultiselect.prototype,"value",2);ju([Re()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=ju([ee(s4)],exports.InputMultiselect);class rl extends Error{}class ZC extends rl{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class UC extends rl{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class GC extends rl{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class _u extends rl{}class l4 extends rl{constructor(t){super(`Invalid unit ${t}`)}}class di extends rl{}class Fa extends rl{constructor(){super("Zone is an abstract class")}}const _e="numeric",Ri="short",Yn="long",td={year:_e,month:_e,day:_e},u4={year:_e,month:Ri,day:_e},qC={year:_e,month:Ri,day:_e,weekday:Ri},c4={year:_e,month:Yn,day:_e},d4={year:_e,month:Yn,day:_e,weekday:Yn},f4={hour:_e,minute:_e},h4={hour:_e,minute:_e,second:_e},p4={hour:_e,minute:_e,second:_e,timeZoneName:Ri},g4={hour:_e,minute:_e,second:_e,timeZoneName:Yn},v4={hour:_e,minute:_e,hourCycle:"h23"},b4={hour:_e,minute:_e,second:_e,hourCycle:"h23"},m4={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:Ri},y4={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:Yn},C4={year:_e,month:_e,day:_e,hour:_e,minute:_e},w4={year:_e,month:_e,day:_e,hour:_e,minute:_e,second:_e},x4={year:_e,month:Ri,day:_e,hour:_e,minute:_e},z4={year:_e,month:Ri,day:_e,hour:_e,minute:_e,second:_e},jC={year:_e,month:Ri,day:_e,weekday:Ri,hour:_e,minute:_e},L4={year:_e,month:Yn,day:_e,hour:_e,minute:_e,timeZoneName:Ri},S4={year:_e,month:Yn,day:_e,hour:_e,minute:_e,second:_e,timeZoneName:Ri},M4={year:_e,month:Yn,day:_e,weekday:Yn,hour:_e,minute:_e,timeZoneName:Yn},_4={year:_e,month:Yn,day:_e,weekday:Yn,hour:_e,minute:_e,second:_e,timeZoneName:Yn};class Ku{get type(){throw new Fa}get name(){throw new Fa}get ianaName(){return this.name}get isUniversal(){throw new Fa}offsetName(t,n){throw new Fa}formatOffset(t,n){throw new Fa}offset(t){throw new Fa}equals(t){throw new Fa}get isValid(){throw new Fa}}let Kf=null;class yd extends Ku{static get instance(){return Kf===null&&(Kf=new yd),Kf}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return k4(t,n,l)}formatOffset(t,n){return Au(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let D0={};function KC(o){return D0[o]||(D0[o]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),D0[o]}const YC={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function XC(o,t){const n=o.format(t).replace(/\u200E/g,""),l=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,c,g,h,w,z,S,E]=l;return[h,c,g,w,z,S,E]}function JC(o,t){const n=o.formatToParts(t),l=[];for(let c=0;c<n.length;c++){const{type:g,value:h}=n[c],w=YC[g];g==="era"?l[w]=h:_t(w)||(l[w]=parseInt(h,10))}return l}let M0={};class Xo extends Ku{static create(t){return M0[t]||(M0[t]=new Xo(t)),M0[t]}static resetCache(){M0={},D0={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Xo.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return k4(t,n,l,this.name)}formatOffset(t,n){return Au(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const l=KC(this.name);let[c,g,h,w,z,S,E]=l.formatToParts?JC(l,n):XC(l,n);w==="BC"&&(c=-Math.abs(c)+1);const B=wd({year:c,month:g,day:h,hour:z===24?0:z,minute:S,second:E,millisecond:0});let H=+n;const J=H%1e3;return H-=J>=0?J:1e3+J,(B-H)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Pp={};function QC(o,t={}){const n=JSON.stringify([o,t]);let l=Pp[n];return l||(l=new Intl.ListFormat(o,t),Pp[n]=l),l}let bh={};function mh(o,t={}){const n=JSON.stringify([o,t]);let l=bh[n];return l||(l=new Intl.DateTimeFormat(o,t),bh[n]=l),l}let yh={};function ew(o,t={}){const n=JSON.stringify([o,t]);let l=yh[n];return l||(l=new Intl.NumberFormat(o,t),yh[n]=l),l}let Ch={};function tw(o,t={}){const{base:n,...l}=t,c=JSON.stringify([o,l]);let g=Ch[c];return g||(g=new Intl.RelativeTimeFormat(o,t),Ch[c]=g),g}let Tu=null;function rw(){return Tu||(Tu=new Intl.DateTimeFormat().resolvedOptions().locale,Tu)}function nw(o){const t=o.indexOf("-x-");t!==-1&&(o=o.substring(0,t));const n=o.indexOf("-u-");if(n===-1)return[o];{let l,c;try{l=mh(o).resolvedOptions(),c=o}catch{const z=o.substring(0,n);l=mh(z).resolvedOptions(),c=z}const{numberingSystem:g,calendar:h}=l;return[c,g,h]}}function iw(o,t,n){return(n||t)&&(o.includes("-u-")||(o+="-u"),n&&(o+=`-ca-${n}`),t&&(o+=`-nu-${t}`)),o}function ow(o){const t=[];for(let n=1;n<=12;n++){const l=at.utc(2009,n,1);t.push(o(l))}return t}function aw(o){const t=[];for(let n=1;n<=7;n++){const l=at.utc(2016,11,13+n);t.push(o(l))}return t}function _0(o,t,n,l){const c=o.listingMode();return c==="error"?null:c==="en"?n(t):l(t)}function sw(o){return o.numberingSystem&&o.numberingSystem!=="latn"?!1:o.numberingSystem==="latn"||!o.locale||o.locale.startsWith("en")||new Intl.DateTimeFormat(o.intl).resolvedOptions().numberingSystem==="latn"}class lw{constructor(t,n,l){this.padTo=l.padTo||0,this.floor=l.floor||!1;const{padTo:c,floor:g,...h}=l;if(!n||Object.keys(h).length>0){const w={useGrouping:!1,...l};l.padTo>0&&(w.minimumIntegerDigits=l.padTo),this.inf=ew(t,w)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Xh(t,3);return xr(n,this.padTo)}}}class uw{constructor(t,n,l){this.opts=l,this.originalZone=void 0;let c;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const h=-1*(t.offset/60),w=h>=0?`Etc/GMT+${h}`:`Etc/GMT${h}`;t.offset!==0&&Xo.create(w).valid?(c=w,this.dt=t):(c="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,c=t.zone.name):(c="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const g={...this.opts};g.timeZone=g.timeZone||c,this.dtf=mh(n,g)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const l=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:l}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class cw{constructor(t,n,l){this.opts={style:"long",...l},!n&&T4()&&(this.rtf=tw(t,l))}format(t,n){return this.rtf?this.rtf.format(t,n):_w(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class Kt{static fromOpts(t){return Kt.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,l,c=!1){const g=t||wr.defaultLocale,h=g||(c?"en-US":rw()),w=n||wr.defaultNumberingSystem,z=l||wr.defaultOutputCalendar;return new Kt(h,w,z,g)}static resetCache(){Tu=null,bh={},yh={},Ch={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:l}={}){return Kt.create(t,n,l)}constructor(t,n,l,c){const[g,h,w]=nw(t);this.locale=g,this.numberingSystem=n||h||null,this.outputCalendar=l||w||null,this.intl=iw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=c,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=sw(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Kt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return _0(this,t,I4,()=>{const l=n?{month:t,day:"numeric"}:{month:t},c=n?"format":"standalone";return this.monthsCache[c][t]||(this.monthsCache[c][t]=ow(g=>this.extract(g,l,"month"))),this.monthsCache[c][t]})}weekdays(t,n=!1){return _0(this,t,P4,()=>{const l=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},c=n?"format":"standalone";return this.weekdaysCache[c][t]||(this.weekdaysCache[c][t]=aw(g=>this.extract(g,l,"weekday"))),this.weekdaysCache[c][t]})}meridiems(){return _0(this,void 0,()=>D4,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[at.utc(2016,11,13,9),at.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return _0(this,t,N4,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[at.utc(-40,1,1),at.utc(2017,1,1)].map(l=>this.extract(l,n,"era"))),this.eraCache[t]})}extract(t,n,l){const c=this.dtFormatter(t,n),g=c.formatToParts(),h=g.find(w=>w.type.toLowerCase()===l);return h?h.value:null}numberFormatter(t={}){return new lw(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new uw(t,this.intl,n)}relFormatter(t={}){return new cw(this.intl,this.isEnglish(),t)}listFormatter(t={}){return QC(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let Yf=null;class mn extends Ku{static get utcInstance(){return Yf===null&&(Yf=new mn(0)),Yf}static instance(t){return t===0?mn.utcInstance:new mn(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new mn(xd(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Au(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Au(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Au(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class dw extends Ku{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Za(o,t){if(_t(o)||o===null)return t;if(o instanceof Ku)return o;if(fw(o)){const n=o.toLowerCase();return n==="default"?t:n==="local"||n==="system"?yd.instance:n==="utc"||n==="gmt"?mn.utcInstance:mn.parseSpecifier(n)||Xo.create(o)}else return Gs(o)?mn.instance(o):typeof o=="object"&&"offset"in o&&typeof o.offset=="function"?o:new dw(o)}let Dp=()=>Date.now(),Np="system",Rp=null,Hp=null,Fp=null,Bp=60,Vp;class wr{static get now(){return Dp}static set now(t){Dp=t}static set defaultZone(t){Np=t}static get defaultZone(){return Za(Np,yd.instance)}static get defaultLocale(){return Rp}static set defaultLocale(t){Rp=t}static get defaultNumberingSystem(){return Hp}static set defaultNumberingSystem(t){Hp=t}static get defaultOutputCalendar(){return Fp}static set defaultOutputCalendar(t){Fp=t}static get twoDigitCutoffYear(){return Bp}static set twoDigitCutoffYear(t){Bp=t%100}static get throwOnInvalid(){return Vp}static set throwOnInvalid(t){Vp=t}static resetCaches(){Kt.resetCache(),Xo.resetCache()}}function _t(o){return typeof o=="undefined"}function Gs(o){return typeof o=="number"}function Cd(o){return typeof o=="number"&&o%1===0}function fw(o){return typeof o=="string"}function hw(o){return Object.prototype.toString.call(o)==="[object Date]"}function T4(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function pw(o){return Array.isArray(o)?o:[o]}function Wp(o,t,n){if(o.length!==0)return o.reduce((l,c)=>{const g=[t(c),c];return l&&n(l[0],g[0])===l[0]?l:g},null)[1]}function gw(o,t){return t.reduce((n,l)=>(n[l]=o[l],n),{})}function g1(o,t){return Object.prototype.hasOwnProperty.call(o,t)}function Ko(o,t,n){return Cd(o)&&o>=t&&o<=n}function vw(o,t){return o-t*Math.floor(o/t)}function xr(o,t=2){const n=o<0;let l;return n?l="-"+(""+-o).padStart(t,"0"):l=(""+o).padStart(t,"0"),l}function Va(o){if(!(_t(o)||o===null||o===""))return parseInt(o,10)}function Rs(o){if(!(_t(o)||o===null||o===""))return parseFloat(o)}function Yh(o){if(!(_t(o)||o===null||o==="")){const t=parseFloat("0."+o)*1e3;return Math.floor(t)}}function Xh(o,t,n=!1){const l=10**t;return(n?Math.trunc:Math.round)(o*l)/l}function Yu(o){return o%4===0&&(o%100!==0||o%400===0)}function Iu(o){return Yu(o)?366:365}function rd(o,t){const n=vw(t-1,12)+1,l=o+(t-n)/12;return n===2?Yu(l)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function wd(o){let t=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond);return o.year<100&&o.year>=0&&(t=new Date(t),t.setUTCFullYear(o.year,o.month-1,o.day)),+t}function nd(o){const t=(o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400))%7,n=o-1,l=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||l===3?53:52}function wh(o){return o>99?o:o>wr.twoDigitCutoffYear?1900+o:2e3+o}function k4(o,t,n,l=null){const c=new Date(o),g={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};l&&(g.timeZone=l);const h={timeZoneName:t,...g},w=new Intl.DateTimeFormat(n,h).formatToParts(c).find(z=>z.type.toLowerCase()==="timezonename");return w?w.value:null}function xd(o,t){let n=parseInt(o,10);Number.isNaN(n)&&(n=0);const l=parseInt(t,10)||0,c=n<0||Object.is(n,-0)?-l:l;return n*60+c}function O4(o){const t=Number(o);if(typeof o=="boolean"||o===""||Number.isNaN(t))throw new di(`Invalid unit value ${o}`);return t}function id(o,t){const n={};for(const l in o)if(g1(o,l)){const c=o[l];if(c==null)continue;n[t(l)]=O4(c)}return n}function Au(o,t){const n=Math.trunc(Math.abs(o/60)),l=Math.trunc(Math.abs(o%60)),c=o>=0?"+":"-";switch(t){case"short":return`${c}${xr(n,2)}:${xr(l,2)}`;case"narrow":return`${c}${n}${l>0?`:${l}`:""}`;case"techie":return`${c}${xr(n,2)}${xr(l,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function zd(o){return gw(o,["hour","minute","second","millisecond"])}const bw=["January","February","March","April","May","June","July","August","September","October","November","December"],E4=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],mw=["J","F","M","A","M","J","J","A","S","O","N","D"];function I4(o){switch(o){case"narrow":return[...mw];case"short":return[...E4];case"long":return[...bw];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const A4=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],$4=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],yw=["M","T","W","T","F","S","S"];function P4(o){switch(o){case"narrow":return[...yw];case"short":return[...$4];case"long":return[...A4];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const D4=["AM","PM"],Cw=["Before Christ","Anno Domini"],ww=["BC","AD"],xw=["B","A"];function N4(o){switch(o){case"narrow":return[...xw];case"short":return[...ww];case"long":return[...Cw];default:return null}}function zw(o){return D4[o.hour<12?0:1]}function Lw(o,t){return P4(t)[o.weekday-1]}function Sw(o,t){return I4(t)[o.month-1]}function Mw(o,t){return N4(t)[o.year<0?0:1]}function _w(o,t,n="always",l=!1){const c={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},g=["hours","minutes","seconds"].indexOf(o)===-1;if(n==="auto"&&g){const D=o==="days";switch(t){case 1:return D?"tomorrow":`next ${c[o][0]}`;case-1:return D?"yesterday":`last ${c[o][0]}`;case 0:return D?"today":`this ${c[o][0]}`}}const h=Object.is(t,-0)||t<0,w=Math.abs(t),z=w===1,S=c[o],E=l?z?S[1]:S[2]||S[1]:z?c[o][0]:o;return h?`${w} ${E} ago`:`in ${w} ${E}`}function Zp(o,t){let n="";for(const l of o)l.literal?n+=l.val:n+=t(l.val);return n}const Tw={D:td,DD:u4,DDD:c4,DDDD:d4,t:f4,tt:h4,ttt:p4,tttt:g4,T:v4,TT:b4,TTT:m4,TTTT:y4,f:C4,ff:x4,fff:L4,ffff:M4,F:w4,FF:z4,FFF:S4,FFFF:_4};class sn{static create(t,n={}){return new sn(t,n)}static parseFormat(t){let n=null,l="",c=!1;const g=[];for(let h=0;h<t.length;h++){const w=t.charAt(h);w==="'"?(l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),n=null,l="",c=!c):c||w===n?l+=w:(l.length>0&&g.push({literal:/^\s+$/.test(l),val:l}),l=w,n=w)}return l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),g}static macroTokenToFormatOpts(t){return Tw[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return xr(t,n);const l={...this.opts};return n>0&&(l.padTo=n),this.loc.numberFormatter(l).format(t)}formatDateTimeFromString(t,n){const l=this.loc.listingMode()==="en",c=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",g=(H,J)=>this.loc.extract(t,H,J),h=H=>t.isOffsetFixed&&t.offset===0&&H.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,H.format):"",w=()=>l?zw(t):g({hour:"numeric",hourCycle:"h12"},"dayperiod"),z=(H,J)=>l?Sw(t,H):g(J?{month:H}:{month:H,day:"numeric"},"month"),S=(H,J)=>l?Lw(t,H):g(J?{weekday:H}:{weekday:H,month:"long",day:"numeric"},"weekday"),E=H=>{const J=sn.macroTokenToFormatOpts(H);return J?this.formatWithSystemDefault(t,J):H},D=H=>l?Mw(t,H):g({era:H},"era"),B=H=>{switch(H){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return h({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return h({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return h({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return w();case"d":return c?g({day:"numeric"},"day"):this.num(t.day);case"dd":return c?g({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return S("short",!0);case"cccc":return S("long",!0);case"ccccc":return S("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return S("short",!1);case"EEEE":return S("long",!1);case"EEEEE":return S("narrow",!1);case"L":return c?g({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return c?g({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return z("short",!0);case"LLLL":return z("long",!0);case"LLLLL":return z("narrow",!0);case"M":return c?g({month:"numeric"},"month"):this.num(t.month);case"MM":return c?g({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return z("short",!1);case"MMMM":return z("long",!1);case"MMMMM":return z("narrow",!1);case"y":return c?g({year:"numeric"},"year"):this.num(t.year);case"yy":return c?g({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return c?g({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return c?g({year:"numeric"},"year"):this.num(t.year,6);case"G":return D("short");case"GG":return D("long");case"GGGGG":return D("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return E(H)}};return Zp(sn.parseFormat(n),B)}formatDurationFromString(t,n){const l=z=>{switch(z[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},c=z=>S=>{const E=l(S);return E?this.num(z.get(E),S.length):S},g=sn.parseFormat(n),h=g.reduce((z,{literal:S,val:E})=>S?z:z.concat(E),[]),w=t.shiftTo(...h.map(l).filter(z=>z));return Zp(g,c(w))}}class Pi{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const R4=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function m1(...o){const t=o.reduce((n,l)=>n+l.source,"");return RegExp(`^${t}$`)}function y1(...o){return t=>o.reduce(([n,l,c],g)=>{const[h,w,z]=g(t,c);return[{...n,...h},w||l,z]},[{},null,1]).slice(0,2)}function C1(o,...t){if(o==null)return[null,null];for(const[n,l]of t){const c=n.exec(o);if(c)return l(c)}return[null,null]}function H4(...o){return(t,n)=>{const l={};let c;for(c=0;c<o.length;c++)l[o[c]]=Va(t[n+c]);return[l,null,n+c]}}const F4=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,kw=`(?:${F4.source}?(?:\\[(${R4.source})\\])?)?`,Jh=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,B4=RegExp(`${Jh.source}${kw}`),Qh=RegExp(`(?:T${B4.source})?`),Ow=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ew=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Iw=/(\d{4})-?(\d{3})/,Aw=H4("weekYear","weekNumber","weekDay"),$w=H4("year","ordinal"),Pw=/(\d{4})-(\d\d)-(\d\d)/,V4=RegExp(`${Jh.source} ?(?:${F4.source}|(${R4.source}))?`),Dw=RegExp(`(?: ${V4.source})?`);function a1(o,t,n){const l=o[t];return _t(l)?n:Va(l)}function Nw(o,t){return[{year:a1(o,t),month:a1(o,t+1,1),day:a1(o,t+2,1)},null,t+3]}function w1(o,t){return[{hours:a1(o,t,0),minutes:a1(o,t+1,0),seconds:a1(o,t+2,0),milliseconds:Yh(o[t+3])},null,t+4]}function Xu(o,t){const n=!o[t]&&!o[t+1],l=xd(o[t+1],o[t+2]),c=n?null:mn.instance(l);return[{},c,t+3]}function Ju(o,t){const n=o[t]?Xo.create(o[t]):null;return[{},n,t+1]}const Rw=RegExp(`^T?${Jh.source}$`),Hw=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Fw(o){const[t,n,l,c,g,h,w,z,S]=o,E=t[0]==="-",D=z&&z[0]==="-",B=(H,J=!1)=>H!==void 0&&(J||H&&E)?-H:H;return[{years:B(Rs(n)),months:B(Rs(l)),weeks:B(Rs(c)),days:B(Rs(g)),hours:B(Rs(h)),minutes:B(Rs(w)),seconds:B(Rs(z),z==="-0"),milliseconds:B(Yh(S),D)}]}const Bw={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function e2(o,t,n,l,c,g,h){const w={year:t.length===2?wh(Va(t)):Va(t),month:E4.indexOf(n)+1,day:Va(l),hour:Va(c),minute:Va(g)};return h&&(w.second=Va(h)),o&&(w.weekday=o.length>3?A4.indexOf(o)+1:$4.indexOf(o)+1),w}const Vw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ww(o){const[,t,n,l,c,g,h,w,z,S,E,D]=o,B=e2(t,c,l,n,g,h,w);let H;return z?H=Bw[z]:S?H=0:H=xd(E,D),[B,new mn(H)]}function Zw(o){return o.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Uw=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Gw=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,qw=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Up(o){const[,t,n,l,c,g,h,w]=o;return[e2(t,c,l,n,g,h,w),mn.utcInstance]}function jw(o){const[,t,n,l,c,g,h,w]=o;return[e2(t,w,n,l,c,g,h),mn.utcInstance]}const Kw=m1(Ow,Qh),Yw=m1(Ew,Qh),Xw=m1(Iw,Qh),Jw=m1(B4),W4=y1(Nw,w1,Xu,Ju),Qw=y1(Aw,w1,Xu,Ju),ex=y1($w,w1,Xu,Ju),tx=y1(w1,Xu,Ju);function rx(o){return C1(o,[Kw,W4],[Yw,Qw],[Xw,ex],[Jw,tx])}function nx(o){return C1(Zw(o),[Vw,Ww])}function ix(o){return C1(o,[Uw,Up],[Gw,Up],[qw,jw])}function ox(o){return C1(o,[Hw,Fw])}const ax=y1(w1);function sx(o){return C1(o,[Rw,ax])}const lx=m1(Pw,Dw),ux=m1(V4),cx=y1(w1,Xu,Ju);function dx(o){return C1(o,[lx,W4],[ux,cx])}const fx="Invalid Duration",Z4={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},hx={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Z4},ci=146097/400,r1=146097/4800,px={years:{quarters:4,months:12,weeks:ci/7,days:ci,hours:ci*24,minutes:ci*24*60,seconds:ci*24*60*60,milliseconds:ci*24*60*60*1e3},quarters:{months:3,weeks:ci/28,days:ci/4,hours:ci*24/4,minutes:ci*24*60/4,seconds:ci*24*60*60/4,milliseconds:ci*24*60*60*1e3/4},months:{weeks:r1/7,days:r1,hours:r1*24,minutes:r1*24*60,seconds:r1*24*60*60,milliseconds:r1*24*60*60*1e3},...Z4},Fs=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],U4=Fs.slice(0).reverse();function Ba(o,t,n=!1){const l={values:n?t.values:{...o.values,...t.values||{}},loc:o.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||o.conversionAccuracy,matrix:t.matrix||o.matrix};return new Ot(l)}function Gp(o){return Math.trunc(o*1e3)/1e3}function G4(o,t,n,l,c){const g=o[c][n],h=t[n]/g,w=Math.floor(h);l[c]=Gp(l[c]+w),t[n]=Gp(t[n]-w*g)}function gx(o,t){U4.reduce((n,l)=>_t(t[l])?n:(n&&G4(o,t,n,t,l),l),null)}function vx(o){const t={};for(const[n,l]of Object.entries(o))l!==0&&(t[n]=l);return t}class Ot{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let l=n?px:hx;t.matrix&&(l=t.matrix),this.values=t.values,this.loc=t.loc||Kt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=l,this.isLuxonDuration=!0}static fromMillis(t,n){return Ot.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new di(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Ot({values:id(t,Ot.normalizeUnit),loc:Kt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Gs(t))return Ot.fromMillis(t);if(Ot.isDuration(t))return t;if(typeof t=="object")return Ot.fromObject(t);throw new di(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[l]=ox(t);return l?Ot.fromObject(l,n):Ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[l]=sx(t);return l?Ot.fromObject(l,n):Ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Duration is invalid");const l=t instanceof Pi?t:new Pi(t,n);if(wr.throwOnInvalid)throw new GC(l);return new Ot({invalid:l})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new l4(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const l={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?sn.create(this.loc,l).formatDurationFromString(this,t):fx}toHuman(t={}){const n=Fs.map(l=>{const c=this.values[l];return _t(c)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:l.slice(0,-1)}).format(c)}).filter(l=>l);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Xh(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},at.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var n,l;let t=(n=this.values.milliseconds)!=null?n:0;for(let c of U4.slice(1))(l=this.values)!=null&&l[c]&&(t+=this.values[c]*this.matrix[c].milliseconds);return t}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t),l={};for(const c of Fs)(g1(n.values,c)||g1(this.values,c))&&(l[c]=n.get(c)+this.get(c));return Ba(this,{values:l},!0)}minus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const l of Object.keys(this.values))n[l]=O4(t(this.values[l],l));return Ba(this,{values:n},!0)}get(t){return this[Ot.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...id(t,Ot.normalizeUnit)};return Ba(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:l,matrix:c}={}){const h={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:c,conversionAccuracy:l};return Ba(this,h)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return this.valueOf()>=0?(gx(this.matrix,t),Ba(this,{values:t},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const t=vx(this.normalize().shiftToAll().toObject());return Ba(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(h=>Ot.normalizeUnit(h));const n={},l={},c=this.toObject();let g;for(const h of Fs)if(t.indexOf(h)>=0){g=h;let w=0;for(const S in l)w+=this.matrix[S][h]*l[S],l[S]=0;Gs(c[h])&&(w+=c[h]);const z=Math.trunc(w);n[h]=z,l[h]=(w*1e3-z*1e3)/1e3;for(const S in c)Fs.indexOf(S)>Fs.indexOf(h)&&G4(this.matrix,c,S,n,h)}else Gs(c[h])&&(l[h]=c[h]);for(const h in l)l[h]!==0&&(n[g]+=h===g?l[h]:l[h]/this.matrix[g][h]);return Ba(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ba(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(l,c){return l===void 0||l===0?c===void 0||c===0:l===c}for(const l of Fs)if(!n(this.values[l],t.values[l]))return!1;return!0}}const n1="Invalid Interval";function bx(o,t){return!o||!o.isValid?ir.invalid("missing or invalid start"):!t||!t.isValid?ir.invalid("missing or invalid end"):t<o?ir.invalid("end before start",`The end of an interval must be after its start, but you had start=${o.toISO()} and end=${t.toISO()}`):null}class ir{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Interval is invalid");const l=t instanceof Pi?t:new Pi(t,n);if(wr.throwOnInvalid)throw new UC(l);return new ir({invalid:l})}static fromDateTimes(t,n){const l=Lu(t),c=Lu(n),g=bx(l,c);return g==null?new ir({start:l,end:c}):g}static after(t,n){const l=Ot.fromDurationLike(n),c=Lu(t);return ir.fromDateTimes(c,c.plus(l))}static before(t,n){const l=Ot.fromDurationLike(n),c=Lu(t);return ir.fromDateTimes(c.minus(l),c)}static fromISO(t,n){const[l,c]=(t||"").split("/",2);if(l&&c){let g,h;try{g=at.fromISO(l,n),h=g.isValid}catch{h=!1}let w,z;try{w=at.fromISO(c,n),z=w.isValid}catch{z=!1}if(h&&z)return ir.fromDateTimes(g,w);if(h){const S=Ot.fromISO(c,n);if(S.isValid)return ir.after(g,S)}else if(z){const S=Ot.fromISO(l,n);if(S.isValid)return ir.before(w,S)}}return ir.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),l=this.end.startOf(t);return Math.floor(l.diff(n,t).get(t))+(l.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?ir.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Lu).filter(h=>this.contains(h)).sort(),l=[];let{s:c}=this,g=0;for(;c<this.e;){const h=n[g]||this.e,w=+h>+this.e?this.e:h;l.push(ir.fromDateTimes(c,w)),c=w,g+=1}return l}splitBy(t){const n=Ot.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:l}=this,c=1,g;const h=[];for(;l<this.e;){const w=this.start.plus(n.mapUnits(z=>z*c));g=+w>+this.e?this.e:w,h.push(ir.fromDateTimes(l,g)),l=g,c+=1}return h}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,l=this.e<t.e?this.e:t.e;return n>=l?null:ir.fromDateTimes(n,l)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,l=this.e>t.e?this.e:t.e;return ir.fromDateTimes(n,l)}static merge(t){const[n,l]=t.sort((c,g)=>c.s-g.s).reduce(([c,g],h)=>g?g.overlaps(h)||g.abutsStart(h)?[c,g.union(h)]:[c.concat([g]),h]:[c,h],[[],null]);return l&&n.push(l),n}static xor(t){let n=null,l=0;const c=[],g=t.map(z=>[{time:z.s,type:"s"},{time:z.e,type:"e"}]),h=Array.prototype.concat(...g),w=h.sort((z,S)=>z.time-S.time);for(const z of w)l+=z.type==="s"?1:-1,l===1?n=z.time:(n&&+n!=+z.time&&c.push(ir.fromDateTimes(n,z.time)),n=null);return ir.merge(c)}difference(...t){return ir.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:n1}toLocaleString(t=td,n={}){return this.isValid?sn.create(this.s.loc.clone(n),t).formatInterval(this):n1}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:n1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:n1}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:n1}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:n1}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Ot.invalid(this.invalidReason)}mapEndpoints(t){return ir.fromDateTimes(t(this.s),t(this.e))}}class T0{static hasDST(t=wr.defaultZone){const n=at.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Xo.isValidZone(t)}static normalizeZone(t){return Za(t,wr.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Kt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Kt.create(n,null,"gregory").eras(t)}static features(){return{relative:T4()}}}function qp(o,t){const n=c=>c.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),l=n(t)-n(o);return Math.floor(Ot.fromMillis(l).as("days"))}function mx(o,t,n){const l=[["years",(z,S)=>S.year-z.year],["quarters",(z,S)=>S.quarter-z.quarter+(S.year-z.year)*4],["months",(z,S)=>S.month-z.month+(S.year-z.year)*12],["weeks",(z,S)=>{const E=qp(z,S);return(E-E%7)/7}],["days",qp]],c={},g=o;let h,w;for(const[z,S]of l)n.indexOf(z)>=0&&(h=z,c[z]=S(o,t),w=g.plus(c),w>t?(c[z]--,o=g.plus(c),o>t&&(w=o,c[z]--,o=g.plus(c))):o=w);return[o,c,w,h]}function yx(o,t,n,l){let[c,g,h,w]=mx(o,t,n);const z=t-c,S=n.filter(D=>["hours","minutes","seconds","milliseconds"].indexOf(D)>=0);S.length===0&&(h<t&&(h=c.plus({[w]:1})),h!==c&&(g[w]=(g[w]||0)+z/(h-c)));const E=Ot.fromObject(g,l);return S.length>0?Ot.fromMillis(z,l).shiftTo(...S).plus(E):E}const t2={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},jp={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Cx=t2.hanidec.replace(/[\[|\]]/g,"").split("");function wx(o){let t=parseInt(o,10);if(isNaN(t)){t="";for(let n=0;n<o.length;n++){const l=o.charCodeAt(n);if(o[n].search(t2.hanidec)!==-1)t+=Cx.indexOf(o[n]);else for(const c in jp){const[g,h]=jp[c];l>=g&&l<=h&&(t+=l-g)}}return parseInt(t,10)}else return t}function Ii({numberingSystem:o},t=""){return new RegExp(`${t2[o||"latn"]}${t}`)}const xx="missing Intl.DateTimeFormat.formatToParts support";function Pt(o,t=n=>n){return{regex:o,deser:([n])=>t(wx(n))}}const zx=String.fromCharCode(160),q4=`[ ${zx}]`,j4=new RegExp(q4,"g");function Lx(o){return o.replace(/\./g,"\\.?").replace(j4,q4)}function Kp(o){return o.replace(/\./g,"").replace(j4," ").toLowerCase()}function Ai(o,t){return o===null?null:{regex:RegExp(o.map(Lx).join("|")),deser:([n])=>o.findIndex(l=>Kp(n)===Kp(l))+t}}function Yp(o,t){return{regex:o,deser:([,n,l])=>xd(n,l),groups:t}}function k0(o){return{regex:o,deser:([t])=>t}}function Sx(o){return o.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Mx(o,t){const n=Ii(t),l=Ii(t,"{2}"),c=Ii(t,"{3}"),g=Ii(t,"{4}"),h=Ii(t,"{6}"),w=Ii(t,"{1,2}"),z=Ii(t,"{1,3}"),S=Ii(t,"{1,6}"),E=Ii(t,"{1,9}"),D=Ii(t,"{2,4}"),B=Ii(t,"{4,6}"),H=ge=>({regex:RegExp(Sx(ge.val)),deser:([Te])=>Te,literal:!0}),pe=(ge=>{if(o.literal)return H(ge);switch(ge.val){case"G":return Ai(t.eras("short"),0);case"GG":return Ai(t.eras("long"),0);case"y":return Pt(S);case"yy":return Pt(D,wh);case"yyyy":return Pt(g);case"yyyyy":return Pt(B);case"yyyyyy":return Pt(h);case"M":return Pt(w);case"MM":return Pt(l);case"MMM":return Ai(t.months("short",!0),1);case"MMMM":return Ai(t.months("long",!0),1);case"L":return Pt(w);case"LL":return Pt(l);case"LLL":return Ai(t.months("short",!1),1);case"LLLL":return Ai(t.months("long",!1),1);case"d":return Pt(w);case"dd":return Pt(l);case"o":return Pt(z);case"ooo":return Pt(c);case"HH":return Pt(l);case"H":return Pt(w);case"hh":return Pt(l);case"h":return Pt(w);case"mm":return Pt(l);case"m":return Pt(w);case"q":return Pt(w);case"qq":return Pt(l);case"s":return Pt(w);case"ss":return Pt(l);case"S":return Pt(z);case"SSS":return Pt(c);case"u":return k0(E);case"uu":return k0(w);case"uuu":return Pt(n);case"a":return Ai(t.meridiems(),0);case"kkkk":return Pt(g);case"kk":return Pt(D,wh);case"W":return Pt(w);case"WW":return Pt(l);case"E":case"c":return Pt(n);case"EEE":return Ai(t.weekdays("short",!1),1);case"EEEE":return Ai(t.weekdays("long",!1),1);case"ccc":return Ai(t.weekdays("short",!0),1);case"cccc":return Ai(t.weekdays("long",!0),1);case"Z":case"ZZ":return Yp(new RegExp(`([+-]${w.source})(?::(${l.source}))?`),2);case"ZZZ":return Yp(new RegExp(`([+-]${w.source})(${l.source})?`),2);case"z":return k0(/[a-z_+-/]{1,256}?/i);case" ":return k0(/[^\S\n\r]/);default:return H(ge)}})(o)||{invalidReason:xx};return pe.token=o,pe}const _x={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Tx(o,t,n){const{type:l,value:c}=o;if(l==="literal"){const z=/^\s+$/.test(c);return{literal:!z,val:z?" ":c}}const g=t[l];let h=l;l==="hour"&&(t.hour12!=null?h=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?h="hour12":h="hour24":h=n.hour12?"hour12":"hour24");let w=_x[h];if(typeof w=="object"&&(w=w[g]),w)return{literal:!1,val:w}}function kx(o){return[`^${o.map(n=>n.regex).reduce((n,l)=>`${n}(${l.source})`,"")}$`,o]}function Ox(o,t,n){const l=o.match(t);if(l){const c={};let g=1;for(const h in n)if(g1(n,h)){const w=n[h],z=w.groups?w.groups+1:1;!w.literal&&w.token&&(c[w.token.val[0]]=w.deser(l.slice(g,g+z))),g+=z}return[l,c]}else return[l,{}]}function Ex(o){const t=g=>{switch(g){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,l;return _t(o.z)||(n=Xo.create(o.z)),_t(o.Z)||(n||(n=new mn(o.Z)),l=o.Z),_t(o.q)||(o.M=(o.q-1)*3+1),_t(o.h)||(o.h<12&&o.a===1?o.h+=12:o.h===12&&o.a===0&&(o.h=0)),o.G===0&&o.y&&(o.y=-o.y),_t(o.u)||(o.S=Yh(o.u)),[Object.keys(o).reduce((g,h)=>{const w=t(h);return w&&(g[w]=o[h]),g},{}),n,l]}let Xf=null;function Ix(){return Xf||(Xf=at.fromMillis(1555555555555)),Xf}function Ax(o,t){if(o.literal)return o;const n=sn.macroTokenToFormatOpts(o.val),l=X4(n,t);return l==null||l.includes(void 0)?o:l}function K4(o,t){return Array.prototype.concat(...o.map(n=>Ax(n,t)))}function Y4(o,t,n){const l=K4(sn.parseFormat(n),o),c=l.map(h=>Mx(h,o)),g=c.find(h=>h.invalidReason);if(g)return{input:t,tokens:l,invalidReason:g.invalidReason};{const[h,w]=kx(c),z=RegExp(h,"i"),[S,E]=Ox(t,z,w),[D,B,H]=E?Ex(E):[null,null,void 0];if(g1(E,"a")&&g1(E,"H"))throw new _u("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:l,regex:z,rawMatches:S,matches:E,result:D,zone:B,specificOffset:H}}}function $x(o,t,n){const{result:l,zone:c,specificOffset:g,invalidReason:h}=Y4(o,t,n);return[l,c,g,h]}function X4(o,t){if(!o)return null;const l=sn.create(t,o).dtFormatter(Ix()),c=l.formatToParts(),g=l.resolvedOptions();return c.map(h=>Tx(h,o,g))}const J4=[0,31,59,90,120,151,181,212,243,273,304,334],Q4=[0,31,60,91,121,152,182,213,244,274,305,335];function fi(o,t){return new Pi("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${o}, which is invalid`)}function e3(o,t,n){const l=new Date(Date.UTC(o,t-1,n));o<100&&o>=0&&l.setUTCFullYear(l.getUTCFullYear()-1900);const c=l.getUTCDay();return c===0?7:c}function t3(o,t,n){return n+(Yu(o)?Q4:J4)[t-1]}function r3(o,t){const n=Yu(o)?Q4:J4,l=n.findIndex(g=>g<t),c=t-n[l];return{month:l+1,day:c}}function xh(o){const{year:t,month:n,day:l}=o,c=t3(t,n,l),g=e3(t,n,l);let h=Math.floor((c-g+10)/7),w;return h<1?(w=t-1,h=nd(w)):h>nd(t)?(w=t+1,h=1):w=t,{weekYear:w,weekNumber:h,weekday:g,...zd(o)}}function Xp(o){const{weekYear:t,weekNumber:n,weekday:l}=o,c=e3(t,1,4),g=Iu(t);let h=n*7+l-c-3,w;h<1?(w=t-1,h+=Iu(w)):h>g?(w=t+1,h-=Iu(t)):w=t;const{month:z,day:S}=r3(w,h);return{year:w,month:z,day:S,...zd(o)}}function Jf(o){const{year:t,month:n,day:l}=o,c=t3(t,n,l);return{year:t,ordinal:c,...zd(o)}}function Jp(o){const{year:t,ordinal:n}=o,{month:l,day:c}=r3(t,n);return{year:t,month:l,day:c,...zd(o)}}function Px(o){const t=Cd(o.weekYear),n=Ko(o.weekNumber,1,nd(o.weekYear)),l=Ko(o.weekday,1,7);return t?n?l?!1:fi("weekday",o.weekday):fi("week",o.week):fi("weekYear",o.weekYear)}function Dx(o){const t=Cd(o.year),n=Ko(o.ordinal,1,Iu(o.year));return t?n?!1:fi("ordinal",o.ordinal):fi("year",o.year)}function n3(o){const t=Cd(o.year),n=Ko(o.month,1,12),l=Ko(o.day,1,rd(o.year,o.month));return t?n?l?!1:fi("day",o.day):fi("month",o.month):fi("year",o.year)}function i3(o){const{hour:t,minute:n,second:l,millisecond:c}=o,g=Ko(t,0,23)||t===24&&n===0&&l===0&&c===0,h=Ko(n,0,59),w=Ko(l,0,59),z=Ko(c,0,999);return g?h?w?z?!1:fi("millisecond",c):fi("second",l):fi("minute",n):fi("hour",t)}const Qf="Invalid DateTime",Qp=864e13;function O0(o){return new Pi("unsupported zone",`the zone "${o.name}" is not supported`)}function eh(o){return o.weekData===null&&(o.weekData=xh(o.c)),o.weekData}function Hs(o,t){const n={ts:o.ts,zone:o.zone,c:o.c,o:o.o,loc:o.loc,invalid:o.invalid};return new at({...n,...t,old:n})}function o3(o,t,n){let l=o-t*60*1e3;const c=n.offset(l);if(t===c)return[l,t];l-=(c-t)*60*1e3;const g=n.offset(l);return c===g?[l,c]:[o-Math.min(c,g)*60*1e3,Math.max(c,g)]}function E0(o,t){o+=t*60*1e3;const n=new Date(o);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function N0(o,t,n){return o3(wd(o),t,n)}function e5(o,t){const n=o.o,l=o.c.year+Math.trunc(t.years),c=o.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,g={...o.c,year:l,month:c,day:Math.min(o.c.day,rd(l,c))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},h=Ot.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),w=wd(g);let[z,S]=o3(w,n,o.zone);return h!==0&&(z+=h,S=o.zone.offset(z)),{ts:z,o:S}}function zu(o,t,n,l,c,g){const{setZone:h,zone:w}=n;if(o&&Object.keys(o).length!==0||t){const z=t||w,S=at.fromObject(o,{...n,zone:z,specificOffset:g});return h?S:S.setZone(w)}else return at.invalid(new Pi("unparsable",`the input "${c}" can't be parsed as ${l}`))}function I0(o,t,n=!0){return o.isValid?sn.create(Kt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(o,t):null}function th(o,t){const n=o.c.year>9999||o.c.year<0;let l="";return n&&o.c.year>=0&&(l+="+"),l+=xr(o.c.year,n?6:4),t?(l+="-",l+=xr(o.c.month),l+="-",l+=xr(o.c.day)):(l+=xr(o.c.month),l+=xr(o.c.day)),l}function t5(o,t,n,l,c,g){let h=xr(o.c.hour);return t?(h+=":",h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=":")):h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=xr(o.c.second),(o.c.millisecond!==0||!l)&&(h+=".",h+=xr(o.c.millisecond,3))),c&&(o.isOffsetFixed&&o.offset===0&&!g?h+="Z":o.o<0?(h+="-",h+=xr(Math.trunc(-o.o/60)),h+=":",h+=xr(Math.trunc(-o.o%60))):(h+="+",h+=xr(Math.trunc(o.o/60)),h+=":",h+=xr(Math.trunc(o.o%60)))),g&&(h+="["+o.zone.ianaName+"]"),h}const a3={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Nx={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Rx={ordinal:1,hour:0,minute:0,second:0,millisecond:0},s3=["year","month","day","hour","minute","second","millisecond"],Hx=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Fx=["year","ordinal","hour","minute","second","millisecond"];function r5(o){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[o.toLowerCase()];if(!t)throw new l4(o);return t}function n5(o,t){const n=Za(t.zone,wr.defaultZone),l=Kt.fromObject(t),c=wr.now();let g,h;if(_t(o.year))g=c;else{for(const S of s3)_t(o[S])&&(o[S]=a3[S]);const w=n3(o)||i3(o);if(w)return at.invalid(w);const z=n.offset(c);[g,h]=N0(o,z,n)}return new at({ts:g,zone:n,loc:l,o:h})}function i5(o,t,n){const l=_t(n.round)?!0:n.round,c=(h,w)=>(h=Xh(h,l||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(h,w)),g=h=>n.calendary?t.hasSame(o,h)?0:t.startOf(h).diff(o.startOf(h),h).get(h):t.diff(o,h).get(h);if(n.unit)return c(g(n.unit),n.unit);for(const h of n.units){const w=g(h);if(Math.abs(w)>=1)return c(w,h)}return c(o>t?-0:0,n.units[n.units.length-1])}function o5(o){let t={},n;return o.length>0&&typeof o[o.length-1]=="object"?(t=o[o.length-1],n=Array.from(o).slice(0,o.length-1)):n=Array.from(o),[t,n]}class at{constructor(t){const n=t.zone||wr.defaultZone;let l=t.invalid||(Number.isNaN(t.ts)?new Pi("invalid input"):null)||(n.isValid?null:O0(n));this.ts=_t(t.ts)?wr.now():t.ts;let c=null,g=null;if(!l)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[c,g]=[t.old.c,t.old.o];else{const w=n.offset(this.ts);c=E0(this.ts,w),l=Number.isNaN(c.year)?new Pi("invalid input"):null,c=l?null:c,g=l?null:w}this._zone=n,this.loc=t.loc||Kt.create(),this.invalid=l,this.weekData=null,this.c=c,this.o=g,this.isLuxonDateTime=!0}static now(){return new at({})}static local(){const[t,n]=o5(arguments),[l,c,g,h,w,z,S]=n;return n5({year:l,month:c,day:g,hour:h,minute:w,second:z,millisecond:S},t)}static utc(){const[t,n]=o5(arguments),[l,c,g,h,w,z,S]=n;return t.zone=mn.utcInstance,n5({year:l,month:c,day:g,hour:h,minute:w,second:z,millisecond:S},t)}static fromJSDate(t,n={}){const l=hw(t)?t.valueOf():NaN;if(Number.isNaN(l))return at.invalid("invalid input");const c=Za(n.zone,wr.defaultZone);return c.isValid?new at({ts:l,zone:c,loc:Kt.fromObject(n)}):at.invalid(O0(c))}static fromMillis(t,n={}){if(Gs(t))return t<-Qp||t>Qp?at.invalid("Timestamp out of range"):new at({ts:t,zone:Za(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Gs(t))return new at({ts:t*1e3,zone:Za(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const l=Za(n.zone,wr.defaultZone);if(!l.isValid)return at.invalid(O0(l));const c=wr.now(),g=_t(n.specificOffset)?l.offset(c):n.specificOffset,h=id(t,r5),w=!_t(h.ordinal),z=!_t(h.year),S=!_t(h.month)||!_t(h.day),E=z||S,D=h.weekYear||h.weekNumber,B=Kt.fromObject(n);if((E||w)&&D)throw new _u("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&w)throw new _u("Can't mix ordinal dates with month/day");const H=D||h.weekday&&!E;let J,pe,ge=E0(c,g);H?(J=Hx,pe=Nx,ge=xh(ge)):w?(J=Fx,pe=Rx,ge=Jf(ge)):(J=s3,pe=a3);let Te=!1;for(const je of J){const Ye=h[je];_t(Ye)?Te?h[je]=pe[je]:h[je]=ge[je]:Te=!0}const Ie=H?Px(h):w?Dx(h):n3(h),be=Ie||i3(h);if(be)return at.invalid(be);const ve=H?Xp(h):w?Jp(h):h,[ke,$e]=N0(ve,g,l),De=new at({ts:ke,zone:l,o:$e,loc:B});return h.weekday&&E&&t.weekday!==De.weekday?at.invalid("mismatched weekday",`you can't specify both a weekday of ${h.weekday} and a date of ${De.toISO()}`):De}static fromISO(t,n={}){const[l,c]=rx(t);return zu(l,c,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[l,c]=nx(t);return zu(l,c,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[l,c]=ix(t);return zu(l,c,n,"HTTP",n)}static fromFormat(t,n,l={}){if(_t(t)||_t(n))throw new di("fromFormat requires an input string and a format");const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0}),[w,z,S,E]=$x(h,t,n);return E?at.invalid(E):zu(w,z,l,`format ${n}`,t,S)}static fromString(t,n,l={}){return at.fromFormat(t,n,l)}static fromSQL(t,n={}){const[l,c]=dx(t);return zu(l,c,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the DateTime is invalid");const l=t instanceof Pi?t:new Pi(t,n);if(wr.throwOnInvalid)throw new ZC(l);return new at({invalid:l})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const l=X4(t,Kt.fromObject(n));return l?l.map(c=>c?c.val:null).join(""):null}static expandFormat(t,n={}){return K4(sn.parseFormat(t),Kt.fromObject(n)).map(c=>c.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?eh(this).weekYear:NaN}get weekNumber(){return this.isValid?eh(this).weekNumber:NaN}get weekday(){return this.isValid?eh(this).weekday:NaN}get ordinal(){return this.isValid?Jf(this.c).ordinal:NaN}get monthShort(){return this.isValid?T0.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?T0.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?T0.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?T0.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,l=wd(this.c),c=this.zone.offset(l-t),g=this.zone.offset(l+t),h=this.zone.offset(l-c*n),w=this.zone.offset(l-g*n);if(h===w)return[this];const z=l-h*n,S=l-w*n,E=E0(z,h),D=E0(S,w);return E.hour===D.hour&&E.minute===D.minute&&E.second===D.second&&E.millisecond===D.millisecond?[Hs(this,{ts:z}),Hs(this,{ts:S})]:[this]}get isInLeapYear(){return Yu(this.year)}get daysInMonth(){return rd(this.year,this.month)}get daysInYear(){return this.isValid?Iu(this.year):NaN}get weeksInWeekYear(){return this.isValid?nd(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:l,calendar:c}=sn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:l,outputCalendar:c}}toUTC(t=0,n={}){return this.setZone(mn.instance(t),n)}toLocal(){return this.setZone(wr.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:l=!1}={}){if(t=Za(t,wr.defaultZone),t.equals(this.zone))return this;if(t.isValid){let c=this.ts;if(n||l){const g=t.offset(this.ts),h=this.toObject();[c]=N0(h,g,t)}return Hs(this,{ts:c,zone:t})}else return at.invalid(O0(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:l}={}){const c=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:l});return Hs(this,{loc:c})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=id(t,r5),l=!_t(n.weekYear)||!_t(n.weekNumber)||!_t(n.weekday),c=!_t(n.ordinal),g=!_t(n.year),h=!_t(n.month)||!_t(n.day),w=g||h,z=n.weekYear||n.weekNumber;if((w||c)&&z)throw new _u("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new _u("Can't mix ordinal dates with month/day");let S;l?S=Xp({...xh(this.c),...n}):_t(n.ordinal)?(S={...this.toObject(),...n},_t(n.day)&&(S.day=Math.min(rd(S.year,S.month),S.day))):S=Jp({...Jf(this.c),...n});const[E,D]=N0(S,this.o,this.zone);return Hs(this,{ts:E,o:D})}plus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t);return Hs(this,e5(this,n))}minus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t).negate();return Hs(this,e5(this,n))}startOf(t){if(!this.isValid)return this;const n={},l=Ot.normalizeUnit(t);switch(l){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(l==="weeks"&&(n.weekday=1),l==="quarters"){const c=Math.ceil(this.month/3);n.month=(c-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?sn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Qf}toLocaleString(t=td,n={}){return this.isValid?sn.create(this.loc.clone(n),t).formatDateTime(this):Qf}toLocaleParts(t={}){return this.isValid?sn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:l=!1,includeOffset:c=!0,extendedZone:g=!1}={}){if(!this.isValid)return null;const h=t==="extended";let w=th(this,h);return w+="T",w+=t5(this,h,n,l,c,g),w}toISODate({format:t="extended"}={}){return this.isValid?th(this,t==="extended"):null}toISOWeekDate(){return I0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:l=!0,includePrefix:c=!1,extendedZone:g=!1,format:h="extended"}={}){return this.isValid?(c?"T":"")+t5(this,h==="extended",n,t,l,g):null}toRFC2822(){return I0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return I0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?th(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:l=!0}={}){let c="HH:mm:ss.SSS";return(n||t)&&(l&&(c+=" "),n?c+="z":t&&(c+="ZZ")),I0(this,c,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Qf}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",l={}){if(!this.isValid||!t.isValid)return Ot.invalid("created by diffing an invalid DateTime");const c={locale:this.locale,numberingSystem:this.numberingSystem,...l},g=pw(n).map(Ot.normalizeUnit),h=t.valueOf()>this.valueOf(),w=h?this:t,z=h?t:this,S=yx(w,z,g,c);return h?S.negate():S}diffNow(t="milliseconds",n={}){return this.diff(at.now(),t,n)}until(t){return this.isValid?ir.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const l=t.valueOf(),c=this.setZone(t.zone,{keepLocalTime:!0});return c.startOf(n)<=l&&l<=c.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||at.fromObject({},{zone:this.zone}),l=t.padding?this<n?-t.padding:t.padding:0;let c=["years","months","days","hours","minutes","seconds"],g=t.unit;return Array.isArray(t.unit)&&(c=t.unit,g=void 0),i5(n,this.plus(l),{...t,numeric:"always",units:c,unit:g})}toRelativeCalendar(t={}){return this.isValid?i5(t.base||at.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(at.isDateTime))throw new di("min requires all arguments be DateTimes");return Wp(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(at.isDateTime))throw new di("max requires all arguments be DateTimes");return Wp(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,l={}){const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0});return Y4(h,t,n)}static fromStringExplain(t,n,l={}){return at.fromFormatExplain(t,n,l)}static get DATE_SHORT(){return td}static get DATE_MED(){return u4}static get DATE_MED_WITH_WEEKDAY(){return qC}static get DATE_FULL(){return c4}static get DATE_HUGE(){return d4}static get TIME_SIMPLE(){return f4}static get TIME_WITH_SECONDS(){return h4}static get TIME_WITH_SHORT_OFFSET(){return p4}static get TIME_WITH_LONG_OFFSET(){return g4}static get TIME_24_SIMPLE(){return v4}static get TIME_24_WITH_SECONDS(){return b4}static get TIME_24_WITH_SHORT_OFFSET(){return m4}static get TIME_24_WITH_LONG_OFFSET(){return y4}static get DATETIME_SHORT(){return C4}static get DATETIME_SHORT_WITH_SECONDS(){return w4}static get DATETIME_MED(){return x4}static get DATETIME_MED_WITH_SECONDS(){return z4}static get DATETIME_MED_WITH_WEEKDAY(){return jC}static get DATETIME_FULL(){return L4}static get DATETIME_FULL_WITH_SECONDS(){return S4}static get DATETIME_HUGE(){return M4}static get DATETIME_HUGE_WITH_SECONDS(){return _4}}function Lu(o){if(at.isDateTime(o))return o;if(o&&o.valueOf&&Gs(o.valueOf()))return at.fromJSDate(o);if(o&&typeof o=="object")return at.fromObject(o);throw new di(`Unknown datetime argument: ${o}, of type ${typeof o}`)}const Bx={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},Vx=o=>at.local().setZone(o).isValid,zh=o=>o.hour<12,a5=o=>!zh(o),Wx=(o,t)=>zh(o)&&zh(t)||a5(o)&&a5(t),s5=(o,t)=>{var c;const n=t&&Vx(t)?t:"utc",l=(c=Bx[n.split("/")[0]])!=null?c:"en-us";return o.setZone(n).setLocale(l)},l5=o=>Zx(l3(o)),Zx=o=>o.replace(/Sept/,"Sep"),l3=o=>o.replace(/(AM|PM)/,t=>t.toLowerCase());var Ux=Object.defineProperty,Gx=Object.getOwnPropertyDescriptor,Ya=(o,t,n,l)=>{for(var c=l>1?void 0:l?Gx(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Ux(t,n,c),c};const u3=ze("input-time"),c3="h:mma",d3=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,f3=/^(1[3-9]|2[0-3]).*/,h3=/^(\d\d?)(am?|pm?)/,qx=["UTC","AEST"],p3=(o,t)=>({label:`${o}${t?` (${t})`:""}`,value:o}),u5=(o,t)=>{const l=Math.ceil(1440/o),c=at.local().startOf("day");return Array(l).fill(null).map((g,h)=>{const w=c.plus({minutes:o*h}),z=l3(w.toFormat(c3));return p3(z,t)})},jx=(o,t)=>{const n=o.trim(),l=o.match(d3);if(!n||!l)return[];const[,c,g,h]=l,w=parseInt(c,10),z=w>12?`${w-12}`:`${w}`,S=`${g}${h||0}`,E=`${z}:${S}`;return["am","pm"].map(D=>p3(`${E}${D}`,t))},Kx=(o,{value:t})=>{const n=o.match(f3);if(!n||!t)return!1;const[,l]=n,c=`${parseInt(l,10)-12}`,g=o.substring(l.length).replace(":",""),h=`${c}:${g}`;return t.startsWith(h)&&t.endsWith("pm")},Yx=(o,{value:t})=>{const n=o.match(h3);if(!n)return!1;const[,l,c]=n;return!!(t!=null&&t.replace(":00","").startsWith(`${l}${c}`))},Xx=(...o)=>Yx(...o)||Kx(...o);exports.InputTime=class extends exports.InputSelect{constructor(){super(...arguments),this.canSearch=!0,this.increment=15,this.isFreeform=!1,this.placeholder="Select time",this.trailingIcon="time",this.freeformOptions=[]}connectedCallback(){super.connectedCallback(),this.options=u5(this.increment,this.suffix)}updated(t){super.updated(t),t.has("increment")&&(this.options=u5(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var t;this.valueLabel=this.value&&this.value!==this.placeholder?(t=this.getItems().find(({value:n})=>n===this.value))==null?void 0:t.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(t){return this.query?Xx(this.query,t):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=jx(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return G`
3466
3490
  ${this.handleNoResults()} ${this.renderOptionsData()}
3467
3491
  ${this.renderFreeformOptions()}
3468
- `}};Ya([R({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Ya([R({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Ya([R({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Ya([R({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Ya([R({type:String})],exports.InputTime.prototype,"placeholder",2);Ya([R({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Ya([Re()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Ya([ee(u3)],exports.InputTime);var Xx=Object.defineProperty,Jx=Object.getOwnPropertyDescriptor,ia=(o,t,n,l)=>{for(var c=l>1?void 0:l?Jx(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Xx(t,n,c),c};const g3=ze("toggle-switch"),Su={Checked:"Checked",Empty:"Empty"};exports.ToggleSwitch=class extends $n{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.switchOffLabel="",this.switchOnLabel="",this.toggleState=Su.Empty,this.label=""}onInput(){this.disabled||(this.toggleState===Su.Checked?this.checked=!1:this.checked=!0,this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked}})))}handleKeyPress(t){t.preventDefault(),t.key===" "&&this.onInput()}render(){this.toggleState=this.checked?Su.Checked:Su.Empty;const t=G`<span>${this.label}</span>`,n=G`<div class="switch">
3492
+ `}};Ya([N({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Ya([N({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Ya([N({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Ya([N({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Ya([N({type:String})],exports.InputTime.prototype,"placeholder",2);Ya([N({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Ya([Re()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Ya([ee(u3)],exports.InputTime);var Jx=Object.defineProperty,Qx=Object.getOwnPropertyDescriptor,ia=(o,t,n,l)=>{for(var c=l>1?void 0:l?Qx(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Jx(t,n,c),c};const g3=ze("toggle-switch"),Su={Checked:"Checked",Empty:"Empty"};exports.ToggleSwitch=class extends $n{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.switchOffLabel="",this.switchOnLabel="",this.toggleState=Su.Empty,this.label=""}onInput(){this.disabled||(this.toggleState===Su.Checked?this.checked=!1:this.checked=!0,this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked}})))}handleKeyPress(t){t.preventDefault(),t.key===" "&&this.onInput()}render(){this.toggleState=this.checked?Su.Checked:Su.Empty;const t=G`<span>${this.label}</span>`,n=G`<div class="switch">
3469
3493
  <div class="toggle"></div>
3470
3494
  <div class="switch-on">${this.switchOnLabel}</div>
3471
3495
  <div class="switch-off">${this.switchOffLabel}</div>
@@ -3626,7 +3650,7 @@ ${this.value}</textarea
3626
3650
  background: var(--brz-color-neutral-200);
3627
3651
  }
3628
3652
  }
3629
- `];ia([R({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);ia([R({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);ia([R({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);ia([R()],exports.ToggleSwitch.prototype,"value",2);ia([R({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);ia([R({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);ia([Re()],exports.ToggleSwitch.prototype,"toggleState",2);ia([R({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=ia([ee(g3)],exports.ToggleSwitch);var Qx=Object.defineProperty,ez=Object.getOwnPropertyDescriptor,r2=(o,t,n,l)=>{for(var c=l>1?void 0:l?ez(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Qx(t,n,c),c};const v3=ze("heading");exports.Heading=class extends We{constructor(){super(...arguments),this.size="base"}getLevel(){if(this.level)return this.level;switch(this.size){case"3xl":return 1;case"2xl":case"xl":case"lg":return 2;case"sm":return 4;default:return 3}}render(){var n;const t=`size-${(n=this.size)!=null?n:"base"}`;switch(this.getLevel()){case 1:return G`<h1 class=${t}><slot></slot></h1>`;case 2:return G`<h2 class=${t}><slot></slot></h2>`;case 3:return G`<h3 class=${t}><slot></slot></h3>`;case 4:return G`<h4 class=${t}><slot></slot></h4>`;case 5:return G`<h5 class=${t}><slot></slot></h5>`;case 6:return G`<h6 class=${t}><slot></slot></h6>`}}};exports.Heading.styles=le`
3653
+ `];ia([N({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);ia([N({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);ia([N({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);ia([N()],exports.ToggleSwitch.prototype,"value",2);ia([N({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);ia([N({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);ia([Re()],exports.ToggleSwitch.prototype,"toggleState",2);ia([N({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=ia([ee(g3)],exports.ToggleSwitch);var ez=Object.defineProperty,tz=Object.getOwnPropertyDescriptor,r2=(o,t,n,l)=>{for(var c=l>1?void 0:l?tz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ez(t,n,c),c};const v3=ze("heading");exports.Heading=class extends We{constructor(){super(...arguments),this.size="base"}getLevel(){if(this.level)return this.level;switch(this.size){case"3xl":return 1;case"2xl":case"xl":case"lg":return 2;case"sm":return 4;default:return 3}}render(){var n;const t=`size-${(n=this.size)!=null?n:"base"}`;switch(this.getLevel()){case 1:return G`<h1 class=${t}><slot></slot></h1>`;case 2:return G`<h2 class=${t}><slot></slot></h2>`;case 3:return G`<h3 class=${t}><slot></slot></h3>`;case 4:return G`<h4 class=${t}><slot></slot></h4>`;case 5:return G`<h5 class=${t}><slot></slot></h5>`;case 6:return G`<h6 class=${t}><slot></slot></h6>`}}};exports.Heading.styles=le`
3630
3654
  h1,
3631
3655
  h2,
3632
3656
  h3,
@@ -3671,7 +3695,7 @@ ${this.value}</textarea
3671
3695
  :host {
3672
3696
  display: block;
3673
3697
  }
3674
- `;r2([R({type:String})],exports.Heading.prototype,"size",2);r2([R({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=r2([ee(v3)],exports.Heading);const b3=ze("inline-edit-field"),n2=ze("inline-edit-group"),m3=ze("inline-edit-controls"),y3=["edit","saving","error"],tz=["read","saved",...y3];class C3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...t})}}class w3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...t})}}class x3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...t})}}class z3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...t})}}class L3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...t})}}const rz=le`
3698
+ `;r2([N({type:String})],exports.Heading.prototype,"size",2);r2([N({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=r2([ee(v3)],exports.Heading);const b3=ze("inline-edit-field"),n2=ze("inline-edit-group"),m3=ze("inline-edit-controls"),y3=["edit","saving","error"],rz=["read","saved",...y3];class C3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...t})}}class w3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...t})}}class x3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...t})}}class z3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...t})}}class L3 extends CustomEvent{constructor(t={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...t})}}const nz=le`
3675
3699
  :host {
3676
3700
  display: block;
3677
3701
  }
@@ -3761,7 +3785,7 @@ ${this.value}</textarea
3761
3785
 
3762
3786
  margin-top: var(--brz-inline-edit-controls-spacing);
3763
3787
  }
3764
- `,nz=le`
3788
+ `,iz=le`
3765
3789
  .inline-edit-group {
3766
3790
  display: inline-flex;
3767
3791
  flex-direction: column;
@@ -3772,7 +3796,7 @@ ${this.value}</textarea
3772
3796
  brz-inline-edit-controls {
3773
3797
  margin-top: var(--brz-inline-edit-controls-spacing);
3774
3798
  }
3775
- `,iz=le`
3799
+ `,oz=le`
3776
3800
  :host {
3777
3801
  --brz-inline-edit-controls-spacing: var(--brz-spacing-4);
3778
3802
 
@@ -3780,7 +3804,7 @@ ${this.value}</textarea
3780
3804
  flex-direction: column;
3781
3805
  row-gap: var(--brz-inline-edit-controls-spacing);
3782
3806
  }
3783
- `;var oz=Object.defineProperty,az=Object.getOwnPropertyDescriptor,S3=(o,t,n,l)=>{for(var c=l>1?void 0:l?az(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&oz(t,n,c),c};exports.InlineEditControls=class extends We{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new C3)}handleSaveClick(){this.dispatchEvent(new w3)}render(){return G`
3807
+ `;var az=Object.defineProperty,sz=Object.getOwnPropertyDescriptor,S3=(o,t,n,l)=>{for(var c=l>1?void 0:l?sz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&az(t,n,c),c};exports.InlineEditControls=class extends We{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new C3)}handleSaveClick(){this.dispatchEvent(new w3)}render(){return G`
3784
3808
  <brz-split-row>
3785
3809
  <brz-button-group slot="right">
3786
3810
  ${["edit","error"].includes(this.mode)?G`
@@ -3805,7 +3829,7 @@ ${this.value}</textarea
3805
3829
  </brz-split-row>
3806
3830
 
3807
3831
  ${this.mode==="error"?G` <slot name="error"></slot> `:null}
3808
- `}};exports.InlineEditControls.styles=[iz];S3([R()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=S3([ee(m3)],exports.InlineEditControls);var sz=Object.defineProperty,lz=Object.getOwnPropertyDescriptor,i2=(o,t,n,l)=>{for(var c=l>1?void 0:l?lz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&sz(t,n,c),c};class Qu extends We{constructor(){super(...arguments),this.locked=!1,this.mode="read"}setEditMode(){this.locked||(this.mode="edit")}setReadMode(){this.mode="read"}setSavingMode(){this.locked||(this.mode="saving")}setErrorMode(){this.locked||(this.mode="error")}setSavedMode(){this.locked||(this.mode="saved",setTimeout(()=>this.setReadMode(),5e3))}setMode(t){switch(t){case"edit":return this.setEditMode();case"saving":return this.setSavingMode();case"error":return this.setErrorMode();case"saved":return this.setSavedMode();case"read":default:return this.setReadMode()}}async handleSaveClick(){this.setMode("saving");try{await this.handleSave(),this.setMode("saved")}catch(t){throw this.setMode("error"),t}}handleCancelClick(){this.setMode("read")}}i2([R({type:Boolean,reflect:!0})],Qu.prototype,"locked",2);i2([R({type:Function,attribute:!1})],Qu.prototype,"save",2);i2([Re()],Qu.prototype,"mode",2);var uz=Object.defineProperty,cz=Object.getOwnPropertyDescriptor,o2=(o,t,n,l)=>{for(var c=l>1?void 0:l?cz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&uz(t,n,c),c};exports.InlineEditGroup=class extends Qu{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){this.controller&&this.setMode("edit")}async handleSave(){var t;await((t=this.save)==null?void 0:t.call(this))}registerField(t){this.fields.push(t)}updated(t){super.updated(t),this.locked&&this.fields.forEach(n=>n.locked=!0),this.controller&&this.fields.forEach(n=>{n.controlled=!0,n.setMode(this.mode)}),t.has("mode")&&this.dispatchEvent(new L3({detail:{currentMode:this.mode,previousMode:t.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return G`
3832
+ `}};exports.InlineEditControls.styles=[oz];S3([N()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=S3([ee(m3)],exports.InlineEditControls);var lz=Object.defineProperty,uz=Object.getOwnPropertyDescriptor,i2=(o,t,n,l)=>{for(var c=l>1?void 0:l?uz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&lz(t,n,c),c};class Qu extends We{constructor(){super(...arguments),this.locked=!1,this.mode="read"}setEditMode(){this.locked||(this.mode="edit")}setReadMode(){this.mode="read"}setSavingMode(){this.locked||(this.mode="saving")}setErrorMode(){this.locked||(this.mode="error")}setSavedMode(){this.locked||(this.mode="saved",setTimeout(()=>this.setReadMode(),5e3))}setMode(t){switch(t){case"edit":return this.setEditMode();case"saving":return this.setSavingMode();case"error":return this.setErrorMode();case"saved":return this.setSavedMode();case"read":default:return this.setReadMode()}}async handleSaveClick(){this.setMode("saving");try{await this.handleSave(),this.setMode("saved")}catch(t){throw this.setMode("error"),t}}handleCancelClick(){this.setMode("read")}}i2([N({type:Boolean,reflect:!0})],Qu.prototype,"locked",2);i2([N({type:Function,attribute:!1})],Qu.prototype,"save",2);i2([Re()],Qu.prototype,"mode",2);var cz=Object.defineProperty,dz=Object.getOwnPropertyDescriptor,o2=(o,t,n,l)=>{for(var c=l>1?void 0:l?dz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&cz(t,n,c),c};exports.InlineEditGroup=class extends Qu{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){this.controller&&this.setMode("edit")}async handleSave(){var t;await((t=this.save)==null?void 0:t.call(this))}registerField(t){this.fields.push(t)}updated(t){super.updated(t),this.locked&&this.fields.forEach(n=>n.locked=!0),this.controller&&this.fields.forEach(n=>{n.controlled=!0,n.setMode(this.mode)}),t.has("mode")&&this.dispatchEvent(new L3({detail:{currentMode:this.mode,previousMode:t.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return G`
3809
3833
  <slot
3810
3834
  @brz-inline-edit-field-broadcast=${this.handleInlineEditFieldViewModeClick}
3811
3835
  >
@@ -3825,7 +3849,7 @@ ${this.value}</textarea
3825
3849
  </slot>
3826
3850
  `:null}
3827
3851
  </dl>
3828
- `}};exports.InlineEditGroup.styles=[nz];o2([R({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);o2([Re()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=o2([ee(n2)],exports.InlineEditGroup);var dz=Object.defineProperty,fz=Object.getOwnPropertyDescriptor,Bi=(o,t,n,l)=>{for(var c=l>1?void 0:l?fz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&dz(t,n,c),c};const hz=o=>o instanceof zr&&!!o.options.length;exports.InlineEditField=class extends Qu{constructor(){super(...arguments),this.controlled=!1,this.truncate=!1,this.labelPosition="top",this.size="medium",this.options=[],this.hasLabel=!1,this.isValueOverflowing=!1}connectedCallback(){var t;super.connectedCallback(),(t=this.group)==null||t.registerField(this)}updated(t){super.updated(t),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",t.has("mode")&&this.dispatchEvent(new z3({detail:{element:this,currentMode:this.mode,previousMode:t.get("mode"),group:this.group}}))}async setOverflowingState(){await this.updateComplete,this.isValueOverflowing=!!this.valueElement&&this.valueElement.clientHeight>=40}setStateFromInputElement(){this.labelPosition=this.fieldElement.labelPosition,this.size=this.fieldElement.size,this.value=this.inputElement.value,hz(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof zr||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const t=this.slottedInputLabel;if(!t){this.label=this.generateFieldLabelSlot();return}this.label=t}setOptionsFromChildren(t){const n=[...t.children];this.options=n.filter(l=>!!l.value).map(l=>{var c;return{value:l.value,label:((c=l.textContent)==null?void 0:c.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const t=[...this.children].find(n=>n.slot==="");if(!t)throw new Error("No element has been assigned to the default slot.");if(!(t instanceof exports.LabeledInput)&&!(t instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return t}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const t=[...this.fieldElement.children].find(n=>n.slot==="");if(!t)throw new Error("No element has been assigned to the RecordField default slot.");if(!(t instanceof $n))throw new Error("Expected a Breeze Input in the RecordField default slot.");return t}return this.fieldElement}generateFieldLabelSlot(){var t,n;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const l=document.createElement("brz-record-field-label");l.slot="label";const c=document.createElement("span");return c.textContent=((n=(t=this.inputElement.firstChild)==null?void 0:t.textContent)==null?void 0:n.trim())||"",l.appendChild(c),this.fieldElement.appendChild(l),l}}get friendlyValue(){var t;if(this.options.length){if(Array.isArray(this.value)){const l=this.value.map(g=>{var h;return(h=this.options.find(({value:w})=>w===g))==null?void 0:h.label}).filter(g=>!!g);return(l.length===this.value.length?l:this.value).map(g=>this.getSelectValueTemplate(g))}const n=(t=this.options.find(({value:l})=>l===this.value))==null?void 0:t.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(n||this.value):n||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value}getSelectValueTemplate(t){return G`
3852
+ `}};exports.InlineEditGroup.styles=[iz];o2([N({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);o2([Re()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=o2([ee(n2)],exports.InlineEditGroup);var fz=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,Bi=(o,t,n,l)=>{for(var c=l>1?void 0:l?hz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&fz(t,n,c),c};const pz=o=>o instanceof zr&&!!o.options.length;exports.InlineEditField=class extends Qu{constructor(){super(...arguments),this.controlled=!1,this.truncate=!1,this.labelPosition="top",this.size="medium",this.options=[],this.hasLabel=!1,this.isValueOverflowing=!1}connectedCallback(){var t;super.connectedCallback(),(t=this.group)==null||t.registerField(this)}updated(t){super.updated(t),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",t.has("mode")&&this.dispatchEvent(new z3({detail:{element:this,currentMode:this.mode,previousMode:t.get("mode"),group:this.group}}))}async setOverflowingState(){await this.updateComplete,this.isValueOverflowing=!!this.valueElement&&this.valueElement.clientHeight>=40}setStateFromInputElement(){this.labelPosition=this.fieldElement.labelPosition,this.size=this.fieldElement.size,this.value=this.inputElement.value,pz(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof zr||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const t=this.slottedInputLabel;if(!t){this.label=this.generateFieldLabelSlot();return}this.label=t}setOptionsFromChildren(t){const n=[...t.children];this.options=n.filter(l=>!!l.value).map(l=>{var c;return{value:l.value,label:((c=l.textContent)==null?void 0:c.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const t=[...this.children].find(n=>n.slot==="");if(!t)throw new Error("No element has been assigned to the default slot.");if(!(t instanceof exports.LabeledInput)&&!(t instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return t}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const t=[...this.fieldElement.children].find(n=>n.slot==="");if(!t)throw new Error("No element has been assigned to the RecordField default slot.");if(!(t instanceof $n))throw new Error("Expected a Breeze Input in the RecordField default slot.");return t}return this.fieldElement}generateFieldLabelSlot(){var t,n;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const l=document.createElement("brz-record-field-label");l.slot="label";const c=document.createElement("span");return c.textContent=((n=(t=this.inputElement.firstChild)==null?void 0:t.textContent)==null?void 0:n.trim())||"",l.appendChild(c),this.fieldElement.appendChild(l),l}}get friendlyValue(){var t;if(this.options.length){if(Array.isArray(this.value)){const l=this.value.map(g=>{var h;return(h=this.options.find(({value:w})=>w===g))==null?void 0:h.label}).filter(g=>!!g);return(l.length===this.value.length?l:this.value).map(g=>this.getSelectValueTemplate(g))}const n=(t=this.options.find(({value:l})=>l===this.value))==null?void 0:t.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(n||this.value):n||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value}getSelectValueTemplate(t){return G`
3829
3853
  <brz-lozenge theme="subtle" color="sapphire" size="small">
3830
3854
  ${t}
3831
3855
  </brz-lozenge>
@@ -3886,7 +3910,7 @@ ${this.value}</textarea
3886
3910
  </slot>
3887
3911
  `}
3888
3912
  </div>
3889
- `}get group(){return this.closest(n2)}emitBroadcastEvent(){this.dispatchEvent(new x3({detail:{element:this,currentMode:this.mode}}))}render(){switch(this.mode){case"edit":case"saving":case"error":return this.editModeTemplate;case"read":case"saved":default:return this.readModeTemplate}}};exports.InlineEditField.styles=[rz];Bi([R({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);Bi([R({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);Bi([Re()],exports.InlineEditField.prototype,"labelPosition",2);Bi([Re()],exports.InlineEditField.prototype,"size",2);Bi([Re()],exports.InlineEditField.prototype,"value",2);Bi([Re()],exports.InlineEditField.prototype,"options",2);Bi([Re()],exports.InlineEditField.prototype,"label",2);Bi([Re()],exports.InlineEditField.prototype,"hasLabel",2);Bi([Re()],exports.InlineEditField.prototype,"isValueOverflowing",2);Bi([Hi(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=Bi([ee(b3)],exports.InlineEditField);var pz=Object.defineProperty,gz=Object.getOwnPropertyDescriptor,ec=(o,t,n,l)=>{for(var c=l>1?void 0:l?gz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&pz(t,n,c),c};const M3=ze("side-navigation-item"),vz=le`
3913
+ `}get group(){return this.closest(n2)}emitBroadcastEvent(){this.dispatchEvent(new x3({detail:{element:this,currentMode:this.mode}}))}render(){switch(this.mode){case"edit":case"saving":case"error":return this.editModeTemplate;case"read":case"saved":default:return this.readModeTemplate}}};exports.InlineEditField.styles=[nz];Bi([N({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);Bi([N({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);Bi([Re()],exports.InlineEditField.prototype,"labelPosition",2);Bi([Re()],exports.InlineEditField.prototype,"size",2);Bi([Re()],exports.InlineEditField.prototype,"value",2);Bi([Re()],exports.InlineEditField.prototype,"options",2);Bi([Re()],exports.InlineEditField.prototype,"label",2);Bi([Re()],exports.InlineEditField.prototype,"hasLabel",2);Bi([Re()],exports.InlineEditField.prototype,"isValueOverflowing",2);Bi([Hi(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=Bi([ee(b3)],exports.InlineEditField);var gz=Object.defineProperty,vz=Object.getOwnPropertyDescriptor,ec=(o,t,n,l)=>{for(var c=l>1?void 0:l?vz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&gz(t,n,c),c};const M3=ze("side-navigation-item"),bz=le`
3890
3914
  :host li {
3891
3915
  list-style: none;
3892
3916
  padding: var(--brz-spacing-2) 0;
@@ -3922,7 +3946,7 @@ ${this.value}</textarea
3922
3946
  <slot></slot>
3923
3947
  </a>
3924
3948
  </li>
3925
- `}};exports.SideNavigationItem.styles=[vz];ec([R({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);ec([R({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);ec([R({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);ec([R({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=ec([ee(M3)],exports.SideNavigationItem);var bz=Object.defineProperty,mz=Object.getOwnPropertyDescriptor,yz=(o,t,n,l)=>{for(var c=l>1?void 0:l?mz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&bz(t,n,c),c};const _3=ze("side-navigation"),Cz=le`
3949
+ `}};exports.SideNavigationItem.styles=[bz];ec([N({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);ec([N({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);ec([N({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);ec([N({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=ec([ee(M3)],exports.SideNavigationItem);var mz=Object.defineProperty,yz=Object.getOwnPropertyDescriptor,Cz=(o,t,n,l)=>{for(var c=l>1?void 0:l?yz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&mz(t,n,c),c};const _3=ze("side-navigation"),wz=le`
3926
3950
  :host {
3927
3951
  display: block;
3928
3952
  height: 100%;
@@ -3936,15 +3960,15 @@ ${this.value}</textarea
3936
3960
  }
3937
3961
  `;exports.SideNavigation=class extends We{render(){return G`<ul>
3938
3962
  <slot></slot>
3939
- </ul>`}};exports.SideNavigation.styles=[Cz];exports.SideNavigation=yz([ee(_3)],exports.SideNavigation);var wz=Object.defineProperty,xz=Object.getOwnPropertyDescriptor,T3=(o,t,n,l)=>{for(var c=l>1?void 0:l?xz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&wz(t,n,c),c};const k3=ze("record-row"),O3=ze("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,le`
3963
+ </ul>`}};exports.SideNavigation.styles=[wz];exports.SideNavigation=Cz([ee(_3)],exports.SideNavigation);var xz=Object.defineProperty,zz=Object.getOwnPropertyDescriptor,T3=(o,t,n,l)=>{for(var c=l>1?void 0:l?zz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&xz(t,n,c),c};const k3=ze("record-row"),O3=ze("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,le`
3940
3964
  :host(:nth-of-type(n + 2)) {
3941
3965
  margin-top: var(--brz-spacing-4);
3942
3966
  }
3943
- `];exports.RecordRow=T3([ee(k3)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=T3([ee(O3)],exports.RecordRowLabel);var zz=Object.defineProperty,Lz=Object.getOwnPropertyDescriptor,a2=(o,t,n,l)=>{for(var c=l>1?void 0:l?Lz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&zz(t,n,c),c};const E3=ze("tab-panel");exports.TabPanel=class extends We{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return G`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=le`
3967
+ `];exports.RecordRow=T3([ee(k3)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=T3([ee(O3)],exports.RecordRowLabel);var Lz=Object.defineProperty,Sz=Object.getOwnPropertyDescriptor,a2=(o,t,n,l)=>{for(var c=l>1?void 0:l?Sz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Lz(t,n,c),c};const E3=ze("tab-panel");exports.TabPanel=class extends We{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return G`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=le`
3944
3968
  :host(:not([shown])) #panel {
3945
3969
  display: none;
3946
3970
  }
3947
- `;a2([R({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);a2([R({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=a2([ee(E3)],exports.TabPanel);class Ld extends CustomEvent{constructor(t){super("brz-tab-selected",{bubbles:!0,detail:{name:t}})}}class I3 extends CustomEvent{constructor(t){super("brz-tab-deselected",{bubbles:!0,detail:{name:t}})}}var Sz=Object.defineProperty,Mz=Object.getOwnPropertyDescriptor,Sd=(o,t,n,l)=>{for(var c=l>1?void 0:l?Mz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Sz(t,n,c),c};const A3=ze("tab");exports.Tab=class extends We{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(t){const n=t.get("selected");n===!1&&this.selected===!0?this.dispatchEvent(new Ld(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new I3(this.name)),super.updated(t)}render(){return this.link?G`<a href=${this.link} id="tab"><slot></slot></a>`:G`<div
3971
+ `;a2([N({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);a2([N({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=a2([ee(E3)],exports.TabPanel);class Ld extends CustomEvent{constructor(t){super("brz-tab-selected",{bubbles:!0,detail:{name:t}})}}class I3 extends CustomEvent{constructor(t){super("brz-tab-deselected",{bubbles:!0,detail:{name:t}})}}var Mz=Object.defineProperty,_z=Object.getOwnPropertyDescriptor,Sd=(o,t,n,l)=>{for(var c=l>1?void 0:l?_z(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Mz(t,n,c),c};const A3=ze("tab");exports.Tab=class extends We{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(t){const n=t.get("selected");n===!1&&this.selected===!0?this.dispatchEvent(new Ld(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new I3(this.name)),super.updated(t)}render(){return this.link?G`<a href=${this.link} id="tab"><slot></slot></a>`:G`<div
3948
3972
  tabindex="0"
3949
3973
  role="tab"
3950
3974
  aria-selected=${this.selected}
@@ -3972,7 +3996,7 @@ ${this.value}</textarea
3972
3996
  #tab:hover {
3973
3997
  color: var(--brz-color-neutral-850);
3974
3998
  }
3975
- `;Sd([R({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Sd([R({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Sd([R({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Sd([ee(A3)],exports.Tab);var _z=Object.defineProperty,Tz=Object.getOwnPropertyDescriptor,Md=(o,t,n,l)=>{for(var c=l>1?void 0:l?Tz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&_z(t,n,c),c};const $3=ze("tab-bar");exports.TabBar=class extends We{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var l,c,g;const t=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!t){this.tabs=[];return}let n=Array.from(t.assignedElements());for(;n[0]instanceof HTMLSlotElement;)n=Array.from(n[0].assignedElements());this.tabs=n.filter(h=>h instanceof exports.Tab&&!!h.name),this.controlled||(this.selected||(this.selected=(g=(c=this.tabs.find(h=>h.selected))==null?void 0:c.name)!=null?g:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(t){if(t.target instanceof exports.Tab){const{name:n}=t.target;n&&(this.controlled||(this.selected=n),this.dispatchEvent(new Ld(n)))}}updated(t){t.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(t=>{const n=t.name===this.selected;n!==t.selected&&(t.selected=n)})}render(){return G`
3999
+ `;Sd([N({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Sd([N({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Sd([N({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Sd([ee(A3)],exports.Tab);var Tz=Object.defineProperty,kz=Object.getOwnPropertyDescriptor,Md=(o,t,n,l)=>{for(var c=l>1?void 0:l?kz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Tz(t,n,c),c};const $3=ze("tab-bar");exports.TabBar=class extends We{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var l,c,g;const t=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!t){this.tabs=[];return}let n=Array.from(t.assignedElements());for(;n[0]instanceof HTMLSlotElement;)n=Array.from(n[0].assignedElements());this.tabs=n.filter(h=>h instanceof exports.Tab&&!!h.name),this.controlled||(this.selected||(this.selected=(g=(c=this.tabs.find(h=>h.selected))==null?void 0:c.name)!=null?g:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(t){if(t.target instanceof exports.Tab){const{name:n}=t.target;n&&(this.controlled||(this.selected=n),this.dispatchEvent(new Ld(n)))}}updated(t){t.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(t=>{const n=t.name===this.selected;n!==t.selected&&(t.selected=n)})}render(){return G`
3976
4000
  <brz-row id="tabbar" @click=${this.handleClick}>
3977
4001
  <slot @slotchange=${this.handleSlotChange}></slot>
3978
4002
  </brz-row>
@@ -3994,7 +4018,7 @@ ${this.value}</textarea
3994
4018
  top: 0;
3995
4019
  z-index: 1;
3996
4020
  }
3997
- `;Md([R({type:Boolean})],exports.TabBar.prototype,"controlled",2);Md([R({type:String})],exports.TabBar.prototype,"selected",2);Md([Re()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Md([ee($3)],exports.TabBar);var kz=Object.defineProperty,Oz=Object.getOwnPropertyDescriptor,s2=(o,t,n,l)=>{for(var c=l>1?void 0:l?Oz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&kz(t,n,c),c};const P3=ze("tabs");exports.Tabs=class extends We{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var n,l,c;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot:not([name])");if(this.panels=[],!!t){for(const g of t.assignedElements())if(g instanceof exports.TabPanel)this.panels.push(g);else{const h=g.querySelectorAll("brz-tab-panel"),w=g.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(h.length?h:w))}this.selected||(this.selected=(c=(l=this.panels.find(g=>g.shown))==null?void 0:l.name)!=null?c:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(t=>{const n=t.name===this.selected;n!==t.shown&&(t.shown=n)})}handleTabSelected(t){this.selected=t.detail.name,this.updatePanelVisibility(),t.stopPropagation(),this.dispatchEvent(new Ld(this.selected))}render(){return G`
4021
+ `;Md([N({type:Boolean})],exports.TabBar.prototype,"controlled",2);Md([N({type:String})],exports.TabBar.prototype,"selected",2);Md([Re()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Md([ee($3)],exports.TabBar);var Oz=Object.defineProperty,Ez=Object.getOwnPropertyDescriptor,s2=(o,t,n,l)=>{for(var c=l>1?void 0:l?Ez(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Oz(t,n,c),c};const P3=ze("tabs");exports.Tabs=class extends We{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var n,l,c;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot:not([name])");if(this.panels=[],!!t){for(const g of t.assignedElements())if(g instanceof exports.TabPanel)this.panels.push(g);else{const h=g.querySelectorAll("brz-tab-panel"),w=g.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(h.length?h:w))}this.selected||(this.selected=(c=(l=this.panels.find(g=>g.shown))==null?void 0:l.name)!=null?c:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(t=>{const n=t.name===this.selected;n!==t.shown&&(t.shown=n)})}handleTabSelected(t){this.selected=t.detail.name,this.updatePanelVisibility(),t.stopPropagation(),this.dispatchEvent(new Ld(this.selected))}render(){return G`
3998
4022
  <brz-tab-bar
3999
4023
  controlled
4000
4024
  selected=${this.selected}
@@ -4007,7 +4031,7 @@ ${this.value}</textarea
4007
4031
  :host {
4008
4032
  background-color: var(--brz-color-white);
4009
4033
  }
4010
- `;s2([R({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);s2([Re()],exports.Tabs.prototype,"panels",2);exports.Tabs=s2([ee(P3)],exports.Tabs);var Ez=Object.defineProperty,Iz=Object.getOwnPropertyDescriptor,_d=(o,t,n,l)=>{for(var c=l>1?void 0:l?Iz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Ez(t,n,c),c};const D3=ze("badge");var N3=(o=>(o[o.subtle=0]="subtle",o[o.primary=1]="primary",o[o.important=2]="important",o))(N3||{});const Az=o=>!o||typeof o!="string"?!1:/^-?\d+$/.test(o),R3=5,H3=99;exports.Badge=class extends We{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?H3:R3)}updated(t){super.updated(t),t.has("content")&&(this.content=Az(this.content)?parseInt(this.content):this.content),this.setDefaultLimit()}generateContent(){return typeof this.content=="number"?this.content>this.limit?`${this.limit}+`:`${this.content}`:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return G` <span>${this.generateContent()}</span> `}};exports.Badge.styles=le`
4034
+ `;s2([N({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);s2([Re()],exports.Tabs.prototype,"panels",2);exports.Tabs=s2([ee(P3)],exports.Tabs);var Iz=Object.defineProperty,Az=Object.getOwnPropertyDescriptor,_d=(o,t,n,l)=>{for(var c=l>1?void 0:l?Az(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Iz(t,n,c),c};const D3=ze("badge");var N3=(o=>(o[o.subtle=0]="subtle",o[o.primary=1]="primary",o[o.important=2]="important",o))(N3||{});const $z=o=>!o||typeof o!="string"?!1:/^-?\d+$/.test(o),R3=5,H3=99;exports.Badge=class extends We{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?H3:R3)}updated(t){super.updated(t),t.has("content")&&(this.content=$z(this.content)?parseInt(this.content):this.content),this.setDefaultLimit()}generateContent(){return typeof this.content=="number"?this.content>this.limit?`${this.limit}+`:`${this.content}`:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return G` <span>${this.generateContent()}</span> `}};exports.Badge.styles=le`
4011
4035
  :host {
4012
4036
  --brz-badge-background-color: var(--brz-color-neutral-250);
4013
4037
  --brz-badge-color: var(--brz-color-neutral-750);
@@ -4039,7 +4063,7 @@ ${this.value}</textarea
4039
4063
  --brz-badge-background-color: var(--brz-color-red-600);
4040
4064
  --brz-badge-color: var(--brz-color-white);
4041
4065
  }
4042
- `;_d([R({reflect:!0})],exports.Badge.prototype,"theme",2);_d([R({type:Number})],exports.Badge.prototype,"limit",2);_d([R({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=_d([ee(D3)],exports.Badge);const{range:Td}=Pm;function $z(o,t,n){return[1,null,...Td(o-t,o+t+1),null,n]}function Pz(o,t){return[1,null,...Td(o-(t-3),o+1)]}function Dz(o,t){return[...Td(1,t-1),null,o]}function Nz(o,t,n){return o>1+1+t*2&&o<n-1-t*2}function Rz(o,t=1,n=1){const l=5+n*2;if(o<=l)return Td(1,o+1);if(Nz(t,n,o))return $z(t,n,o);if(t+(l-3)>=o)return Pz(o,l);if(t<l)return Dz(o,l)}var Hz=Object.defineProperty,Fz=Object.getOwnPropertyDescriptor,Co=(o,t,n,l)=>{for(var c=l>1?void 0:l?Fz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Hz(t,n,c),c};const l2=ze("basic-pagination"),u2=ze("pagination");class F3 extends CustomEvent{constructor(t){super(`${l2}-${t}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends We{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(t){this.dispatchEvent(new F3(t))}handlePageChange(t){this.emit(`${t}-page`)}render(){return G`
4066
+ `;_d([N({reflect:!0})],exports.Badge.prototype,"theme",2);_d([N({type:Number})],exports.Badge.prototype,"limit",2);_d([N({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=_d([ee(D3)],exports.Badge);const{range:Td}=Dm;function Pz(o,t,n){return[1,null,...Td(o-t,o+t+1),null,n]}function Dz(o,t){return[1,null,...Td(o-(t-3),o+1)]}function Nz(o,t){return[...Td(1,t-1),null,o]}function Rz(o,t,n){return o>1+1+t*2&&o<n-1-t*2}function Hz(o,t=1,n=1){const l=5+n*2;if(o<=l)return Td(1,o+1);if(Rz(t,n,o))return Pz(t,n,o);if(t+(l-3)>=o)return Dz(o,l);if(t<l)return Nz(o,l)}var Fz=Object.defineProperty,Bz=Object.getOwnPropertyDescriptor,Co=(o,t,n,l)=>{for(var c=l>1?void 0:l?Bz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Fz(t,n,c),c};const l2=ze("basic-pagination"),u2=ze("pagination");class F3 extends CustomEvent{constructor(t){super(`${l2}-${t}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends We{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(t){this.dispatchEvent(new F3(t))}handlePageChange(t){this.emit(`${t}-page`)}render(){return G`
4043
4067
  <brz-button-group role="navigation" aria-label="Pagination Navigation">
4044
4068
  <brz-button
4045
4069
  compact
@@ -4065,7 +4089,7 @@ ${this.value}</textarea
4065
4089
  brz-button-group {
4066
4090
  --brz-spacing-2: var(--brz-spacing-1);
4067
4091
  }
4068
- `;Co([R({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Co([R({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Co([ee(l2)],exports.BasicPagination);class B3 extends CustomEvent{constructor(t,n){super(`${u2}-${t}`,{bubbles:!0,composed:!0,detail:{page:n}})}}exports.Pagination=class extends We{constructor(){super(...arguments),this.currentPageSiblings=1}emit(t,n){this.dispatchEvent(new B3(t,n))}onPageChange(t){this.emit("page-change",t)}isCurrentPage(t){return t===this.currentPage}hasNextPage(){return this.currentPage<this.totalPages}onNextPage(){this.emit("page-change",this.currentPage+1)}hasPreviousPage(){return this.currentPage>1}onPreviousPage(){this.emit("page-change",this.currentPage-1)}render(){var t;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=Rz(this.totalPages,this.currentPage,this.currentPageSiblings),G`
4092
+ `;Co([N({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Co([N({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Co([ee(l2)],exports.BasicPagination);class B3 extends CustomEvent{constructor(t,n){super(`${u2}-${t}`,{bubbles:!0,composed:!0,detail:{page:n}})}}exports.Pagination=class extends We{constructor(){super(...arguments),this.currentPageSiblings=1}emit(t,n){this.dispatchEvent(new B3(t,n))}onPageChange(t){this.emit("page-change",t)}isCurrentPage(t){return t===this.currentPage}hasNextPage(){return this.currentPage<this.totalPages}onNextPage(){this.emit("page-change",this.currentPage+1)}hasPreviousPage(){return this.currentPage>1}onPreviousPage(){this.emit("page-change",this.currentPage-1)}render(){var t;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=Hz(this.totalPages,this.currentPage,this.currentPageSiblings),G`
4069
4093
  <brz-row role="navigation" aria-label="Pagination Navigation">
4070
4094
  <button
4071
4095
  role="link"
@@ -4166,7 +4190,7 @@ ${this.value}</textarea
4166
4190
  .page {
4167
4191
  padding: 0 var(--brz-spacing-2);
4168
4192
  }
4169
- `;Co([R({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Co([R({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Co([R({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Co([Re()],exports.Pagination.prototype,"currentPageSiblings",2);Co([Re()],exports.Pagination.prototype,"totalPages",2);Co([Re()],exports.Pagination.prototype,"pages",2);exports.Pagination=Co([ee(u2)],exports.Pagination);var Bz=Object.defineProperty,Vz=Object.getOwnPropertyDescriptor,tc=(o,t,n,l)=>{for(var c=l>1?void 0:l?Vz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Bz(t,n,c),c};const Wz=["info","success","warning","error"],V3=ze("alert");class W3 extends CustomEvent{constructor(t){super(t,{bubbles:!0,composed:!0})}}exports.Alert=class extends We{constructor(){super(...arguments),this.type="info",this.clearable=!1,this.title="",this.cleared=!1}getIcon(){switch(this.type){case"success":return"tickFill";case"warning":case"error":return"exclamationFill";default:return"infoFill"}}clear(){this.cleared=!0,this.dispatchEvent(new W3("brz-alert-cleared"))}render(){return this.cleared?null:G`<div class="alert-container">
4193
+ `;Co([N({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Co([N({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Co([N({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Co([Re()],exports.Pagination.prototype,"currentPageSiblings",2);Co([Re()],exports.Pagination.prototype,"totalPages",2);Co([Re()],exports.Pagination.prototype,"pages",2);exports.Pagination=Co([ee(u2)],exports.Pagination);var Vz=Object.defineProperty,Wz=Object.getOwnPropertyDescriptor,tc=(o,t,n,l)=>{for(var c=l>1?void 0:l?Wz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Vz(t,n,c),c};const Zz=["info","success","warning","error"],V3=ze("alert");class W3 extends CustomEvent{constructor(t){super(t,{bubbles:!0,composed:!0})}}exports.Alert=class extends We{constructor(){super(...arguments),this.type="info",this.clearable=!1,this.title="",this.cleared=!1}getIcon(){switch(this.type){case"success":return"tickFill";case"warning":case"error":return"exclamationFill";default:return"infoFill"}}clear(){this.cleared=!0,this.dispatchEvent(new W3("brz-alert-cleared"))}render(){return this.cleared?null:G`<div class="alert-container">
4170
4194
  <brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
4171
4195
  <div role="alert">
4172
4196
  ${this.title?G`<div><brz-heading>${this.title}</brz-heading></div>`:G``}
@@ -4251,7 +4275,7 @@ ${this.value}</textarea
4251
4275
  .clear-button brz-icon {
4252
4276
  vertical-align: middle;
4253
4277
  }
4254
- `;tc([R({type:String,reflect:!0})],exports.Alert.prototype,"type",2);tc([R({type:Boolean})],exports.Alert.prototype,"clearable",2);tc([R()],exports.Alert.prototype,"title",2);tc([Re()],exports.Alert.prototype,"cleared",2);exports.Alert=tc([ee(V3)],exports.Alert);const c2={resources:q`
4278
+ `;tc([N({type:String,reflect:!0})],exports.Alert.prototype,"type",2);tc([N({type:Boolean})],exports.Alert.prototype,"clearable",2);tc([N()],exports.Alert.prototype,"title",2);tc([Re()],exports.Alert.prototype,"cleared",2);exports.Alert=tc([ee(V3)],exports.Alert);const c2={resources:q`
4255
4279
  <path fill-rule="evenodd" clip-rule="evenodd" d="M72.162 23C65.9749 23 60.9331 26.3858 60.9331 35.8357C60.9331 45.2714 65.9608 48.6715 72.162 48.6715C78.3519 48.6715 83.3909 45.2885 83.3909 35.8357C83.3909 26.4029 78.366 23 72.162 23" fill="#ECEEF3"/>
4256
4280
  <path d="M56.4495 56.9434C59.5234 55.7568 64.9414 54.1338 72.1812 54.1338C78.7417 54.1338 84.8193 55.6855 88.0841 56.9434C93.6087 59.077 96.3373 63.076 97.3676 67.212C97.9234 69.4654 97.0055 71.887 95.3408 72.6629C93.7195 73.4199 86.7451 73.8798 78.6699 74.0381C76.8525 68.8754 72.9778 64.0852 65.9467 61.3874C63.1121 60.3023 58.7997 59.0638 53.7502 58.2549C54.565 57.7649 55.4627 57.3244 56.4495 56.9434Z" fill="#ECEEF3"/>
4257
4281
  <path fill-rule="evenodd" clip-rule="evenodd" d="M40.1294 59.3822C29.7418 59.3822 21.9683 61.6959 17.5579 63.3874C9.61917 66.4329 5.70017 72.1418 4.23407 78.0459C3.43657 81.25 4.74559 84.6941 7.11794 85.8082C10.0139 87.1663 25.0495 87.8454 40.1093 87.8454C55.2496 87.8454 70.4222 87.1582 73.3584 85.796C75.7469 84.69 77.0639 81.2378 76.2664 78.0256C74.7883 72.1296 70.8733 66.4289 62.9466 63.3874C58.2624 61.5942 49.5423 59.3822 40.1294 59.3822" fill="#CACFD9"/>
@@ -4345,7 +4369,7 @@ ${this.value}</textarea
4345
4369
  <circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
4346
4370
  <circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
4347
4371
  <path d="M22.1426 62.8572C23.3212 62.8572 24.2855 63.8215 24.2855 65V73.5715C24.2855 74.75 23.3212 75.7143 22.1426 75.7143C20.964 75.7143 19.9998 74.75 19.9998 73.5715V65C19.9998 63.8215 20.964 62.8572 22.1426 62.8572Z" fill="white"/>
4348
- <path d="M24.2855 82.1429C24.2855 83.3264 23.3261 84.2857 22.1426 84.2857V84.2857C20.9591 84.2857 19.9998 83.3264 19.9998 82.1429V82.1429C19.9998 80.9594 20.9591 80 22.1426 80V80C23.3261 80 24.2855 80.9594 24.2855 82.1429V82.1429Z" fill="white"/>`},Zz=Object.keys(c2);var Uz=Object.defineProperty,Gz=Object.getOwnPropertyDescriptor,kd=(o,t,n,l)=>{for(var c=l>1?void 0:l?Gz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Uz(t,n,c),c};const Z3=ze("illustration");exports.Illustration=class extends We{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const t=c2[this.illustration],n=Math.floor(Math.random()*100),l=`${this.illustration}Title${n}`,c=`${this.illustration}Desc${n}`;if(!t){console.warn(`Can't find illustration ${this.illustration}`);return}return G`<svg
4372
+ <path d="M24.2855 82.1429C24.2855 83.3264 23.3261 84.2857 22.1426 84.2857V84.2857C20.9591 84.2857 19.9998 83.3264 19.9998 82.1429V82.1429C19.9998 80.9594 20.9591 80 22.1426 80V80C23.3261 80 24.2855 80.9594 24.2855 82.1429V82.1429Z" fill="white"/>`},Uz=Object.keys(c2);var Gz=Object.defineProperty,qz=Object.getOwnPropertyDescriptor,kd=(o,t,n,l)=>{for(var c=l>1?void 0:l?qz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Gz(t,n,c),c};const Z3=ze("illustration");exports.Illustration=class extends We{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const t=c2[this.illustration],n=Math.floor(Math.random()*100),l=`${this.illustration}Title${n}`,c=`${this.illustration}Desc${n}`;if(!t){console.warn(`Can't find illustration ${this.illustration}`);return}return G`<svg
4349
4373
  aria-hidden=${!this.altTitle.length||!this.altDescription.length}
4350
4374
  role="img"
4351
4375
  aria-labelledby=${`${l} ${c}`}
@@ -4361,13 +4385,13 @@ ${this.value}</textarea
4361
4385
  /* to get rid of extra height caused by white space */
4362
4386
  line-height: 0;
4363
4387
  }
4364
- `;kd([R({type:String})],exports.Illustration.prototype,"illustration",2);kd([R({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);kd([R({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=kd([ee(Z3)],exports.Illustration);var qz=Object.defineProperty,jz=Object.getOwnPropertyDescriptor,Kz=(o,t,n,l)=>{for(var c=l>1?void 0:l?jz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&qz(t,n,c),c};const U3=ze("header");exports.Header=class extends We{render(){return G`<slot></slot>`}};exports.Header.styles=le`
4388
+ `;kd([N({type:String})],exports.Illustration.prototype,"illustration",2);kd([N({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);kd([N({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=kd([ee(Z3)],exports.Illustration);var jz=Object.defineProperty,Kz=Object.getOwnPropertyDescriptor,Yz=(o,t,n,l)=>{for(var c=l>1?void 0:l?Kz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&jz(t,n,c),c};const U3=ze("header");exports.Header=class extends We{render(){return G`<slot></slot>`}};exports.Header.styles=le`
4365
4389
  :host {
4366
4390
  display: block;
4367
4391
  padding: var(--brz-spacing-5);
4368
4392
  margin-bottom: var(--brz-spacing-4);
4369
4393
  }
4370
- `;exports.Header=Kz([ee(U3)],exports.Header);var Yz=Object.defineProperty,Xz=Object.getOwnPropertyDescriptor,Jz=(o,t,n,l)=>{for(var c=l>1?void 0:l?Xz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Yz(t,n,c),c};const G3=ze("header-footer-page");exports.HeaderFooterPage=class extends We{render(){return G`
4394
+ `;exports.Header=Yz([ee(U3)],exports.Header);var Xz=Object.defineProperty,Jz=Object.getOwnPropertyDescriptor,Qz=(o,t,n,l)=>{for(var c=l>1?void 0:l?Jz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Xz(t,n,c),c};const G3=ze("header-footer-page");exports.HeaderFooterPage=class extends We{render(){return G`
4371
4395
  <div id="container">
4372
4396
  <div id="header"><slot name="header"></slot></div>
4373
4397
  <div id="body"><slot></slot></div>
@@ -4391,7 +4415,7 @@ ${this.value}</textarea
4391
4415
  flex: 1 1;
4392
4416
  overflow-y: auto;
4393
4417
  }
4394
- `;exports.HeaderFooterPage=Jz([ee(G3)],exports.HeaderFooterPage);var Qz=Object.defineProperty,eL=Object.getOwnPropertyDescriptor,tL=(o,t,n,l)=>{for(var c=l>1?void 0:l?eL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Qz(t,n,c),c};const q3=ze("responsive-columns");exports.ResponsiveColumns=class extends We{render(){return G`<slot></slot>`}};exports.ResponsiveColumns.styles=le`
4418
+ `;exports.HeaderFooterPage=Qz([ee(G3)],exports.HeaderFooterPage);var eL=Object.defineProperty,tL=Object.getOwnPropertyDescriptor,rL=(o,t,n,l)=>{for(var c=l>1?void 0:l?tL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&eL(t,n,c),c};const q3=ze("responsive-columns");exports.ResponsiveColumns=class extends We{render(){return G`<slot></slot>`}};exports.ResponsiveColumns.styles=le`
4395
4419
  :host {
4396
4420
  display: flex;
4397
4421
  flex-direction: row;
@@ -4423,7 +4447,7 @@ ${this.value}</textarea
4423
4447
  margin-bottom: var(--brz-padding, var(--brz-spacing-8));
4424
4448
  }
4425
4449
  }
4426
- `;exports.ResponsiveColumns=tL([ee(q3)],exports.ResponsiveColumns);var rL=Object.defineProperty,nL=Object.getOwnPropertyDescriptor,iL=(o,t,n,l)=>{for(var c=l>1?void 0:l?nL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&rL(t,n,c),c};const j3=ze("footer");exports.Footer=class extends We{render(){return G`<div class="container">
4450
+ `;exports.ResponsiveColumns=rL([ee(q3)],exports.ResponsiveColumns);var nL=Object.defineProperty,iL=Object.getOwnPropertyDescriptor,oL=(o,t,n,l)=>{for(var c=l>1?void 0:l?iL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&nL(t,n,c),c};const j3=ze("footer");exports.Footer=class extends We{render(){return G`<div class="container">
4427
4451
  <slot name="left"></slot>
4428
4452
  <slot name="middle"></slot>
4429
4453
  <slot name="right"></slot>
@@ -4434,7 +4458,7 @@ ${this.value}</textarea
4434
4458
  justify-content: space-between;
4435
4459
  padding: var(--brz-spacing-3) var(--brz-spacing-4);
4436
4460
  }
4437
- `;exports.Footer=iL([ee(j3)],exports.Footer);var oL=Object.defineProperty,aL=Object.getOwnPropertyDescriptor,Od=(o,t,n,l)=>{for(var c=l>1?void 0:l?aL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&oL(t,n,c),c};const K3=ze("page-header");exports.PageHeader=class extends We{constructor(){super(...arguments),this.hasTitle=!1}updated(t){var n;super.updated(t),this.hasTitle=!!((n=this.slottedTitle)!=null&&n.length||this.pageTitle)}render(){return G`
4461
+ `;exports.Footer=oL([ee(j3)],exports.Footer);var aL=Object.defineProperty,sL=Object.getOwnPropertyDescriptor,Od=(o,t,n,l)=>{for(var c=l>1?void 0:l?sL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&aL(t,n,c),c};const K3=ze("page-header");exports.PageHeader=class extends We{constructor(){super(...arguments),this.hasTitle=!1}updated(t){var n;super.updated(t),this.hasTitle=!!((n=this.slottedTitle)!=null&&n.length||this.pageTitle)}render(){return G`
4438
4462
  <header>
4439
4463
  <slot name="decorator"></slot>
4440
4464
 
@@ -4494,7 +4518,7 @@ ${this.value}</textarea
4494
4518
  brz-heading.hidden {
4495
4519
  display: none;
4496
4520
  }
4497
- `;Od([R({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Od([Re()],exports.PageHeader.prototype,"hasTitle",2);Od([Oh({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Od([ee(K3)],exports.PageHeader);var sL=Object.defineProperty,lL=Object.getOwnPropertyDescriptor,Ed=(o,t,n,l)=>{for(var c=l>1?void 0:l?lL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&sL(t,n,c),c};const Y3=ze("grid"),uL=Gu.map(o=>le`
4521
+ `;Od([N({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Od([Re()],exports.PageHeader.prototype,"hasTitle",2);Od([Oh({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Od([ee(K3)],exports.PageHeader);var lL=Object.defineProperty,uL=Object.getOwnPropertyDescriptor,Ed=(o,t,n,l)=>{for(var c=l>1?void 0:l?uL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&lL(t,n,c),c};const Y3=ze("grid"),cL=Gu.map(o=>le`
4498
4522
  :host([spacing='${o}']),
4499
4523
  :host([col-spacing='${o}']) {
4500
4524
  --brz-grid-column-gap: var(--brz-spacing-${o});
@@ -4516,7 +4540,7 @@ ${this.value}</textarea
4516
4540
  column-gap: var(--brz-grid-column-gap);
4517
4541
  row-gap: var(--brz-grid-row-gap);
4518
4542
  }
4519
- `,...uL];Ed([R({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);Ed([R({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);Ed([R({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=Ed([ee(Y3)],exports.Grid);const od={lg:960,md:640},cL=le`
4543
+ `,...cL];Ed([N({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);Ed([N({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);Ed([N({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=Ed([ee(Y3)],exports.Grid);const od={lg:960,md:640},dL=le`
4520
4544
  --brz-breakpoint-lg: ${od.lg}px;
4521
4545
  --brz-breakpoint-md: ${od.md}px;
4522
4546
  `,rh=o=>(t,...n)=>le`
@@ -4527,23 +4551,23 @@ ${this.value}</textarea
4527
4551
  @media (min-width: ${od[o]}px) {
4528
4552
  ${le(t,...n)}
4529
4553
  }
4530
- `,ad={breakpointUp:c5,breakpointDown:rh,sm:rh("md"),md:rh("lg"),lg:c5("lg")};var dL=Object.defineProperty,fL=Object.getOwnPropertyDescriptor,Id=(o,t,n,l)=>{for(var c=l>1?void 0:l?fL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&dL(t,n,c),c};const X3=ze("grid-item"),Ad=[1,2,3,4,5,6,7,8,9,10,11,12],hL=Ad.map(o=>le`
4554
+ `,ad={breakpointUp:c5,breakpointDown:rh,sm:rh("md"),md:rh("lg"),lg:c5("lg")};var fL=Object.defineProperty,hL=Object.getOwnPropertyDescriptor,Id=(o,t,n,l)=>{for(var c=l>1?void 0:l?hL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&fL(t,n,c),c};const X3=ze("grid-item"),Ad=[1,2,3,4,5,6,7,8,9,10,11,12],pL=Ad.map(o=>le`
4531
4555
  :host([cols='${o}']) {
4532
4556
  grid-column: auto / span ${o};
4533
4557
  }
4534
- `),pL=Ad.map(o=>le`
4558
+ `),gL=Ad.map(o=>le`
4535
4559
  ${ad.md`
4536
4560
  :host([md-cols='${o}']) {
4537
4561
  grid-column: auto / span ${o};
4538
4562
  }
4539
4563
  `}
4540
- `),gL=Ad.map(o=>le`
4564
+ `),vL=Ad.map(o=>le`
4541
4565
  ${ad.sm`
4542
4566
  :host([sm-cols='${o}']) {
4543
4567
  grid-column: auto / span ${o};
4544
4568
  }
4545
4569
  `}
4546
- `),vL=le`
4570
+ `),bL=le`
4547
4571
  ${ad.md`
4548
4572
  :host([cols='9']:not([md-cols])),
4549
4573
  :host([cols='8']:not([md-cols])),
@@ -4563,7 +4587,7 @@ ${this.value}</textarea
4563
4587
  :host {
4564
4588
  grid-column: auto / span 12;
4565
4589
  }
4566
- `,hL,vL,pL,gL];Id([R({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);Id([R({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);Id([R({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=Id([ee(X3)],exports.GridItem);const bL=le`
4590
+ `,pL,bL,gL,vL];Id([N({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);Id([N({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);Id([N({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=Id([ee(X3)],exports.GridItem);const mL=le`
4567
4591
  :host {
4568
4592
  --brz-border-radius-default: 2px;
4569
4593
  --brz-border-radius-medium: 3px;
@@ -4571,7 +4595,7 @@ ${this.value}</textarea
4571
4595
 
4572
4596
  --brz-border-divider: 1px solid var(--brz-color-neutral-400);
4573
4597
  }
4574
- `,mL=le`
4598
+ `,yL=le`
4575
4599
  :host {
4576
4600
  --brz-color-neutral-900: #1b263a;
4577
4601
  --brz-color-neutral-850: #223049;
@@ -4764,7 +4788,7 @@ ${this.value}</textarea
4764
4788
 
4765
4789
  --brz-color-text-on-color: var(--brz-color-white);
4766
4790
  }
4767
- `,yL=le`
4791
+ `,CL=le`
4768
4792
  :host {
4769
4793
  --sp-border-radius-default: var(--brz-border-radius-default);
4770
4794
  --sp-border-radius-medium: var(--brz-border-radius-medium)
@@ -5029,14 +5053,14 @@ ${this.value}</textarea
5029
5053
  --sp-z-index-dropdown: var(--brz-z-index-dropdown);
5030
5054
  --sp-z-index-tooltip: var(--brz-z-index-tooltip);
5031
5055
  }
5032
- `,CL=le`
5056
+ `,wL=le`
5033
5057
  :host {
5034
5058
  // TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
5035
5059
  --brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
5036
5060
  --brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
5037
5061
  --brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
5038
5062
  }
5039
- `,wL=le`
5063
+ `,xL=le`
5040
5064
  :host {
5041
5065
  --brz-font-family-brand: Inter, sofiapro;
5042
5066
  --brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
@@ -5080,14 +5104,14 @@ ${this.value}</textarea
5080
5104
  --brz-text-block-max-width: 44rem;
5081
5105
  --brz-list-block-max-width: 40rem;
5082
5106
  }
5083
- `,xL=le`
5107
+ `,zL=le`
5084
5108
  :host {
5085
5109
  --brz-z-index-navigation: 1000;
5086
5110
  --brz-z-index-dialog: 1100;
5087
5111
  --brz-z-index-dropdown: 1200;
5088
5112
  --brz-z-index-tooltip: 1300;
5089
5113
  }
5090
- `;var zL=Object.defineProperty,LL=Object.getOwnPropertyDescriptor,SL=(o,t,n,l)=>{for(var c=l>1?void 0:l?LL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&zL(t,n,c),c};const J3=ze("global-styles");exports.GlobalStyles=class extends We{render(){return G`<slot></slot>`}};exports.GlobalStyles.styles=[mL,n6,wL,bL,CL,xL,cL,yL,le`
5114
+ `;var LL=Object.defineProperty,SL=Object.getOwnPropertyDescriptor,ML=(o,t,n,l)=>{for(var c=l>1?void 0:l?SL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&LL(t,n,c),c};const J3=ze("global-styles");exports.GlobalStyles=class extends We{render(){return G`<slot></slot>`}};exports.GlobalStyles.styles=[yL,n6,xL,mL,wL,zL,dL,CL,le`
5091
5115
  :host {
5092
5116
  --brz-outline-color: var(--brz-color-primary-600);
5093
5117
  --brz-outline-style: solid;
@@ -5105,7 +5129,7 @@ ${this.value}</textarea
5105
5129
  font-weight: var(--brz-font-weight-normal);
5106
5130
  color: var(--brz-color-text);
5107
5131
  }
5108
- `];exports.GlobalStyles=SL([ee(J3)],exports.GlobalStyles);const Q3=ze("card"),e7=ze("card-header"),t7=ze("card-footer"),r7=ze("card-section-header"),ML=le`
5132
+ `];exports.GlobalStyles=ML([ee(J3)],exports.GlobalStyles);const Q3=ze("card"),e7=ze("card-header"),t7=ze("card-footer"),r7=ze("card-section-header"),_L=le`
5109
5133
  :host {
5110
5134
  --brz-card-background-color: var(--brz-color-white);
5111
5135
  --brz-card-color: var(--brz-color-text);
@@ -5143,7 +5167,7 @@ ${this.value}</textarea
5143
5167
 
5144
5168
  padding-bottom: calc(2 * var(--brz-card-body-balancer));
5145
5169
  }
5146
- `,_L=o=>le`
5170
+ `,TL=o=>le`
5147
5171
  :host([padding='${o}']) {
5148
5172
  --brz-card-padding: var(--brz-spacing-${o});
5149
5173
  }
@@ -5151,7 +5175,7 @@ ${this.value}</textarea
5151
5175
  :host([body-padding='${o}']) {
5152
5176
  --brz-card-body-padding: var(--brz-spacing-${o});
5153
5177
  }
5154
- `,TL=Gu.map(_L),kL=le`
5178
+ `,kL=Gu.map(TL),OL=le`
5155
5179
  :host {
5156
5180
  --brz-card-header-color: var(--brz-card-color, var(--brz-color-text));
5157
5181
  --brz-card-header-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
@@ -5199,7 +5223,7 @@ ${this.value}</textarea
5199
5223
  align-self: flex-start;
5200
5224
  flex-shrink: 0;
5201
5225
  }
5202
- `,OL=le`
5226
+ `,EL=le`
5203
5227
  :host {
5204
5228
  --brz-card-footer-color: var(--brz-card-color, var(--brz-color-text));
5205
5229
  --brz-card-footer-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
@@ -5227,7 +5251,7 @@ ${this.value}</textarea
5227
5251
  align-self: flex-start;
5228
5252
  flex-shrink: 0;
5229
5253
  }
5230
- `;var EL=Object.defineProperty,IL=Object.getOwnPropertyDescriptor,AL=(o,t,n,l)=>{for(var c=l>1?void 0:l?IL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&EL(t,n,c),c};exports.CardHeader=class extends We{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return G`
5254
+ `;var IL=Object.defineProperty,AL=Object.getOwnPropertyDescriptor,$L=(o,t,n,l)=>{for(var c=l>1?void 0:l?AL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&IL(t,n,c),c};exports.CardHeader=class extends We{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return G`
5231
5255
  <div class="title">
5232
5256
  <slot></slot>
5233
5257
  </div>
@@ -5235,9 +5259,9 @@ ${this.value}</textarea
5235
5259
  <div class="aside">
5236
5260
  <slot name="aside"></slot>
5237
5261
  </div>
5238
- `}render(){return G` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[kL];exports.CardHeader=AL([Wu(e7)],exports.CardHeader);var $L=Object.defineProperty,PL=Object.getOwnPropertyDescriptor,n7=(o,t,n,l)=>{for(var c=l>1?void 0:l?PL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&$L(t,n,c),c};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return G`
5262
+ `}render(){return G` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[OL];exports.CardHeader=$L([Wu(e7)],exports.CardHeader);var PL=Object.defineProperty,DL=Object.getOwnPropertyDescriptor,n7=(o,t,n,l)=>{for(var c=l>1?void 0:l?DL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&PL(t,n,c),c};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return G`
5239
5263
  <div class="card-section-header">${this.contentTemplate}</div>
5240
- `}};n7([R({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=n7([Wu(r7)],exports.CardSectionHeader);var DL=Object.defineProperty,NL=Object.getOwnPropertyDescriptor,RL=(o,t,n,l)=>{for(var c=l>1?void 0:l?NL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&DL(t,n,c),c};exports.CardFooter=class extends We{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return G`
5264
+ `}};n7([N({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=n7([Wu(r7)],exports.CardSectionHeader);var NL=Object.defineProperty,RL=Object.getOwnPropertyDescriptor,HL=(o,t,n,l)=>{for(var c=l>1?void 0:l?RL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&NL(t,n,c),c};exports.CardFooter=class extends We{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return G`
5241
5265
  <footer class="card-footer">
5242
5266
  <div>
5243
5267
  <slot></slot>
@@ -5247,7 +5271,7 @@ ${this.value}</textarea
5247
5271
  <slot name="aside"></slot>
5248
5272
  </div>
5249
5273
  </footer>
5250
- `}};exports.CardFooter.styles=[OL];exports.CardFooter=RL([Wu(t7)],exports.CardFooter);var HL=Object.defineProperty,FL=Object.getOwnPropertyDescriptor,rc=(o,t,n,l)=>{for(var c=l>1?void 0:l?FL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&HL(t,n,c),c};exports.Card=class extends v1{constructor(){super(...arguments),this.hasHeader=!1}updated(t){super.updated(t),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return G`
5274
+ `}};exports.CardFooter.styles=[EL];exports.CardFooter=HL([Wu(t7)],exports.CardFooter);var FL=Object.defineProperty,BL=Object.getOwnPropertyDescriptor,rc=(o,t,n,l)=>{for(var c=l>1?void 0:l?BL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&FL(t,n,c),c};exports.Card=class extends v1{constructor(){super(...arguments),this.hasHeader=!1}updated(t){super.updated(t),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return G`
5251
5275
  <article class="card" part="card">
5252
5276
  <slot name="header"></slot>
5253
5277
 
@@ -5259,7 +5283,7 @@ ${this.value}</textarea
5259
5283
 
5260
5284
  <slot name="footer"></slot>
5261
5285
  </article>
5262
- `}};var v5;exports.Card.styles=[(v5=v1.styles)!=null?v5:[],ML,TL];rc([R({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);rc([R({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);rc([Re()],exports.Card.prototype,"hasHeader",2);rc([Jo({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=rc([Wu(Q3)],exports.Card);var BL=Object.defineProperty,VL=Object.getOwnPropertyDescriptor,d2=(o,t,n,l)=>{for(var c=l>1?void 0:l?VL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&BL(t,n,c),c};const i7=ze("paper");exports.Paper=class extends We{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return G` <div class="container"><slot></slot></div> `}};exports.Paper.styles=le`
5286
+ `}};var v5;exports.Card.styles=[(v5=v1.styles)!=null?v5:[],_L,kL];rc([N({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);rc([N({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);rc([Re()],exports.Card.prototype,"hasHeader",2);rc([Jo({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=rc([Wu(Q3)],exports.Card);var VL=Object.defineProperty,WL=Object.getOwnPropertyDescriptor,d2=(o,t,n,l)=>{for(var c=l>1?void 0:l?WL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&VL(t,n,c),c};const i7=ze("paper");exports.Paper=class extends We{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return G` <div class="container"><slot></slot></div> `}};exports.Paper.styles=le`
5263
5287
  :host {
5264
5288
  display: block;
5265
5289
  position: relative;
@@ -5283,4 +5307,4 @@ ${this.value}</textarea
5283
5307
  :host([has-border]) .container {
5284
5308
  border: 1px solid var(--brz-color-neutral-300);
5285
5309
  }
5286
- `;d2([R({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);d2([R({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=d2([ee(i7)],exports.Paper);var WL=Object.defineProperty,ZL=Object.getOwnPropertyDescriptor,He=(o,t,n,l)=>{for(var c=l>1?void 0:l?ZL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&WL(t,n,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=He([ee("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=He([ee("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=He([ee("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=He([ee("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=He([ee("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=He([ee("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=He([ee("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=He([ee("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=He([ee("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=He([ee("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=He([ee("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=He([ee("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=He([ee("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=He([ee("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=He([ee("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=He([ee("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=He([ee("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=He([ee("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=He([ee("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=He([ee("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=He([ee("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=He([ee("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=He([ee("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=He([ee("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=He([ee("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=He([ee("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=He([ee("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=He([ee("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=He([ee("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=He([ee("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=He([ee("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=He([ee("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=He([ee("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=He([ee("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=He([ee("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=He([ee("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=He([ee("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=He([ee("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=He([ee("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=He([ee("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=He([ee("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=He([ee("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=He([ee("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=He([ee("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=He([ee("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=He([ee("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=He([ee("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=He([ee("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends K0{};exports.LegacyInputGuide=He([ee("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=He([ee("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=He([ee("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=He([ee("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=He([ee("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=He([ee("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=He([ee("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=He([ee("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=He([ee("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=He([ee("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=He([ee("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=He([ee("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=He([ee("sp-labeled-input")],exports.LegacyLabeledInput);const Lh="a",o7="ccc d LLL",a7="ccc LLL d",s7="ZZZZ",l7=ze("date-time-range");var UL=Object.defineProperty,GL=Object.getOwnPropertyDescriptor,x1=(o,t,n,l)=>{for(var c=l>1?void 0:l?GL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&UL(t,n,c),c};const d5=(o,t)=>{const{dateFormat:n,year:l,minutes:c,ampm:g,timezone:h=""}=t,z=`${n?`${n}${l}, `:""}${c}${g}${h}`;return o.toFormat(z)},f5=o=>o.minute===0?"h":"h:mm",h5=(o,t)=>o.year!==t.year?" yyyy":"";exports.DateTimeRange=class extends We{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";const t=s5(at.fromISO(this.start),this.timezone),n=s5(at.fromISO(this.end),this.timezone),l=this.dateFormat==="DayMonthYear"?o7:a7,c={minutes:f5(t),year:h5(t,n),dateFormat:l,ampm:t.hasSame(n,"day")&&Vx(t,n)?"":Lh},g={minutes:f5(n),year:h5(n,t),dateFormat:t.hasSame(n,"day")?"":l,ampm:Lh,timezone:this.hideTimezone?"":` (${s7})`},h=l5(d5(t,c)),w=l5(d5(n,g));return`${h} - ${w}`}render(){return G`<span>${this.generateContent()}</span>`}};x1([R({type:String})],exports.DateTimeRange.prototype,"start",2);x1([R({type:String})],exports.DateTimeRange.prototype,"end",2);x1([R({type:String})],exports.DateTimeRange.prototype,"timezone",2);x1([R({attribute:"hide-timezone",type:Boolean})],exports.DateTimeRange.prototype,"hideTimezone",2);x1([R({attribute:"date-format",type:String})],exports.DateTimeRange.prototype,"dateFormat",2);exports.DateTimeRange=x1([ee(l7)],exports.DateTimeRange);exports.ACTION_BAR=R6;exports.ALERT=V3;exports.AM_PM_FORMAT=Lh;exports.AVATAR=e6;exports.AVATAR_GROUP=t6;exports.AlertEvent=W3;exports.AvatarSize=q0;exports.AvatarTheme=r6;exports.BADGE=D3;exports.BADGE_CHARACTER_LIMIT_DEFAULT=R3;exports.BADGE_NUMBER_LIMIT_DEFAULT=H3;exports.BASIC_PAGINATION=l2;exports.BUTTON=Zh;exports.BUTTON_GROUP=f6;exports.BadgeTheme=N3;exports.BasicPaginationEvent=F3;exports.ButtonEvent=h6;exports.CARD=Q3;exports.CARD_FOOTER=t7;exports.CARD_HEADER=e7;exports.CARD_SECTION_HEADER=r7;exports.COLUMN=u6;exports.COMBO_BOX=T6;exports.COMBO_BOX_OPTION=k6;exports.CONFIRMATION_DIALOG=W6;exports.ConfirmationDialogCancel=Z6;exports.ConfirmationDialogConfirm=U6;exports.DATE_TIME_RANGE=l7;exports.DAY_MONTH_YEAR_FORMAT=o7;exports.DROPDOWN_BUTTON=q6;exports.DROPDOWN_MENU=p6;exports.DeleteLozengeEvent=a4;exports.FADE_IN_OUT=N5;exports.FOOTER=j3;exports.GLOBAL_STYLES=J3;exports.GRID=Y3;exports.GRID_ITEM=X3;exports.HEADER=U3;exports.HEADER_FOOTER_PAGE=G3;exports.HEADING=v3;exports.ICON=o6;exports.ILLUSTRATION=Z3;exports.INLINE_EDIT_CONTROLS=m3;exports.INLINE_EDIT_FIELD=b3;exports.INLINE_EDIT_GROUP=n2;exports.INPUT_CHECKBOX=j6;exports.INPUT_CODE=n4;exports.INPUT_ERROR=C6;exports.INPUT_LABEL=x6;exports.INPUT_MULTISELECT=s4;exports.INPUT_NUMBER=X6;exports.INPUT_RADIO_GROUP=e4;exports.INPUT_RADIO_OPTION=t4;exports.INPUT_SELECT=i4;exports.INPUT_TEXT=K6;exports.INPUT_TEXTAREA=Y6;exports.INPUT_TIME=u3;exports.InlineEditControlsCancelEvent=C3;exports.InlineEditControlsSaveEvent=w3;exports.InlineEditFieldBroadcastEvent=x3;exports.InlineEditFieldModeChangeEvent=z3;exports.InlineEditGroupModeChangeEvent=L3;exports.InputBase=$n;exports.InputSelectBase=zr;exports.InputSelectQueryChangeEvent=jh;exports.LABELED_INPUT=w6;exports.LINK=a6;exports.LINK_BUTTON=s6;exports.LOADING_SPINNER=d6;exports.LOZENGE=o4;exports.MENU=L6;exports.MENU_ITEM=Y0;exports.MODAL=D6;exports.MODAL_BODY=F6;exports.MODAL_FOOTER=B6;exports.MODAL_HEADER=H6;exports.MONTH_DAY_YEAR_FORMAT=a7;exports.MenuBlurEvent=S6;exports.MenuItemSelectEvent=z6;exports.MenuSelectEvent=M6;exports.ModalCloseEvent=Kh;exports.PAGE_HEADER=K3;exports.PAGINATION=u2;exports.PAPER=i7;exports.POPOVER=Rh;exports.POPOVER_LISTENABLE_EVENT_TYPES=G0;exports.POPOVER_ROLES=Hh;exports.POPOVER_TRIGGERS=Y5;exports.PURE_POPOVER=K5;exports.PaginationEvent=B3;exports.PopoverEvent=X5;exports.RECORD_FIELD=m6;exports.RECORD_FIELD_LABEL=y6;exports.RECORD_ROW=k3;exports.RECORD_ROW_LABEL=O3;exports.RESPONSIVE_COLUMNS=q3;exports.ROW=l6;exports.SEARCH_MESSAGE_ID=Fu;exports.SELECT_ALL_ID=$i;exports.SIDE_NAVIGATION=_3;exports.SIDE_NAVIGATION_ITEM=M3;exports.SPACING_BASE=Fh;exports.SPLIT_ROW=N6;exports.TAB=A3;exports.TABS=P3;exports.TAB_BAR=$3;exports.TAB_PANEL=E3;exports.TIMEZONE_FORMAT=s7;exports.TIME_FORMAT=c3;exports.TIME_REGEX_12H=h3;exports.TIME_REGEX_24H=f3;exports.TIME_REGEX_LOOSE=d3;exports.TOGGLE_SWITCH=g3;exports.TOOLTIP=J5;exports.TabDeselectedEvent=I3;exports.TabSelectedEvent=Ld;exports.TooltipTheme=Q5;exports.VIRTUAL_LIST=Gh;exports.VirtualListUpdateEvent=b6;exports.alertTypes=Wz;exports.buttonTypes=km;exports.click=U0;exports.columnSpans=Ad;exports.dropdownMenuSizes=Am;exports.focus=Bs;exports.hover=fh;exports.iconNames=pm;exports.icons=Bh;exports.illustrationNames=Zz;exports.illustrations=c2;exports.inlineEditControlsModes=y3;exports.inlineEditModes=tz;exports.inputSizes=Um;exports.labelPositions=Gm;exports.linkButtonElementTypes=ym;exports.linkTypes=xm;exports.lozengeColors=RC;exports.lozengeSizes=FC;exports.lozengeThemes=HC;exports.modalSizes=Jy;exports.radioLayouts=xC;exports.resetLinkStyle=Wh;exports.spacing=n6;exports.spacingLevels=Gu;exports.syntaxes=IC;exports.timeSuffixes=Gx;exports.transformIcon=i6;
5310
+ `;d2([N({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);d2([N({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=d2([ee(i7)],exports.Paper);var ZL=Object.defineProperty,UL=Object.getOwnPropertyDescriptor,He=(o,t,n,l)=>{for(var c=l>1?void 0:l?UL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ZL(t,n,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=He([ee("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=He([ee("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=He([ee("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=He([ee("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=He([ee("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=He([ee("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=He([ee("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=He([ee("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=He([ee("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=He([ee("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=He([ee("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=He([ee("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=He([ee("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=He([ee("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=He([ee("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=He([ee("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=He([ee("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=He([ee("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=He([ee("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=He([ee("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=He([ee("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=He([ee("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=He([ee("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=He([ee("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=He([ee("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=He([ee("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=He([ee("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=He([ee("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=He([ee("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=He([ee("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=He([ee("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=He([ee("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=He([ee("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=He([ee("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=He([ee("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=He([ee("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=He([ee("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=He([ee("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=He([ee("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=He([ee("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=He([ee("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=He([ee("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=He([ee("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=He([ee("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=He([ee("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=He([ee("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=He([ee("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=He([ee("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends K0{};exports.LegacyInputGuide=He([ee("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=He([ee("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=He([ee("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=He([ee("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=He([ee("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=He([ee("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=He([ee("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=He([ee("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=He([ee("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=He([ee("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=He([ee("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=He([ee("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=He([ee("sp-labeled-input")],exports.LegacyLabeledInput);const Lh="a",o7="ccc d LLL",a7="ccc LLL d",s7="ZZZZ",l7=ze("date-time-range");var GL=Object.defineProperty,qL=Object.getOwnPropertyDescriptor,x1=(o,t,n,l)=>{for(var c=l>1?void 0:l?qL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&GL(t,n,c),c};const d5=(o,t)=>{const{dateFormat:n,year:l,minutes:c,ampm:g,timezone:h=""}=t,z=`${n?`${n}${l}, `:""}${c}${g}${h}`;return o.toFormat(z)},f5=o=>o.minute===0?"h":"h:mm",h5=(o,t)=>o.year!==t.year?" yyyy":"";exports.DateTimeRange=class extends We{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";const t=s5(at.fromISO(this.start),this.timezone),n=s5(at.fromISO(this.end),this.timezone),l=this.dateFormat==="DayMonthYear"?o7:a7,c={minutes:f5(t),year:h5(t,n),dateFormat:l,ampm:t.hasSame(n,"day")&&Wx(t,n)?"":Lh},g={minutes:f5(n),year:h5(n,t),dateFormat:t.hasSame(n,"day")?"":l,ampm:Lh,timezone:this.hideTimezone?"":` (${s7})`},h=l5(d5(t,c)),w=l5(d5(n,g));return`${h} - ${w}`}render(){return G`<span>${this.generateContent()}</span>`}};x1([N({type:String})],exports.DateTimeRange.prototype,"start",2);x1([N({type:String})],exports.DateTimeRange.prototype,"end",2);x1([N({type:String})],exports.DateTimeRange.prototype,"timezone",2);x1([N({attribute:"hide-timezone",type:Boolean})],exports.DateTimeRange.prototype,"hideTimezone",2);x1([N({attribute:"date-format",type:String})],exports.DateTimeRange.prototype,"dateFormat",2);exports.DateTimeRange=x1([ee(l7)],exports.DateTimeRange);exports.ACTION_BAR=R6;exports.ALERT=V3;exports.AM_PM_FORMAT=Lh;exports.AVATAR=e6;exports.AVATAR_GROUP=t6;exports.AlertEvent=W3;exports.AvatarSize=q0;exports.AvatarTheme=r6;exports.BADGE=D3;exports.BADGE_CHARACTER_LIMIT_DEFAULT=R3;exports.BADGE_NUMBER_LIMIT_DEFAULT=H3;exports.BASIC_PAGINATION=l2;exports.BUTTON=Zh;exports.BUTTON_GROUP=f6;exports.BadgeTheme=N3;exports.BasicPaginationEvent=F3;exports.ButtonEvent=h6;exports.CARD=Q3;exports.CARD_FOOTER=t7;exports.CARD_HEADER=e7;exports.CARD_SECTION_HEADER=r7;exports.COLUMN=u6;exports.COMBO_BOX=T6;exports.COMBO_BOX_OPTION=k6;exports.CONFIRMATION_DIALOG=W6;exports.ConfirmationDialogCancel=Z6;exports.ConfirmationDialogConfirm=U6;exports.DATE_TIME_RANGE=l7;exports.DAY_MONTH_YEAR_FORMAT=o7;exports.DROPDOWN_BUTTON=q6;exports.DROPDOWN_MENU=p6;exports.DeleteLozengeEvent=a4;exports.FADE_IN_OUT=N5;exports.FOOTER=j3;exports.GLOBAL_STYLES=J3;exports.GRID=Y3;exports.GRID_ITEM=X3;exports.HEADER=U3;exports.HEADER_FOOTER_PAGE=G3;exports.HEADING=v3;exports.ICON=o6;exports.ILLUSTRATION=Z3;exports.INLINE_EDIT_CONTROLS=m3;exports.INLINE_EDIT_FIELD=b3;exports.INLINE_EDIT_GROUP=n2;exports.INPUT_CHECKBOX=j6;exports.INPUT_CODE=n4;exports.INPUT_ERROR=C6;exports.INPUT_LABEL=x6;exports.INPUT_MULTISELECT=s4;exports.INPUT_NUMBER=X6;exports.INPUT_RADIO_GROUP=e4;exports.INPUT_RADIO_OPTION=t4;exports.INPUT_SELECT=i4;exports.INPUT_TEXT=K6;exports.INPUT_TEXTAREA=Y6;exports.INPUT_TIME=u3;exports.InlineEditControlsCancelEvent=C3;exports.InlineEditControlsSaveEvent=w3;exports.InlineEditFieldBroadcastEvent=x3;exports.InlineEditFieldModeChangeEvent=z3;exports.InlineEditGroupModeChangeEvent=L3;exports.InputBase=$n;exports.InputSelectBase=zr;exports.InputSelectQueryChangeEvent=jh;exports.LABELED_INPUT=w6;exports.LINK=a6;exports.LINK_BUTTON=s6;exports.LOADING_SPINNER=d6;exports.LOZENGE=o4;exports.MENU=L6;exports.MENU_ITEM=Y0;exports.MODAL=D6;exports.MODAL_BODY=F6;exports.MODAL_FOOTER=B6;exports.MODAL_HEADER=H6;exports.MONTH_DAY_YEAR_FORMAT=a7;exports.MenuBlurEvent=S6;exports.MenuItemSelectEvent=z6;exports.MenuSelectEvent=M6;exports.ModalCloseEvent=Kh;exports.PAGE_HEADER=K3;exports.PAGINATION=u2;exports.PAPER=i7;exports.POPOVER=Rh;exports.POPOVER_LISTENABLE_EVENT_TYPES=G0;exports.POPOVER_ROLES=Hh;exports.POPOVER_TRIGGERS=Y5;exports.PURE_POPOVER=K5;exports.PaginationEvent=B3;exports.PopoverEvent=X5;exports.RECORD_FIELD=m6;exports.RECORD_FIELD_LABEL=y6;exports.RECORD_ROW=k3;exports.RECORD_ROW_LABEL=O3;exports.RESPONSIVE_COLUMNS=q3;exports.ROW=l6;exports.SEARCH_MESSAGE_ID=Fu;exports.SELECT_ALL_ID=$i;exports.SIDE_NAVIGATION=_3;exports.SIDE_NAVIGATION_ITEM=M3;exports.SPACING_BASE=Fh;exports.SPLIT_ROW=N6;exports.TAB=A3;exports.TABS=P3;exports.TAB_BAR=$3;exports.TAB_PANEL=E3;exports.TIMEZONE_FORMAT=s7;exports.TIME_FORMAT=c3;exports.TIME_REGEX_12H=h3;exports.TIME_REGEX_24H=f3;exports.TIME_REGEX_LOOSE=d3;exports.TOGGLE_SWITCH=g3;exports.TOOLTIP=J5;exports.TabDeselectedEvent=I3;exports.TabSelectedEvent=Ld;exports.TooltipTheme=Q5;exports.VIRTUAL_LIST=Gh;exports.VirtualListUpdateEvent=b6;exports.alertTypes=Zz;exports.buttonTypes=km;exports.click=U0;exports.columnSpans=Ad;exports.dropdownMenuSizes=$m;exports.focus=Bs;exports.hover=fh;exports.htmlButtonTypes=Om;exports.iconNames=pm;exports.icons=Bh;exports.illustrationNames=Uz;exports.illustrations=c2;exports.inlineEditControlsModes=y3;exports.inlineEditModes=rz;exports.inputSizes=Gm;exports.labelPositions=qm;exports.linkButtonElementTypes=ym;exports.linkTypes=xm;exports.lozengeColors=HC;exports.lozengeSizes=BC;exports.lozengeThemes=FC;exports.modalSizes=Qy;exports.radioLayouts=zC;exports.resetLinkStyle=Wh;exports.spacing=n6;exports.spacingLevels=Gu;exports.syntaxes=AC;exports.timeSuffixes=qx;exports.transformIcon=i6;