diff --git a/assets/packs/data_table/App.js b/assets/packs/data_table/App.js index af3066e1..d8aafec3 100644 --- a/assets/packs/data_table/App.js +++ b/assets/packs/data_table/App.js @@ -120,7 +120,6 @@ export function App({ ctx, data }) { const [columns, setColumns] = useState(columnsInitData); const [colSizes, setColSizes] = useState(columnsInitSize); const [menu, setMenu] = useState(null); - const [showMenu, setShowMenu] = useState(false); const [selection, setSelection] = useState(emptySelection); const [rowMarkerOffset, setRowMarkerOffset] = useState(0); const [hoverRows, setHoverRows] = useState(null); @@ -137,14 +136,8 @@ export function App({ ctx, data }) { const headerItems = hasSummaries && hasEntries ? Math.max(...summariesItems) : 0; const headerHeight = headerTitleSize + headerItems * 22; - const menuHeight = hasSorting ? 140 : 70; const fixedHeight = 440 + headerHeight; - const minRowsToFitMenu = hasSorting ? 3 : 2; - const autoHeight = - totalRows && totalRows < minRowsToFitMenu && menu - ? menuHeight + headerHeight - : null; - const height = totalRows >= 10 && infiniteScroll ? fixedHeight : autoHeight; + const height = totalRows >= 10 && infiniteScroll ? fixedHeight : null; const rowMarkerStartIndex = (content.page - 1) * content.limit + 1; const minColumnWidth = hasSummaries ? 150 : 50; const maxColumnWidth = 1200; @@ -331,7 +324,7 @@ export function App({ ctx, data }) { }; const { layerProps, renderLayer } = useLayer({ - isOpen: showMenu, + isOpen: !!menu, auto: true, placement: "bottom-end", possiblePlacements: ["bottom-end", "bottom-center", "bottom-start"], @@ -447,11 +440,10 @@ export function App({ ctx, data }) { themeOverride: header.id === currentMenu ? themeOverride : null, })); setColumns(newColumns); - setShowMenu(menu ? true : false); }, [menu]); return ( -
Z&&this.props.onSwipeRight(1,p),this.movePosition.deltaY<-Z?this.props.onSwipeUp(1,p):this.movePosition.deltaY>Z&&this.props.onSwipeDown(1,p)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(p){this.swiper=p,this.props.innerRef(p)}},{key:"render",value:function(){var p=this.props,Z=p.tagName,R=p.className,x=p.style,N=p.children,E=p.allowMouseEvents,k=p.onSwipeUp,T=p.onSwipeDown,b=p.onSwipeLeft,A=p.onSwipeRight,z=p.onSwipeStart,_=p.onSwipeMove,K=p.onSwipeEnd,J=p.innerRef,C1=p.tolerance,g1=o(p,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return l.default.createElement(this.props.tagName,a({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:x},g1),N)}}]),u}(t.Component);v.displayName="ReactSwipe",v.propTypes={tagName:r.default.string,className:r.default.string,style:r.default.object,children:r.default.node,allowMouseEvents:r.default.bool,onSwipeUp:r.default.func,onSwipeDown:r.default.func,onSwipeLeft:r.default.func,onSwipeRight:r.default.func,onSwipeStart:r.default.func,onSwipeMove:r.default.func,onSwipeEnd:r.default.func,innerRef:r.default.func,tolerance:r.default.number.isRequired},v.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=v})});var $3=q(V7=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["exports","./react-swipe"],t);else if(typeof V7!="undefined")t(V7,fe());else{var i={exports:{}};t(i.exports,e.reactSwipe),e.index=i.exports}})(V7,function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=l(t);function l(r){return r&&r.__esModule?r:{default:r}}e.default=i.default})});var Ze=q((TV,d7)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var r="",s=0;s Z&&this.props.onSwipeRight(1,p),this.movePosition.deltaY<-Z?this.props.onSwipeUp(1,p):this.movePosition.deltaY>Z&&this.props.onSwipeDown(1,p)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(p){this.swiper=p,this.props.innerRef(p)}},{key:"render",value:function(){var p=this.props,Z=p.tagName,R=p.className,x=p.style,N=p.children,E=p.allowMouseEvents,b=p.onSwipeUp,A=p.onSwipeDown,k=p.onSwipeLeft,P=p.onSwipeRight,z=p.onSwipeStart,_=p.onSwipeMove,j=p.onSwipeEnd,a1=p.innerRef,m1=p.tolerance,g1=o(p,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return l.default.createElement(this.props.tagName,a({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:x},g1),N)}}]),u}(t.Component);v.displayName="ReactSwipe",v.propTypes={tagName:r.default.string,className:r.default.string,style:r.default.object,children:r.default.node,allowMouseEvents:r.default.bool,onSwipeUp:r.default.func,onSwipeDown:r.default.func,onSwipeLeft:r.default.func,onSwipeRight:r.default.func,onSwipeStart:r.default.func,onSwipeMove:r.default.func,onSwipeEnd:r.default.func,innerRef:r.default.func,tolerance:r.default.number.isRequired},v.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=v})});var $3=$(V7=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["exports","./react-swipe"],t);else if(typeof V7!="undefined")t(V7,fe());else{var i={exports:{}};t(i.exports,e.reactSwipe),e.index=i.exports}})(V7,function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=l(t);function l(r){return r&&r.__esModule?r:{default:r}}e.default=i.default})});var Ze=$((TV,d7)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var r="",s=0;s An error occurred: An error occurred: An error
An error
-`},Ii={headerRowID:sm,headerNumber:om,headerCode:am,headerString:nm,headerBoolean:Cm,headerAudioUri:mm,headerVideoUri:wm,headerEmoji:hm,headerImage:gm,headerUri:Di,headerPhone:Hm,headerMarkdown:Lm,headerDate:Vm,headerTime:dm,headerEmail:um,headerReference:vm,headerIfThenElse:pm,headerSingleValue:Mm,headerLookup:xm,headerTextTemplate:fm,headerMath:Zm,headerRollup:Em,headerJoinStrings:Nm,headerSplitString:Rm,headerGeoDistance:Bm,headerArray:zm,rowOwnerOverlay:ym,protectedColumnOverlay:bm,renameIcon:cm};function Fm(e,t){return e==="normal"?[t.bgIconHeader,t.fgIconHeader]:e==="selected"?["white",t.accentColor]:[t.accentColor,t.bgHeader]}var t3=class{constructor(t,i){s2(this,"onSettled");s2(this,"spriteMap",new Map);s2(this,"headerIcons");s2(this,"inFlight",0);this.onSettled=i,this.headerIcons=t!=null?t:{}}drawSprite(t,i,l,r,s,a,o,n=1){let[C,c]=Fm(i,o),m=a*Math.ceil(window.devicePixelRatio),h=`${C}_${c}_${m}_${t}`,w=this.spriteMap.get(h);if(w===void 0){let g=this.headerIcons[t];if(g===void 0)return;w=document.createElement("canvas");let L=w.getContext("2d");if(L===null)return;let v=new Image;v.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(g({fgColor:c,bgColor:C}))}`,this.spriteMap.set(h,w);let V=v.decode();if(V===void 0)return;this.inFlight++,V.then(()=>{L.drawImage(v,0,0,m,m)}).finally(()=>{this.inFlight--,this.inFlight===0&&this.onSettled()})}else n<1&&(l.globalAlpha=n),l.drawImage(w,0,0,m,m,r,s,a,a),n<1&&(l.globalAlpha=1)}};var Q8=M1(G9(),1),ks=M1(v8(),1);function i3(e){if(e.length===0)return;let t;for(let i of e)t=Math.min(t!=null?t:i.y,i.y)}function $4(e,t,i,l,r,s,a,o,n){o=o!=null?o:t;let C=t,c=e,m=l-s,h=!1;for(;Co&&n(C,c,w,!1,a&&c===l-1)===!0){h=!0;break}C+=w,c++}if(!h){C=i;for(let w=0;w P+1?(l1--,r0(0,l1,"vertical")):(X=Math.max(0,X-1),r0(0,X,"vertical"));break}default:s5(M)}if(f!==0)if(f===2)G=Y.length,I=F,r0(G-1-D,0,"horizontal");else if(f===-2)I=D,G=F+1,r0(I-D,0,"horizontal");else{let V1=[];if(o0!==void 0){let B1=o0({x:I,y:X,width:G-I-D,height:l1-X},Z0.current.signal);typeof B1=="object"&&(V1=ZL(B1))}if(f===1){let B1=!1;if(I{var zc=Hi();function yc(e){return e&&e.length?zc(e):[]}Li.exports=yc});var d8=q((ru,di)=>{function bc(e,t){for(var i=-1,l=t.length,r=e.length;++i{function Om(e){return function(t,i,l){for(var r=-1,s=Object(t),a=l(t),o=a.length;o--;){var n=a[e?o:++r];if(i(s[n],n,s)===!1)break}return t}}el.exports=Om});var ll=q((Ku,il)=>{var _m=tl(),Wm=_m();il.exports=Wm});var sl=q((Xu,rl)=>{function Um(e,t){for(var i=-1,l=Array(e);++i{var $g=N9();function Kg(e){return e===e&&!$g(e)}Xr.exports=Kg});var Yr=q((kv,jr)=>{var Xg=_8(),jg=s3();function Yg(e){for(var t=jg(e),i=t.length;i--;){var l=t[i],r=e[l];t[i]=[l,r,Xg(r)]}return t}jr.exports=Yg});var W8=q((Tv,Qr)=>{function Qg(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==void 0||e in Object(i))}}Qr.exports=Qg});var es=q((Pv,Jr)=>{var Jg=Kr(),eH=Yr(),tH=W8();function iH(e){var t=eH(e);return t.length==1&&t[0][2]?tH(t[0][0],t[0][1]):function(i){return i===e||Jg(i,e,t)}}Jr.exports=iH});var U8=q((Av,ts)=>{var lH=rn(),rH=_3();function sH(e,t){t=lH(t,e);for(var i=0,l=t.length;e!=null&&i{var zc=Hi();function yc(e){return e&&e.length?zc(e):[]}Li.exports=yc});var d8=$((ru,di)=>{function bc(e,t){for(var i=-1,l=t.length,r=e.length;++i{function Om(e){return function(t,i,l){for(var r=-1,s=Object(t),a=l(t),o=a.length;o--;){var n=a[e?o:++r];if(i(s[n],n,s)===!1)break}return t}}el.exports=Om});var ll=$((Ku,il)=>{var _m=tl(),Wm=_m();il.exports=Wm});var sl=$((Xu,rl)=>{function Um(e,t){for(var i=-1,l=Array(e);++i{var $g=E9();function Kg(e){return e===e&&!$g(e)}Xr.exports=Kg});var Yr=$((kv,jr)=>{var Xg=_8(),jg=s3();function Yg(e){for(var t=jg(e),i=t.length;i--;){var l=t[i],r=e[l];t[i]=[l,r,Xg(r)]}return t}jr.exports=Yg});var W8=$((Tv,Qr)=>{function Qg(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==void 0||e in Object(i))}}Qr.exports=Qg});var es=$((Pv,Jr)=>{var Jg=Kr(),eH=Yr(),tH=W8();function iH(e){var t=eH(e);return t.length==1&&t[0][2]?tH(t[0][0],t[0][1]):function(i){return i===e||Jg(i,e,t)}}Jr.exports=iH});var U8=$((Av,ts)=>{var lH=rn(),rH=_3();function sH(e,t){t=lH(t,e);for(var i=0,l=t.length;e!=null&&i
-`:"'+(l?t:R0(t,!0))+`
+`+l.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(l);continue}if(t){let o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){let l,r,s,a=t,o,n,C;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+nt("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+"["+nt("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,o.index+o[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(n||(C=""),n=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(l=c.call({lexer:this},t,i))?(t=t.substring(l.raw.length),i.push(l),!0):!1))){if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r=i[i.length-1],r&&l.type==="text"&&r.type==="text"?(r.raw+=l.raw,r.text+=l.text):i.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length),r=i[i.length-1],r&&l.type==="text"&&r.type==="text"?(r.raw+=l.raw,r.text+=l.text):i.push(l);continue}if(l=this.tokenizer.emStrong(t,a,C)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.autolink(t,ct)){t=t.substring(l.raw.length),i.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t,ct))){t=t.substring(l.raw.length),i.push(l);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0,m=t.slice(1),h;this.options.extensions.startInline.forEach(function(w){h=w.call({lexer:this},m),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}if(l=this.tokenizer.inlineText(s,TC)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(C=l.raw.slice(-1)),n=!0,r=i[i.length-1],r&&r.type==="text"?(r.raw+=l.raw,r.text+=l.text):i.push(l);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return i}},P9=class{constructor(t){this.options=t||H5}code(t,i,l){let r=(i||"").match(/\S*/)[0];if(this.options.highlight){let s=this.options.highlight(t,r);s!=null&&s!==t&&(l=!0,t=s)}return t=t.replace(/\n$/,"")+`
+`,r?'"+(l?t:R0(t,!0))+`
+`:"'+(l?t:B0(t,!0))+`
`}blockquote(t){return`"+(l?t:B0(t,!0))+`
${t}
`}html(t){return t}heading(t,i,l,r){if(this.options.headerIds){let s=this.options.headerPrefix+r.slug(l);return`
${t}
`}tablecell(t,i){let l=i.header?"th":"td";return(i.align?`<${l} align="${i.align}">`:`<${l}>`)+t+`${l}>
-`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}
`}br(){return this.options.xhtml?"
":"
"}del(t){return`${t}`}link(t,i,l){if(t=at(this.options.sanitize,this.options.baseUrl,t),t===null)return l;let r='"+l+"",r}image(t,i,l){if(t=at(this.options.sanitize,this.options.baseUrl,t),t===null)return l;let r=`":">",r}text(t){return t}},G7=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,i,l){return""+l}image(t,i,l){return""+l}br(){return""}},q7=class{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,i){let l=t,r=0;if(this.seen.hasOwnProperty(l)){r=this.seen[t];do r++,l=t+"-"+r;while(this.seen.hasOwnProperty(l))}return i||(this.seen[t]=r,this.seen[l]=0),l}slug(t,i={}){let l=this.serialize(t);return this.getNextSafeSlug(l,i.dryrun)}},L5=class e{constructor(t){this.options=t||V5,this.options.renderer=this.options.renderer||new A9,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new G7,this.slugger=new q7}static parse(t,i){return new e(i).parse(t)}static parseInline(t,i){return new e(i).parseInline(t)}parse(t,i=!0){let l="",r,s,a,o,n,C,c,m,h,w,g,L,v,V,u,d,p,Z,R,x=t.length;for(r=0;r"+R0(l.message+"",!0)+"
";if(t)return Promise.resolve(r);if(i){i(null,r);return}return r}if(t)return Promise.reject(l);if(i){i(l);return}throw l}}function Ht(e,t){return(i,l,r)=>{typeof l=="function"&&(r=l,l=null);let s=B({},l);l=B(B({},A1.defaults),s);let a=PC(l.silent,l.async,r);if(typeof i=="undefined"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(SC(l),l.hooks&&(l.hooks.options=l),r){let o=l.highlight,n;try{l.hooks&&(i=l.hooks.preprocess(i)),n=e(i,l)}catch(m){return a(m)}let C=function(m){let h;if(!m)try{l.walkTokens&&A1.walkTokens(n,l.walkTokens),h=t(n,l),l.hooks&&(h=l.hooks.postprocess(h))}catch(w){m=w}return l.highlight=o,m?a(m):r(null,h)};if(!o||o.length<3||(delete l.highlight,!n.length))return C();let c=0;A1.walkTokens(n,function(m){m.type==="code"&&(c++,setTimeout(()=>{o(m.text,m.lang,function(h,w){if(h)return C(h);w!=null&&w!==m.text&&(m.text=w,m.escaped=!0),c--,c===0&&C()})},0))}),c===0&&C();return}if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(i):i).then(o=>e(o,l)).then(o=>l.walkTokens?Promise.all(A1.walkTokens(o,l.walkTokens)).then(()=>o):o).then(o=>t(o,l)).then(o=>l.hooks?l.hooks.postprocess(o):o).catch(a);try{l.hooks&&(i=l.hooks.preprocess(i));let o=e(i,l);l.walkTokens&&A1.walkTokens(o,l.walkTokens);let n=t(o,l);return l.hooks&&(n=l.hooks.postprocess(n)),n}catch(o){return a(o)}}}function A1(e,t,i){return Ht(H5.lex,L5.parse)(e,t,i)}A1.options=A1.setOptions=function(e){return A1.defaults=B(B({},A1.defaults),e),pC(A1.defaults),A1};A1.getDefaults=mt;A1.defaults=V5;A1.use=function(...e){let t=A1.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(i=>{let l=B({},i);if(l.async=A1.defaults.async||l.async||!1,i.extensions&&(i.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if(r.renderer){let s=t.renderers[r.name];s?t.renderers[r.name]=function(...a){let o=r.renderer.apply(this,a);return o===!1&&(o=s.apply(this,a)),o}:t.renderers[r.name]=r.renderer}if(r.tokenizer){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[r.level]?t[r.level].unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),l.extensions=t),i.renderer){let r=A1.defaults.renderer||new A9;for(let s in i.renderer){let a=r[s];r[s]=(...o)=>{let n=i.renderer[s].apply(r,o);return n===!1&&(n=a.apply(r,o)),n}}l.renderer=r}if(i.tokenizer){let r=A1.defaults.tokenizer||new P9;for(let s in i.tokenizer){let a=r[s];r[s]=(...o)=>{let n=i.tokenizer[s].apply(r,o);return n===!1&&(n=a.apply(r,o)),n}}l.tokenizer=r}if(i.hooks){let r=A1.defaults.hooks||new Q5;for(let s in i.hooks){let a=r[s];Q5.passThroughHooks.has(s)?r[s]=o=>{if(A1.defaults.async)return Promise.resolve(i.hooks[s].call(r,o)).then(C=>a.call(r,C));let n=i.hooks[s].call(r,o);return a.call(r,n)}:r[s]=(...o)=>{let n=i.hooks[s].apply(r,o);return n===!1&&(n=a.apply(r,o)),n}}l.hooks=r}if(i.walkTokens){let r=A1.defaults.walkTokens;l.walkTokens=function(s){let a=[];return a.push(i.walkTokens.call(this,s)),r&&(a=a.concat(r.call(this,s))),a}}A1.setOptions(l)})};A1.walkTokens=function(e,t){let i=[];for(let l of e)switch(i=i.concat(t.call(A1,l)),l.type){case"table":{for(let r of l.header)i=i.concat(A1.walkTokens(r.tokens,t));for(let r of l.rows)for(let s of r)i=i.concat(A1.walkTokens(s.tokens,t));break}case"list":{i=i.concat(A1.walkTokens(l.items,t));break}default:A1.defaults.extensions&&A1.defaults.extensions.childTokens&&A1.defaults.extensions.childTokens[l.type]?A1.defaults.extensions.childTokens[l.type].forEach(function(r){i=i.concat(A1.walkTokens(l[r],t))}):l.tokens&&(i=i.concat(A1.walkTokens(l.tokens,t)))}return i};A1.parseInline=Ht(H5.lexInline,L5.parseInline);A1.Parser=L5;A1.parser=L5.parse;A1.Renderer=A9;A1.TextRenderer=G7;A1.Lexer=H5;A1.lexer=H5.lex;A1.Tokenizer=P9;A1.Slugger=q7;A1.Hooks=Q5;A1.parse=A1;var sd=A1.options,ad=A1.setOptions,od=A1.use,nd=A1.walkTokens,Cd=A1.parseInline;var cd=L5.parse,md=H5.lex;var Lt=Q2("div")({name:"MarkdownContainer",class:"gdg-mnuv029",propsAsIs:!1});var D9=class extends a8.default.PureComponent{constructor(){super(...arguments);s2(this,"targetElement",null);s2(this,"containerRefHook",i=>{this.targetElement=i,this.renderMarkdownIntoDiv()})}renderMarkdownIntoDiv(){let{targetElement:i,props:l}=this;if(i===null)return;let{contents:r,createNode:s}=l,a=A1(r),o=document.createRange();o.selectNodeContents(i),o.deleteContents();let n=s==null?void 0:s(a);if(n===void 0){let c=document.createElement("template");c.innerHTML=a,n=c.content}i.append(n);let C=i.getElementsByTagName("a");for(let c of C)c.target="_blank",c.rel="noreferrer noopener"}render(){return this.renderMarkdownIntoDiv(),a8.default.createElement(Lt,{ref:this.containerRefHook})}};var D0=M1(S1(),1);var Vt=Q2("textarea")({name:"InputBox",class:"gdg-izpuzkl",propsAsIs:!1}),dt=Q2("div")({name:"ShadowBox",class:"gdg-s69h75o",propsAsIs:!1}),ut=Q2("div")({name:"GrowingEntryStyle",class:"gdg-g1y0xocz",propsAsIs:!1});var vt=0,q4=e=>{let g=e,{placeholder:t,value:i,onKeyDown:l,highlight:r,altNewline:s,validatedSelection:a}=g,o=s0(g,["placeholder","value","onKeyDown","highlight","altNewline","validatedSelection"]),{onChange:n,className:C}=o,c=D0.useRef(null),m=i!=null?i:"";d0(n!==void 0,"GrowingEntry must be a controlled input area");let[h]=D0.useState(()=>"input-box-"+(vt=(vt+1)%1e7));D0.useEffect(()=>{let L=c.current;if(L===null||L.disabled)return;let v=m.toString().length;L.focus(),L.setSelectionRange(r?0:v,v)},[]),D0.useLayoutEffect(()=>{var L;if(a!==void 0){let v=typeof a=="number"?[a,null]:a;(L=c.current)==null||L.setSelectionRange(v[0],v[1])}},[a]);let w=D0.useCallback(L=>{L.key==="Enter"&&L.shiftKey&&s===!0||l==null||l(L)},[s,l]);return D0.createElement(ut,{className:"gdg-growing-entry"},D0.createElement(dt,{className:C},m+`
-`),D0.createElement(Vt,S(B({},o),{className:(C!=null?C:"")+" gdg-input",id:h,ref:c,onKeyDown:w,value:m,placeholder:t,dir:"auto"})))};var Et=M1(S1(),1);var J5=new Map,e9=new Map,o8=new Map;function pt(){J5.clear(),o8.clear(),e9.clear()}function AC(e,t,i,l,r){var s,a,o;let n=0,C={};for(let m of e)n+=(s=i.get(m))!=null?s:r,C[m]=((a=C[m])!=null?a:0)+1;let c=t-n;for(let m of Object.keys(C)){let h=C[m],w=(o=i.get(m))!=null?o:r,g=w*h/n,L=c*g*l/h,v=w+L;i.set(m,v)}}function DC(e,t){var i;let l=new Map,r=0;for(let C of"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?"){let c=e.measureText(C).width;l.set(C,c),r+=c}let s=r/l.size,a=3,o=(t/s+a)/(a+1),n=l.keys();for(let C of n)l.set(C,((i=l.get(C))!=null?i:s)*o);return l}function I9(e,t,i,l){var r,s;let a=e9.get(i);if(l&&a!==void 0&&a.count>2e4){let C=o8.get(i);if(C===void 0&&(C=DC(e,a.size),o8.set(i,C)),a.count>5e5){let m=0;for(let h of t)m+=(r=C.get(h))!=null?r:a.size;return m*1.01}let c=e.measureText(t);return AC(t,c.width,C,Math.max(.05,1-a.count/2e5),a.size),e9.set(i,{count:a.count+t.length,size:a.size}),c.width}let o=e.measureText(t),n=o.width/t.length;if(((s=a==null?void 0:a.count)!=null?s:0)>2e4)return o.width;if(a===void 0)e9.set(i,{count:t.length,size:n});else{let C=n-a.size,c=t.length/(a.count+t.length),m=a.size+C*c;e9.set(i,{count:a.count+t.length,size:m})}return o.width}function IC(e,t,i,l,r,s,a,o){if(t.length<=1)return t.length;if(ri;){let m=c!==void 0?0:t.lastIndexOf(" ",n-1);m>0?n=m:n--,C=I9(e,t.slice(0,Math.max(0,n)),l,a)}if(t[n]!==" "){let m=0;if(c===void 0)m=t.lastIndexOf(" ",n);else for(let h of c){if(h>n)break;m=h}m>0&&(n=m)}return n}function Mt(e,t,i,l,r,s){let a=`${t}_${i}_${l}px`,o=J5.get(a);if(o!==void 0)return o;if(l<=0)return[];let n=[],C=t.split(`
-`),c=e9.get(i),m=c===void 0?t.length:l/c.size*1.5,h=r&&c!==void 0&&c.count>2e4;for(let w of C){let g=I9(e,w.slice(0,Math.max(0,m)),i,h),L=Math.min(w.length,m);if(g<=l)n.push(w);else{for(;g>l;){let v=IC(e,w,l,i,g,L,h,s),V=w.slice(0,Math.max(0,v));w=w.slice(V.length),n.push(V),g=I9(e,w.slice(0,Math.max(0,m)),i,h),L=Math.min(w.length,m)}g>0&&n.push(w)}}return n=n.map((w,g)=>g===0?w.trimEnd():w.trim()),J5.set(a,n),J5.size>500&&J5.delete(J5.keys().next().value),n}function Nt(e,t){return Et.default.useMemo(()=>e.map((i,l)=>({group:i.group,grow:i.grow,hasMenu:i.hasMenu,icon:i.icon,id:i.id,menuIcon:i.menuIcon,overlayIcon:i.overlayIcon,sourceIndex:l,sticky:l1?1:h),L=1,v=!1;w<0?g<0?g=Math.PI+g:(g=Math.PI-g,L=-1,v=!0):g>0&&(L=-1,v=!0),r=n.radius!==void 0?n.radius:i;let V=g/2,u=Math.abs(Math.cos(V)*r/Math.sin(V)),d;u>Math.min(c.len/2,m.len/2)?(u=Math.min(c.len/2,m.len/2),d=Math.abs(u*Math.sin(V)/Math.cos(V))):d=r;let p=n.x+m.nx*u,Z=n.y+m.ny*u;p+=-m.ny*d*L,Z+=m.nx*d*L,e.arc(p,Z,d,c.ang+Math.PI/2*L,m.ang-Math.PI/2*L,v),a=n,n=C}e.closePath()}function W9(e,t,i,l,r,s,a,o,n,C,c,m,h,w,g){let L={x:0,y:s+C,width:0,height:0};if(e>=w.length||t>=c||t<-2||e<0)return L;let v=s-r;if(e>=m){let V=a>e?-1:1,u=N4(w);L.x+=u+n;for(let d=a;d!==e;d+=V)L.x+=w[V===1?d:d-1].width*V}else for(let V=0;V${t}
`}br(){return this.options.xhtml?"
":"
"}del(t){return`${t}`}link(t,i,l){if(t=at(this.options.sanitize,this.options.baseUrl,t),t===null)return l;let r='"+l+"",r}image(t,i,l){if(t=at(this.options.sanitize,this.options.baseUrl,t),t===null)return l;let r=`":">",r}text(t){return t}},G7=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,i,l){return""+l}image(t,i,l){return""+l}br(){return""}},q7=class{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,i){let l=t,r=0;if(this.seen.hasOwnProperty(l)){r=this.seen[t];do r++,l=t+"-"+r;while(this.seen.hasOwnProperty(l))}return i||(this.seen[t]=r,this.seen[l]=0),l}slug(t,i={}){let l=this.serialize(t);return this.getNextSafeSlug(l,i.dryrun)}},g5=class e{constructor(t){this.options=t||H5,this.options.renderer=this.options.renderer||new P9,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new G7,this.slugger=new q7}static parse(t,i){return new e(i).parse(t)}static parseInline(t,i){return new e(i).parseInline(t)}parse(t,i=!0){let l="",r,s,a,o,n,C,c,m,h,w,g,L,v,V,u,d,p,Z,R,x=t.length;for(r=0;r"+B0(l.message+"",!0)+"
";if(t)return Promise.resolve(r);if(i){i(null,r);return}return r}if(t)return Promise.reject(l);if(i){i(l);return}throw l}}function Ht(e,t){return(i,l,r)=>{typeof l=="function"&&(r=l,l=null);let s=B({},l);l=B(B({},T1.defaults),s);let a=PC(l.silent,l.async,r);if(typeof i=="undefined"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(SC(l),l.hooks&&(l.hooks.options=l),r){let o=l.highlight,n;try{l.hooks&&(i=l.hooks.preprocess(i)),n=e(i,l)}catch(m){return a(m)}let C=function(m){let h;if(!m)try{l.walkTokens&&T1.walkTokens(n,l.walkTokens),h=t(n,l),l.hooks&&(h=l.hooks.postprocess(h))}catch(w){m=w}return l.highlight=o,m?a(m):r(null,h)};if(!o||o.length<3||(delete l.highlight,!n.length))return C();let c=0;T1.walkTokens(n,function(m){m.type==="code"&&(c++,setTimeout(()=>{o(m.text,m.lang,function(h,w){if(h)return C(h);w!=null&&w!==m.text&&(m.text=w,m.escaped=!0),c--,c===0&&C()})},0))}),c===0&&C();return}if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(i):i).then(o=>e(o,l)).then(o=>l.walkTokens?Promise.all(T1.walkTokens(o,l.walkTokens)).then(()=>o):o).then(o=>t(o,l)).then(o=>l.hooks?l.hooks.postprocess(o):o).catch(a);try{l.hooks&&(i=l.hooks.preprocess(i));let o=e(i,l);l.walkTokens&&T1.walkTokens(o,l.walkTokens);let n=t(o,l);return l.hooks&&(n=l.hooks.postprocess(n)),n}catch(o){return a(o)}}}function T1(e,t,i){return Ht(h5.lex,g5.parse)(e,t,i)}T1.options=T1.setOptions=function(e){return T1.defaults=B(B({},T1.defaults),e),pC(T1.defaults),T1};T1.getDefaults=mt;T1.defaults=H5;T1.use=function(...e){let t=T1.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(i=>{let l=B({},i);if(l.async=T1.defaults.async||l.async||!1,i.extensions&&(i.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if(r.renderer){let s=t.renderers[r.name];s?t.renderers[r.name]=function(...a){let o=r.renderer.apply(this,a);return o===!1&&(o=s.apply(this,a)),o}:t.renderers[r.name]=r.renderer}if(r.tokenizer){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[r.level]?t[r.level].unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),l.extensions=t),i.renderer){let r=T1.defaults.renderer||new P9;for(let s in i.renderer){let a=r[s];r[s]=(...o)=>{let n=i.renderer[s].apply(r,o);return n===!1&&(n=a.apply(r,o)),n}}l.renderer=r}if(i.tokenizer){let r=T1.defaults.tokenizer||new T9;for(let s in i.tokenizer){let a=r[s];r[s]=(...o)=>{let n=i.tokenizer[s].apply(r,o);return n===!1&&(n=a.apply(r,o)),n}}l.tokenizer=r}if(i.hooks){let r=T1.defaults.hooks||new Y5;for(let s in i.hooks){let a=r[s];Y5.passThroughHooks.has(s)?r[s]=o=>{if(T1.defaults.async)return Promise.resolve(i.hooks[s].call(r,o)).then(C=>a.call(r,C));let n=i.hooks[s].call(r,o);return a.call(r,n)}:r[s]=(...o)=>{let n=i.hooks[s].apply(r,o);return n===!1&&(n=a.apply(r,o)),n}}l.hooks=r}if(i.walkTokens){let r=T1.defaults.walkTokens;l.walkTokens=function(s){let a=[];return a.push(i.walkTokens.call(this,s)),r&&(a=a.concat(r.call(this,s))),a}}T1.setOptions(l)})};T1.walkTokens=function(e,t){let i=[];for(let l of e)switch(i=i.concat(t.call(T1,l)),l.type){case"table":{for(let r of l.header)i=i.concat(T1.walkTokens(r.tokens,t));for(let r of l.rows)for(let s of r)i=i.concat(T1.walkTokens(s.tokens,t));break}case"list":{i=i.concat(T1.walkTokens(l.items,t));break}default:T1.defaults.extensions&&T1.defaults.extensions.childTokens&&T1.defaults.extensions.childTokens[l.type]?T1.defaults.extensions.childTokens[l.type].forEach(function(r){i=i.concat(T1.walkTokens(l[r],t))}):l.tokens&&(i=i.concat(T1.walkTokens(l.tokens,t)))}return i};T1.parseInline=Ht(h5.lexInline,g5.parseInline);T1.Parser=g5;T1.parser=g5.parse;T1.Renderer=P9;T1.TextRenderer=G7;T1.Lexer=h5;T1.lexer=h5.lex;T1.Tokenizer=T9;T1.Slugger=q7;T1.Hooks=Y5;T1.parse=T1;var sd=T1.options,ad=T1.setOptions,od=T1.use,nd=T1.walkTokens,Cd=T1.parseInline;var cd=g5.parse,md=h5.lex;var Lt=K2("div")({name:"MarkdownContainer",class:"gdg-mnuv029",propsAsIs:!1});var A9=class extends a8.default.PureComponent{constructor(){super(...arguments);i2(this,"targetElement",null);i2(this,"containerRefHook",i=>{this.targetElement=i,this.renderMarkdownIntoDiv()})}renderMarkdownIntoDiv(){let{targetElement:i,props:l}=this;if(i===null)return;let{contents:r,createNode:s}=l,a=T1(r),o=document.createRange();o.selectNodeContents(i),o.deleteContents();let n=s==null?void 0:s(a);if(n===void 0){let c=document.createElement("template");c.innerHTML=a,n=c.content}i.append(n);let C=i.getElementsByTagName("a");for(let c of C)c.target="_blank",c.rel="noreferrer noopener"}render(){return this.renderMarkdownIntoDiv(),a8.default.createElement(Lt,{ref:this.containerRefHook})}};var P0=x1(F1(),1);var Vt=K2("textarea")({name:"InputBox",class:"gdg-izpuzkl",propsAsIs:!1}),dt=K2("div")({name:"ShadowBox",class:"gdg-s69h75o",propsAsIs:!1}),ut=K2("div")({name:"GrowingEntryStyle",class:"gdg-g1y0xocz",propsAsIs:!1});var vt=0,G4=e=>{let g=e,{placeholder:t,value:i,onKeyDown:l,highlight:r,altNewline:s,validatedSelection:a}=g,o=i0(g,["placeholder","value","onKeyDown","highlight","altNewline","validatedSelection"]),{onChange:n,className:C}=o,c=P0.useRef(null),m=i!=null?i:"";d0(n!==void 0,"GrowingEntry must be a controlled input area");let[h]=P0.useState(()=>"input-box-"+(vt=(vt+1)%1e7));P0.useEffect(()=>{let L=c.current;if(L===null||L.disabled)return;let v=m.toString().length;L.focus(),L.setSelectionRange(r?0:v,v)},[]),P0.useLayoutEffect(()=>{var L;if(a!==void 0){let v=typeof a=="number"?[a,null]:a;(L=c.current)==null||L.setSelectionRange(v[0],v[1])}},[a]);let w=P0.useCallback(L=>{L.key==="Enter"&&L.shiftKey&&s===!0||l==null||l(L)},[s,l]);return P0.createElement(ut,{className:"gdg-growing-entry"},P0.createElement(dt,{className:C},m+`
+`),P0.createElement(Vt,S(B({},o),{className:(C!=null?C:"")+" gdg-input",id:h,ref:c,onKeyDown:w,value:m,placeholder:t,dir:"auto"})))};var Et=x1(F1(),1);var Q5=new Map,J5=new Map,o8=new Map;function pt(){Q5.clear(),o8.clear(),J5.clear()}function AC(e,t,i,l,r){var s,a,o;let n=0,C={};for(let m of e)n+=(s=i.get(m))!=null?s:r,C[m]=((a=C[m])!=null?a:0)+1;let c=t-n;for(let m of Object.keys(C)){let h=C[m],w=(o=i.get(m))!=null?o:r,g=w*h/n,L=c*g*l/h,v=w+L;i.set(m,v)}}function DC(e,t){var i;let l=new Map,r=0;for(let C of"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?"){let c=e.measureText(C).width;l.set(C,c),r+=c}let s=r/l.size,a=3,o=(t/s+a)/(a+1),n=l.keys();for(let C of n)l.set(C,((i=l.get(C))!=null?i:s)*o);return l}function D9(e,t,i,l){var r,s;let a=J5.get(i);if(l&&a!==void 0&&a.count>2e4){let C=o8.get(i);if(C===void 0&&(C=DC(e,a.size),o8.set(i,C)),a.count>5e5){let m=0;for(let h of t)m+=(r=C.get(h))!=null?r:a.size;return m*1.01}let c=e.measureText(t);return AC(t,c.width,C,Math.max(.05,1-a.count/2e5),a.size),J5.set(i,{count:a.count+t.length,size:a.size}),c.width}let o=e.measureText(t),n=o.width/t.length;if(((s=a==null?void 0:a.count)!=null?s:0)>2e4)return o.width;if(a===void 0)J5.set(i,{count:t.length,size:n});else{let C=n-a.size,c=t.length/(a.count+t.length),m=a.size+C*c;J5.set(i,{count:a.count+t.length,size:m})}return o.width}function IC(e,t,i,l,r,s,a,o){if(t.length<=1)return t.length;if(ri;){let m=c!==void 0?0:t.lastIndexOf(" ",n-1);m>0?n=m:n--,C=D9(e,t.slice(0,Math.max(0,n)),l,a)}if(t[n]!==" "){let m=0;if(c===void 0)m=t.lastIndexOf(" ",n);else for(let h of c){if(h>n)break;m=h}m>0&&(n=m)}return n}function Mt(e,t,i,l,r,s){let a=`${t}_${i}_${l}px`,o=Q5.get(a);if(o!==void 0)return o;if(l<=0)return[];let n=[],C=t.split(`
+`),c=J5.get(i),m=c===void 0?t.length:l/c.size*1.5,h=r&&c!==void 0&&c.count>2e4;for(let w of C){let g=D9(e,w.slice(0,Math.max(0,m)),i,h),L=Math.min(w.length,m);if(g<=l)n.push(w);else{for(;g>l;){let v=IC(e,w,l,i,g,L,h,s),V=w.slice(0,Math.max(0,v));w=w.slice(V.length),n.push(V),g=D9(e,w.slice(0,Math.max(0,m)),i,h),L=Math.min(w.length,m)}g>0&&n.push(w)}}return n=n.map((w,g)=>g===0?w.trimEnd():w.trim()),Q5.set(a,n),Q5.size>500&&Q5.delete(Q5.keys().next().value),n}function Nt(e,t){return Et.default.useMemo(()=>e.map((i,l)=>({group:i.group,grow:i.grow,hasMenu:i.hasMenu,icon:i.icon,id:i.id,menuIcon:i.menuIcon,overlayIcon:i.overlayIcon,sourceIndex:l,sticky:l1?1:h),L=1,v=!1;w<0?g<0?g=Math.PI+g:(g=Math.PI-g,L=-1,v=!0):g>0&&(L=-1,v=!0),r=n.radius!==void 0?n.radius:i;let V=g/2,u=Math.abs(Math.cos(V)*r/Math.sin(V)),d;u>Math.min(c.len/2,m.len/2)?(u=Math.min(c.len/2,m.len/2),d=Math.abs(u*Math.sin(V)/Math.cos(V))):d=r;let p=n.x+m.nx*u,Z=n.y+m.ny*u;p+=-m.ny*d*L,Z+=m.nx*d*L,e.arc(p,Z,d,c.ang+Math.PI/2*L,m.ang-Math.PI/2*L,v),a=n,n=C}e.closePath()}function _9(e,t,i,l,r,s,a,o,n,C,c,m,h,w,g){let L={x:0,y:s+C,width:0,height:0};if(e>=w.length||t>=c||t<-2||e<0)return L;let v=s-r;if(e>=m){let V=a>e?-1:1,u=x4(w);L.x+=u+n;for(let d=a;d!==e;d+=V)L.x+=w[V===1?d:d-1].width*V}else for(let V=0;V!g.sticky))==null?void 0:h.sourceIndex)!=null?w:0;if(n>m){let g=Math.max(o,m),L=t,v=l;for(let V=s.sourceIndex-1;V>=g;V--)L-=a[V].width,v+=a[V].width;for(let V=s.sourceIndex+1;V<=n;V++)v+=a[V].width;c={x:L,y:i,width:v,height:r}}if(m>o){let g=Math.min(n,m-1),L=t,v=l;for(let V=s.sourceIndex-1;V>=o;V--)L-=a[V].width,v+=a[V].width;for(let V=s.sourceIndex+1;V<=g;V++)v+=a[V].width;C={x:L,y:i,width:v,height:r}}return[C,c]}function Oi(e,t,i,l){if(l==="any")return p8(e,{x:t,y:i,width:1,height:1});if(l==="vertical"&&(t=e.x),l==="horizontal"&&(i=e.y),K7([t,i],e))return;let r=t-e.x,s=e.x+e.width-t,a=i-e.y+1,o=e.y+e.height-i,n=Math.min(l==="vertical"?Number.MAX_SAFE_INTEGER:r,l==="vertical"?Number.MAX_SAFE_INTEGER:s,l==="horizontal"?Number.MAX_SAFE_INTEGER:a,l==="horizontal"?Number.MAX_SAFE_INTEGER:o);return n===o?{x:e.x,y:e.y+e.height,width:e.width,height:i-e.y-e.height+1}:n===a?{x:e.x,y:i,width:e.width,height:e.y-i}:n===s?{x:e.x+e.width,y:e.y,width:t-e.x-e.width+1,height:e.height}:{x:t,y:e.y,width:e.x-t,height:e.height}}function v5(e,t,i,l,r,s,a,o){return e<=r+a&&r<=e+i&&t<=s+o&&s<=t+l}function K4(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function p8(e,t){let i=Math.min(e.x,t.x),l=Math.min(e.y,t.y),r=Math.max(e.x+e.width,t.x+t.width)-i,s=Math.max(e.y+e.height,t.y+t.height)-l;return{x:i,y:l,width:r,height:s}}function _i(e,t){return e.x<=t.x&&e.y<=t.y&&e.x+e.width>=t.x+t.width&&e.y+e.height>=t.y+t.height}function Wi(e,t,i,l){if(e.x>t||e.y>i||e.x<0&&e.y<0&&e.x+e.width>t&&e.y+e.height>i)return;if(e.x>=0&&e.y>=0&&e.x+e.width<=t&&e.y+e.height<=i)return e;let r=-4,s=-4,a=t+4,o=i+4,n=r-e.x,C=e.x+e.width-a,c=s-e.y,m=e.y+e.height-o,h=n>0?e.x+Math.floor(n/l)*l:e.x,w=C>0?e.x+e.width-Math.floor(C/l)*l:e.x+e.width,g=c>0?e.y+Math.floor(c/l)*l:e.y,L=m>0?e.y+e.height-Math.floor(m/l)*l:e.y+e.height;return{x:h,y:g,width:w-h,height:L-g}}function Ui(e,t,i,l,r){let[s,a,o,n]=t,[C,c,m,h]=r,{x:w,y:g,width:L,height:v}=e,V=[];if(L<=0||v<=0)return V;let u=w+L,d=g+v,p=wo,x=g+v>n,N=w>=s&&wo,E=g>=a&&g!g.sticky))==null?void 0:h.sourceIndex)!=null?w:0;if(n>m){let g=Math.max(o,m),L=t,v=l;for(let V=s.sourceIndex-1;V>=g;V--)L-=a[V].width,v+=a[V].width;for(let V=s.sourceIndex+1;V<=n;V++)v+=a[V].width;c={x:L,y:i,width:v,height:r}}if(m>o){let g=Math.min(n,m-1),L=t,v=l;for(let V=s.sourceIndex-1;V>=o;V--)L-=a[V].width,v+=a[V].width;for(let V=s.sourceIndex+1;V<=g;V++)v+=a[V].width;C={x:L,y:i,width:v,height:r}}return[C,c]}function Oi(e,t,i,l){if(l==="any")return p8(e,{x:t,y:i,width:1,height:1});if(l==="vertical"&&(t=e.x),l==="horizontal"&&(i=e.y),K7([t,i],e))return;let r=t-e.x,s=e.x+e.width-t,a=i-e.y+1,o=e.y+e.height-i,n=Math.min(l==="vertical"?Number.MAX_SAFE_INTEGER:r,l==="vertical"?Number.MAX_SAFE_INTEGER:s,l==="horizontal"?Number.MAX_SAFE_INTEGER:a,l==="horizontal"?Number.MAX_SAFE_INTEGER:o);return n===o?{x:e.x,y:e.y+e.height,width:e.width,height:i-e.y-e.height+1}:n===a?{x:e.x,y:i,width:e.width,height:e.y-i}:n===s?{x:e.x+e.width,y:e.y,width:t-e.x-e.width+1,height:e.height}:{x:t,y:e.y,width:e.x-t,height:e.height}}function d5(e,t,i,l,r,s,a,o){return e<=r+a&&r<=e+i&&t<=s+o&&s<=t+l}function $4(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function p8(e,t){let i=Math.min(e.x,t.x),l=Math.min(e.y,t.y),r=Math.max(e.x+e.width,t.x+t.width)-i,s=Math.max(e.y+e.height,t.y+t.height)-l;return{x:i,y:l,width:r,height:s}}function _i(e,t){return e.x<=t.x&&e.y<=t.y&&e.x+e.width>=t.x+t.width&&e.y+e.height>=t.y+t.height}function Wi(e,t,i,l){if(e.x>t||e.y>i||e.x<0&&e.y<0&&e.x+e.width>t&&e.y+e.height>i)return;if(e.x>=0&&e.y>=0&&e.x+e.width<=t&&e.y+e.height<=i)return e;let r=-4,s=-4,a=t+4,o=i+4,n=r-e.x,C=e.x+e.width-a,c=s-e.y,m=e.y+e.height-o,h=n>0?e.x+Math.floor(n/l)*l:e.x,w=C>0?e.x+e.width-Math.floor(C/l)*l:e.x+e.width,g=c>0?e.y+Math.floor(c/l)*l:e.y,L=m>0?e.y+e.height-Math.floor(m/l)*l:e.y+e.height;return{x:h,y:g,width:w-h,height:L-g}}function Ui(e,t,i,l,r){let[s,a,o,n]=t,[C,c,m,h]=r,{x:w,y:g,width:L,height:v}=e,V=[];if(L<=0||v<=0)return V;let u=w+L,d=g+v,p=wo,x=g+v>n,N=w>=s&&wo,E=g>=a&&g");for(let r of e){t.push("
"),t.join("")}function Ys(e,t){let i=gL(e,t),l=HL(i),r=VL(i);return{textPlain:l,textHtml:r}}function t6(e){var a,o,n,C,c,m;let t=document.createElement("html");t.innerHTML=e.replace(/ /g," ");let i=t.querySelector("table");if(i===null)return;let l=[i],r=[],s;for(;l.length>0;){let h=l.pop();if(h===void 0)break;if(h instanceof HTMLTableElement||h.nodeName==="TBODY")l.push(...[...h.children].reverse());else if(h instanceof HTMLTableRowElement)s!==void 0&&r.push(s),s=[],l.push(...[...h.children].reverse());else if(h instanceof HTMLTableCellElement){let w=h.cloneNode(!0),L=w.children.length===1&&w.children[0].nodeName==="P"?w.children[0]:null,v=(L==null?void 0:L.children.length)===1&&L.children[0].nodeName==="FONT",V=w.querySelectorAll("br");for(let p of V)p.replaceWith(`
`);let u=w.getAttribute("gdg-raw-value"),d=(a=w.getAttribute("gdg-format"))!=null?a:"string";if(w.querySelector("a")!==null)s==null||s.push({rawValue:(n=(o=w.querySelector("a"))==null?void 0:o.getAttribute("href"))!=null?n:"",formatted:(C=w.textContent)!=null?C:"",format:d});else if(w.querySelector("ol")!==null){let p=w.querySelectorAll("li");s==null||s.push({rawValue:[...p].map(Z=>{var R;return(R=Z.getAttribute("gdg-raw-value"))!=null?R:""}),formatted:[...p].map(Z=>{var R;return(R=Z.textContent)!=null?R:""}),format:"string-array"})}else if(u!==null)s==null||s.push({rawValue:LL(u),formatted:(c=w.textContent)!=null?c:"",format:d});else{let p=(m=w.textContent)!=null?m:"";v&&(p=p.replace(/\n(?!\n)/g,"")),s==null||s.push({rawValue:p!=null?p:"",formatted:p!=null?p:"",format:d})}}}return s!==void 0&&r.push(s),r}function Js(e,t,i,l,r){var o,n;let s=e;if(l==="allowPartial"||e.current===void 0||t===void 0)return e;let a=!1;do{if((e==null?void 0:e.current)===void 0)break;let C=(o=e.current)==null?void 0:o.range,c=[];if(C.width>2){let w=t({x:C.x,y:C.y,width:1,height:C.height},r.signal);if(typeof w=="function")return s;c.push(...w);let g=t({x:C.x+C.width-1,y:C.y,width:1,height:C.height},r.signal);if(typeof g=="function")return s;c.push(...g)}else{let w=t({x:C.x,y:C.y,width:C.width,height:C.height},r.signal);if(typeof w=="function")return s;c.push(...w)}let m=C.x-i,h=C.x+C.width-1-i;for(let w of c)for(let g of w)g.span!==void 0&&(m=Math.min(g.span[0],m),h=Math.max(g.span[1],h));m===C.x-i&&h===C.x+C.width-1-i?a=!0:e={current:{cell:(n=e.current.cell)!=null?n:[0,0],range:{x:m+i,y:C.y,width:h-m+1,height:C.height},rangeStack:e.current.rangeStack},columns:e.columns,rows:e.rows}}while(!a);return e}function Qs(e){return e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1).replace(/""/g,'"')),e}function ea(e){let t;(function(o){o[o.None=0]="None",o[o.inString=1]="inString",o[o.inStringPostQuote=2]="inStringPostQuote"})(t||(t={}));let i=[],l=[],r=0,s=t.None;e=e.replace(/\r\n/g,`
`);let a=0;for(let o of e){switch(s){case t.None:o===" "||o===`
`?(l.push(e.slice(r,a)),r=a+1,o===`
`&&(i.push(l),l=[])):o==='"'&&(s=t.inString);break;case t.inString:o==='"'&&(s=t.inStringPostQuote);break;case t.inStringPostQuote:o==='"'?s=t.inString:((o===" "||o===`
`)&&(l.push(Qs(e.slice(r,a))),r=a+1,o===`
-`&&(i.push(l),l=[])),s=t.None);break}a++}return r");for(let s of r){let a=`gdg-format="${s.format}"`;s.format==="url"?t.push(` ")}return t.push("${e6(s.formatted)} `):s.format==="string-array"?t.push(` `):t.push(`${s.formatted.map((o,n)=>`
${e6(s.formatted)} `)}t.push("