tocco-devcon 1.0.189 → 1.0.191

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tocco-devcon",
3
- "version": "1.0.189",
3
+ "version": "1.0.191",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,6 +0,0 @@
1
- (self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[85],{43568:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>Ft});var r,o,a=t(56746),i=t(35202),c=t(34206),l=t(50558),s=t(48479),u=t(1024),d=t.n(u),f=t(30006),p=t(41552),h=t(65035),g=t(28655),m=t.n(g),v=t(38205),b=t(51032),y=v.ZP.input.withConfig({displayName:"StyledInput"})(r||(r=m()(["\n && {\n ","\n }\n"])),b.k9),x=v.ZP.div.withConfig({displayName:"StyledInputWrapper"})(o||(o=m()(["\n && {\n ","\n }\n"])),b.yP),w=t(85893);const k=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,o=e.setFragmentSelected;return(0,w.jsx)(w.Fragment,{children:n.map((function(e){return(0,w.jsxs)("div",{children:[(0,w.jsx)("input",{type:"checkbox",id:e.id,checked:t.includes(e.id),onChange:(n=e.id,function(e){o(n,e.target.checked)}),disabled:r}),(0,w.jsx)(c.ZP.Label,{for:e.id,children:e.label})]},e.id);var n}))})};const j=function(e){var n=e.version,t=e.modules,r=e.selectedModules,o=e.fragments,a=e.selectedFragments,i=e.ignoreErrors,c=e.running,l=e.disabled,s=e.executeDbRefactoring,d=e.loadModules,g=e.loadFragments,m=e.setSelectedModules,v=e.setFragmentSelected,b=e.setVersion,j=e.setIgnoreErrors;(0,u.useEffect)((function(){0===t.length&&d(),0===o.length&&g()}),[]);return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),s()},children:[(0,w.jsx)(f.Z,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,w.jsx)(p.Z,{options:t,value:r,onChange:m,isMulti:!0,immutable:l})}),(0,w.jsx)(f.Z,{label:"Fragments",fixLabel:!0,children:(0,w.jsx)(k,{fragments:o,selectedFragments:a,disabled:l,setFragmentSelected:v})}),(0,w.jsx)(f.Z,{label:"Version",hasValue:n.length>0,children:(0,w.jsx)(x,{children:(0,w.jsx)(y,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");b(n)},disabled:l})})}),(0,w.jsx)(f.Z,{label:"Ignore errors",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:i,onChange:function(e){j(e.target.checked)},disabled:l})}),(0,w.jsx)(h.Z,{type:"submit",label:"Execute",look:"raised",pending:c,disabled:l})]})};var O={loadModules:s.H6,loadFragments:s.VL,setSelectedModules:s.pi,setFragmentSelected:s.LO,setVersion:s.xO,setIgnoreErrors:s.Pm,executeDbRefactoring:s.KK};const P=(0,l.connect)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{version:t.version,modules:t.modules,selectedModules:t.selectedModules,fragments:t.fragments,selectedFragments:t.selectedFragments,ignoreErrors:t.ignoreErrors,running:t.running,disabled:t.running||r.running}}),O)(j);const S=function(e){var n=e.language,t=e.running,r=e.disabled,o=e.executeLanguageUpgrade,a=e.setLanguage;return(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),o()},children:[(0,w.jsx)(f.Z,{label:"Language",hasValue:n.length>0,children:(0,w.jsx)(x,{children:(0,w.jsx)(y,{value:n,onChange:function(e){a(e.target.value)},disabled:r})})}),(0,w.jsx)(h.Z,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var C={setLanguage:s.m0,executeLanguageUpgrade:s.b7};const _=(0,l.connect)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{language:r.language,running:r.running,disabled:r.running||t.running}}),C)(S);var R,E,Z,D;const L=function(){return(0,w.jsxs)(w.Fragment,{children:[R||(R=(0,w.jsx)(c.ZP.H1,{children:"Database Refactoring"})),E||(E=(0,w.jsx)(P,{})),Z||(Z=(0,w.jsx)(c.ZP.H1,{children:"Language Upgrade"})),D||(D=(0,w.jsx)(_,{}))]})};var T,N,A,I,F,M,q,U=t(63038),z=t.n(U),H=t(30759),B={ERROR:"#a00"},V=v.ZP.div.withConfig({displayName:"StyledLogTable"})(T||(T=m()(["\n display: grid;\n gap: 1px;\n"]))),$=v.ZP.div.withConfig({displayName:"StyledLogEntry"})(N||(N=m()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(B[e.level]||"#ddd",";")})),W=v.ZP.span.withConfig({displayName:"StyledMessage"})(A||(A=m()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,H.Z)()),G=v.ZP.span.withConfig({displayName:"StyledTime"})(I||(I=m()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,H.Z)()),K=v.ZP.div.withConfig({displayName:"StyledExceptionDetails"})(F||(F=m()(["\n margin-top: 1em;\n"]))),Y=v.ZP.div.withConfig({displayName:"StyledDetailMessage"})(M||(M=m()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,H.Z)()),J=v.ZP.div.withConfig({displayName:"StyledStackTrace"})(q||(q=m()(["\n && {\n ","\n }\n"])),(0,H.Z)()),Q=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const X=function(e){var n=e.exception;return(0,w.jsxs)(K,{children:[(0,w.jsx)(Y,{children:n.detailMessage}),(0,w.jsx)(J,{children:n.stackTrace.map((function(e,n){return(0,w.jsx)("div",{children:Q(e)},n)}))})]})};const ee=function(e){var n=e.entry,t=(0,u.useState)(!1),r=z()(t,2),o=r[0],a=r[1];return(0,w.jsxs)($,{level:n.level,children:[(0,w.jsx)(W,{onClick:function(){n.exception&&a(!o)},expandable:!!n.exception,children:n.message}),(0,w.jsx)(G,{children:new Date(n.timestamp).toLocaleString()}),o&&(0,w.jsx)(X,{exception:n.exception})]})};var ne;const te=function(e){var n=e.entries;return(0,w.jsx)(V,{children:n.length>0?n.map((function(e){return(0,w.jsx)(ee,{entry:e},e.key)})):ne||(ne=(0,w.jsx)(c.ZP.Span,{children:"No entries so far."}))})};const re=(0,l.connect)((function(e){return{entries:e.log.entries}}),{})(te);var oe,ae;const ie=function(){return(0,w.jsxs)(w.Fragment,{children:[oe||(oe=(0,w.jsx)(c.ZP.H1,{children:"Log"})),ae||(ae=(0,w.jsx)(re,{}))]})};var ce,le,se=t(49478),ue=v.ZP.div.withConfig({displayName:"StyledCheckEventGroup"})(ce||(ce=m()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),de=v.ZP.div.withConfig({displayName:"StyledGroupHeading"})(le||(le=m()(["\n margin-bottom: 1em;\n"])));function fe(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return pe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return pe(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function pe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}const he=function(e){var n=e.type,t=e.events,r=e.selection,o=e.setSelected,a=function(e,n){var t,r=fe(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(!n.has(o.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,w.jsxs)(ue,{children:[(0,w.jsxs)(de,{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:a,onChange:function(e){o(t.map((function(e){return e.id})),e.target.checked)}}),(0,w.jsx)(c.ZP.Label,{for:"checkbox-"+n,children:(0,w.jsxs)(c.ZP.B,{children:[n," (",t.length,")"]})})]}),t.map((function(e){return(0,w.jsxs)("div",{children:[(0,w.jsx)("input",{type:"checkbox",id:"checkbox-"+e.id,checked:r.has(e.id),onChange:(n=e.id,function(e){o([n],e.target.checked)})}),(0,w.jsx)(c.ZP.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const ge=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,o=e.generateSql,a=e.generateChangelog;return(0,w.jsxs)("div",{children:[Object.keys(n).length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(h.Z,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,w.jsxs)(h.Z,{look:"raised",onClick:a,disabled:0===t.size,children:["Generate Changelog ",t.size>0&&"(".concat(t.size,")")]})]}),(0,w.jsx)("div",{children:Object.keys(n).sort().map((function(e){return(0,w.jsx)(he,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var me={setSelected:se.Pq,generateSql:se.$i,generateChangelog:se._w};const ve=(0,l.connect)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),me)(ge);var be,ye,xe,we=v.ZP.div.withConfig({displayName:"StyledProgressBar"})(be||(be=m()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),ke=v.ZP.div.withConfig({displayName:"StyledInnerProgress"})(ye||(ye=m()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),je=v.ZP.div.withConfig({displayName:"StyledProgressText"})(xe||(xe=m()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,H.Z)()),Oe=function(e){return e.result?e.result:e.running?e.total?"".concat(Pe(e),"%"):"Preparing...":"Not started"},Pe=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const Se=function(e){var n=e.state;return(0,w.jsxs)(we,{children:[(0,w.jsx)(ke,{percentage:Pe(n)}),(0,w.jsx)(je,{children:Oe(n)})]})};const Ce=function(e){var n=e.state,t=e.startValidation;return(0,w.jsxs)("div",{children:[(0,w.jsx)(h.Z,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,w.jsx)(Se,{state:n})]})};var _e={startValidation:se.YV};const Re=(0,l.connect)((function(e){return{state:e.modelValidation.state}}),_e)(Ce);var Ee,Ze,De;const Le=function(){return(0,w.jsxs)(w.Fragment,{children:[Ee||(Ee=(0,w.jsx)(c.ZP.H1,{children:"Model Validation"})),Ze||(Ze=(0,w.jsx)(Re,{})),De||(De=(0,w.jsx)(ve,{}))]})};var Te=t(22541),Ne=t(59713),Ae=t.n(Ne),Ie=t(57557),Fe=t.n(Ie),Me=t(29615),qe=t(88162),Ue=t(38431),ze=t(96126),He=t(69119),Be=t(83946),Ve=t(19013),$e=t(13882);var We=t(49546);function Ge(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ke(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ge(Object(t),!0).forEach((function(n){Ae()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ye="yyyy-MM-dd",Je=function(e){return(0,Ue.Z)(e,Ye)?(0,ze.Z)(e,Ye,new Date):(0,Ue.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,Ue.Z)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,He.Z)(new Date(e)):null};const Qe={datetime:{type:"date",toRange:function(e){return{from:e?Je(e).toISOString():null,to:e?function(e,n){(0,$e.Z)(2,arguments);var t=(0,Ve.Z)(e),r=(0,Be.Z)(n);return isNaN(r)?new Date(NaN):r?(t.setDate(t.getDate()+r),t):t}(Je(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,We.Z)(new Date(e.from),Ye):null!=e&&e.to?(0,We.Z)(new Date(e.to),Ye):null},getToOptions:function(e,n){return Ke(Ke({},e),{},{datePickerOptions:Ke({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Ke(Ke({},e),{},{datePickerOptions:Ke({maxDate:n},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,n){return Ke(Ke({},e),{},{datePickerOptions:Ke({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return Ke(Ke({},e),{},{datePickerOptions:Ke({maxDate:n},null==e?void 0:e.datePickerOptions)})}}};var Xe,en,nn,tn,rn,on=t(2091),an=t(7281),cn=v.ZP.div.withConfig({displayName:"StyledIconWrapper"})(Xe||(Xe=m()(["\n font-size: ",";\n"])),an.Z.font(-2.7)),ln=v.ZP.div.withConfig({displayName:"StyledRange"})(en||(en=m()(["\n display: flex;\n align-items: baseline;\n"]))),sn=v.ZP.div.withConfig({displayName:"StyledInput"})(nn||(nn=m()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),un=(0,v.ZP)(on.Z).withConfig({displayName:"StyledBall"})(tn||(tn=m()(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function dn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function fn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?dn(Object(t),!0).forEach((function(n){Ae()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):dn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const pn=function(e){var n=e.value,t=e.events,r=e.readOnly,o=e.type,a=e.options,i=e.fromText,c=e.toText,l=Qe[o],s=(null==n?void 0:n.isRangeValue)||!1,d=(0,u.useRef)(n);d.current=n;var f,p,h=(0,u.useMemo)((function(){return fn(fn({},t),{},{onChange:t.onChange})}),[t]),g={onChange:function(e){t.onChange(fn(fn({},d.current),{},{to:e}))}},m={onChange:function(e){t.onChange(fn(fn({},d.current),{},{from:e}))}},v=(null==l?void 0:l.type)||o,b=(0,w.jsx)(Me.Z,fn(fn({type:v},Fe()(e,["type"])),{},{events:h})),y=(0,w.jsxs)(sn,{children:[(0,w.jsx)(Me.Z,fn(fn({},e),{},{options:(f=a,p=null==n?void 0:n.to,null!=l&&l.getFromOptions?l.getFromOptions(f,p):f),value:(null==n?void 0:n.from)||null,events:m,placeholder:i})),rn||(rn=(0,w.jsx)(cn,{children:(0,w.jsx)(qe.Z,{icon:"horizontal-rule"})})),(0,w.jsx)(Me.Z,fn(fn({},e),{},{options:function(e,n){return null!=l&&l.getToOptions?l.getToOptions(e,n):e}(a,null==n?void 0:n.from),value:(null==n?void 0:n.to)||null,events:g,placeholder:c}))]});return(0,w.jsxs)(ln,{children:[s?y:b,(0,w.jsx)(un,{disabled:r,icon:s?"square-minus":"square-plus",onClick:function(){var e=s?function(e){return null!=l&&l.fromRange?l.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(n):function(e){return null!=l&&l.toRange?l.toRange(e):{from:e,to:e,isRangeValue:!0}}(n);t.onChange(e)}})]})};const hn=function(e){var n=e.active,t=e.elapsed,r=e.setActive,o=e.setElapsed;return(0,w.jsxs)("div",{children:[(0,w.jsx)(f.Z,{label:"Active",fixLabel:!0,children:(0,w.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,w.jsx)(f.Z,{label:"Elapsed",hasValue:!!t,children:(0,w.jsx)(pn,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){o(e)}}})})]})};var gn={setActive:Te.Iv,setElapsed:Te.uI};const mn=(0,l.connect)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),gn)(hn);var vn,bn,yn,xn,wn,kn,jn,On={ERROR:"#a00"},Pn=v.ZP.div.withConfig({displayName:"StyledLogTable"})(vn||(vn=m()(["\n display: grid;\n gap: 1px;\n"]))),Sn=v.ZP.div.withConfig({displayName:"StyledLogEntry"})(bn||(bn=m()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(On[e.level]||"#ddd",";")})),Cn=v.ZP.span.withConfig({displayName:"StyledStatementHeader"})(yn||(yn=m()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,H.Z)()),_n=v.ZP.span.withConfig({displayName:"StyledStatement"})(xn||(xn=m()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,H.Z)()),Rn=v.ZP.span.withConfig({displayName:"StyledTime"})(wn||(wn=m()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,H.Z)()),En=v.ZP.span.withConfig({displayName:"StyledElapsedContainer"})(kn||(kn=m()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,H.Z)()),Zn=v.ZP.span.withConfig({displayName:"StyledElapsed"})(jn||(jn=m()(["\n background-color: ",";\n border-radius: 5px;\n padding: 0.5em;\n"])),(function(e){return(n=e.elapsed)>=1e3?"#f00":n>=500?"#ff8c00":n>=100?"#ff0":"#dedede";var n}));const Dn=function(e){var n=e.entry,t=(0,u.useState)(!1),r=z()(t,2),o=r[0],a=r[1],i=n.sql.length>100,c=i?n.sql.substr(0,100)+"...":n.sql;return(0,w.jsxs)(Sn,{children:[(0,w.jsx)(Cn,{expandable:i,onClick:function(){i&&a(!o)},children:c}),o&&(0,w.jsx)(_n,{children:n.sql}),(0,w.jsx)(Rn,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,w.jsx)(En,{children:(0,w.jsxs)(Zn,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var Ln;const Tn=function(e){var n=function(e,n){return n?e.filter((function(e){return!0===n.isRangeValue?e.elapsed>=n.from&&e.elapsed<=n.to:e.elapsed>=n})):e}(e.entries,e.elapsed);return(0,w.jsx)(Pn,{children:n.length>0?n.map((function(e){return(0,w.jsx)(Dn,{entry:e},e.key)})):Ln||(Ln=(0,w.jsx)(c.ZP.Span,{children:"No entries so far."}))})};const Nn=(0,l.connect)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(Tn);var An,In,Fn;const Mn=function(){return(0,w.jsxs)(w.Fragment,{children:[An||(An=(0,w.jsx)(c.ZP.H1,{children:"SQL Log"})),In||(In=(0,w.jsx)(mn,{})),Fn||(Fn=(0,w.jsx)(Nn,{}))]})};var qn=t(88601);function Un(e,n){return(Un=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function zn(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Un(e,n)}function Hn(){return(Hn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Bn(e){return"/"===e.charAt(0)}function Vn(e,n){for(var t=n,r=t+1,o=e.length;r<o;t+=1,r+=1)e[t]=e[r];e.pop()}const $n=function(e,n){void 0===n&&(n="");var t,r=e&&e.split("/")||[],o=n&&n.split("/")||[],a=e&&Bn(e),i=n&&Bn(n),c=a||i;if(e&&Bn(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var l=o[o.length-1];t="."===l||".."===l||""===l}else t=!1;for(var s=0,u=o.length;u>=0;u--){var d=o[u];"."===d?Vn(o,u):".."===d?(Vn(o,u),s++):s&&(Vn(o,u),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&Bn(o[0])||o.unshift("");var f=o.join("/");return t&&"/"!==f.substr(-1)&&(f+="/"),f};var Wn=t(2177);function Gn(e){return"/"===e.charAt(0)?e:"/"+e}function Kn(e){return"/"===e.charAt(0)?e.substr(1):e}function Yn(e,n){return function(e,n){return 0===e.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(n.length))}(e,n)?e.substr(n.length):e}function Jn(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Qn(e){var n=e.pathname,t=e.search,r=e.hash,o=n||"/";return t&&"?"!==t&&(o+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Xn(e,n,t,r){var o;"string"==typeof e?(o=function(e){var n=e||"/",t="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var a=n.indexOf("?");return-1!==a&&(t=n.substr(a),n=n.substr(0,a)),{pathname:n,search:"?"===t?"":t,hash:"#"===r?"":r}}(e)).state=n:(void 0===(o=Hn({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==n&&void 0===o.state&&(o.state=n));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return t&&(o.key=t),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=$n(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function et(){var e=null;var n=[];return{setPrompt:function(n){return e=n,function(){e===n&&(e=null)}},confirmTransitionTo:function(n,t,r,o){if(null!=e){var a="function"==typeof e?e(n,t):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var t=!0;function r(){t&&e.apply(void 0,arguments)}return n.push(r),function(){t=!1,n=n.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.forEach((function(e){return e.apply(void 0,t)}))}}}var nt=!("undefined"==typeof window||!window.document||!window.document.createElement);function tt(e,n){n(window.confirm(e))}var rt="popstate",ot="hashchange";function at(){try{return window.history.state||{}}catch(e){return{}}}function it(e){void 0===e&&(e={}),nt||(0,Wn.Z)(!1);var n,t=window.history,r=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,i=a.forceRefresh,c=void 0!==i&&i,l=a.getUserConfirmation,s=void 0===l?tt:l,u=a.keyLength,d=void 0===u?6:u,f=e.basename?Jn(Gn(e.basename)):"";function p(e){var n=e||{},t=n.key,r=n.state,o=window.location,a=o.pathname+o.search+o.hash;return f&&(a=Yn(a,f)),Xn(a,r,t)}function h(){return Math.random().toString(36).substr(2,d)}var g=et();function m(e){Hn(_,e),_.length=t.length,g.notifyListeners(_.location,_.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(p(e.state))}function b(){x(p(at()))}var y=!1;function x(e){if(y)y=!1,m();else{g.confirmTransitionTo(e,"POP",s,(function(n){n?m({action:"POP",location:e}):function(e){var n=_.location,t=k.indexOf(n.key);-1===t&&(t=0);var r=k.indexOf(e.key);-1===r&&(r=0);var o=t-r;o&&(y=!0,O(o))}(e)}))}}var w=p(at()),k=[w.key];function j(e){return f+Qn(e)}function O(e){t.go(e)}var P=0;function S(e){1===(P+=e)&&1===e?(window.addEventListener(rt,v),o&&window.addEventListener(ot,b)):0===P&&(window.removeEventListener(rt,v),o&&window.removeEventListener(ot,b))}var C=!1;var _={length:t.length,action:"POP",location:w,createHref:j,push:function(e,n){var o="PUSH",a=Xn(e,n,h(),_.location);g.confirmTransitionTo(a,o,s,(function(e){if(e){var n=j(a),i=a.key,l=a.state;if(r)if(t.pushState({key:i,state:l},null,n),c)window.location.href=n;else{var s=k.indexOf(_.location.key),u=k.slice(0,s+1);u.push(a.key),k=u,m({action:o,location:a})}else window.location.href=n}}))},replace:function(e,n){var o="REPLACE",a=Xn(e,n,h(),_.location);g.confirmTransitionTo(a,o,s,(function(e){if(e){var n=j(a),i=a.key,l=a.state;if(r)if(t.replaceState({key:i,state:l},null,n),c)window.location.replace(n);else{var s=k.indexOf(_.location.key);-1!==s&&(k[s]=a.key),m({action:o,location:a})}else window.location.replace(n)}}))},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(e){void 0===e&&(e=!1);var n=g.setPrompt(e);return C||(S(1),C=!0),function(){return C&&(C=!1,S(-1)),n()}},listen:function(e){var n=g.appendListener(e);return S(1),function(){S(-1),n()}}};return _}var ct="hashchange",lt={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Kn(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Kn,decodePath:Gn},slash:{encodePath:Gn,decodePath:Gn}};function st(e){var n=e.indexOf("#");return-1===n?e:e.slice(0,n)}function ut(){var e=window.location.href,n=e.indexOf("#");return-1===n?"":e.substring(n+1)}function dt(e){window.location.replace(st(window.location.href)+"#"+e)}function ft(e){void 0===e&&(e={}),nt||(0,Wn.Z)(!1);var n=window.history,t=(window.navigator.userAgent.indexOf("Firefox"),e),r=t.getUserConfirmation,o=void 0===r?tt:r,a=t.hashType,i=void 0===a?"slash":a,c=e.basename?Jn(Gn(e.basename)):"",l=lt[i],s=l.encodePath,u=l.decodePath;function d(){var e=u(ut());return c&&(e=Yn(e,c)),Xn(e)}var f=et();function p(e){Hn(P,e),P.length=n.length,f.notifyListeners(P.location,P.action)}var h=!1,g=null;function m(){var e,n,t=ut(),r=s(t);if(t!==r)dt(r);else{var a=d(),i=P.location;if(!h&&(n=a,(e=i).pathname===n.pathname&&e.search===n.search&&e.hash===n.hash))return;if(g===Qn(a))return;g=null,function(e){if(h)h=!1,p();else{var n="POP";f.confirmTransitionTo(e,n,o,(function(t){t?p({action:n,location:e}):function(e){var n=P.location,t=x.lastIndexOf(Qn(n));-1===t&&(t=0);var r=x.lastIndexOf(Qn(e));-1===r&&(r=0);var o=t-r;o&&(h=!0,w(o))}(e)}))}}(a)}}var v=ut(),b=s(v);v!==b&&dt(b);var y=d(),x=[Qn(y)];function w(e){n.go(e)}var k=0;function j(e){1===(k+=e)&&1===e?window.addEventListener(ct,m):0===k&&window.removeEventListener(ct,m)}var O=!1;var P={length:n.length,action:"POP",location:y,createHref:function(e){var n=document.querySelector("base"),t="";return n&&n.getAttribute("href")&&(t=st(window.location.href)),t+"#"+s(c+Qn(e))},push:function(e,n){var t="PUSH",r=Xn(e,void 0,void 0,P.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=Qn(r),o=s(c+n);if(ut()!==o){g=n,function(e){window.location.hash=e}(o);var a=x.lastIndexOf(Qn(P.location)),i=x.slice(0,a+1);i.push(n),x=i,p({action:t,location:r})}else p()}}))},replace:function(e,n){var t="REPLACE",r=Xn(e,void 0,void 0,P.location);f.confirmTransitionTo(r,t,o,(function(e){if(e){var n=Qn(r),o=s(c+n);ut()!==o&&(g=n,dt(o));var a=x.indexOf(Qn(P.location));-1!==a&&(x[a]=n),p({action:t,location:r})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&(e=!1);var n=f.setPrompt(e);return O||(j(1),O=!0),function(){return O&&(O=!1,j(-1)),n()}},listen:function(e){var n=f.appendListener(e);return j(1),function(){j(-1),n()}}};return P}t(94662);function pt(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}d().Component;d().Component;var ht=function(e,n){return"function"==typeof e?e(n):e},gt=function(e,n){return"string"==typeof e?Xn(e,null,null,n):e},mt=function(e){return e},vt=d().forwardRef;void 0===vt&&(vt=mt);var bt=vt((function(e,n){var t=e.innerRef,r=e.navigate,o=e.onClick,a=pt(e,["innerRef","navigate","onClick"]),i=a.target,c=Hn({},a,{onClick:function(e){try{o&&o(e)}catch(n){throw e.preventDefault(),n}e.defaultPrevented||0!==e.button||i&&"_self"!==i||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=mt!==vt&&n||t,d().createElement("a",c)}));var yt=vt((function(e,n){var t=e.component,r=void 0===t?bt:t,o=e.replace,i=e.to,c=e.innerRef,l=pt(e,["component","replace","to","innerRef"]);return d().createElement(a.s6.Consumer,null,(function(e){e||(0,Wn.Z)(!1);var t=e.history,a=gt(ht(i,e.location),e.location),s=a?t.createHref(a):"",u=Hn({},l,{href:s,navigate:function(){var n=ht(i,e.location),r=Qn(e.location)===Qn(gt(n));(o||r?t.replace:t.push)(n)}});return mt!==vt?u.ref=n||c:u.innerRef=c,d().createElement(r,u)}))})),xt=function(e){return e},wt=d().forwardRef;void 0===wt&&(wt=xt);wt((function(e,n){var t=e["aria-current"],r=void 0===t?"page":t,o=e.activeClassName,i=void 0===o?"active":o,c=e.activeStyle,l=e.className,s=e.exact,u=e.isActive,f=e.location,p=e.sensitive,h=e.strict,g=e.style,m=e.to,v=e.innerRef,b=pt(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return d().createElement(a.s6.Consumer,null,(function(e){e||(0,Wn.Z)(!1);var t=f||e.location,o=gt(ht(m,t),t),y=o.pathname,x=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=x?(0,a.LX)(t.pathname,{path:x,exact:s,sensitive:p,strict:h}):null,k=!!(u?u(w,t):w),j="function"==typeof l?l(k):l,O="function"==typeof g?g(k):g;k&&(j=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter((function(e){return e})).join(" ")}(j,i),O=Hn({},O,c));var P=Hn({"aria-current":k&&r||null,className:j,style:O,to:o},b);return xt!==wt?P.ref=n||v:P.innerRef=v,d().createElement(yt,P)}))}));var kt,jt=t(24875);const Ot=(0,v.ZP)(yt)(kt||(kt=m()(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,H.Z)(),jt.FS.color("secondary"),jt.FS.color("text"),jt.FS.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?jt.FS.color("text"):jt.FS.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}));var Pt,St,Ct,_t,Rt,Et,Zt,Dt,Lt,Tt,Nt=v.ZP.div.withConfig({displayName:"StyledDevCon"})(Pt||(Pt=m()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n"])),qn.Z.color("paper"),an.Z.space(0)),At=v.ZP.div.withConfig({displayName:"StyledNavigation"})(St||(St=m()(["\n display: flex;\n"]))),It=(0,v.ZP)(Ot).withConfig({displayName:"StyledRouterLink"})(Ct||(Ct=m()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const Ft=function(){return(0,w.jsxs)(Nt,{children:[_t||(_t=(0,w.jsx)(i.Z.Notifications,{})),Rt||(Rt=(0,w.jsx)(c.ZP.Span,{children:"Tocco Developer Console"})),Et||(Et=(0,w.jsxs)(At,{children:[(0,w.jsx)(It,{to:"/log",children:"Log"}),(0,w.jsx)(It,{to:"/modelvalidation",children:"Model Validation"}),(0,w.jsx)(It,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,w.jsx)(It,{to:"/sqllog",children:"SQL Log"})]})),(0,w.jsxs)(a.rs,{children:[(0,w.jsx)(a.AW,{path:"/",exact:!0,render:function(){return(0,w.jsx)(a.l_,{to:{pathname:"/log"}})}}),(0,w.jsx)(a.AW,{path:"/log",exact:!0,render:function(){return Zt||(Zt=(0,w.jsx)(ie,{}))}}),(0,w.jsx)(a.AW,{path:"/dbrefactoring",exact:!0,render:function(){return Dt||(Dt=(0,w.jsx)(L,{}))}}),(0,w.jsx)(a.AW,{path:"/modelvalidation",exact:!0,render:function(){return Lt||(Lt=(0,w.jsx)(Le,{}))}}),(0,w.jsx)(a.AW,{path:"/sqllog",exact:!0,render:function(){return Tt||(Tt=(0,w.jsx)(Mn,{}))}})]})]})}},24295:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>Re});var r=t(63038),o=t.n(r),a=t(28655),i=t.n(a),c=t(22085),l=t.n(c),s=(t(66245),t(56544)),u=t(7197),d=t(81272),f=t(82341),p=t(97595),h=t(66679),g=t(38794),m=t(12964),v=t(27361),b=t.n(v),y=t(14293),x=t.n(y),w=t(13218),k=t.n(w),j=t(47037),O=t.n(j),P=t(1024),S=t(38205),C=(t(36976),t(92194),t(2565),t(8821),t(71083),t(42061),t(74576),t(82454),t(55872),t(58119),t(54159)),_=function(e){return C.Z.executeRequest("rest/".concat(e))},R=function(e){return 200===e.status?e.json():null},E=t(93913),Z=t.n(E),D=t(34575),L=t.n(D),T=t(2205),N=t.n(T),A=t(78585),I=t.n(A),F=t(29754),M=t.n(F),q=(t(51500),t(1469)),U=t.n(q),z=t(30236),H=t.n(z),B=["==","!=","<=",">=","<",">","~="],V=["true","false","null"],$=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],W=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],G=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function K(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=M()(e);if(n){var o=M()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}const Y=function(e){return function(n){N()(r,n);var t=K(r);function r(){var n;L()(this,r),n=t.call(this);var o=[{token:"keyword.operator.conjunction",regex:/(\s*)(and|or|not)($|\s+)/,caseInsensitive:!0},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.exists",regex:/exists\s*/,push:"exists",caseInsensitive:!0},{token:"keyword.count",regex:/count\s*/,push:"count",caseInsensitive:!0},{token:["keyword.function.nice_function","paren.lparen.function_arguments","text.function_arguments","paren.rparen","text.whitespace"],regex:"((?:".concat(G.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],a={start:e?[{token:"keyword.where",regex:/\s*/,next:"rootwhere",caseInsensitive:!0}]:[{token:"keyword.find",regex:/find($|\s+)/,push:"model",caseInsensitive:!0},{token:"keyword.where",regex:/where($|\s+)/,next:"rootwhere",caseInsensitive:!0}],model:[{token:"support.class.model",regex:/[A-Z][a-z_0-9]*\s*/,next:"pop"}],rootwhere:[{token:"keyword.order_by",regex:/order by($|\s+)/,next:"order",caseInsensitive:!0}].concat(o),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(B.join("|"),")\\s*"),next:"value"}],value:[{token:"string",regex:/".*?"\s*/,next:"pop"},{token:"constant.numeric",regex:/\d+(.\d+)?\s*/,next:"pop"},{token:"constant.language.tocco_placeholder",regex:"\\:(".concat(W.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(V.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat($.join("|"),"):\\s*"),caseInsensitive:!0}],exists:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"existswhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"pop"}],existswhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"pop"}]),count:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"countwhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}],countwhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}]),order:[{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:["support.function.field","keyword.direction","separator"],regex:/([a-z_]+\s*)(asc|desc)?($|,|\s+)/}]};return n.$rules=H()(n.$rules,a,(function(e,n){return U()(e)?e.concat(n):void 0})),n.normalizeRules(),n}return Z()(r)}(l().require("ace/mode/text_highlight_rules").TextHighlightRules)};function J(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=M()(e);if(n){var o=M()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}var Q=function(e){N()(t,e);var n=J(t);function t(){var e;L()(this,t);return(e=n.call(this)).$rules={start:[{token:"constant.character.entity",regex:/&[^;]+;/},{token:"support.function",regex:"\\?(\\?|substring|cap_first|uncap_first|capitalize|chop_linebreak|date|time|datetime|ends_with|html|groups|index_of|j_string|js_string|json_string|last_index_of|length|lower_case|left_pad|right_pad|contains|matches|number|replace|rtf|url|split|starts_with|string|trim|upper_case|word_list|xhtml|xmlc|round|floor|ceilingiso_[a-z_]+first|last|seq_contains|seq_index_of|seq_last_index_of|reverse|size|sort|sort_by|chunkkeys|valueschildren|parent|root|ancestors|node_name|node_type|node_namespacebyte|double|float|int|long|short|number_to_date|number_to_time|number_to_datetime|eval|has_content|interpret|is_[a-z_]+|namespacenew)"},{token:"support.function.deprecated",regex:"\\?(default|exists|if_exists|web_safe)"},{token:"language.variable",regex:"\\.(?:data_model|error|globals|lang|locale|locals|main|namespace|node|current_node|now|output_encoding|template_name|url_escaping_charset|vars|version)"},{token:"constant.language",regex:"\\b(true|false)\\b"},{token:"keyword.operator",regex:"\\b(?:gt|gte|lt|lte|as|in|using)\\b"},{token:"entity.other.attribute-name",regex:"encoding|parse|locale|number_format|date_format|time_format|datetime_format|time_zone|url_escaping_charset|classic_compatible|strip_whitespace|strip_text|strict_syntax|ns_prefixes|attributes"},{token:"string",regex:/['"]/,next:"qstring"},{token:function(e){return e.match("^[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?$")?"constant.numeric":"variable"},regex:/[\w.+-]+/},{token:"keyword.operator",regex:"!|\\.|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^="},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qstring:[{token:"constant.character.escape",regex:'\\\\[nrtvef\\\\"$]'},{token:"string",regex:/['"]/,next:"start"},{defaultToken:"string"}]},e}return Z()(t)}(l().require("ace/mode/text_highlight_rules").TextHighlightRules),X=function(e){N()(t,e);var n=J(t);function t(){var e;L()(this,t),e=n.call(this);var r=["query","queryCount"],o=[{token:"keyword.function",regex:"\\[@(".concat(r.join("|"),").*?]"),push:"tql-start"},{token:"comment",regex:"\\[#--",next:"ftl-dcomment"},{token:"string.interpolated",regex:"\\${",push:"ftl-start"},{token:"keyword.function",regex:"\\[/?#(assign|attempt|break|case|compress|default|elseif|else|escape|fallback|function|flush|ftl|global|if|import|include|list|local|lt|macro|nested|noescape|noparse|nt|recover|recurse|return|rt|setting|stop|switch|t|visit)",push:"ftl-start"},{token:"keyword.other",regex:"\\[/?@[a-zA-Z\\.]+",push:"ftl-start"}];for(var a in e.$rules)e.$rules[a].unshift.apply(e.$rules[a],o);e.embedRules(Q,"ftl-",[{token:"keyword",regex:"/?\\]",next:"pop"},{token:"string.interpolated",regex:"}",next:"pop"}],["start"]),e.addRules({"ftl-dcomment":[{token:"comment",regex:"--\\]",next:"pop"},{defaultToken:"comment"}]});var i=[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}];e.embedRules(Y(),"tql-",i,["start"]);var c={"tql-rootwhere":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}],"tql-order":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}]};return e.$rules=H()(e.$rules,c,(function(e,n){return U()(e)?e.concat(n):void 0})),e.normalizeRules(),e}return Z()(t)}(l().require("ace/mode/html_highlight_rules").HtmlHighlightRules),ee=t(68551),ne=t.n(ee),te=t(319),re=t.n(te),oe=l().require("ace/token_iterator").TokenIterator,ae=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},ie=function(e,n){return ae(e.getCurrentToken())===n},ce=function(e){if(ie(e,"model")&&e.stepBackward(),(ie(e,"field")||ie(e,"relation"))&&e.stepBackward(),!ie(e,"chaining"))return null;if(e.stepBackward(),ie(e,"model")){var n=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),n?n.value.trim():null}return null},le=function(e,n){for(;!ie(e,n);)if(!e.stepBackward())return!1;return!0},se=function(e,n){return ie(e,"rparen")?1:n>0&&ie(e,"lparen")?(e.stepBackward(),-1):0},ue=function(e){for(var n=0;e.getCurrentToken();){if(0===n&&ie(e,"where")){var t=e.stepBackward();return t?[t.value.trim()].concat(re()(fe(e))):[]}if(ie(e,"order_by")){if(le(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(n+=se(e,n),!e.stepBackward())return null}return null},de=function(e,n){for(var t=[],r=n(e);r;)Array.isArray(r)?r.forEach((function(e){return t.unshift(e)})):t.unshift(r),r=n(e);return t},fe=function(e){return de(e,ce)},pe=function(e){return de(e,ue)},he=1e3,ge=function(e,n,t){var r=function(e,n){if(n){var t=pe(e());return{baseModel:n,modelScope:ne()(t).slice(0)}}var r=pe(e()),o=ne()(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,t),o=r.baseModel,a=r.modelScope;if(o){var i=fe(e()),c=[].concat(re()(a),re()(i)).map((function(e){return"rel".concat(e)}));(function(e){var n=ne()(e),t=n[0],r=n.slice(1);return _(function(e,n){var t=n.length>0?"/resolve?path="+n.join("."):"";return"entities/".concat(e,"/model").concat(t)}(t,r)).then(R).then((function(e){if(!e)return[];var n=e.fields||[],t=e.relations||[];return[].concat(re()(n.map((function(e){return{label:(n=e,n.label?"".concat(n.fieldName," (").concat(n.label,")"):n.fieldName),value:e.fieldName,meta:e.type};var n}))),re()(t.map((function(e){return{label:(n=e,n.label?"".concat(n.relationName," (").concat(n.label,")"):n.relationName),value:e.relationName,meta:e.targetEntity};var n}))))}))})([o].concat(re()(c))).then((function(e){var t=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:he}}));n(null,t)})).catch((function(e){return n(e)}))}},me=function(e,n){return n?"".concat(e," (").concat(n,")"):e},ve=function(e){return _("entities").then(R).then((function(e){return e?e.entities:{}})).then((function(e){return e?Object.values(e):[]})).then((function(e){return e.map((function(e){return e.metaData}))})).then((function(n){var t=n.map((function(e){var n=e.modelName,t=e.label;return{caption:me(n,t),value:n,score:he}}));e(null,t)})).catch((function(n){return e(n)}))},be=function(){return G.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const ye=function(e){return{getCompletions:function(n,t,r,o,a){var i=function(){return new oe(t,r.row,r.column)},c=i(),l=c.getCurrentToken(),s=c.stepBackward()?c.getCurrentToken():null;switch(ae(l)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ge(i,a,e);break;case"where":case"conjunction":ge(i,a,e),a(null,be());break;case"nice_function":a(null,be());break;case"find":ve(a);break;case"type":case"tocco_placeholder":case"comparison":a(null,$.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),a(null,W.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ge(i,a,e),s&&"relation"!==ae(s)&&ve(a);break;case null:e&&ge(i,a,e),a(null,be())}}}};function xe(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=M()(e);if(n){var o=M()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}var we=function(e){N()(t,e);var n=xe(t);function t(){var e;return L()(this,t),(e=n.call(this)).HighlightRules=X,e.completer=ye(),e}return Z()(t)}(l().require("ace/mode/ftl").Mode);function ke(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=M()(e);if(n){var o=M()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return I()(this,t)}}var je,Oe=function(e){N()(t,e);var n=ke(t);function t(e){var r,o=e.implicitModelName;return L()(this,t),(r=n.call(this)).HighlightRules=Y(o),r.completer=ye(o),r.snippedIdField=null,r}return Z()(t)}(l().require("ace/mode/text").Mode),Pe=t(85893),Se=S.ZP.div.withConfig({displayName:"StyledEditor"})(je||(je=i()(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),Ce={groovy:function(){return new u.Mode},html:function(){return new d.Mode},xml:function(){return new m.Mode},properties:function(){return new h.Mode},json:function(){return new f.Mode},htmlmixed:function(){return new we},freemarkermixed:function(){return new we},ftl:function(){return new we},tql:function(e){return new Oe(e)},less:function(){return new p.Mode},drools:function(){return new s.Mode},text:function(){return new g.Mode}},_e=function(e,n){var t=n.mode,r=n.theme,a=n.showGutter,i=n.editorOptions,c=void 0===i?{}:i;(function(e){return O()(e)?Promise.resolve(e):k()(e)?_("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(R).then((function(e){return b()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(n.implicitModel).then((function(e){return function(e,n){return b()(Ce,e,e)(n)}(t,{implicitModelName:e})})).then((function(n){return e.getSession().setMode(n)})),e.setTheme("ace/theme/".concat(r)),Object.entries(c).forEach((function(n){var t=o()(n,2),r=t[0],a=t[1];e.setOption(r,a)})),e.renderer.setShowGutter(a),e.resize()};const Re=function(e){var n=e.mode,t=e.theme,r=void 0===t?"textmate":t,o=e.value,a=e.onChange,i=e.showGutter,c=void 0===i||i,s=e.editorOptions,u=void 0===s?{}:s,d=e.implicitModel,f=e.autoFocusOnMount,p=void 0!==f&&f,h=(0,P.useRef)(null),g=(0,P.useRef)(null),m=(0,P.useMemo)((function(){return{mode:n,theme:r,showGutter:c,editorOptions:u,implicitModel:d,autoFocusOnMount:p}}),[n,r,c,u,d,p]);return(0,P.useEffect)((function(){var e=l().edit(h.current);return e.getSession().setValue(o||""),e.on("change",(function(){return a(e.getValue())})),_e(e,m),g.current=e,m.autoFocusOnMount&&g.current.focus(),function(){return e.destroy()}}),[]),(0,P.useEffect)((function(){g.current&&_e(g.current,m)}),[m]),(0,P.useEffect)((function(){g.current&&!x()(o)&&o!==g.current.getValue()&&g.current.getSession().setValue(o)}),[o]),(0,Pe.jsx)(Se,{ref:h})}},48078:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>l});var r=t(25631),o=t(41609),a=t.n(o),i=t(41291),c=t(85893);const l=function(e){var n=e.value,t=e.breakWords,o=(0,r.S)(n),l=a()(o)?n:o.formatInternational();return(0,c.jsx)(i.Z,{href:"tel:".concat(n),target:"_blank",onClick:function(e){return e.stopPropagation()},label:l,breakWords:t})}},78633:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>B});var r,o=t(59713),a=t.n(o),i=t(1024);function c(e,n){e.onload=function(){this.onerror=this.onload=null,n(null,e)},e.onerror=function(){this.onerror=this.onload=null,n(new Error("Failed to load "+this.src),e)}}function l(e,n){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,n(null,e))}}function s(e,n){return"CKEDITOR"in window?Promise.resolve(CKEDITOR):"string"!=typeof e||e.length<1?Promise.reject(new TypeError("CKEditor URL must be a non-empty string.")):(r||(r=s.scriptLoader(e).then((function(e){return n&&n(e),e}))),r)}s.scriptLoader=function(e){return new Promise((function(n,t){
2
- /**
3
- * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
4
- * For licensing, see LICENSE.md.
5
- */
6
- var o,a,i,s,u;o=e,a=function(e){return r=void 0,e?t(e):window.CKEDITOR?void n(CKEDITOR):t(new Error("Script loaded from editorUrl doesn't provide CKEDITOR namespace."))},s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script"),"function"==typeof a&&(i=a,a={}),a=a||{},i=i||function(){},u.type=a.type||"text/javascript",u.charset=a.charset||"utf8",u.async=!("async"in a)||!!a.async,u.src=o,a.attrs&&function(e,n){for(var t in n)e.setAttribute(t,n[t])}(u,a.attrs),a.text&&(u.text=String(a.text)),("onload"in u?c:l)(u,i),u.onload||c(u,i),s.appendChild(u)}))};var u=t(45697),d=function(){return(d=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function f(e,n,t){if(t||2===arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}var p=["activeEnterModeChange","activeFilterChange","afterCommandExec","afterInsertHtml","afterPaste","afterPasteFromWord","afterSetData","afterUndoImage","ariaEditorHelpLabel","ariaWidget","autogrow","beforeCommandExec","beforeDestroy","beforeGetData","beforeModeUnload","beforeSetMode","beforeUndoImage","blur","change","configLoaded","contentDirChanged","contentDom","contentDomInvalidated","contentDomUnload","contentPreview","customConfigLoaded","dataFiltered","dataReady","destroy","dialogHide","dialogShow","dirChanged","doubleclick","dragend","dragstart","drop","elementsPathUpdate","exportPdf","fileUploadRequest","fileUploadResponse","floatingSpaceLayout","focus","getData","getSnapshot","insertElement","insertHtml","insertText","instanceReady","key","langLoaded","loadSnapshot","loaded","lockSnapshot","maximize","menuShow","mode","notificationHide","notificationShow","notificationUpdate","paste","pasteFromWord","pluginsLoaded","readOnly","removeFormatCleanup","required","resize","save","saveSnapshot","selectionChange","setData","stylesRemove","stylesSet","template","toDataFormat","toHtml","uiSpace","unlockSnapshot","updateSnapshot","widgetDefinition"],h=["beforeLoad","namespaceLoaded"],g=f(f([],p,!0),h,!0),m="__CKE__";function v(e){var n=e.substr(0,1).toUpperCase()+e.substr(1);return"on".concat(n)}function b(e){return e.substr(2,1).toLowerCase()+e.substr(3)}var y=f(f([],p,!0),h,!0).reduce((function(e,n){var t;return d(d({},e),((t={})[n]=function(e){return"".concat(m).concat(e)}(n),t))}),{});function x(e){return e.split(/(?=[A-Z])/).join("-").toLowerCase()}function w(e,n,t){var r={display:"none",visibility:"hidden"};return"classic"===e?r:"ready"===n?null!=t?t:void 0:r}function k(e){var n=e.debug,t=e.editor,r=e.evtName,o=e.handler,a=e.listenerData,i=e.priority,c=n&&Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),l=o;return n&&(l=function(e){console.log({operation:"invoke",editor:t.name,evtName:r,handlerId:c,data:e.data,listenerData:e.listenerData}),o(e)}),n&&console.log({operation:"register",editor:t.name,evtName:r,handlerId:c}),t.on(r,l,null,a,i),function(){n&&console.log({operation:"unregister",editor:t.name,evtName:r,handlerId:c}),t.removeListener(r,l)}}var j=i.useEffect,O=i.useReducer,P=i.useRef,S={};function C(e,n){switch(n.type){case"init":return d(d({},e),{hookStatus:"init"});case"loading":return d(d({},e),{hookStatus:"loading"});case"unloaded":return{editor:n.payload,hookStatus:"unloaded"};case"loaded":return d(d({},e),{hookStatus:"loaded"});case"ready":return d(d({},e),{hookStatus:"ready"});case"destroyed":return{editor:void 0,hookStatus:"destroyed"};case"error":return{editor:void 0,hookStatus:"error"};default:return e}}var _=i.useEffect,R=i.useRef,E=i.useState;function Z(e){var n=e.config,t=void 0===n?{}:n,r=e.debug,o=e.editorUrl,a=e.initData,c=e.name,l=e.readOnly,u=e.style,d=e.type,f=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(e,["config","debug","editorUrl","initData","name","readOnly","style","type"]),p=E(null),Z=p[0],D=p[1],L=R(f);t&&"boolean"==typeof l&&(t.readOnly=l);var T=function(e){var n=e.config,t=e.debug,r=e.dispatchEvent,o=e.subscribeTo,a=void 0===o?g:o,i=e.editorUrl,c=e.element,l=e.initContent,u=e.type,d=void 0===u?"classic":u,f=P(i||"https://cdn.ckeditor.com/4.21.0/standard-all/ckeditor.js"),p=P(null!=a?a:g),v=P(t),b=P(r),x=P(l),w=P(n||S),_=P(d),R=O(C,{editor:void 0,hookStatus:"init"}),E=R[0],Z=E.editor,D=E.hookStatus,L=R[1];return j((function(){return c&&!Z&&(L({type:"loading"}),s(f.current,(function(e){var n;-1!==p.current.indexOf("namespaceLoaded")&&(null===(n=b.current)||void 0===n||n.call(b,{type:y.namespaceLoaded,payload:e}))})).then((function(e){var n,t="inline"===_.current,r=w.current.readOnly;-1!==p.current.indexOf("beforeLoad")&&(null===(n=b.current)||void 0===n||n.call(b,{type:y.beforeLoad,payload:e}));var o=e[t?"inline":"replace"](c,w.current);p.current.filter((function(e){return-1===h.indexOf(e)})).forEach((function(e){k({debug:v.current,editor:o,evtName:e,handler:function(n){var t;null===(t=b.current)||void 0===t||t.call(b,{type:"".concat(m).concat(e),payload:n})}})})),k({debug:v.current,editor:o,evtName:"loaded",handler:function(){L({type:"loaded"})},priority:-1}),k({debug:v.current,editor:o,evtName:"instanceReady",handler:function(e){var n=e.editor;L({type:"ready"}),t&&!r&&n.setReadOnly(!1),x.current&&n.setData(x.current,{noSnapshot:!0,callback:function(){n.resetUndo()}})},priority:-1}),k({debug:v.current,editor:o,evtName:"destroy",handler:function(){L({type:"destroyed"})},priority:-1}),L({type:"unloaded",payload:o})})).catch((function(e){console.error(e),L({type:"error"})}))),function(){Z&&Z.destroy()}}),[Z,c]),{editor:Z,status:null==Z?void 0:Z.status,error:"error"===D,loading:"loading"===D}}({config:t,dispatchEvent:function(e){var n=e.type,t=e.payload,r=v(n.substr(m.length)),o=L.current[r];o&&o(t)},debug:r,editorUrl:o,element:Z,initContent:"string"==typeof a?a:void 0,subscribeTo:Object.keys(f).filter((function(e){return 0===e.indexOf("on")})).map(b),type:d}),N=T.editor,A=T.status;return _((function(){var e="inline"!==d&&N&&("loaded"===A||"ready"===A);return u&&e&&N.container.setStyles(u),function(){u&&e&&Object.keys(u).map(x).forEach((function(e){N.container.removeStyle(e)}))}}),[N,A,u,d]),_((function(){N&&"ready"===A&&"boolean"==typeof l&&N.setReadOnly(l)}),[N,A,l]),i.createElement("div",{id:null!=c?c:void 0,ref:D,style:w(null!=d?d:"classic",A,u)},"string"==typeof a?null:a)}var D=d({config:u.object,debug:u.bool,editorUrl:u.string,initData:u.node,name:u.string,readOnly:u.bool,style:u.object,type:u.oneOf(["classic","inline"])},g.reduce((function(e,n){var t;return d(d({},e),((t={})[v(n)]=u.func,t))}),{}));Z.propTypes=D;var L,T=t(86896),N=t(28655),A=t.n(N),I=t(38205),F=t(56822),M=I.ZP.div.withConfig({displayName:"StyledHtmlEditor"})(L||(L=A()(["\n && {\n .ck-editor {\n --ck-border-radius: 0.27rem;\n ","\n\n .ck.ck-list__item .ck-button.ck-fontsize-option .ck-button__label {\n line-height: 1;\n }\n\n .ck-editor__editable {\n min-height: 100px;\n }\n }\n }\n"])),(function(e){return(0,F.L)(e,"ckeditor")})),q=t(85893);function U(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var z=function(e){switch(e){case"fr-CH":return"fr";case"it-CH":return"it";case"en-US":return"en";case"fr":case"en":case"it":case"de":return e;case"de-CH":return"de-ch";case"de-DE":default:return"de"}},H=function(e){var n=e.value,r=e.onChange,o=e.contentLang,i=e.ckEditorConfig,c=(0,T.Z)().locale,l=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?U(Object(t),!0).forEach((function(n){a()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({language:z(c),contentsLanguage:o,entities:!1,allowedContent:!0,toolbar:[["Bold","Italic","Underline","Strike","RemoveFormat"],["Format","Font","FontSize","TextColor"],["NumberedList","BulletedList"],["Link","Unlink"],["Table","SpecialChar","Image"],["PasteText"],["Source"]],extraPlugins:["colorbutton","colordialog","dialogadvtab","font","codemirror"],removeButtons:[],removeDialogTabs:"",removePlugins:["elementspath"],codemirror:{mode:"htmlmixed",enableCodeFormatting:!0,autoFormatOnStart:!0}},i);return(0,q.jsx)(M,{children:(0,q.jsx)(Z,{config:l,initData:n,type:"classic",onChange:function(e){var n=e.editor.getData();r(n)},onKey:function(e){"source"===e.editor.mode&&setTimeout((function(){var n=e.editor.editable().getValue();r(n)}),0)},editorUrl:"".concat(t.p,"ckeditor4/ckeditor.js")})})};H.defaultProps={value:"",contentLang:"de"};const B=H},59178:(e,n,t)=>{"use strict";t.r(n),t.d(n,{Icon:()=>q,default:()=>U});var r,o=t(59713),a=t.n(o),i=t(45697),c=t.n(i),l=t(6479),s=t.n(l),u=t(23636),d=t(93024),f=t(65735),p=t(73582),h=t(67814),g=t(27361),m=t.n(g),v=t(28655),b=t.n(v),y=t(38205).ZP.span.withConfig({displayName:"StyledFontAwesomeAdapterWrapper"})(r||(r=b()([""]))),x=t(85893),w=["icon","style","hasFixedWidth"];function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){a()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}u.library.add(p.IJ7,f.IJ7,f.C65,f.kJo,f._tD,f.A35,f.mTx,f.ptq,f.g4A,f.r8p,f.Pk,f.g9M,f.Tab,p.Tab,f.NBC,f.eFW,f.acZ,f.u2A,f.Mdf,f.gMD,f.cwv,f.w49,f.fUD,f.icc,f.ca9,f.Vmj,f.gSj,f.WFE,f.hQn,f.LEp,f.WV2,f.FU$,f.diR,p.diR,f.f8k,p.f8k,d.xYR,d.neY,d.AYu,d.kBj,d.hVS,d.dc_,d.Av$,f.xiG,f.gJF,f.j1w,f.WKO,f.wn1,f.b7W,f.YHc,f.ZC5,f.UO1,p.Fyj,f.Qj4,f.FL8,f.foy,f.u9C,f.Fuz,f.iV1,f.Kl4,f.nYk,f.sqG,f.RLE,f.XAH,f.Zrf,f.jMV,f.pL1,f.g6h,f.SJY,f.qmU,f.nek,f.Qy6,f.lH_,p.pL1,f.hVM,f.yOf,f.Xgz,f.Mzg,f.r6l,f.IwR,f.aJJ,p.Alc,f.dLO,f.ntl,f.Hw7,f.FYs,f.$36,f.fT7,f.ioP,f.Cw9,f.Ry6,f.C3l,f.a1i,f.jGC,f.IeV,f.A8,f.hG5,f.FVb,f.AxY,f.mAj,f.hGM,f.UkD,f.BDt,f.QzV,f.py1,f.cf$,f.byT,f.dT$,f.G_j,f.A4,f.ar8,f.nNP,f.yGT,f.ILF,f.rux,f.qbi);var O=function(e){var n=e.icon,t=e.style,r=e.hasFixedWidth,o=s()(e,w),a=n.includes(",")?n.replace(/\s+/,"").split(","):n,i=j({},m()(t,"color")&&{color:t.color}),c=Array.isArray(a)?a[1]:a;return(0,x.jsx)(y,{children:(0,x.jsx)(h.G,j(j(j({icon:a,style:t},i),{},{fixedWidth:r},o),{},{"data-testid":"icon-".concat(c)}))})};O.defaultProps={hasFixedWidth:!0};const P=O,S=JSON.parse('{"abacus":{"id":"fal, abacus","lib":"fa"},"address-card":{"id":"fal, address-card","lib":"fa"},"apple":{"id":"fab, apple","lib":"fa","tags":["sso"]},"arrow-left":{"id":"fal, arrow-left","lib":"fa","tags":["navigate"]},"arrow-right":{"id":"fal, arrow-right","lib":"fa","tags":["navigate"]},"arrow-to-bottom":{"id":"fal, arrow-to-bottom","lib":"fa","tags":["download"]},"arrow-to-top":{"id":"fal, arrow-to-top","lib":"fa","tags":["upload"]},"arrow-up-long":{"id":"fal, arrow-up-long","lib":"fa","tags":["arrow-up-long"]},"ballot-check":{"id":"fal, ballot-check","lib":"fa"},"barcode-alt":{"id":"fal, barcode-alt","lib":"fa"},"bars":{"id":"fal, bars","lib":"fa","tags":["burger"]},"bell":{"id":"fal, bell","lib":"fa","tags":["notification"]},"bolt":{"id":"fal, bolt-lightning","lib":"fa"},"bolt-lightning":{"id":"fal, bolt-lightning","lib":"fa"},"book":{"id":"fal, book","lib":"fa"},"box":{"id":"fal, box","lib":"fa"},"box-open":{"id":"fal, box-open","lib":"fa"},"calendar":{"id":"fal, calendar","lib":"fa"},"calendar-arrow-down":{"id":"fal, calendar-arrow-down","lib":"fa"},"calendar-circle-user":{"id":"fal, calendar-circle-user","lib":"fa"},"calendar-check":{"id":"fal, calendar-check","lib":"fa"},"calendar-minus":{"id":"fal, calendar-minus","lib":"fa"},"calendar-plus":{"id":"fal, calendar-plus","lib":"fa"},"chalkboard-teacher":{"id":"fal, chalkboard-teacher","lib":"fa"},"chart-network":{"id":"fal, chart-network","lib":"fa"},"check":{"id":"fal, check","lib":"fa","tags":["ok"]},"check-circle":{"id":"fal, check-circle","lib":"fa","tags":["check"]},"check-circle-full":{"id":"fas, check-circle","lib":"fa"},"chevron-double-down":{"id":"fal, chevron-double-down","lib":"fa"},"chevron-double-left":{"id":"fal, chevron-double-left","lib":"fa"},"chevron-double-right":{"id":"fal, chevron-double-right","lib":"fa"},"chevron-double-up":{"id":"fal, chevron-double-up","lib":"fa"},"chevron-down":{"id":"fal, chevron-down","lib":"fa"},"chevron-left":{"id":"fal, chevron-left","lib":"fa"},"chevron-right":{"id":"fal, chevron-right","lib":"fa"},"chevron-up":{"id":"fal, chevron-up","lib":"fa"},"circle":{"id":"fal, circle","lib":"fa","tags":["selection"]},"circle-full":{"id":"fas, circle","lib":"fa"},"circle-notch":{"id":"fa, circle-notch","lib":"fa"},"circle-notch-light":{"id":"fal, circle-notch","lib":"fa"},"code":{"id":"fal, code","lib":"fa"},"cog":{"id":"fal, cog","lib":"fa"},"compress":{"id":"fal, compress","lib":"fa"},"comment":{"id":"fal, comment","lib":"fa"},"cube":{"id":"fal, cube","lib":"fa"},"dropbox":{"id":"fab, dropbox","lib":"fa","tags":["sso"]},"ellipsis-v":{"id":"fal, ellipsis-v","lib":"fa","tags":["dots","pünktli"]},"envelope":{"id":"fal, envelope","lib":"fa"},"exclamation":{"id":"fal, exclamation","lib":"fa","tags":["warning"]},"exclamation-circle":{"id":"fal, exclamation-circle","lib":"fa","tags":["warning"]},"external-link":{"id":"fal, external-link","lib":"fa","tags":["external-link"]},"eye":{"id":"fal, eye","lib":"fa"},"facebook":{"id":"fab, facebook","lib":"fa","tags":["sso"]},"facebook-f":{"id":"fab, facebook-f","lib":"fa","tags":["sso"]},"file":{"id":"fal, file","lib":"fa"},"file-alt":{"id":"fal, file-alt","lib":"fa"},"file-code":{"id":"fal, file-code","lib":"fa"},"file-csv":{"id":"fal, file-csv","lib":"fa"},"file-excel":{"id":"fal, file-excel","lib":"fa"},"file-export":{"id":"fal, file-export","lib":"fa"},"file-import":{"id":"fal, file-import","lib":"fa"},"file-pdf":{"id":"fal, file-pdf","lib":"fa"},"file-spreadsheet":{"id":"fal, file-spreadsheet","lib":"fa"},"filter":{"id":"fal, filter","lib":"fa"},"folder":{"id":"fal, folder","lib":"fa"},"folders":{"id":"fal, folders","lib":"fa","tags":["copy"]},"globe":{"id":"fal, globe","lib":"fa"},"google":{"id":"fab, google","lib":"fa","tags":["sso"]},"horizontal-rule":{"id":"fal, horizontal-rule","lib":"fa"},"id-badge":{"id":"fal, id-badge","lib":"fa"},"info":{"id":"fal, info","lib":"fa"},"laptop-code":{"id":"fal, laptop-code","lib":"fa"},"link":{"id":"fal, link","lib":"fa"},"list":{"id":"fal, list","lib":"fa"},"list-check":{"id":"fal, list-check","lib":"fa"},"lock":{"id":"fal, lock","lib":"fa"},"info-circle":{"id":"fal, info-circle","lib":"fa","tags":["info"]},"mail-bulk":{"id":"fal, mail-bulk","lib":"fa"},"map-marked":{"id":"fal, map-marked","lib":"fa"},"merge":{"id":"fal, merge","lib":"fa"},"microsoft":{"id":"fab, microsoft","lib":"fa","tags":["sso"]},"minus":{"id":"fal, minus","lib":"fa"},"newspaper":{"id":"fal, newspaper","lib":"fa"},"office":{"id":"office","lib":"toc"},"paper-clip":{"id":"fa, paper-clip","lib":"fa"},"pen":{"id":"fal, pen","lib":"fa"},"pen-field":{"id":"fal, pen-field","lib":"fa"},"percent":{"id":"fal, percent","lib":"fa"},"phone":{"id":"fal, phone","lib":"fa"},"phone-laptop":{"id":"fal, phone-laptop","lib":"fa"},"plus":{"id":"fal, plus","lib":"fa","tags":["new"]},"question-circle":{"id":"fal, question-circle","lib":"fa","tags":["help"]},"save":{"id":"fal, save","lib":"fa"},"search":{"id":"fal, search","lib":"fa"},"sitemap":{"id":"fal, sitemap","lib":"fa"},"sort-down":{"id":"fal, sort-down","lib":"fa"},"sort-up":{"id":"fal, sort-up","lib":"fa"},"square":{"id":"fal, square","lib":"fa"},"square-full":{"id":"fas, square-full","lib":"fa"},"square-minus":{"id":"fal, square-minus","lib":"fa"},"square-plus":{"id":"fal, square-plus","lib":"fa"},"star":{"id":"fal, star","lib":"fa","tags":["favorite"]},"star-full":{"id":"fas, star","lib":"fa","tags":["favorite"]},"sync":{"id":"fal, sync","lib":"fa","tags":["refresh"]},"tasks":{"id":"fal, tasks","lib":"fa"},"times":{"id":"fal, times","lib":"fa","tags":["delete","close"]},"times-circle":{"id":"fal, times-circle","lib":"fa","tags":["error"]},"tocco":{"id":"logo","lib":"toc"},"trash":{"id":"fal, trash","lib":"fa","tags":["trash"]},"upload":{"id":"fal, upload","lib":"fa"},"users":{"id":"fal, users","lib":"fa"},"lightbulb-exclamation":{"id":"fal, lightbulb-exclamation","lib":"fa"},"house-blank":{"id":"fal, house-blank","lib":"fa"},"floppy-disk-circle-xmark":{"id":"fal, floppy-disk-circle-xmark","lib":"fa"},"user":{"id":"fal, user","lib":"fa"},"suitcase":{"id":"fal, suitcase","lib":"fa"}}');var C,_,R=["style"],E=["style"],Z=["icon"];function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function L(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){a()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var T={logo:function(e){var n=e.style,t=s()(e,R);return(0,x.jsx)("svg",L(L(L({height:m()(n,"fontSize",20)},n),t),{},{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:C||(C=(0,x.jsx)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 \n 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))}))},office:function(e){var n=e.style,t=s()(e,E);return(0,x.jsx)("svg",L(L(L({height:m()(n,"fontSize",20)},n),t),{},{"aria-hidden":"true",role:"img",enableBackground:"new 0 0 2075 2499.8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2075 2499.8",children:_||(_=(0,x.jsx)("path",{fill:"currentColor",d:"m0 2016.6v-1519.8l1344.4-496.8 730.6 233.7v2045.9l-730.6 220.3-1344.4-483.3 1344.4 \n 161.8v-1769.2l-876.8 204.6v1198.3z"}))}))}},N=function(e){var n=e.icon,t=s()(e,Z);return T[n](t)};N.propTypes={icon:c().string.isRequired};const A=N;function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){a()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M={fa:function(e,n){return(0,x.jsx)(P,F(F({},n),{},{icon:e.id}))},toc:function(e,n){return(0,x.jsx)(A,F(F({},n),{},{icon:e.id,"data-testid":"icon-".concat(e.id)}))}},q=function(e){var n=S[e.icon];if(!n)return null;var t=M[n.lib];return t?t(n,e):null};q.propTypes={icon:c().string.isRequired,style:c().objectOf(c().string)};const U=q},81251:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var r=t(59713),o=t.n(r),a=t(88162),i=t(85893);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){o()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const s=function(e){var n=e.size,t=e.style,r=e.icon;return(0,i.jsx)(a.Z,l(l({},t),{},{style:{fontSize:n},spin:!0,icon:r||"circle-notch"}))}},126:(e,n,t)=>{"use strict";var r=t(51235);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,a,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:a,resetWarningCache:o};return t.PropTypes=t,t}},94662:(e,n,t)=>{e.exports=t(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);