@budibase/server 2.0.20 → 2.0.21

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.
Files changed (154) hide show
  1. package/builder/assets/{index.654c9538.js → index.e2f22248.js} +2 -2
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +2 -2
  4. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  5. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/index.html +1 -1
  11. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  17. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  22. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  30. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  35. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  39. package/coverage/lcov-report/api/index.html +1 -1
  40. package/coverage/lcov-report/api/index.js.html +1 -1
  41. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  42. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  43. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  44. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  45. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  46. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/index.html +1 -1
  51. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  65. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  68. package/coverage/lcov-report/automations/actions.js.html +1 -1
  69. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  70. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  71. package/coverage/lcov-report/automations/index.html +1 -1
  72. package/coverage/lcov-report/automations/index.js.html +1 -1
  73. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  74. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  75. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  76. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  77. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  78. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  79. package/coverage/lcov-report/automations/steps/index.html +1 -1
  80. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  90. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  91. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  92. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  93. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  94. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  95. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  96. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  97. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  98. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  99. package/coverage/lcov-report/constants/index.html +1 -1
  100. package/coverage/lcov-report/constants/index.js.html +1 -1
  101. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  102. package/coverage/lcov-report/constants/screens.js.html +1 -1
  103. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  104. package/coverage/lcov-report/db/index.html +1 -1
  105. package/coverage/lcov-report/db/index.js.html +1 -1
  106. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  107. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  108. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  109. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  110. package/coverage/lcov-report/db/newid.js.html +1 -1
  111. package/coverage/lcov-report/db/utils.js.html +1 -1
  112. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  113. package/coverage/lcov-report/events/index.html +1 -1
  114. package/coverage/lcov-report/events/index.js.html +1 -1
  115. package/coverage/lcov-report/events/utils.js.html +1 -1
  116. package/coverage/lcov-report/index.html +1 -1
  117. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  118. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  119. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  120. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  121. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  122. package/coverage/lcov-report/middleware/index.html +1 -1
  123. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  124. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  125. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  126. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  127. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  128. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  129. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  130. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  131. package/coverage/lcov-report/utilities/global.js.html +1 -1
  132. package/coverage/lcov-report/utilities/index.html +1 -1
  133. package/coverage/lcov-report/utilities/index.js.html +1 -1
  134. package/coverage/lcov-report/utilities/plugins.js.html +1 -1
  135. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  136. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  137. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  138. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  139. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  140. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  141. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  142. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  143. package/coverage/lcov-report/utilities/security.js.html +1 -1
  144. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  145. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  146. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  147. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  148. package/coverage/lcov-report/utilities/users.js.html +1 -1
  149. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  150. package/dist/package.json +6 -6
  151. package/dist/threads/automation.js +15 -1
  152. package/dist/tsconfig.build.tsbuildinfo +1 -1
  153. package/package.json +7 -7
  154. package/src/threads/automation.ts +24 -5
@@ -476,7 +476,7 @@ b`.split(/\n/).length!=3?function(p){for(var g=0,z=[],k=p.length;g<=k;){var L=p.
476
476
  outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Te;c&&(Te=window.scrollY),k.input.focus(),c&&window.scrollTo(null,Te),k.input.reset(),z.somethingSelected()||(L.value=g.prevInput=" "),g.contextMenuPending=Ye,k.selForContextMenu=z.doc.sel,clearTimeout(k.detectingSelectAll);function Ge(){if(L.selectionStart!=null){var wt=z.somethingSelected(),Ht="\u200B"+(wt?L.value:"");L.value="\u21DA",L.value=Ht,g.prevInput=wt?"":"\u200B",L.selectionStart=1,L.selectionEnd=Ht.length,k.selForContextMenu=z.doc.sel}}function Ye(){if(g.contextMenuPending==Ye&&(g.contextMenuPending=!1,g.wrapper.style.cssText=ce,L.style.cssText=ae,s&&u<9&&k.scrollbars.setScrollTop(k.scroller.scrollTop=Y),L.selectionStart!=null)){(!s||s&&u<9)&&Ge();var wt=0,Ht=function(){k.selForContextMenu==z.doc.sel&&L.selectionStart==0&&L.selectionEnd>0&&g.prevInput=="\u200B"?Gr(z,V1)(z):wt++<10?k.detectingSelectAll=setTimeout(Ht,500):(k.selForContextMenu=null,k.input.reset())};k.detectingSelectAll=setTimeout(Ht,200)}}if(s&&u>=9&&Ge(),W){It(p);var ht=function(){jn(window,"mouseup",ht),setTimeout(Ye,20)};St(window,"mouseup",ht)}else setTimeout(Ye,50)},Xr.prototype.readOnlyChanged=function(p){p||this.reset(),this.textarea.disabled=p=="nocursor",this.textarea.readOnly=!!p},Xr.prototype.setUneditable=function(){},Xr.prototype.needsContentAttribute=!1;function Wc(p,g){if(g=g?_e(g):{},g.value=p.value,!g.tabindex&&p.tabIndex&&(g.tabindex=p.tabIndex),!g.placeholder&&p.placeholder&&(g.placeholder=p.placeholder),g.autofocus==null){var z=de();g.autofocus=z==p||p.getAttribute("autofocus")!=null&&z==document.body}function k(){p.value=Q.getValue()}var L;if(p.form&&(St(p.form,"submit",k),!g.leaveSubmitMethodAlone)){var V=p.form;L=V.submit;try{var Y=V.submit=function(){k(),V.submit=L,V.submit(),V.submit=Y}}catch{}}g.finishInit=function(ae){ae.save=k,ae.getTextArea=function(){return p},ae.toTextArea=function(){ae.toTextArea=isNaN,k(),p.parentNode.removeChild(ae.getWrapperElement()),p.style.display="",p.form&&(jn(p.form,"submit",k),!g.leaveSubmitMethodAlone&&typeof p.form.submit=="function"&&(p.form.submit=L))}},p.style.display="none";var Q=Tr(function(ae){return p.parentNode.insertBefore(ae,p.nextSibling)},g);return Q}function xf(p){p.off=jn,p.on=St,p.wheelEventPixels=hs,p.Doc=Zi,p.splitLines=Gi,p.countColumn=ct,p.findColumn=at,p.isWordChar=ot,p.Pass=xe,p.signal=kn,p.Line=W1,p.changeEnd=so,p.scrollbarModel=Co,p.Pos=Mt,p.cmpPos=Pe,p.modes=s1,p.mimeModes=t1,p.resolveMode=Oa,p.getMode=x0,p.modeExtensions=K1,p.extendMode=$a,p.copyState=wa,p.startState=e0,p.innerMode=M1,p.commands=v1,p.keyMap=Sa,p.keyName=Au,p.isModifierKey=zu,p.lookupKey=p0,p.normalizeKeyMap=ac,p.StringStream=Zr,p.SharedTextMarker=Ya,p.TextMarker=qo,p.LineWidget=il,p.e_preventDefault=et,p.e_stopPropagation=gt,p.e_stop=It,p.addClass=we,p.contains=ue,p.rmClass=ne,p.keyNames=ma}T1(Tr),ws(Tr);var Eo="iter insert remove copy getEditor constructor".split(" ");for(var zs in Zi.prototype)Zi.prototype.hasOwnProperty(zs)&&me(Eo,zs)<0&&(Tr.prototype[zs]=function(p){return function(){return p.apply(this.doc,arguments)}}(Zi.prototype[zs]));return Hr(Zi),Tr.inputStyles={textarea:Xr,contenteditable:wr},Tr.defineMode=function(p){!Tr.defaults.mode&&p!="null"&&(Tr.defaults.mode=p),Is.apply(this,arguments)},Tr.defineMIME=ja,Tr.defineMode("null",function(){return{token:function(p){return p.skipToEnd()}}}),Tr.defineMIME("text/plain","null"),Tr.defineExtension=function(p,g){Tr.prototype[p]=g},Tr.defineDocExtension=function(p,g){Zi.prototype[p]=g},Tr.fromTextArea=Wc,xf(Tr),Tr.version="5.63.3",Tr})})(Of);const Cf=Of.exports;(function(n,e){(function(t){t(Of.exports)})(function(t){t.defineMode("javascript",function(r,i){var a=r.indentUnit,o=i.statementIndent,l=i.jsonld,s=i.json||l,u=i.trackScope!==!1,c=i.typescript,f=i.wordCharacters||/[\w$\xa1-\uffff]/,h=function(){function Pe(fa){return{type:fa,style:"keyword"}}var bt=Pe("keyword a"),Qt=Pe("keyword b"),zn=Pe("keyword c"),yr=Pe("keyword d"),ai=Pe("operator"),sn={type:"atom",style:"atom"};return{if:Pe("if"),while:bt,with:bt,else:Qt,do:Qt,try:Qt,finally:Qt,return:yr,break:yr,continue:yr,new:Pe("new"),delete:zn,void:zn,throw:zn,debugger:Pe("debugger"),var:Pe("var"),const:Pe("var"),let:Pe("var"),function:Pe("function"),catch:Pe("catch"),for:Pe("for"),switch:Pe("switch"),case:Pe("case"),default:Pe("default"),in:ai,typeof:ai,instanceof:ai,true:sn,false:sn,null:sn,undefined:sn,NaN:sn,Infinity:sn,this:Pe("this"),class:Pe("class"),super:Pe("atom"),yield:zn,export:Pe("export"),import:Pe("import"),extends:zn,await:zn}}(),m=/[+\-*&%=<>!?|~^@]/,_=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function y(Pe){for(var bt=!1,Qt,zn=!1;(Qt=Pe.next())!=null;){if(!bt){if(Qt=="/"&&!zn)return;Qt=="["?zn=!0:zn&&Qt=="]"&&(zn=!1)}bt=!bt&&Qt=="\\"}}var w,A;function E(Pe,bt,Qt){return w=Pe,A=Qt,bt}function T(Pe,bt){var Qt=Pe.next();if(Qt=='"'||Qt=="'")return bt.tokenize=I(Qt),bt.tokenize(Pe,bt);if(Qt=="."&&Pe.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(Qt=="."&&Pe.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Qt))return E(Qt);if(Qt=="="&&Pe.eat(">"))return E("=>","operator");if(Qt=="0"&&Pe.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(Qt))return Pe.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(Qt=="/")return Pe.eat("*")?(bt.tokenize=P,P(Pe,bt)):Pe.eat("/")?(Pe.skipToEnd(),E("comment","comment")):Mt(Pe,bt,1)?(y(Pe),Pe.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(Pe.eat("="),E("operator","operator",Pe.current()));if(Qt=="`")return bt.tokenize=F,F(Pe,bt);if(Qt=="#"&&Pe.peek()=="!")return Pe.skipToEnd(),E("meta","meta");if(Qt=="#"&&Pe.eatWhile(f))return E("variable","property");if(Qt=="<"&&Pe.match("!--")||Qt=="-"&&Pe.match("->")&&!/\S/.test(Pe.string.slice(0,Pe.start)))return Pe.skipToEnd(),E("comment","comment");if(m.test(Qt))return(Qt!=">"||!bt.lexical||bt.lexical.type!=">")&&(Pe.eat("=")?(Qt=="!"||Qt=="=")&&Pe.eat("="):/[<>*+\-|&?]/.test(Qt)&&(Pe.eat(Qt),Qt==">"&&Pe.eat(Qt))),Qt=="?"&&Pe.eat(".")?E("."):E("operator","operator",Pe.current());if(f.test(Qt)){Pe.eatWhile(f);var zn=Pe.current();if(bt.lastType!="."){if(h.propertyIsEnumerable(zn)){var yr=h[zn];return E(yr.type,yr.style,zn)}if(zn=="async"&&Pe.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",zn)}return E("variable","variable",zn)}}function I(Pe){return function(bt,Qt){var zn=!1,yr;if(l&&bt.peek()=="@"&&bt.match(_))return Qt.tokenize=T,E("jsonld-keyword","meta");for(;(yr=bt.next())!=null&&!(yr==Pe&&!zn);)zn=!zn&&yr=="\\";return zn||(Qt.tokenize=T),E("string","string")}}function P(Pe,bt){for(var Qt=!1,zn;zn=Pe.next();){if(zn=="/"&&Qt){bt.tokenize=T;break}Qt=zn=="*"}return E("comment","comment")}function F(Pe,bt){for(var Qt=!1,zn;(zn=Pe.next())!=null;){if(!Qt&&(zn=="`"||zn=="$"&&Pe.eat("{"))){bt.tokenize=T;break}Qt=!Qt&&zn=="\\"}return E("quasi","string-2",Pe.current())}var x="([{}])";function G(Pe,bt){bt.fatArrowAt&&(bt.fatArrowAt=null);var Qt=Pe.string.indexOf("=>",Pe.start);if(!(Qt<0)){if(c){var zn=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(Pe.string.slice(Pe.start,Qt));zn&&(Qt=zn.index)}for(var yr=0,ai=!1,sn=Qt-1;sn>=0;--sn){var fa=Pe.string.charAt(sn),Ia=x.indexOf(fa);if(Ia>=0&&Ia<3){if(!yr){++sn;break}if(--yr==0){fa=="("&&(ai=!0);break}}else if(Ia>=3&&Ia<6)++yr;else if(f.test(fa))ai=!0;else if(/["'\/`]/.test(fa))for(;;--sn){if(sn==0)return;var mo=Pe.string.charAt(sn-1);if(mo==fa&&Pe.string.charAt(sn-2)!="\\"){sn--;break}}else if(ai&&!yr){++sn;break}}ai&&!yr&&(bt.fatArrowAt=sn)}}var W={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ee(Pe,bt,Qt,zn,yr,ai){this.indented=Pe,this.column=bt,this.type=Qt,this.prev=yr,this.info=ai,zn!=null&&(this.align=zn)}function ne(Pe,bt){if(!u)return!1;for(var Qt=Pe.localVars;Qt;Qt=Qt.next)if(Qt.name==bt)return!0;for(var zn=Pe.context;zn;zn=zn.prev)for(var Qt=zn.vars;Qt;Qt=Qt.next)if(Qt.name==bt)return!0}function le(Pe,bt,Qt,zn,yr){var ai=Pe.cc;for(te.state=Pe,te.stream=yr,te.marked=null,te.cc=ai,te.style=bt,Pe.lexical.hasOwnProperty("align")||(Pe.lexical.align=!0);;){var sn=ai.length?ai.pop():s?Ke:ge;if(sn(Qt,zn)){for(;ai.length&&ai[ai.length-1].lex;)ai.pop()();return te.marked?te.marked:Qt=="variable"&&ne(Pe,zn)?"variable-2":bt}}}var te={state:null,column:null,marked:null,cc:null};function X(){for(var Pe=arguments.length-1;Pe>=0;Pe--)te.cc.push(arguments[Pe])}function q(){return X.apply(null,arguments),!0}function re(Pe,bt){for(var Qt=bt;Qt;Qt=Qt.next)if(Qt.name==Pe)return!0;return!1}function ue(Pe){var bt=te.state;if(te.marked="def",!!u){if(bt.context){if(bt.lexical.info=="var"&&bt.context&&bt.context.block){var Qt=de(Pe,bt.context);if(Qt!=null){bt.context=Qt;return}}else if(!re(Pe,bt.localVars)){bt.localVars=new Ce(Pe,bt.localVars);return}}i.globalVars&&!re(Pe,bt.globalVars)&&(bt.globalVars=new Ce(Pe,bt.globalVars))}}function de(Pe,bt){if(bt)if(bt.block){var Qt=de(Pe,bt.prev);return Qt?Qt==bt.prev?bt:new ve(Qt,bt.vars,!0):null}else return re(Pe,bt.vars)?bt:new ve(bt.prev,new Ce(Pe,bt.vars),!1);else return null}function we(Pe){return Pe=="public"||Pe=="private"||Pe=="protected"||Pe=="abstract"||Pe=="readonly"}function ve(Pe,bt,Qt){this.prev=Pe,this.vars=bt,this.block=Qt}function Ce(Pe,bt){this.name=Pe,this.next=bt}var be=new Ce("this",new Ce("arguments",null));function _e(){te.state.context=new ve(te.state.context,te.state.localVars,!1),te.state.localVars=be}function ct(){te.state.context=new ve(te.state.context,te.state.localVars,!0),te.state.localVars=null}function ze(){te.state.localVars=te.state.context.vars,te.state.context=te.state.context.prev}ze.lex=!0;function me(Pe,bt){var Qt=function(){var zn=te.state,yr=zn.indented;if(zn.lexical.type=="stat")yr=zn.lexical.indented;else for(var ai=zn.lexical;ai&&ai.type==")"&&ai.align;ai=ai.prev)yr=ai.indented;zn.lexical=new ee(yr,te.stream.column(),Pe,null,zn.lexical,bt)};return Qt.lex=!0,Qt}function je(){var Pe=te.state;Pe.lexical.prev&&(Pe.lexical.type==")"&&(Pe.indented=Pe.lexical.indented),Pe.lexical=Pe.lexical.prev)}je.lex=!0;function xe(Pe){function bt(Qt){return Qt==Pe?q():Pe==";"||Qt=="}"||Qt==")"||Qt=="]"?X():q(bt)}return bt}function ge(Pe,bt){return Pe=="var"?q(me("vardef",bt),Fn,xe(";"),je):Pe=="keyword a"?q(me("form"),Qe,ge,je):Pe=="keyword b"?q(me("form"),ge,je):Pe=="keyword d"?te.stream.match(/^\s*$/,!1)?q():q(me("stat"),tt,xe(";"),je):Pe=="debugger"?q(xe(";")):Pe=="{"?q(me("}"),ct,On,je,ze):Pe==";"?q():Pe=="if"?(te.state.lexical.info=="else"&&te.state.cc[te.state.cc.length-1]==je&&te.state.cc.pop()(),q(me("form"),Qe,ge,je,pi)):Pe=="function"?q(s1):Pe=="for"?q(me("form"),ct,ls,ge,ze,je):Pe=="class"||c&&bt=="interface"?(te.marked="keyword",q(me("form",Pe=="class"?Pe:bt),x0,je)):Pe=="variable"?c&&bt=="declare"?(te.marked="keyword",q(ge)):c&&(bt=="module"||bt=="enum"||bt=="type")&&te.stream.match(/^\s*\w/,!1)?(te.marked="keyword",bt=="enum"?q(j1):bt=="type"?q(Is,xe("operator"),kn,xe(";")):q(me("form"),xn,xe("{"),me("}"),On,je,je)):c&&bt=="namespace"?(te.marked="keyword",q(me("form"),Ke,ge,je)):c&&bt=="abstract"?(te.marked="keyword",q(ge)):q(me("stat"),Xe):Pe=="switch"?q(me("form"),Qe,xe("{"),me("}","switch"),ct,On,je,je,ze):Pe=="case"?q(Ke,xe(":")):Pe=="default"?q(xe(":")):Pe=="catch"?q(me("form"),_e,ft,ge,je,ze):Pe=="export"?q(me("stat"),M1,je):Pe=="import"?q(me("stat"),Zr,je):Pe=="async"?q(ge):bt=="@"?q(Ke,ge):X(me("stat"),Ke,xe(";"),je)}function ft(Pe){if(Pe=="(")return q(ja,xe(")"))}function Ke(Pe,bt){return We(Pe,bt,!1)}function at(Pe,bt){return We(Pe,bt,!0)}function Qe(Pe){return Pe!="("?X():q(me(")"),tt,xe(")"),je)}function We(Pe,bt,Qt){if(te.state.fatArrowAt==te.stream.start){var zn=Qt?ot:Je;if(Pe=="(")return q(_e,me(")"),un(ja,")"),je,xe("=>"),zn,ze);if(Pe=="variable")return X(_e,xn,xe("=>"),zn,ze)}var yr=Qt?rn:Bt;return W.hasOwnProperty(Pe)?q(yr):Pe=="function"?q(s1,yr):Pe=="class"||c&&bt=="interface"?(te.marked="keyword",q(me("form"),Oa,je)):Pe=="keyword c"||Pe=="async"?q(Qt?at:Ke):Pe=="("?q(me(")"),tt,xe(")"),je,yr):Pe=="operator"||Pe=="spread"?q(Qt?at:Ke):Pe=="["?q(me("]"),Gn,je,yr):Pe=="{"?Vn(Ct,"}",null,yr):Pe=="quasi"?X(Tt,yr):Pe=="new"?q(Se(Qt)):q()}function tt(Pe){return Pe.match(/[;\}\)\],]/)?X():X(Ke)}function Bt(Pe,bt){return Pe==","?q(tt):rn(Pe,bt,!1)}function rn(Pe,bt,Qt){var zn=Qt==!1?Bt:rn,yr=Qt==!1?Ke:at;if(Pe=="=>")return q(_e,Qt?ot:Je,ze);if(Pe=="operator")return/\+\+|--/.test(bt)||c&&bt=="!"?q(zn):c&&bt=="<"&&te.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?q(me(">"),un(kn,">"),je,zn):bt=="?"?q(Ke,xe(":"),yr):q(yr);if(Pe=="quasi")return X(Tt,zn);if(Pe!=";"){if(Pe=="(")return Vn(at,")","call",zn);if(Pe==".")return q(zt,zn);if(Pe=="[")return q(me("]"),tt,xe("]"),je,zn);if(c&&bt=="as")return te.marked="keyword",q(kn,zn);if(Pe=="regexp")return te.state.lastType=te.marked="operator",te.stream.backUp(te.stream.pos-te.stream.start-1),q(yr)}}function Tt(Pe,bt){return Pe!="quasi"?X():bt.slice(bt.length-2)!="${"?q(Tt):q(tt,pe)}function pe(Pe){if(Pe=="}")return te.marked="string-2",te.state.tokenize=F,q(Tt)}function Je(Pe){return G(te.stream,te.state),X(Pe=="{"?ge:Ke)}function ot(Pe){return G(te.stream,te.state),X(Pe=="{"?ge:at)}function Se(Pe){return function(bt){return bt=="."?q(Pe?$e:Ie):bt=="variable"&&c?q(It,Pe?rn:Bt):X(Pe?at:Ke)}}function Ie(Pe,bt){if(bt=="target")return te.marked="keyword",q(Bt)}function $e(Pe,bt){if(bt=="target")return te.marked="keyword",q(rn)}function Xe(Pe){return Pe==":"?q(je,ge):X(Bt,xe(";"),je)}function zt(Pe){if(Pe=="variable")return te.marked="property",q()}function Ct(Pe,bt){if(Pe=="async")return te.marked="property",q(Ct);if(Pe=="variable"||te.style=="keyword"){if(te.marked="property",bt=="get"||bt=="set")return q(on);var Qt;return c&&te.state.fatArrowAt==te.stream.start&&(Qt=te.stream.match(/^\s*:\s*/,!1))&&(te.state.fatArrowAt=te.stream.pos+Qt[0].length),q(ln)}else{if(Pe=="number"||Pe=="string")return te.marked=l?"property":te.style+" property",q(ln);if(Pe=="jsonld-keyword")return q(ln);if(c&&we(bt))return te.marked="keyword",q(Ct);if(Pe=="[")return q(Ke,wn,xe("]"),ln);if(Pe=="spread")return q(at,ln);if(bt=="*")return te.marked="keyword",q(Ct);if(Pe==":")return X(ln)}}function on(Pe){return Pe!="variable"?X(ln):(te.marked="property",q(s1))}function ln(Pe){if(Pe==":")return q(at);if(Pe=="(")return X(s1)}function un(Pe,bt,Qt){function zn(yr,ai){if(Qt?Qt.indexOf(yr)>-1:yr==","){var sn=te.state.lexical;return sn.info=="call"&&(sn.pos=(sn.pos||0)+1),q(function(fa,Ia){return fa==bt||Ia==bt?X():X(Pe)},zn)}return yr==bt||ai==bt?q():Qt&&Qt.indexOf(";")>-1?X(Pe):q(xe(bt))}return function(yr,ai){return yr==bt||ai==bt?q():X(Pe,zn)}}function Vn(Pe,bt,Qt){for(var zn=3;zn<arguments.length;zn++)te.cc.push(arguments[zn]);return q(me(bt,Qt),un(Pe,bt),je)}function On(Pe){return Pe=="}"?q():X(ge,On)}function wn(Pe,bt){if(c){if(Pe==":")return q(kn);if(bt=="?")return q(wn)}}function St(Pe,bt){if(c&&(Pe==":"||bt=="in"))return q(kn)}function zr(Pe){if(c&&Pe==":")return te.stream.match(/^\s*\w+\s+is\b/,!1)?q(Ke,jn,kn):q(kn)}function jn(Pe,bt){if(bt=="is")return te.marked="keyword",q()}function kn(Pe,bt){if(bt=="keyof"||bt=="typeof"||bt=="infer"||bt=="readonly")return te.marked="keyword",q(bt=="typeof"?at:kn);if(Pe=="variable"||bt=="void")return te.marked="type",q(lt);if(bt=="|"||bt=="&")return q(kn);if(Pe=="string"||Pe=="number"||Pe=="atom")return q(lt);if(Pe=="[")return q(me("]"),un(kn,"]",","),je,lt);if(Pe=="{")return q(me("}"),Ut,je,lt);if(Pe=="(")return q(un(gt,")"),Hn,lt);if(Pe=="<")return q(un(kn,">"),kn);if(Pe=="quasi")return X(Hr,lt)}function Hn(Pe){if(Pe=="=>")return q(kn)}function Ut(Pe){return Pe.match(/[\}\)\]]/)?q():Pe==","||Pe==";"?q(Ut):X(Kn,Ut)}function Kn(Pe,bt){if(Pe=="variable"||te.style=="keyword")return te.marked="property",q(Kn);if(bt=="?"||Pe=="number"||Pe=="string")return q(Kn);if(Pe==":")return q(kn);if(Pe=="[")return q(xe("variable"),St,xe("]"),Kn);if(Pe=="(")return X(t1,Kn);if(!Pe.match(/[;\}\)\],]/))return q()}function Hr(Pe,bt){return Pe!="quasi"?X():bt.slice(bt.length-2)!="${"?q(Hr):q(kn,et)}function et(Pe){if(Pe=="}")return te.marked="string-2",te.state.tokenize=F,q(Hr)}function gt(Pe,bt){return Pe=="variable"&&te.stream.match(/^\s*[?:]/,!1)||bt=="?"?q(gt):Pe==":"?q(kn):Pe=="spread"?q(gt):X(kn)}function lt(Pe,bt){if(bt=="<")return q(me(">"),un(kn,">"),je,lt);if(bt=="|"||Pe=="."||bt=="&")return q(kn);if(Pe=="[")return q(kn,xe("]"),lt);if(bt=="extends"||bt=="implements")return te.marked="keyword",q(kn);if(bt=="?")return q(kn,xe(":"),kn)}function It(Pe,bt){if(bt=="<")return q(me(">"),un(kn,">"),je,lt)}function fn(){return X(kn,an)}function an(Pe,bt){if(bt=="=")return q(kn)}function Fn(Pe,bt){return bt=="enum"?(te.marked="keyword",q(j1)):X(xn,wn,mi,Gi)}function xn(Pe,bt){if(c&&we(bt))return te.marked="keyword",q(xn);if(Pe=="variable")return ue(bt),q();if(Pe=="spread")return q(xn);if(Pe=="[")return Vn(fr,"]");if(Pe=="{")return Vn(br,"}")}function br(Pe,bt){return Pe=="variable"&&!te.stream.match(/^\s*:/,!1)?(ue(bt),q(mi)):(Pe=="variable"&&(te.marked="property"),Pe=="spread"?q(xn):Pe=="}"?X():Pe=="["?q(Ke,xe("]"),xe(":"),br):q(xe(":"),xn,mi))}function fr(){return X(xn,mi)}function mi(Pe,bt){if(bt=="=")return q(at)}function Gi(Pe){if(Pe==",")return q(Fn)}function pi(Pe,bt){if(Pe=="keyword b"&&bt=="else")return q(me("form","else"),ge,je)}function ls(Pe,bt){if(bt=="await")return q(ls);if(Pe=="(")return q(me(")"),Qa,je)}function Qa(Pe){return Pe=="var"?q(Fn,Qo):Pe=="variable"?q(Qo):X(Qo)}function Qo(Pe,bt){return Pe==")"?q():Pe==";"?q(Qo):bt=="in"||bt=="of"?(te.marked="keyword",q(Ke,Qo)):X(Ke,Qo)}function s1(Pe,bt){if(bt=="*")return te.marked="keyword",q(s1);if(Pe=="variable")return ue(bt),q(s1);if(Pe=="(")return q(_e,me(")"),un(ja,")"),je,zr,ge,ze);if(c&&bt=="<")return q(me(">"),un(fn,">"),je,s1)}function t1(Pe,bt){if(bt=="*")return te.marked="keyword",q(t1);if(Pe=="variable")return ue(bt),q(t1);if(Pe=="(")return q(_e,me(")"),un(ja,")"),je,zr,ze);if(c&&bt=="<")return q(me(">"),un(fn,">"),je,t1)}function Is(Pe,bt){if(Pe=="keyword"||Pe=="variable")return te.marked="type",q(Is);if(bt=="<")return q(me(">"),un(fn,">"),je)}function ja(Pe,bt){return bt=="@"&&q(Ke,ja),Pe=="spread"?q(ja):c&&we(bt)?(te.marked="keyword",q(ja)):c&&Pe=="this"?q(wn,mi):X(xn,wn,mi)}function Oa(Pe,bt){return Pe=="variable"?x0(Pe,bt):K1(Pe,bt)}function x0(Pe,bt){if(Pe=="variable")return ue(bt),q(K1)}function K1(Pe,bt){if(bt=="<")return q(me(">"),un(fn,">"),je,K1);if(bt=="extends"||bt=="implements"||c&&Pe==",")return bt=="implements"&&(te.marked="keyword"),q(c?kn:Ke,K1);if(Pe=="{")return q(me("}"),$a,je)}function $a(Pe,bt){if(Pe=="async"||Pe=="variable"&&(bt=="static"||bt=="get"||bt=="set"||c&&we(bt))&&te.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return te.marked="keyword",q($a);if(Pe=="variable"||te.style=="keyword")return te.marked="property",q(wa,$a);if(Pe=="number"||Pe=="string")return q(wa,$a);if(Pe=="[")return q(Ke,wn,xe("]"),wa,$a);if(bt=="*")return te.marked="keyword",q($a);if(c&&Pe=="(")return X(t1,$a);if(Pe==";"||Pe==",")return q($a);if(Pe=="}")return q();if(bt=="@")return q(Ke,$a)}function wa(Pe,bt){if(bt=="!"||bt=="?")return q(wa);if(Pe==":")return q(kn,mi);if(bt=="=")return q(at);var Qt=te.state.lexical.prev,zn=Qt&&Qt.info=="interface";return X(zn?t1:s1)}function M1(Pe,bt){return bt=="*"?(te.marked="keyword",q(n1,xe(";"))):bt=="default"?(te.marked="keyword",q(Ke,xe(";"))):Pe=="{"?q(un(e0,"}"),n1,xe(";")):X(ge)}function e0(Pe,bt){if(bt=="as")return te.marked="keyword",q(xe("variable"));if(Pe=="variable")return X(at,e0)}function Zr(Pe){return Pe=="string"?q():Pe=="("?X(Ke):Pe=="."?X(Bt):X(Zt,ka,n1)}function Zt(Pe,bt){return Pe=="{"?Vn(Zt,"}"):(Pe=="variable"&&ue(bt),bt=="*"&&(te.marked="keyword"),q(ou))}function ka(Pe){if(Pe==",")return q(Zt,ka)}function ou(Pe,bt){if(bt=="as")return te.marked="keyword",q(Zt)}function n1(Pe,bt){if(bt=="from")return te.marked="keyword",q(Ke)}function Gn(Pe){return Pe=="]"?q():X(un(at,"]"))}function j1(){return X(me("form"),xn,xe("{"),me("}"),un(eo,"}"),je,je)}function eo(){return X(xn,mi)}function Ps(Pe,bt){return Pe.lastType=="operator"||Pe.lastType==","||m.test(bt.charAt(0))||/[,.]/.test(bt.charAt(0))}function Mt(Pe,bt,Qt){return bt.tokenize==T&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(bt.lastType)||bt.lastType=="quasi"&&/\{\s*$/.test(Pe.string.slice(0,Pe.pos-(Qt||0)))}return{startState:function(Pe){var bt={tokenize:T,lastType:"sof",cc:[],lexical:new ee((Pe||0)-a,0,"block",!1),localVars:i.localVars,context:i.localVars&&new ve(null,null,!1),indented:Pe||0};return i.globalVars&&typeof i.globalVars=="object"&&(bt.globalVars=i.globalVars),bt},token:function(Pe,bt){if(Pe.sol()&&(bt.lexical.hasOwnProperty("align")||(bt.lexical.align=!1),bt.indented=Pe.indentation(),G(Pe,bt)),bt.tokenize!=P&&Pe.eatSpace())return null;var Qt=bt.tokenize(Pe,bt);return w=="comment"?Qt:(bt.lastType=w=="operator"&&(A=="++"||A=="--")?"incdec":w,le(bt,Qt,w,A,Pe))},indent:function(Pe,bt){if(Pe.tokenize==P||Pe.tokenize==F)return t.Pass;if(Pe.tokenize!=T)return 0;var Qt=bt&&bt.charAt(0),zn=Pe.lexical,yr;if(!/^\s*else\b/.test(bt))for(var ai=Pe.cc.length-1;ai>=0;--ai){var sn=Pe.cc[ai];if(sn==je)zn=zn.prev;else if(sn!=pi&&sn!=ze)break}for(;(zn.type=="stat"||zn.type=="form")&&(Qt=="}"||(yr=Pe.cc[Pe.cc.length-1])&&(yr==Bt||yr==rn)&&!/^[,\.=+\-*:?[\(]/.test(bt));)zn=zn.prev;o&&zn.type==")"&&zn.prev.type=="stat"&&(zn=zn.prev);var fa=zn.type,Ia=Qt==fa;return fa=="vardef"?zn.indented+(Pe.lastType=="operator"||Pe.lastType==","?zn.info.length+1:0):fa=="form"&&Qt=="{"?zn.indented:fa=="form"?zn.indented+a:fa=="stat"?zn.indented+(Ps(Pe,bt)?o||a:0):zn.info=="switch"&&!Ia&&i.doubleIndentSwitch!=!1?zn.indented+(/^(?:case|default)\b/.test(bt)?a:2*a):zn.align?zn.column+(Ia?0:1):zn.indented+(Ia?0:a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:l,jsonMode:s,expressionAllowed:Mt,skipExpression:function(Pe){le(Pe,"atom","atom","true",new t.StringStream("",2,null))}}}),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/manifest+json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();(function(n,e){(function(t){t(Of.exports)})(function(t){t.defineMode("sql",function(c,f){var h=f.client||{},m=f.atoms||{false:!0,true:!0,null:!0},_=f.builtin||s(u),y=f.keywords||s(l),w=f.operatorChars||/^[*+\-%<>!=&|~^\/]/,A=f.support||{},E=f.hooks||{},T=f.dateSQL||{date:!0,time:!0,timestamp:!0},I=f.backslashStringEscapes!==!1,P=f.brackets||/^[\{}\(\)\[\]]/,F=f.punctuation||/^[;.,:]/;function x(le,te){var X=le.next();if(E[X]){var q=E[X](le,te);if(q!==!1)return q}if(A.hexNumber&&(X=="0"&&le.match(/^[xX][0-9a-fA-F]+/)||(X=="x"||X=="X")&&le.match(/^'[0-9a-fA-F]+'/)))return"number";if(A.binaryNumber&&((X=="b"||X=="B")&&le.match(/^'[01]+'/)||X=="0"&&le.match(/^b[01]+/)))return"number";if(X.charCodeAt(0)>47&&X.charCodeAt(0)<58)return le.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),A.decimallessFloat&&le.match(/^\.(?!\.)/),"number";if(X=="?"&&(le.eatSpace()||le.eol()||le.eat(";")))return"variable-3";if(X=="'"||X=='"'&&A.doubleQuote)return te.tokenize=G(X),te.tokenize(le,te);if((A.nCharCast&&(X=="n"||X=="N")||A.charsetCast&&X=="_"&&le.match(/[a-z][a-z0-9]*/i))&&(le.peek()=="'"||le.peek()=='"'))return"keyword";if(A.escapeConstant&&(X=="e"||X=="E")&&(le.peek()=="'"||le.peek()=='"'&&A.doubleQuote))return te.tokenize=function(ue,de){return(de.tokenize=G(ue.next(),!0))(ue,de)},"keyword";if(A.commentSlashSlash&&X=="/"&&le.eat("/"))return le.skipToEnd(),"comment";if(A.commentHash&&X=="#"||X=="-"&&le.eat("-")&&(!A.commentSpaceRequired||le.eat(" ")))return le.skipToEnd(),"comment";if(X=="/"&&le.eat("*"))return te.tokenize=W(1),te.tokenize(le,te);if(X=="."){if(A.zerolessFloat&&le.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(le.match(/^\.+/))return null;if(A.ODBCdotTable&&le.match(/^[\w\d_$#]+/))return"variable-2"}else{if(w.test(X))return le.eatWhile(w),"operator";if(P.test(X))return"bracket";if(F.test(X))return le.eatWhile(F),"punctuation";if(X=="{"&&(le.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||le.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";le.eatWhile(/^[_\w\d]/);var re=le.current().toLowerCase();return T.hasOwnProperty(re)&&(le.match(/^( )+'[^']*'/)||le.match(/^( )+"[^"]*"/))?"number":m.hasOwnProperty(re)?"atom":_.hasOwnProperty(re)?"builtin":y.hasOwnProperty(re)?"keyword":h.hasOwnProperty(re)?"string-2":null}}function G(le,te){return function(X,q){for(var re=!1,ue;(ue=X.next())!=null;){if(ue==le&&!re){q.tokenize=x;break}re=(I||te)&&!re&&ue=="\\"}return"string"}}function W(le){return function(te,X){var q=te.match(/^.*?(\/\*|\*\/)/);return q?q[1]=="/*"?X.tokenize=W(le+1):le>1?X.tokenize=W(le-1):X.tokenize=x:te.skipToEnd(),"comment"}}function ee(le,te,X){te.context={prev:te.context,indent:le.indentation(),col:le.column(),type:X}}function ne(le){le.indent=le.context.indent,le.context=le.context.prev}return{startState:function(){return{tokenize:x,context:null}},token:function(le,te){if(le.sol()&&te.context&&te.context.align==null&&(te.context.align=!1),te.tokenize==x&&le.eatSpace())return null;var X=te.tokenize(le,te);if(X=="comment")return X;te.context&&te.context.align==null&&(te.context.align=!0);var q=le.current();return q=="("?ee(le,te,")"):q=="["?ee(le,te,"]"):te.context&&te.context.type==q&&ne(te),X},indent:function(le,te){var X=le.context;if(!X)return t.Pass;var q=te.charAt(0)==X.type;return X.align?X.col+(q?0:1):X.indent+(q?0:c.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:A.commentSlashSlash?"//":A.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function r(c){for(var f;(f=c.next())!=null;)if(f=="`"&&!c.eat("`"))return"variable-2";return c.backUp(c.current().length-1),c.eatWhile(/\w/)?"variable-2":null}function i(c){for(var f;(f=c.next())!=null;)if(f=='"'&&!c.eat('"'))return"variable-2";return c.backUp(c.current().length-1),c.eatWhile(/\w/)?"variable-2":null}function a(c){return c.eat("@")&&(c.match("session."),c.match("local."),c.match("global.")),c.eat("'")?(c.match(/^.*'/),"variable-2"):c.eat('"')?(c.match(/^.*"/),"variable-2"):c.eat("`")?(c.match(/^.*`/),"variable-2"):c.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function o(c){return c.eat("N")?"atom":c.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var l="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function s(c){for(var f={},h=c.split(" "),m=0;m<h.length;++m)f[h[m]]=!0;return f}var u="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";t.defineMIME("text/x-sql",{name:"sql",keywords:s(l+"begin"),builtin:s(u),atoms:s("false true null unknown"),dateSQL:s("date time timestamp"),support:s("ODBCdotTable doubleQuote binaryNumber hexNumber")}),t.defineMIME("text/x-mssql",{name:"sql",client:s("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:s(l+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:s("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:s("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:s("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":a}}),t.defineMIME("text/x-mysql",{name:"sql",client:s("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:s(l+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:s("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:s("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:s("date time timestamp"),support:s("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":a,"`":r,"\\":o}}),t.defineMIME("text/x-mariadb",{name:"sql",client:s("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:s(l+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:s("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:s("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:s("date time timestamp"),support:s("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":a,"`":r,"\\":o}}),t.defineMIME("text/x-sqlite",{name:"sql",client:s("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:s(l+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:s("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:s("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:s("date time timestamp datetime"),support:s("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":a,":":a,"?":a,$:a,'"':i,"`":r}}),t.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:s("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:s("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:s("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:s("commentSlashSlash decimallessFloat"),hooks:{}}),t.defineMIME("text/x-plsql",{name:"sql",client:s("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:s("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:s("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:s("date time timestamp"),support:s("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),t.defineMIME("text/x-hive",{name:"sql",keywords:s("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:s("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:s("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:s("date timestamp"),support:s("ODBCdotTable doubleQuote binaryNumber hexNumber")}),t.defineMIME("text/x-pgsql",{name:"sql",client:s("source"),keywords:s(l+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:s("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:s("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:s("date time timestamp"),support:s("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),t.defineMIME("text/x-gql",{name:"sql",keywords:s("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:s("false true"),builtin:s("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),t.defineMIME("text/x-gpsql",{name:"sql",client:s("source"),keywords:s("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:s("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:s("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:s("date time timestamp"),support:s("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),t.defineMIME("text/x-sparksql",{name:"sql",keywords:s("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:s("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:s("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:s("date time timestamp"),support:s("ODBCdotTable doubleQuote zerolessFloat")}),t.defineMIME("text/x-esper",{name:"sql",client:s("source"),keywords:s("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:s("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:s("time"),support:s("decimallessFloat zerolessFloat binaryNumber hexNumber")})})})();(function(n,e){(function(t){t(Of.exports)})(function(t){var r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(a,o){var l=a.indentUnit,s={},u=o.htmlMode?r:i;for(var c in u)s[c]=u[c];for(var c in o)s[c]=o[c];var f,h;function m(q,re){function ue(ve){return re.tokenize=ve,ve(q,re)}var de=q.next();if(de=="<")return q.eat("!")?q.eat("[")?q.match("CDATA[")?ue(w("atom","]]>")):null:q.match("--")?ue(w("comment","-->")):q.match("DOCTYPE",!0,!0)?(q.eatWhile(/[\w\._\-]/),ue(A(1))):null:q.eat("?")?(q.eatWhile(/[\w\._\-]/),re.tokenize=w("meta","?>"),"meta"):(f=q.eat("/")?"closeTag":"openTag",re.tokenize=_,"tag bracket");if(de=="&"){var we;return q.eat("#")?q.eat("x")?we=q.eatWhile(/[a-fA-F\d]/)&&q.eat(";"):we=q.eatWhile(/[\d]/)&&q.eat(";"):we=q.eatWhile(/[\w\.\-:]/)&&q.eat(";"),we?"atom":"error"}else return q.eatWhile(/[^&<]/),null}m.isInText=!0;function _(q,re){var ue=q.next();if(ue==">"||ue=="/"&&q.eat(">"))return re.tokenize=m,f=ue==">"?"endTag":"selfcloseTag","tag bracket";if(ue=="=")return f="equals",null;if(ue=="<"){re.tokenize=m,re.state=F,re.tagName=re.tagStart=null;var de=re.tokenize(q,re);return de?de+" tag error":"tag error"}else return/[\'\"]/.test(ue)?(re.tokenize=y(ue),re.stringStartCol=q.column(),re.tokenize(q,re)):(q.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function y(q){var re=function(ue,de){for(;!ue.eol();)if(ue.next()==q){de.tokenize=_;break}return"string"};return re.isInAttribute=!0,re}function w(q,re){return function(ue,de){for(;!ue.eol();){if(ue.match(re)){de.tokenize=m;break}ue.next()}return q}}function A(q){return function(re,ue){for(var de;(de=re.next())!=null;){if(de=="<")return ue.tokenize=A(q+1),ue.tokenize(re,ue);if(de==">")if(q==1){ue.tokenize=m;break}else return ue.tokenize=A(q-1),ue.tokenize(re,ue)}return"meta"}}function E(q){return q&&q.toLowerCase()}function T(q,re,ue){this.prev=q.context,this.tagName=re||"",this.indent=q.indented,this.startOfLine=ue,(s.doNotIndent.hasOwnProperty(re)||q.context&&q.context.noIndent)&&(this.noIndent=!0)}function I(q){q.context&&(q.context=q.context.prev)}function P(q,re){for(var ue;;){if(!q.context||(ue=q.context.tagName,!s.contextGrabbers.hasOwnProperty(E(ue))||!s.contextGrabbers[E(ue)].hasOwnProperty(E(re))))return;I(q)}}function F(q,re,ue){return q=="openTag"?(ue.tagStart=re.column(),x):q=="closeTag"?G:F}function x(q,re,ue){return q=="word"?(ue.tagName=re.current(),h="tag",ne):s.allowMissingTagName&&q=="endTag"?(h="tag bracket",ne(q,re,ue)):(h="error",x)}function G(q,re,ue){if(q=="word"){var de=re.current();return ue.context&&ue.context.tagName!=de&&s.implicitlyClosed.hasOwnProperty(E(ue.context.tagName))&&I(ue),ue.context&&ue.context.tagName==de||s.matchClosing===!1?(h="tag",W):(h="tag error",ee)}else return s.allowMissingTagName&&q=="endTag"?(h="tag bracket",W(q,re,ue)):(h="error",ee)}function W(q,re,ue){return q!="endTag"?(h="error",W):(I(ue),F)}function ee(q,re,ue){return h="error",W(q,re,ue)}function ne(q,re,ue){if(q=="word")return h="attribute",le;if(q=="endTag"||q=="selfcloseTag"){var de=ue.tagName,we=ue.tagStart;return ue.tagName=ue.tagStart=null,q=="selfcloseTag"||s.autoSelfClosers.hasOwnProperty(E(de))?P(ue,de):(P(ue,de),ue.context=new T(ue,de,we==ue.indented)),F}return h="error",ne}function le(q,re,ue){return q=="equals"?te:(s.allowMissing||(h="error"),ne(q,re,ue))}function te(q,re,ue){return q=="string"?X:q=="word"&&s.allowUnquoted?(h="string",ne):(h="error",ne(q,re,ue))}function X(q,re,ue){return q=="string"?X:ne(q,re,ue)}return{startState:function(q){var re={tokenize:m,state:F,indented:q||0,tagName:null,tagStart:null,context:null};return q!=null&&(re.baseIndent=q),re},token:function(q,re){if(!re.tagName&&q.sol()&&(re.indented=q.indentation()),q.eatSpace())return null;f=null;var ue=re.tokenize(q,re);return(ue||f)&&ue!="comment"&&(h=null,re.state=re.state(f||ue,q,re),h&&(ue=h=="error"?ue+" error":h)),ue},indent:function(q,re,ue){var de=q.context;if(q.tokenize.isInAttribute)return q.tagStart==q.indented?q.stringStartCol+1:q.indented+l;if(de&&de.noIndent)return t.Pass;if(q.tokenize!=_&&q.tokenize!=m)return ue?ue.match(/^(\s*)/)[0].length:0;if(q.tagName)return s.multilineTagIndentPastTag!==!1?q.tagStart+q.tagName.length+2:q.tagStart+l*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/<!\[CDATA\[/.test(re))return 0;var we=re&&/^<(\/)?([\w_:\.-]*)/.exec(re);if(we&&we[1])for(;de;)if(de.tagName==we[2]){de=de.prev;break}else if(s.implicitlyClosed.hasOwnProperty(E(de.tagName)))de=de.prev;else break;else if(we)for(;de;){var ve=s.contextGrabbers[E(de.tagName)];if(ve&&ve.hasOwnProperty(E(we[2])))de=de.prev;else break}for(;de&&de.prev&&!de.startOfLine;)de=de.prev;return de?de.indent+l:q.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(q){q.state==te&&(q.state=ne)},xmlCurrentTag:function(q){return q.tagName?{name:q.tagName,close:q.type=="closeTag"}:null},xmlCurrentContext:function(q){for(var re=[],ue=q.context;ue;ue=ue.prev)re.push(ue.tagName);return re.reverse()}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(n,e){(function(t){t(Of.exports)})(function(t){t.defineMode("css",function(ee,ne){var le=ne.inline;ne.propertyKeywords||(ne=t.resolveMode("text/css"));var te=ee.indentUnit,X=ne.tokenHooks,q=ne.documentTypes||{},re=ne.mediaTypes||{},ue=ne.mediaFeatures||{},de=ne.mediaValueKeywords||{},we=ne.propertyKeywords||{},ve=ne.nonStandardPropertyKeywords||{},Ce=ne.fontProperties||{},be=ne.counterDescriptors||{},_e=ne.colorKeywords||{},ct=ne.valueKeywords||{},ze=ne.allowNested,me=ne.lineComment,je=ne.supportsAtComponent===!0,xe=ee.highlightNonStandardPropertyKeywords!==!1,ge,ft;function Ke(Se,Ie){return ge=Ie,Se}function at(Se,Ie){var $e=Se.next();if(X[$e]){var Xe=X[$e](Se,Ie);if(Xe!==!1)return Xe}if($e=="@")return Se.eatWhile(/[\w\\\-]/),Ke("def",Se.current());if($e=="="||($e=="~"||$e=="|")&&Se.eat("="))return Ke(null,"compare");if($e=='"'||$e=="'")return Ie.tokenize=Qe($e),Ie.tokenize(Se,Ie);if($e=="#")return Se.eatWhile(/[\w\\\-]/),Ke("atom","hash");if($e=="!")return Se.match(/^\s*\w*/),Ke("keyword","important");if(/\d/.test($e)||$e=="."&&Se.eat(/\d/))return Se.eatWhile(/[\w.%]/),Ke("number","unit");if($e==="-"){if(/[\d.]/.test(Se.peek()))return Se.eatWhile(/[\w.%]/),Ke("number","unit");if(Se.match(/^-[\w\\\-]*/))return Se.eatWhile(/[\w\\\-]/),Se.match(/^\s*:/,!1)?Ke("variable-2","variable-definition"):Ke("variable-2","variable");if(Se.match(/^\w+-/))return Ke("meta","meta")}else return/[,+>*\/]/.test($e)?Ke(null,"select-op"):$e=="."&&Se.match(/^-?[_a-z][_a-z0-9-]*/i)?Ke("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test($e)?Ke(null,$e):Se.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Se.current())&&(Ie.tokenize=We),Ke("variable callee","variable")):/[\w\\\-]/.test($e)?(Se.eatWhile(/[\w\\\-]/),Ke("property","word")):Ke(null,null)}function Qe(Se){return function(Ie,$e){for(var Xe=!1,zt;(zt=Ie.next())!=null;){if(zt==Se&&!Xe){Se==")"&&Ie.backUp(1);break}Xe=!Xe&&zt=="\\"}return(zt==Se||!Xe&&Se!=")")&&($e.tokenize=null),Ke("string","string")}}function We(Se,Ie){return Se.next(),Se.match(/^\s*[\"\')]/,!1)?Ie.tokenize=null:Ie.tokenize=Qe(")"),Ke(null,"(")}function tt(Se,Ie,$e){this.type=Se,this.indent=Ie,this.prev=$e}function Bt(Se,Ie,$e,Xe){return Se.context=new tt($e,Ie.indentation()+(Xe===!1?0:te),Se.context),$e}function rn(Se){return Se.context.prev&&(Se.context=Se.context.prev),Se.context.type}function Tt(Se,Ie,$e){return ot[$e.context.type](Se,Ie,$e)}function pe(Se,Ie,$e,Xe){for(var zt=Xe||1;zt>0;zt--)$e.context=$e.context.prev;return Tt(Se,Ie,$e)}function Je(Se){var Ie=Se.current().toLowerCase();ct.hasOwnProperty(Ie)?ft="atom":_e.hasOwnProperty(Ie)?ft="keyword":ft="variable"}var ot={};return ot.top=function(Se,Ie,$e){if(Se=="{")return Bt($e,Ie,"block");if(Se=="}"&&$e.context.prev)return rn($e);if(je&&/@component/i.test(Se))return Bt($e,Ie,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Se))return Bt($e,Ie,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Se))return Bt($e,Ie,"atBlock");if(/^@(font-face|counter-style)/i.test(Se))return $e.stateArg=Se,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Se))return"keyframes";if(Se&&Se.charAt(0)=="@")return Bt($e,Ie,"at");if(Se=="hash")ft="builtin";else if(Se=="word")ft="tag";else{if(Se=="variable-definition")return"maybeprop";if(Se=="interpolation")return Bt($e,Ie,"interpolation");if(Se==":")return"pseudo";if(ze&&Se=="(")return Bt($e,Ie,"parens")}return $e.context.type},ot.block=function(Se,Ie,$e){if(Se=="word"){var Xe=Ie.current().toLowerCase();return we.hasOwnProperty(Xe)?(ft="property","maybeprop"):ve.hasOwnProperty(Xe)?(ft=xe?"string-2":"property","maybeprop"):ze?(ft=Ie.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ft+=" error","maybeprop")}else return Se=="meta"?"block":!ze&&(Se=="hash"||Se=="qualifier")?(ft="error","block"):ot.top(Se,Ie,$e)},ot.maybeprop=function(Se,Ie,$e){return Se==":"?Bt($e,Ie,"prop"):Tt(Se,Ie,$e)},ot.prop=function(Se,Ie,$e){if(Se==";")return rn($e);if(Se=="{"&&ze)return Bt($e,Ie,"propBlock");if(Se=="}"||Se=="{")return pe(Se,Ie,$e);if(Se=="(")return Bt($e,Ie,"parens");if(Se=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(Ie.current()))ft+=" error";else if(Se=="word")Je(Ie);else if(Se=="interpolation")return Bt($e,Ie,"interpolation");return"prop"},ot.propBlock=function(Se,Ie,$e){return Se=="}"?rn($e):Se=="word"?(ft="property","maybeprop"):$e.context.type},ot.parens=function(Se,Ie,$e){return Se=="{"||Se=="}"?pe(Se,Ie,$e):Se==")"?rn($e):Se=="("?Bt($e,Ie,"parens"):Se=="interpolation"?Bt($e,Ie,"interpolation"):(Se=="word"&&Je(Ie),"parens")},ot.pseudo=function(Se,Ie,$e){return Se=="meta"?"pseudo":Se=="word"?(ft="variable-3",$e.context.type):Tt(Se,Ie,$e)},ot.documentTypes=function(Se,Ie,$e){return Se=="word"&&q.hasOwnProperty(Ie.current())?(ft="tag",$e.context.type):ot.atBlock(Se,Ie,$e)},ot.atBlock=function(Se,Ie,$e){if(Se=="(")return Bt($e,Ie,"atBlock_parens");if(Se=="}"||Se==";")return pe(Se,Ie,$e);if(Se=="{")return rn($e)&&Bt($e,Ie,ze?"block":"top");if(Se=="interpolation")return Bt($e,Ie,"interpolation");if(Se=="word"){var Xe=Ie.current().toLowerCase();Xe=="only"||Xe=="not"||Xe=="and"||Xe=="or"?ft="keyword":re.hasOwnProperty(Xe)?ft="attribute":ue.hasOwnProperty(Xe)?ft="property":de.hasOwnProperty(Xe)?ft="keyword":we.hasOwnProperty(Xe)?ft="property":ve.hasOwnProperty(Xe)?ft=xe?"string-2":"property":ct.hasOwnProperty(Xe)?ft="atom":_e.hasOwnProperty(Xe)?ft="keyword":ft="error"}return $e.context.type},ot.atComponentBlock=function(Se,Ie,$e){return Se=="}"?pe(Se,Ie,$e):Se=="{"?rn($e)&&Bt($e,Ie,ze?"block":"top",!1):(Se=="word"&&(ft="error"),$e.context.type)},ot.atBlock_parens=function(Se,Ie,$e){return Se==")"?rn($e):Se=="{"||Se=="}"?pe(Se,Ie,$e,2):ot.atBlock(Se,Ie,$e)},ot.restricted_atBlock_before=function(Se,Ie,$e){return Se=="{"?Bt($e,Ie,"restricted_atBlock"):Se=="word"&&$e.stateArg=="@counter-style"?(ft="variable","restricted_atBlock_before"):Tt(Se,Ie,$e)},ot.restricted_atBlock=function(Se,Ie,$e){return Se=="}"?($e.stateArg=null,rn($e)):Se=="word"?($e.stateArg=="@font-face"&&!Ce.hasOwnProperty(Ie.current().toLowerCase())||$e.stateArg=="@counter-style"&&!be.hasOwnProperty(Ie.current().toLowerCase())?ft="error":ft="property","maybeprop"):"restricted_atBlock"},ot.keyframes=function(Se,Ie,$e){return Se=="word"?(ft="variable","keyframes"):Se=="{"?Bt($e,Ie,"top"):Tt(Se,Ie,$e)},ot.at=function(Se,Ie,$e){return Se==";"?rn($e):Se=="{"||Se=="}"?pe(Se,Ie,$e):(Se=="word"?ft="tag":Se=="hash"&&(ft="builtin"),"at")},ot.interpolation=function(Se,Ie,$e){return Se=="}"?rn($e):Se=="{"||Se==";"?pe(Se,Ie,$e):(Se=="word"?ft="variable":Se!="variable"&&Se!="("&&Se!=")"&&(ft="error"),"interpolation")},{startState:function(Se){return{tokenize:null,state:le?"block":"top",stateArg:null,context:new tt(le?"block":"top",Se||0,null)}},token:function(Se,Ie){if(!Ie.tokenize&&Se.eatSpace())return null;var $e=(Ie.tokenize||at)(Se,Ie);return $e&&typeof $e=="object"&&(ge=$e[1],$e=$e[0]),ft=$e,ge!="comment"&&(Ie.state=ot[Ie.state](ge,Se,Ie)),ft},indent:function(Se,Ie){var $e=Se.context,Xe=Ie&&Ie.charAt(0),zt=$e.indent;return $e.type=="prop"&&(Xe=="}"||Xe==")")&&($e=$e.prev),$e.prev&&(Xe=="}"&&($e.type=="block"||$e.type=="top"||$e.type=="interpolation"||$e.type=="restricted_atBlock")?($e=$e.prev,zt=$e.indent):(Xe==")"&&($e.type=="parens"||$e.type=="atBlock_parens")||Xe=="{"&&($e.type=="at"||$e.type=="atBlock"))&&(zt=Math.max(0,$e.indent-te))),zt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:me,fold:"brace"}});function r(ee){for(var ne={},le=0;le<ee.length;++le)ne[ee[le].toLowerCase()]=!0;return ne}var i=["domain","regexp","url","url-prefix"],a=r(i),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],l=r(o),s=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],u=r(s),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],f=r(c),h=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],m=r(h),_=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],y=r(_),w=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],A=r(w),E=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],T=r(E),I=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],P=r(I),F=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],x=r(F),G=i.concat(o).concat(s).concat(c).concat(h).concat(_).concat(I).concat(F);t.registerHelper("hintWords","css",G);function W(ee,ne){for(var le=!1,te;(te=ee.next())!=null;){if(le&&te=="/"){ne.tokenize=null;break}le=te=="*"}return["comment","comment"]}t.defineMIME("text/css",{documentTypes:a,mediaTypes:l,mediaFeatures:u,mediaValueKeywords:f,propertyKeywords:m,nonStandardPropertyKeywords:y,fontProperties:A,counterDescriptors:T,colorKeywords:P,valueKeywords:x,tokenHooks:{"/":function(ee,ne){return ee.eat("*")?(ne.tokenize=W,W(ee,ne)):!1}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:l,mediaFeatures:u,mediaValueKeywords:f,propertyKeywords:m,nonStandardPropertyKeywords:y,colorKeywords:P,valueKeywords:x,fontProperties:A,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ee,ne){return ee.eat("/")?(ee.skipToEnd(),["comment","comment"]):ee.eat("*")?(ne.tokenize=W,W(ee,ne)):["operator","operator"]},":":function(ee){return ee.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ee){return ee.match(/^[\w-]+/),ee.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ee){return ee.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:l,mediaFeatures:u,mediaValueKeywords:f,propertyKeywords:m,nonStandardPropertyKeywords:y,colorKeywords:P,valueKeywords:x,fontProperties:A,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ee,ne){return ee.eat("/")?(ee.skipToEnd(),["comment","comment"]):ee.eat("*")?(ne.tokenize=W,W(ee,ne)):["operator","operator"]},"@":function(ee){return ee.eat("{")?[null,"interpolation"]:ee.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ee.eatWhile(/[\w\\\-]/),ee.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:a,mediaTypes:l,mediaFeatures:u,propertyKeywords:m,nonStandardPropertyKeywords:y,fontProperties:A,counterDescriptors:T,colorKeywords:P,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(ee,ne){return ee.eat("*")?(ne.tokenize=W,W(ee,ne)):!1}},name:"css",helperType:"gss"})})})();var hT={exports:{}},mT;function B5e(){return mT||(mT=1,function(n,e){(function(t){t(Of.exports)})(function(t){t.defineSimpleMode=function(h,m){t.defineMode(h,function(_){return t.simpleMode(_,m)})},t.simpleMode=function(h,m){r(m,"start");var _={},y=m.meta||{},w=!1;for(var A in m)if(A!=y&&m.hasOwnProperty(A))for(var E=_[A]=[],T=m[A],I=0;I<T.length;I++){var P=T[I];E.push(new o(P,m)),(P.indent||P.dedent)&&(w=!0)}var F={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:w?[]:null}},copyState:function(G){var W={state:G.state,pending:G.pending,local:G.local,localState:null,indent:G.indent&&G.indent.slice(0)};G.localState&&(W.localState=t.copyState(G.local.mode,G.localState)),G.stack&&(W.stack=G.stack.slice(0));for(var ee=G.persistentStates;ee;ee=ee.next)W.persistentStates={mode:ee.mode,spec:ee.spec,state:ee.state==G.localState?W.localState:t.copyState(ee.mode,ee.state),next:W.persistentStates};return W},token:l(_,h),innerMode:function(G){return G.local&&{mode:G.local.mode,state:G.localState}},indent:f(_,y)};if(y)for(var x in y)y.hasOwnProperty(x)&&(F[x]=y[x]);return F};function r(h,m){if(!h.hasOwnProperty(m))throw new Error("Undefined state "+m+" in simple mode")}function i(h,m){if(!h)return/(?:)/;var _="";return h instanceof RegExp?(h.ignoreCase&&(_="i"),h.unicode&&(_+="u"),h=h.source):h=String(h),new RegExp((m===!1?"":"^")+"(?:"+h+")",_)}function a(h){if(!h)return null;if(h.apply)return h;if(typeof h=="string")return h.replace(/\./g," ");for(var m=[],_=0;_<h.length;_++)m.push(h[_]&&h[_].replace(/\./g," "));return m}function o(h,m){(h.next||h.push)&&r(m,h.next||h.push),this.regex=i(h.regex),this.token=a(h.token),this.data=h}function l(h,m){return function(_,y){if(y.pending){var w=y.pending.shift();return y.pending.length==0&&(y.pending=null),_.pos+=w.text.length,w.token}if(y.local)if(y.local.end&&_.match(y.local.end)){var A=y.local.endToken||null;return y.local=y.localState=null,A}else{var A=y.local.mode.token(_,y.localState),E;return y.local.endScan&&(E=y.local.endScan.exec(_.current()))&&(_.pos=_.start+E.index),A}for(var T=h[y.state],I=0;I<T.length;I++){var P=T[I],F=(!P.data.sol||_.sol())&&_.match(P.regex);if(F){P.data.next?y.state=P.data.next:P.data.push?((y.stack||(y.stack=[])).push(y.state),y.state=P.data.push):P.data.pop&&y.stack&&y.stack.length&&(y.state=y.stack.pop()),P.data.mode&&u(m,y,P.data.mode,P.token),P.data.indent&&y.indent.push(_.indentation()+m.indentUnit),P.data.dedent&&y.indent.pop();var x=P.token;if(x&&x.apply&&(x=x(F)),F.length>2&&P.token&&typeof P.token!="string"){for(var G=2;G<F.length;G++)F[G]&&(y.pending||(y.pending=[])).push({text:F[G],token:P.token[G-1]});return _.backUp(F[0].length-(F[1]?F[1].length:0)),x[0]}else return x&&x.join?x[0]:x}}return _.next(),null}}function s(h,m){if(h===m)return!0;if(!h||typeof h!="object"||!m||typeof m!="object")return!1;var _=0;for(var y in h)if(h.hasOwnProperty(y)){if(!m.hasOwnProperty(y)||!s(h[y],m[y]))return!1;_++}for(var y in m)m.hasOwnProperty(y)&&_--;return _==0}function u(h,m,_,y){var w;if(_.persistent)for(var A=m.persistentStates;A&&!w;A=A.next)(_.spec?s(_.spec,A.spec):_.mode==A.mode)&&(w=A);var E=w?w.mode:_.mode||t.getMode(h,_.spec),T=w?w.state:t.startState(E);_.persistent&&!w&&(m.persistentStates={mode:E,spec:_.spec,state:T,next:m.persistentStates}),m.localState=T,m.local={mode:E,end:_.end&&i(_.end),endScan:_.end&&_.forceEnd!==!1&&i(_.end,!1),endToken:y&&y.join?y[y.length-1]:y}}function c(h,m){for(var _=0;_<m.length;_++)if(m[_]===h)return!0}function f(h,m){return function(_,y,w){if(_.local&&_.local.mode.indent)return _.local.mode.indent(_.localState,y,w);if(_.indent==null||_.local||m.dontIndentStates&&c(_.state,m.dontIndentStates)>-1)return t.Pass;var A=_.indent.length-1,E=h[_.state];e:for(;;){for(var T=0;T<E.length;T++){var I=E[T];if(I.data.dedent&&I.data.dedentIfLineStart!==!1){var P=I.regex.exec(y);if(P&&P[0]){A--,(I.next||I.push)&&(E=h[I.next||I.push]),y=y.slice(P[0].length);continue e}}}break}return A<0?0:_.indent[A]}}})}()),hT.exports}var gT={exports:{}},vT;function O5e(){return vT||(vT=1,function(n,e){(function(t){t(Of.exports)})(function(t){t.multiplexingMode=function(r){var i=Array.prototype.slice.call(arguments,1);function a(o,l,s,u){if(typeof l=="string"){var c=o.indexOf(l,s);return u&&c>-1?c+l.length:c}var f=l.exec(s?o.slice(s):o);return f?f.index+s+(u?f[0].length:0):-1}return{startState:function(){return{outer:t.startState(r),innerActive:null,inner:null,startingInner:!1}},copyState:function(o){return{outer:t.copyState(r,o.outer),innerActive:o.innerActive,inner:o.innerActive&&t.copyState(o.innerActive.mode,o.inner),startingInner:o.startingInner}},token:function(o,l){if(l.innerActive){var w=l.innerActive,u=o.string;if(!w.close&&o.sol())return l.innerActive=l.inner=null,this.token(o,l);var h=w.close&&!l.startingInner?a(u,w.close,o.pos,w.parseDelimiters):-1;if(h==o.pos&&!w.parseDelimiters)return o.match(w.close),l.innerActive=l.inner=null,w.delimStyle&&w.delimStyle+" "+w.delimStyle+"-close";h>-1&&(o.string=u.slice(0,h));var A=w.mode.token(o,l.inner);return h>-1?o.string=u:o.pos>o.start&&(l.startingInner=!1),h==o.pos&&w.parseDelimiters&&(l.innerActive=l.inner=null),w.innerStyle&&(A?A=A+" "+w.innerStyle:A=w.innerStyle),A}else{for(var s=1/0,u=o.string,c=0;c<i.length;++c){var f=i[c],h=a(u,f.open,o.pos);if(h==o.pos){f.parseDelimiters||o.match(f.open),l.startingInner=!!f.parseDelimiters,l.innerActive=f;var m=0;if(r.indent){var _=r.indent(l.outer,"","");_!==t.Pass&&(m=_)}return l.inner=t.startState(f.mode,m),f.delimStyle&&f.delimStyle+" "+f.delimStyle+"-open"}else h!=-1&&h<s&&(s=h)}s!=1/0&&(o.string=u.slice(0,s));var y=r.token(o,l.outer);return s!=1/0&&(o.string=u),y}},indent:function(o,l,s){var u=o.innerActive?o.innerActive.mode:r;return u.indent?u.indent(o.innerActive?o.inner:o.outer,l,s):t.Pass},blankLine:function(o){var l=o.innerActive?o.innerActive.mode:r;if(l.blankLine&&l.blankLine(o.innerActive?o.inner:o.outer),o.innerActive)o.innerActive.close===`
477
477
  `&&(o.innerActive=o.inner=null);else for(var s=0;s<i.length;++s){var u=i[s];u.open===`
478
478
  `&&(o.innerActive=u,o.inner=t.startState(u.mode,l.indent?l.indent(o.outer,"",""):0))}},electricChars:r.electricChars,innerMode:function(o){return o.inner?{state:o.inner,mode:o.innerActive.mode}:{state:o.outer,mode:r}}}}})}()),gT.exports}(function(n,e){(function(t){t(Of.exports,B5e(),O5e())})(function(t){t.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),t.defineMode("handlebars",function(r,i){var a=t.getMode(r,"handlebars-tags");return!i||!i.base?a:t.multiplexingMode(t.getMode(r,i.base),{open:"{{",close:/\}\}\}?/,mode:a,parseDelimiters:!0})}),t.defineMIME("text/x-handlebars-template","handlebars")})})();(function(n,e){(function(t){t(Of.exports)})(function(t){var r="CodeMirror-hint",i="CodeMirror-hint-active";t.showHint=function(A,E,T){if(!E)return A.showHint(T);T&&T.async&&(E.async=!0);var I={hint:E};if(T)for(var P in T)I[P]=T[P];return A.showHint(I)},t.defineExtension("showHint",function(A){A=s(this,this.getCursor("start"),A);var E=this.listSelections();if(!(E.length>1)){if(this.somethingSelected()){if(!A.hint.supportsSelection)return;for(var T=0;T<E.length;T++)if(E[T].head.line!=E[T].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var I=this.state.completionActive=new a(this,A);!I.options.hint||(t.signal(this,"startCompletion",this),I.update(!0))}}),t.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function a(A,E){if(this.cm=A,this.options=E,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var T=this;A.on("cursorActivity",this.activityFunc=function(){T.cursorActivity()})}}var o=window.requestAnimationFrame||function(A){return setTimeout(A,1e3/60)},l=window.cancelAnimationFrame||clearTimeout;a.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(A,E){var T=A.list[E],I=this;this.cm.operation(function(){T.hint?T.hint(I.cm,A,T):I.cm.replaceRange(u(T),T.from||A.from,T.to||A.to,"complete"),t.signal(A,"pick",T),I.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(l(this.debounce),this.debounce=0);var A=this.startPos;this.data&&(A=this.data.from);var E=this.cm.getCursor(),T=this.cm.getLine(E.line);if(E.line!=this.startPos.line||T.length-E.ch!=this.startLen-this.startPos.ch||E.ch<A.ch||this.cm.somethingSelected()||!E.ch||this.options.closeCharacters.test(T.charAt(E.ch-1)))this.close();else{var I=this;this.debounce=o(function(){I.update()}),this.widget&&this.widget.disable()}},update:function(A){if(this.tick!=null){var E=this,T=++this.tick;_(this.options.hint,this.cm,this.options,function(I){E.tick==T&&E.finishUpdate(I,A)})}},finishUpdate:function(A,E){this.data&&t.signal(this.data,"update");var T=this.widget&&this.widget.picked||E&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=A,A&&A.list.length&&(T&&A.list.length==1?this.pick(A,0):(this.widget=new h(this,A),t.signal(A,"shown")))}};function s(A,E,T){var I=A.options.hintOptions,P={};for(var F in w)P[F]=w[F];if(I)for(var F in I)I[F]!==void 0&&(P[F]=I[F]);if(T)for(var F in T)T[F]!==void 0&&(P[F]=T[F]);return P.hint.resolve&&(P.hint=P.hint.resolve(A,E)),P}function u(A){return typeof A=="string"?A:A.text}function c(A,E){var T={Up:function(){E.moveFocus(-1)},Down:function(){E.moveFocus(1)},PageUp:function(){E.moveFocus(-E.menuSize()+1,!0)},PageDown:function(){E.moveFocus(E.menuSize()-1,!0)},Home:function(){E.setFocus(0)},End:function(){E.setFocus(E.length-1)},Enter:E.pick,Tab:E.pick,Esc:E.close},I=/Mac/.test(navigator.platform);I&&(T["Ctrl-P"]=function(){E.moveFocus(-1)},T["Ctrl-N"]=function(){E.moveFocus(1)});var P=A.options.customKeys,F=P?{}:T;function x(ee,ne){var le;typeof ne!="string"?le=function(te){return ne(te,E)}:T.hasOwnProperty(ne)?le=T[ne]:le=ne,F[ee]=le}if(P)for(var G in P)P.hasOwnProperty(G)&&x(G,P[G]);var W=A.options.extraKeys;if(W)for(var G in W)W.hasOwnProperty(G)&&x(G,W[G]);return F}function f(A,E){for(;E&&E!=A;){if(E.nodeName.toUpperCase()==="LI"&&E.parentNode==A)return E;E=E.parentNode}}function h(A,E){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=A,this.data=E,this.picked=!1;var T=this,I=A.cm,P=I.getInputField().ownerDocument,F=P.defaultView||P.parentWindow,x=this.hints=P.createElement("ul");x.setAttribute("role","listbox"),x.setAttribute("aria-expanded","true"),x.id=this.id;var G=A.cm.options.theme;x.className="CodeMirror-hints "+G,this.selectedHint=E.selectedHint||0;for(var W=E.list,ee=0;ee<W.length;++ee){var ne=x.appendChild(P.createElement("li")),le=W[ee],te=r+(ee!=this.selectedHint?"":" "+i);le.className!=null&&(te=le.className+" "+te),ne.className=te,ee==this.selectedHint&&ne.setAttribute("aria-selected","true"),ne.id=this.id+"-"+ee,ne.setAttribute("role","option"),le.render?le.render(ne,E,le):ne.appendChild(P.createTextNode(le.displayText||u(le))),ne.hintId=ee}var X=A.options.container||P.body,q=I.cursorCoords(A.options.alignWithWord?E.from:null),re=q.left,ue=q.bottom,de=!0,we=0,ve=0;if(X!==P.body){var Ce=["absolute","relative","fixed"].indexOf(F.getComputedStyle(X).position)!==-1,be=Ce?X:X.offsetParent,_e=be.getBoundingClientRect(),ct=P.body.getBoundingClientRect();we=_e.left-ct.left-be.scrollLeft,ve=_e.top-ct.top-be.scrollTop}x.style.left=re-we+"px",x.style.top=ue-ve+"px";var ze=F.innerWidth||Math.max(P.body.offsetWidth,P.documentElement.offsetWidth),me=F.innerHeight||Math.max(P.body.offsetHeight,P.documentElement.offsetHeight);X.appendChild(x),I.getInputField().setAttribute("aria-autocomplete","list"),I.getInputField().setAttribute("aria-owns",this.id),I.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var je=A.options.moveOnOverlap?x.getBoundingClientRect():new DOMRect,xe=A.options.paddingForScrollbar?x.scrollHeight>x.clientHeight+1:!1,ge;setTimeout(function(){ge=I.getScrollInfo()});var ft=je.bottom-me;if(ft>0){var Ke=je.bottom-je.top,at=q.top-(q.bottom-je.top);if(at-Ke>0)x.style.top=(ue=q.top-Ke-ve)+"px",de=!1;else if(Ke>me){x.style.height=me-5+"px",x.style.top=(ue=q.bottom-je.top-ve)+"px";var Qe=I.getCursor();E.from.ch!=Qe.ch&&(q=I.cursorCoords(Qe),x.style.left=(re=q.left-we)+"px",je=x.getBoundingClientRect())}}var We=je.right-ze;if(xe&&(We+=I.display.nativeBarWidth),We>0&&(je.right-je.left>ze&&(x.style.width=ze-5+"px",We-=je.right-je.left-ze),x.style.left=(re=q.left-We-we)+"px"),xe)for(var tt=x.firstChild;tt;tt=tt.nextSibling)tt.style.paddingRight=I.display.nativeBarWidth+"px";if(I.addKeyMap(this.keyMap=c(A,{moveFocus:function(Tt,pe){T.changeActive(T.selectedHint+Tt,pe)},setFocus:function(Tt){T.changeActive(Tt)},menuSize:function(){return T.screenAmount()},length:W.length,close:function(){A.close()},pick:function(){T.pick()},data:E})),A.options.closeOnUnfocus){var Bt;I.on("blur",this.onBlur=function(){Bt=setTimeout(function(){A.close()},100)}),I.on("focus",this.onFocus=function(){clearTimeout(Bt)})}I.on("scroll",this.onScroll=function(){var Tt=I.getScrollInfo(),pe=I.getWrapperElement().getBoundingClientRect();ge||(ge=I.getScrollInfo());var Je=ue+ge.top-Tt.top,ot=Je-(F.pageYOffset||(P.documentElement||P.body).scrollTop);if(de||(ot+=x.offsetHeight),ot<=pe.top||ot>=pe.bottom)return A.close();x.style.top=Je+"px",x.style.left=re+ge.left-Tt.left+"px"}),t.on(x,"dblclick",function(Tt){var pe=f(x,Tt.target||Tt.srcElement);pe&&pe.hintId!=null&&(T.changeActive(pe.hintId),T.pick())}),t.on(x,"click",function(Tt){var pe=f(x,Tt.target||Tt.srcElement);pe&&pe.hintId!=null&&(T.changeActive(pe.hintId),A.options.completeOnSingleClick&&T.pick())}),t.on(x,"mousedown",function(){setTimeout(function(){I.focus()},20)});var rn=this.getSelectedHintRange();return(rn.from!==0||rn.to!==0)&&this.scrollToActive(),t.signal(E,"select",W[this.selectedHint],x.childNodes[this.selectedHint]),!0}h.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var A=this.completion.cm.getInputField();A.removeAttribute("aria-activedescendant"),A.removeAttribute("aria-owns");var E=this.completion.cm;this.completion.options.closeOnUnfocus&&(E.off("blur",this.onBlur),E.off("focus",this.onFocus)),E.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var A=this;this.keyMap={Enter:function(){A.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(A,E){if(A>=this.data.list.length?A=E?this.data.list.length-1:0:A<0&&(A=E?0:this.data.list.length-1),this.selectedHint!=A){var T=this.hints.childNodes[this.selectedHint];T&&(T.className=T.className.replace(" "+i,""),T.removeAttribute("aria-selected")),T=this.hints.childNodes[this.selectedHint=A],T.className+=" "+i,T.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",T.id),this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],T)}},scrollToActive:function(){var A=this.getSelectedHintRange(),E=this.hints.childNodes[A.from],T=this.hints.childNodes[A.to],I=this.hints.firstChild;E.offsetTop<this.hints.scrollTop?this.hints.scrollTop=E.offsetTop-I.offsetTop:T.offsetTop+T.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=T.offsetTop+T.offsetHeight-this.hints.clientHeight+I.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var A=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-A),to:Math.min(this.data.list.length-1,this.selectedHint+A)}}};function m(A,E){if(!A.somethingSelected())return E;for(var T=[],I=0;I<E.length;I++)E[I].supportsSelection&&T.push(E[I]);return T}function _(A,E,T,I){if(A.async)A(E,I,T);else{var P=A(E,T);P&&P.then?P.then(I):I(P)}}function y(A,E){var T=A.getHelpers(E,"hint"),I;if(T.length){var P=function(F,x,G){var W=m(F,T);function ee(ne){if(ne==W.length)return x(null);_(W[ne],F,G,function(le){le&&le.list.length>0?x(le):ee(ne+1)})}ee(0)};return P.async=!0,P.supportsSelection=!0,P}else return(I=A.getHelper(A.getCursor(),"hintWords"))?function(F){return t.hint.fromList(F,{words:I})}:t.hint.anyword?function(F,x){return t.hint.anyword(F,x)}:function(){}}t.registerHelper("hint","auto",{resolve:y}),t.registerHelper("hint","fromList",function(A,E){var T=A.getCursor(),I=A.getTokenAt(T),P,F=t.Pos(T.line,I.start),x=T;I.start<T.ch&&/\w/.test(I.string.charAt(T.ch-I.start-1))?P=I.string.substr(0,T.ch-I.start):(P="",F=T);for(var G=[],W=0;W<E.words.length;W++){var ee=E.words[W];ee.slice(0,P.length)==P&&G.push(ee)}if(G.length)return{list:G,from:F,to:x}}),t.commands.autocomplete=t.showHint;var w={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};t.defineOption("hintOptions",null)})})();(function(n,e){(function(t){t(Of.exports)})(function(t){var r="CodeMirror-activeline",i="CodeMirror-activeline-background",a="CodeMirror-activeline-gutter";t.defineOption("styleActiveLine",!1,function(c,f,h){var m=h==t.Init?!1:h;f!=m&&(m&&(c.off("beforeSelectionChange",u),o(c),delete c.state.activeLines),f&&(c.state.activeLines=[],s(c,c.listSelections()),c.on("beforeSelectionChange",u)))});function o(c){for(var f=0;f<c.state.activeLines.length;f++)c.removeLineClass(c.state.activeLines[f],"wrap",r),c.removeLineClass(c.state.activeLines[f],"background",i),c.removeLineClass(c.state.activeLines[f],"gutter",a)}function l(c,f){if(c.length!=f.length)return!1;for(var h=0;h<c.length;h++)if(c[h]!=f[h])return!1;return!0}function s(c,f){for(var h=[],m=0;m<f.length;m++){var _=f[m],y=c.getOption("styleActiveLine");if(!(typeof y=="object"&&y.nonEmpty?_.anchor.line!=_.head.line:!_.empty())){var w=c.getLineHandleVisualStart(_.head.line);h[h.length-1]!=w&&h.push(w)}}l(c.state.activeLines,h)||c.operation(function(){o(c);for(var A=0;A<h.length;A++)c.addLineClass(h[A],"wrap",r),c.addLineClass(h[A],"background",i),c.addLineClass(h[A],"gutter",a);c.state.activeLines=h})}function u(c,f){s(c,f.ranges)}})})();(function(n,e){(function(t){t(Of.exports)})(function(t){var r={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},i=t.Pos;t.defineOption("autoCloseBrackets",!1,function(A,E,T){T&&T!=t.Init&&(A.removeKeyMap(o),A.state.closeBrackets=null),E&&(l(a(E,"pairs")),A.state.closeBrackets=E,A.addKeyMap(o))});function a(A,E){return E=="pairs"&&typeof A=="string"?A:typeof A=="object"&&A[E]!=null?A[E]:r[E]}var o={Backspace:c,Enter:f};function l(A){for(var E=0;E<A.length;E++){var T=A.charAt(E),I="'"+T+"'";o[I]||(o[I]=s(T))}}l(r.pairs+"`");function s(A){return function(E){return _(E,A)}}function u(A){var E=A.state.closeBrackets;if(!E||E.override)return E;var T=A.getModeAt(A.getCursor());return T.closeBrackets||E}function c(A){var E=u(A);if(!E||A.getOption("disableInput"))return t.Pass;for(var T=a(E,"pairs"),I=A.listSelections(),P=0;P<I.length;P++){if(!I[P].empty())return t.Pass;var F=y(A,I[P].head);if(!F||T.indexOf(F)%2!=0)return t.Pass}for(var P=I.length-1;P>=0;P--){var x=I[P].head;A.replaceRange("",i(x.line,x.ch-1),i(x.line,x.ch+1),"+delete")}}function f(A){var E=u(A),T=E&&a(E,"explode");if(!T||A.getOption("disableInput"))return t.Pass;for(var I=A.listSelections(),P=0;P<I.length;P++){if(!I[P].empty())return t.Pass;var F=y(A,I[P].head);if(!F||T.indexOf(F)%2!=0)return t.Pass}A.operation(function(){var x=A.lineSeparator()||`
479
- `;A.replaceSelection(x+x,null),h(A,-1),I=A.listSelections();for(var G=0;G<I.length;G++){var W=I[G].head.line;A.indentLine(W,null,!0),A.indentLine(W+1,null,!0)}})}function h(A,E){for(var T=[],I=A.listSelections(),P=0,F=0;F<I.length;F++){var x=I[F];x.head==A.getCursor()&&(P=F);var G=x.head.ch||E>0?{line:x.head.line,ch:x.head.ch+E}:{line:x.head.line-1};T.push({anchor:G,head:G})}A.setSelections(T,P)}function m(A){var E=t.cmpPos(A.anchor,A.head)>0;return{anchor:new i(A.anchor.line,A.anchor.ch+(E?-1:1)),head:new i(A.head.line,A.head.ch+(E?1:-1))}}function _(A,E){var T=u(A);if(!T||A.getOption("disableInput"))return t.Pass;var I=a(T,"pairs"),P=I.indexOf(E);if(P==-1)return t.Pass;for(var F=a(T,"closeBefore"),x=a(T,"triples"),G=I.charAt(P+1)==E,W=A.listSelections(),ee=P%2==0,ne,le=0;le<W.length;le++){var te=W[le],X=te.head,q,re=A.getRange(X,i(X.line,X.ch+1));if(ee&&!te.empty())q="surround";else if((G||!ee)&&re==E)G&&w(A,X)?q="both":x.indexOf(E)>=0&&A.getRange(X,i(X.line,X.ch+3))==E+E+E?q="skipThree":q="skip";else if(G&&X.ch>1&&x.indexOf(E)>=0&&A.getRange(i(X.line,X.ch-2),X)==E+E){if(X.ch>2&&/\bstring/.test(A.getTokenTypeAt(i(X.line,X.ch-2))))return t.Pass;q="addFour"}else if(G){var ue=X.ch==0?" ":A.getRange(i(X.line,X.ch-1),X);if(!t.isWordChar(re)&&ue!=E&&!t.isWordChar(ue))q="both";else return t.Pass}else if(ee&&(re.length===0||/\s/.test(re)||F.indexOf(re)>-1))q="both";else return t.Pass;if(!ne)ne=q;else if(ne!=q)return t.Pass}var de=P%2?I.charAt(P-1):E,we=P%2?E:I.charAt(P+1);A.operation(function(){if(ne=="skip")h(A,1);else if(ne=="skipThree")h(A,3);else if(ne=="surround"){for(var ve=A.getSelections(),Ce=0;Ce<ve.length;Ce++)ve[Ce]=de+ve[Ce]+we;A.replaceSelections(ve,"around"),ve=A.listSelections().slice();for(var Ce=0;Ce<ve.length;Ce++)ve[Ce]=m(ve[Ce]);A.setSelections(ve)}else ne=="both"?(A.replaceSelection(de+we,null),A.triggerElectric(de+we),h(A,-1)):ne=="addFour"&&(A.replaceSelection(de+de+de+de,"before"),h(A,1))})}function y(A,E){var T=A.getRange(i(E.line,E.ch-1),i(E.line,E.ch+1));return T.length==2?T:null}function w(A,E){var T=A.getTokenAt(i(E.line,E.ch+1));return/\bstring/.test(T.type)&&T.start==E.ch&&(E.ch==0||!/\bstring/.test(A.getTokenTypeAt(E)))}})})();(function(n,e){(function(t){t(Of.exports)})(function(t){var r=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),i=t.Pos,a={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function o(h){return h&&h.bracketRegex||/[(){}[\]]/}function l(h,m,_){var y=h.getLineHandle(m.line),w=m.ch-1,A=_&&_.afterCursor;A==null&&(A=/(^| )cm-fat-cursor($| )/.test(h.getWrapperElement().className));var E=o(_),T=!A&&w>=0&&E.test(y.text.charAt(w))&&a[y.text.charAt(w)]||E.test(y.text.charAt(w+1))&&a[y.text.charAt(++w)];if(!T)return null;var I=T.charAt(1)==">"?1:-1;if(_&&_.strict&&I>0!=(w==m.ch))return null;var P=h.getTokenTypeAt(i(m.line,w+1)),F=s(h,i(m.line,w+(I>0?1:0)),I,P,_);return F==null?null:{from:i(m.line,w),to:F&&F.pos,match:F&&F.ch==T.charAt(0),forward:I>0}}function s(h,m,_,y,w){for(var A=w&&w.maxScanLineLength||1e4,E=w&&w.maxScanLines||1e3,T=[],I=o(w),P=_>0?Math.min(m.line+E,h.lastLine()+1):Math.max(h.firstLine()-1,m.line-E),F=m.line;F!=P;F+=_){var x=h.getLine(F);if(!!x){var G=_>0?0:x.length-1,W=_>0?x.length:-1;if(!(x.length>A))for(F==m.line&&(G=m.ch-(_<0?1:0));G!=W;G+=_){var ee=x.charAt(G);if(I.test(ee)&&(y===void 0||(h.getTokenTypeAt(i(F,G+1))||"")==(y||""))){var ne=a[ee];if(ne&&ne.charAt(1)==">"==_>0)T.push(ee);else if(T.length)T.pop();else return{pos:i(F,G),ch:ee}}}}}return F-_==(_>0?h.lastLine():h.firstLine())?!1:null}function u(h,m,_){for(var y=h.state.matchBrackets.maxHighlightLineLength||1e3,w=_&&_.highlightNonMatching,A=[],E=h.listSelections(),T=0;T<E.length;T++){var I=E[T].empty()&&l(h,E[T].head,_);if(I&&(I.match||w!==!1)&&h.getLine(I.from.line).length<=y){var P=I.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";A.push(h.markText(I.from,i(I.from.line,I.from.ch+1),{className:P})),I.to&&h.getLine(I.to.line).length<=y&&A.push(h.markText(I.to,i(I.to.line,I.to.ch+1),{className:P}))}}if(A.length){r&&h.state.focused&&h.focus();var F=function(){h.operation(function(){for(var x=0;x<A.length;x++)A[x].clear()})};if(m)setTimeout(F,800);else return F}}function c(h){h.operation(function(){h.state.matchBrackets.currentlyHighlighted&&(h.state.matchBrackets.currentlyHighlighted(),h.state.matchBrackets.currentlyHighlighted=null),h.state.matchBrackets.currentlyHighlighted=u(h,!1,h.state.matchBrackets)})}function f(h){h.state.matchBrackets&&h.state.matchBrackets.currentlyHighlighted&&(h.state.matchBrackets.currentlyHighlighted(),h.state.matchBrackets.currentlyHighlighted=null)}t.defineOption("matchBrackets",!1,function(h,m,_){_&&_!=t.Init&&(h.off("cursorActivity",c),h.off("focus",c),h.off("blur",f),f(h)),m&&(h.state.matchBrackets=typeof m=="object"?m:{},h.on("cursorActivity",c),h.on("focus",c),h.on("blur",f))}),t.defineExtension("matchBrackets",function(){u(this,!0)}),t.defineExtension("findMatchingBracket",function(h,m,_){return(_||typeof m=="boolean")&&(_?(_.strict=m,m=_):m=m?{strict:!0}:null),l(this,h,m)}),t.defineExtension("scanForBracket",function(h,m,_,y){return s(this,h,m,_,y)})})})();function _T(n){let e,t;return e=new cn({props:{small:!0,$$slots:{default:[I5e]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&33554434&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function I5e(n){let e;return{c(){e=oe(n[1])},m(t,r){S(t,e,r)},p(t,r){r&2&&_t(e,t[1])},d(t){t&&C(e)}}}function P5e(n){let e,t,r,i,a,o=n[1]&&_T(n);return{c(){o&&o.c(),e=U(),t=J("div"),r=J("textarea"),D(r,"tabindex","0"),r.readOnly=!0,r.value=n[0],D(r,"class","svelte-8k8uv"),D(t,"style",i=`--code-mirror-height: ${n[2]}px`),D(t,"class","svelte-8k8uv")},m(l,s){o&&o.m(l,s),S(l,e,s),S(l,t,s),j(t,r),n[13](r),a=!0},p(l,[s]){l[1]?o?(o.p(l,s),s&2&&b(o,1)):(o=_T(l),o.c(),b(o,1),o.m(e.parentNode,e)):o&&(Ae(),$(o,1,1,()=>{o=null}),Me()),(!a||s&1)&&(r.value=l[0]),(!a||s&4&&i!==(i=`--code-mirror-height: ${l[2]}px`))&&D(t,"style",i)},i(l){a||(b(o),a=!0)},o(l){$(o),a=!1},d(l){o&&o.d(l),l&&C(e),l&&C(t),n[13](null)}}}function bT(n){return new Promise(e=>setTimeout(e,n))}function V5e(n,e,t){let r;Ne(n,Tv,ne=>t(18,r=ne));const i=Un(),a={DARK:"tomorrow-night-eighties",LIGHT:"default"};let{label:o}=e,{value:l=""}=e,{readOnly:s=!1}=e,{lineNumbers:u=!0}=e,{tab:c=!0}=e,{mode:f}=e,{editorHeight:h=500}=e,m,_;async function y(ne,le){le!==f&&await W(t(4,f=le)),t(0,l=ne),F=!0,P&&P.setValue(l),F=!1}function w(ne){if(t(0,l=ne),P){const{left:le,top:te}=P.getScrollInfo();P.setValue(t(0,l=ne)),P.scrollTo(le,te)}}function A(){P.refresh()}function E(){P.focus()}const T={js:{name:"javascript",json:!1},json:{name:"javascript",json:!0},sql:{name:"sql"},svelte:{name:"handlebars",base:"text/html"}},I={};let P,F=!1,x=!1;ar(()=>(W(f).then(()=>{P&&P.setValue(l||"")}),()=>{x=!0,P&&P.toTextArea()}));let G=!0;async function W(ne){if(x||!Cf)return;P&&P.toTextArea();const le={lineNumbers:u,lineWrapping:!0,indentWithTabs:!0,indentUnit:2,tabSize:2,value:"",mode:T[ne]||{name:ne},readOnly:s,autoCloseBrackets:!0,autoCloseTags:!0,theme:r.theme.includes("light")?a.LIGHT:a.DARK};c||(le.extraKeys={Tab:c,"Shift-Tab":c}),G&&await bT(50),!x&&(Cf.commands.autocomplete=function(te){Cf.showHint(te,Cf.hint.javascript)},t(12,P=Cf.fromTextArea(I.editor,le)),P.on("change",te=>{if(!F){const X=te.getValue();i("change",{value:X})}}),G&&await bT(50),P.refresh(),G=!1)}function ee(ne){He[ne?"unshift":"push"](()=>{I.editor=ne,t(3,I)})}return n.$$set=ne=>{"label"in ne&&t(1,o=ne.label),"value"in ne&&t(0,l=ne.value),"readOnly"in ne&&t(5,s=ne.readOnly),"lineNumbers"in ne&&t(6,u=ne.lineNumbers),"tab"in ne&&t(7,c=ne.tab),"mode"in ne&&t(4,f=ne.mode),"editorHeight"in ne&&t(2,h=ne.editorHeight)},n.$$.update=()=>{n.$$.dirty&4096&&P&&m&&_&&P.refresh()},[l,o,h,I,f,s,u,c,y,w,A,E,P,ee]}class vp extends Re{constructor(e){super(),Ve(this,e,V5e,P5e,Oe,{label:1,value:0,readOnly:5,lineNumbers:6,tab:7,mode:4,editorHeight:2,set:8,update:9,resize:10,focus:11})}get set(){return this.$$.ctx[8]}get update(){return this.$$.ctx[9]}get resize(){return this.$$.ctx[10]}get focus(){return this.$$.ctx[11]}}const zc=n=>n.substring(0,1).toUpperCase()+n.substring(1),yT=n=>n.substring(0,1).toLowerCase()+n.substring(1),R5e=[{name:"Save Row",type:"data",component:"SaveRow",context:[{label:"Saved row",value:"row"}]},{name:"Duplicate Row",type:"data",component:"DuplicateRow",context:[{label:"Duplicated row",value:"row"}]},{name:"Delete Row",type:"data",component:"DeleteRow"},{name:"Navigate To",type:"application",component:"NavigateTo"},{name:"Execute Query",type:"data",component:"ExecuteQuery",context:[{label:"Query result",value:"result"}]},{name:"Trigger Automation",type:"application",component:"TriggerAutomation"},{name:"Update Field Value",type:"form",component:"UpdateFieldValue"},{name:"Validate Form",type:"form",component:"ValidateForm"},{name:"Change Form Step",type:"form",component:"ChangeFormStep"},{name:"Clear Form",type:"form",component:"ClearForm"},{name:"Log Out",type:"application",component:"LogOut"},{name:"Close Screen Modal",type:"application",component:"CloseScreenModal"},{name:"Refresh Data Provider",type:"data",component:"RefreshDataProvider"},{name:"Update State",type:"data",component:"UpdateState",dependsOnFeature:"state"},{name:"Upload File to S3",type:"data",component:"S3Upload",context:[{label:"File URL",value:"publicUrl"}]},{name:"Export Data",type:"data",component:"ExportData"},{name:"Continue if / Stop if",type:"logic",component:"ContinueIf",dependsOnFeature:"continueIfAction"},{name:"Show Notification",type:"application",component:"ShowNotification",dependsOnFeature:"showNotificationAction"}],$Y={actions:R5e},N5e=/{{([^}]+)}}/g,F5e=/\$\("([^")]+)"\)/g,Jk=(n,e)=>{const t=j5e(n,e),r=Zk(),i=G5e(n),a=U5e(),o=W5e(),l=q5e(n),s=Y5e();return[...t,...i,...o,...r,...a,...l,...s]},Iv=()=>[...Zk(),...wY()],wY=()=>{let n=[];const e=y1("user"),t=y1("oauth2"),r=y1("accessToken");return n=[{runtime:`${e}.${t}.${r}`,readable:"Current User.OAuthToken",key:"accessToken",display:{name:"OAuthToken"}}].map(a=>({type:"context",runtimeBinding:a.runtime,readableBinding:a.readable,fieldSchema:{type:"string",name:a.key},providerId:"user",category:"Current User",display:a.display})),n},gh=(n,e,t)=>n?Object.keys(n).reduce((r,i)=>{if(!i||!n[i])return r;let a={type:"context",runtimeBinding:i,readableBinding:`${e}.${i}`,icon:"Brackets"};return t&&(a.category=t),r.push(a),r},[]):[],$T=(n,e)=>!n||!e?{}:Object.keys(e).reduce((t,r)=>(t[r]=Df(n,e[r]),t),{}),U9=(n,e)=>!n||!e?{}:Object.keys(e).reduce((t,r)=>(t[r]=P3(n,e[r]),t),{}),x5e=(n,e)=>{if(!n||!e)return[];const t=wc(n.props,e),r=nn.actions.components.getDefinition(t==null?void 0:t._component);return r!=null&&r.context?kY(n,t):[]},o6=(n,e,t)=>{if(!n||!e)return[];const r=k4(n.props,e);return r.pop(),r.filter(i=>{const a=nn.actions.components.getDefinition(i._component);return a!=null&&a.context?t?(Array.isArray(a.context)?a.context:[a.context]).find(l=>l.type===t)!=null:!0:!1})},L7=(n,e,t)=>{if(!n||!e)return[];const r=k4(n.props,e);return r.pop(),r.filter(i=>{var o;const a=nn.actions.components.getDefinition(i._component);return(o=a==null?void 0:a.actions)==null?void 0:o.includes(t)})},E4=(n,e)=>{const t=S6(e==null?void 0:e._component),r=t.find(l=>l.type==="dataProvider");if(r){const l=e[r.key],s=Z5e(l),u=wc(n==null?void 0:n.props,s);return E4(n,u)}const i=["dataSource","table","schema"],a=t.find(l=>i.includes(l.type));if(!a)return null;const o=e[a==null?void 0:a.key];return typeof o=="string"?{tableId:o,type:"table"}:o},j5e=(n,e)=>{const t=o6(n,e);return kY(n,t)},kY=(n,e)=>{if(!n||!e)return[];Array.isArray(e)||(e=[e]);let t=[];return e.forEach(r=>{const i=nn.actions.components.getDefinition(r._component);(Array.isArray(i.context)?i.context:[i.context]).forEach(o=>{var _;if(!(o!=null&&o.type))return;let l,s,u,c=o.suffix;if(o.type==="form")l=Qk(r),u="Fields";else if(o.type==="static")l={},(o.values||[]).forEach(w=>{l[w.key]={name:w.label,type:w.type||"string"}});else if(o.type==="schema"){const y=E4(n,r);if(!y)return;const w=i3(n,y);if(l=w.schema,s=w.table,y.type==="jsonarray"){const A=y.label.split(".");u=A[A.length-1]}else u=(_=w.table)==null?void 0:_.name}if(!l)return;const f=Object.keys(l).sort();let h=r._id;c&&(h+=`-${c}`);const m=y1(h);f.forEach(y=>{const w=l[y],A=y.split(".").map(y1).join("."),E=`${m}.${A}`;let T=r._instanceName;u&&(T+=`.${u}`),T+=`.${w.name||y}`,t.push({type:"context",runtimeBinding:E,readableBinding:T,fieldSchema:w,providerId:h,tableId:s==null?void 0:s._id,category:r._instanceName,icon:i.icon,display:{name:w.name||y,type:w.type}})})})}),t},Zk=()=>{let n=[];const{schema:e}=x_(z4.USERS),t=Object.keys(e).sort(),r=y1("user");return n=t.reduce((i,a)=>{const o=e[a];return o.type!=="link"&&i.push({type:"context",runtimeBinding:`${r}.${y1(a)}`,readableBinding:`Current User.${a}`,fieldSchema:o,providerId:"user",category:"Current User",icon:"User"}),i},[]),n},U5e=()=>{var e;let n=[];if((e=pn(nn).clientFeatures)!=null&&e.deviceAwareness){const t=y1("device");n.push({type:"context",runtimeBinding:`${t}.${y1("mobile")}`,readableBinding:"Device.Mobile",category:"Device",icon:"DevicePhone",display:{type:"boolean",name:"mobile"}}),n.push({type:"context",runtimeBinding:`${t}.${y1("tablet")}`,readableBinding:"Device.Tablet",category:"Device",icon:"DevicePhone",display:{type:"boolean",name:"tablet"}})}return n},q5e=n=>{var t;let e=[];if((t=pn(nn).clientFeatures)!=null&&t.rowSelection){let r=op(n==null?void 0:n.props,o=>o._component.endsWith("table"));const i=y1("rowSelection");e=e.concat(r.map(o=>({type:"context",runtimeBinding:`${i}.${y1(o._id)}.${y1("selectedRows")}`,readableBinding:`${o._instanceName}.Selected rows`,category:"Selected rows",icon:"ViewRow"})));let a=op(n==null?void 0:n.props,o=>o._component.endsWith("tableblock"));e=e.concat(a.map(o=>({type:"context",runtimeBinding:`${i}.${y1(o._id+"-table")}.${y1("selectedRows")}`,readableBinding:`${o._instanceName}.Selected rows`})))}return e},W5e=()=>{var e;let n=[];if((e=pn(nn).clientFeatures)!=null&&e.state){const t=y1("state");n=zY().map(r=>({type:"context",runtimeBinding:`${t}.${y1(r)}`,readableBinding:`State.${r}`,category:"State",icon:"AutomatedSegment",display:{name:r}}))}return n},G5e=n=>{var l,s;const t=((s=(l=n==null?void 0:n.routing)==null?void 0:l.route)!=null?s:"").split("/");let r=[];t.forEach(u=>{u.startsWith(":")&&u.length>1&&r.push(u.replace(/:/g,"").replace(/\?/g,""))});const i=y1("url"),a=r.map(u=>({type:"context",runtimeBinding:`${i}.${y1(u)}`,readableBinding:`URL.${u}`,category:"URL",icon:"RailTop",display:{type:"string"}})),o={type:"context",runtimeBinding:y1("query"),readableBinding:"Query params",category:"URL",icon:"RailTop",display:{type:"object"}};return a.concat([o])},Y5e=()=>(pn(Bl)||[]).map(n=>({type:"context",runtimeBinding:`trim "${n._id}"`,readableBinding:`Role.${n.name}`,category:"Role",icon:"UserGroup",display:{type:"string",name:n.name}})),K5e=(n,e,t,r,i)=>{var h;let a=[];const o=wc(n.props,e),l=nn.actions.components.getDefinition(o==null?void 0:o._component),u=S6(o==null?void 0:o._component).find(m=>m.key===t);(h=u==null?void 0:u.context)!=null&&h.length&&u.context.forEach(m=>{a.push({readableBinding:m.label,runtimeBinding:`${y1("eventContext")}.${y1(m.key)}`,category:o._instanceName,icon:l.icon})});const c=r==null?void 0:r.findIndex(m=>m.id===i);return c==null||c===-1||r.slice(0,c).forEach((m,_)=>{const y=$Y.actions.find(w=>w.name===m["##eventHandlerType"]);y.context&&y.context.forEach(w=>{a.push({readableBinding:`Action ${_+1}.${w.label}`,runtimeBinding:`actions.${_}.${w.value}`,category:"Actions",icon:"JourneyAction"})})}),a},x_=(n,e)=>i3(null,{type:"table",tableId:n},e),i3=(n,e,t)=>{var a,o;t=t||{};let r,i;if(e){const{type:l}=e,s=pn(Dr).list;if(l==="provider"){const _=wc(n==null?void 0:n.props,e.providerId),y=E4(n,_);return i3(n,y,t)}else if(l==="query")i=pn(ya).list.find(y=>y._id===e._id);else if(l==="field"){i={name:e.fieldName};const{fieldType:_}=e;_==="attachment"?r={url:{type:"string"},name:{type:"string"}}:_==="array"&&(r={value:{type:"string"}})}else if(l==="jsonarray"){i=s.find(y=>y._id===e.tableId);let _=i==null?void 0:i.schema;r=$G(_,e)}else i=s.find(_=>_._id===e.tableId);if(i&&!r&&(l==="view"?r=A1.cloneDeep((o=(a=i.views)==null?void 0:a[e.name])==null?void 0:o.schema):l==="query"&&(t.formSchema||t.searchableSchema)?(r={},(i.parameters||[]).forEach(y=>{y!=null&&y.name&&(r[y.name]={...y,type:"string"})})):r=A1.cloneDeep(i.schema)),r){let _={};Object.keys(r).forEach(y=>{const w=r[y];if((w==null?void 0:w.type)==="json"){const A=Sk(w,{squashObjects:!0});Object.keys(A).forEach(E=>{_[`${y}.${E}`]={type:A[E].type,nestedJSON:!0}})}}),r={...r,..._}}const u=i&&!i.sql,c=["table","link"].includes(e.type);let f=c,h=c&&u;t.formSchema?(f=!1,h=!1):t.searchableSchema&&(f=c&&u),r&&(f&&(r._id={type:"string"}),h&&(r._rev={type:"string"}));let m={};Object.entries(r||{}).forEach(([_,y])=>{typeof y=="string"?m[_]={type:y,name:_}:m[_]={...y,name:_}}),r=m}return{schema:r,table:i}},Qk=n=>{var i;let e={};if(!n)return e;const r=S6(n._component).find(a=>a.key==="field"&&a.type.startsWith("field/"));if(r&&n.field){const a=r.type.split("field/")[1];a&&(e[n.field]={type:a})}return(i=n._children)==null||i.forEach(a=>{const o=Qk(a);e={...e,...o}}),e},zY=()=>{let n=[];X5e().forEach(t=>{op(t.props,r=>{S6(r._component).filter(a=>a.type==="event").forEach(a=>{n.push(r[a.key])})})}),pn(nn).screens.forEach(t=>{t.onLoad&&n.push(t.onLoad)});let e=new Set;return n.forEach(t=>{!Array.isArray(t)||t.forEach(r=>{var i,a,o;r["##eventHandlerType"]==="Update State"&&((i=r.parameters)==null?void 0:i.type)==="set"&&((a=r.parameters)==null?void 0:a.key)&&((o=r.parameters)==null?void 0:o.value)&&e.add(r.parameters.key)})}),Array.from(e)},X5e=()=>{let n=[];return n=n.concat(pn(nn).layouts||[]),n=n.concat(pn(nn).screens||[]),n},J5e=(n,e,t)=>{if(!(n!=null&&n.includes(e)))return!1;if(t==="readableBinding")return!0;const r=n.replace(/\s+/g,""),i=e.replace(/\s+/g,"");return![`[${i}]`,`"${i}"`,`'${i}'`].find(o=>r==null?void 0:r.includes(o))},wT=(n,e,t,r)=>n.substring(0,e)+r+n.substring(t),AY=(n,e,t)=>{const r=k7(e);r&&(e=Xh(e));const i=r?F5e:N5e,a=t==="runtimeBinding"?"readableBinding":"runtimeBinding";if(typeof e!="string")return e;const o=n.map(u=>u[a]).sort((u,c)=>c.length-u.length),l=e.match(i)||[];let s=e;for(let u of l){let c=u,f=c;for(let h of o)if(r||J5e(c,h,t)){const m=n.find(y=>y[a]===h);let _;do if(_=f.indexOf(h),_!==-1){let y=_+h.length,w=Array(m[t].length+1).join("*");f=wT(f,_,y,w),c=wT(c,_,y,m[t])}while(_!==-1)}s=s.replace(u,c)}return r&&(s=Sh(s)),s},Z5e=n=>{var e;return(e=n==null?void 0:n.match(/{{\s*literal\s*\[+([^\]]+)].*}}/))==null?void 0:e[1]},Df=(n,e)=>AY(n,e,"runtimeBinding"),P3=(n,e)=>AY(n,e,"readableBinding");function Q5e(n){return n}var ez=Q5e,epe=typeof b0=="object"&&b0&&b0.Object===Object&&b0,MY=epe,tpe=MY,npe=typeof self=="object"&&self&&self.Object===Object&&self,rpe=tpe||npe||Function("return this")(),J2=rpe,ipe=J2,ape=ipe.Symbol,L6=ape,kT=L6,CY=Object.prototype,ope=CY.hasOwnProperty,lpe=CY.toString,Zm=kT?kT.toStringTag:void 0;function spe(n){var e=ope.call(n,Zm),t=n[Zm];try{n[Zm]=void 0;var r=!0}catch{}var i=lpe.call(n);return r&&(e?n[Zm]=t:delete n[Zm]),i}var upe=spe,cpe=Object.prototype,fpe=cpe.toString;function ppe(n){return fpe.call(n)}var dpe=ppe,zT=L6,hpe=upe,mpe=dpe,gpe="[object Null]",vpe="[object Undefined]",AT=zT?zT.toStringTag:void 0;function _pe(n){return n==null?n===void 0?vpe:gpe:AT&&AT in Object(n)?hpe(n):mpe(n)}var xd=_pe;function bpe(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var _p=bpe,ype=xd,$pe=_p,wpe="[object AsyncFunction]",kpe="[object Function]",zpe="[object GeneratorFunction]",Ape="[object Proxy]";function Mpe(n){if(!$pe(n))return!1;var e=ype(n);return e==kpe||e==zpe||e==wpe||e==Ape}var tz=Mpe,Cpe=J2,Spe=Cpe["__core-js_shared__"],Lpe=Spe,$y=Lpe,MT=function(){var n=/[^.]+$/.exec($y&&$y.keys&&$y.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function Epe(n){return!!MT&&MT in n}var Tpe=Epe,Dpe=Function.prototype,Hpe=Dpe.toString;function Bpe(n){if(n!=null){try{return Hpe.call(n)}catch{}try{return n+""}catch{}}return""}var SY=Bpe,Ope=tz,Ipe=Tpe,Ppe=_p,Vpe=SY,Rpe=/[\\^$.*+?()[\]{}|]/g,Npe=/^\[object .+?Constructor\]$/,Fpe=Function.prototype,xpe=Object.prototype,jpe=Fpe.toString,Upe=xpe.hasOwnProperty,qpe=RegExp("^"+jpe.call(Upe).replace(Rpe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wpe(n){if(!Ppe(n)||Ipe(n))return!1;var e=Ope(n)?qpe:Npe;return e.test(Vpe(n))}var Gpe=Wpe;function Ype(n,e){return n==null?void 0:n[e]}var Kpe=Ype,Xpe=Gpe,Jpe=Kpe;function Zpe(n,e){var t=Jpe(n,e);return Xpe(t)?t:void 0}var jd=Zpe,Qpe=jd,ede=J2,tde=Qpe(ede,"WeakMap"),LY=tde,CT=LY,nde=CT&&new CT,EY=nde,rde=ez,ST=EY,ide=ST?function(n,e){return ST.set(n,e),n}:rde,TY=ide,ade=_p,LT=Object.create,ode=function(){function n(){}return function(e){if(!ade(e))return{};if(LT)return LT(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}(),j_=ode,lde=j_,sde=_p;function ude(n){return function(){var e=arguments;switch(e.length){case 0:return new n;case 1:return new n(e[0]);case 2:return new n(e[0],e[1]);case 3:return new n(e[0],e[1],e[2]);case 4:return new n(e[0],e[1],e[2],e[3]);case 5:return new n(e[0],e[1],e[2],e[3],e[4]);case 6:return new n(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new n(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=lde(n.prototype),r=n.apply(t,e);return sde(r)?r:t}}var U_=ude,cde=U_,fde=J2,pde=1;function dde(n,e,t){var r=e&pde,i=cde(n);function a(){var o=this&&this!==fde&&this instanceof a?i:n;return o.apply(r?t:this,arguments)}return a}var hde=dde;function mde(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var nz=mde,gde=Math.max;function vde(n,e,t,r){for(var i=-1,a=n.length,o=t.length,l=-1,s=e.length,u=gde(a-o,0),c=Array(s+u),f=!r;++l<s;)c[l]=e[l];for(;++i<o;)(f||i<a)&&(c[t[i]]=n[i]);for(;u--;)c[l++]=n[i++];return c}var DY=vde,_de=Math.max;function bde(n,e,t,r){for(var i=-1,a=n.length,o=-1,l=t.length,s=-1,u=e.length,c=_de(a-l,0),f=Array(c+u),h=!r;++i<c;)f[i]=n[i];for(var m=i;++s<u;)f[m+s]=e[s];for(;++o<l;)(h||i<a)&&(f[m+t[o]]=n[i++]);return f}var HY=bde;function yde(n,e){for(var t=n.length,r=0;t--;)n[t]===e&&++r;return r}var $de=yde;function wde(){}var rz=wde,kde=j_,zde=rz,Ade=4294967295;function Pv(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ade,this.__views__=[]}Pv.prototype=kde(zde.prototype);Pv.prototype.constructor=Pv;var iz=Pv;function Mde(){}var Cde=Mde,ET=EY,Sde=Cde,Lde=ET?function(n){return ET.get(n)}:Sde,BY=Lde,Ede={},Tde=Ede,TT=Tde,Dde=Object.prototype,Hde=Dde.hasOwnProperty;function Bde(n){for(var e=n.name+"",t=TT[e],r=Hde.call(TT,e)?t.length:0;r--;){var i=t[r],a=i.func;if(a==null||a==n)return i.name}return e}var Ode=Bde,Ide=j_,Pde=rz;function Vv(n,e){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}Vv.prototype=Ide(Pde.prototype);Vv.prototype.constructor=Vv;var OY=Vv,Vde=Array.isArray,Z2=Vde;function Rde(n){return n!=null&&typeof n=="object"}var q3=Rde;function Nde(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var q_=Nde,Fde=iz,xde=OY,jde=q_;function Ude(n){if(n instanceof Fde)return n.clone();var e=new xde(n.__wrapped__,n.__chain__);return e.__actions__=jde(n.__actions__),e.__index__=n.__index__,e.__values__=n.__values__,e}var qde=Ude,Wde=iz,DT=OY,Gde=rz,Yde=Z2,Kde=q3,Xde=qde,Jde=Object.prototype,Zde=Jde.hasOwnProperty;function Rv(n){if(Kde(n)&&!Yde(n)&&!(n instanceof Wde)){if(n instanceof DT)return n;if(Zde.call(n,"__wrapped__"))return Xde(n)}return new DT(n)}Rv.prototype=Gde.prototype;Rv.prototype.constructor=Rv;var Qde=Rv,ehe=iz,the=BY,nhe=Ode,rhe=Qde;function ihe(n){var e=nhe(n),t=rhe[e];if(typeof t!="function"||!(e in ehe.prototype))return!1;if(n===t)return!0;var r=the(t);return!!r&&n===r[0]}var ahe=ihe,ohe=800,lhe=16,she=Date.now;function uhe(n){var e=0,t=0;return function(){var r=she(),i=lhe-(r-t);if(t=r,i>0){if(++e>=ohe)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var IY=uhe,che=TY,fhe=IY,phe=fhe(che),PY=phe,dhe=/\{\n\/\* \[wrapped with (.+)\] \*/,hhe=/,? & /;function mhe(n){var e=n.match(dhe);return e?e[1].split(hhe):[]}var ghe=mhe,vhe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function _he(n,e){var t=e.length;if(!t)return n;var r=t-1;return e[r]=(t>1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(vhe,`{
479
+ `;A.replaceSelection(x+x,null),h(A,-1),I=A.listSelections();for(var G=0;G<I.length;G++){var W=I[G].head.line;A.indentLine(W,null,!0),A.indentLine(W+1,null,!0)}})}function h(A,E){for(var T=[],I=A.listSelections(),P=0,F=0;F<I.length;F++){var x=I[F];x.head==A.getCursor()&&(P=F);var G=x.head.ch||E>0?{line:x.head.line,ch:x.head.ch+E}:{line:x.head.line-1};T.push({anchor:G,head:G})}A.setSelections(T,P)}function m(A){var E=t.cmpPos(A.anchor,A.head)>0;return{anchor:new i(A.anchor.line,A.anchor.ch+(E?-1:1)),head:new i(A.head.line,A.head.ch+(E?1:-1))}}function _(A,E){var T=u(A);if(!T||A.getOption("disableInput"))return t.Pass;var I=a(T,"pairs"),P=I.indexOf(E);if(P==-1)return t.Pass;for(var F=a(T,"closeBefore"),x=a(T,"triples"),G=I.charAt(P+1)==E,W=A.listSelections(),ee=P%2==0,ne,le=0;le<W.length;le++){var te=W[le],X=te.head,q,re=A.getRange(X,i(X.line,X.ch+1));if(ee&&!te.empty())q="surround";else if((G||!ee)&&re==E)G&&w(A,X)?q="both":x.indexOf(E)>=0&&A.getRange(X,i(X.line,X.ch+3))==E+E+E?q="skipThree":q="skip";else if(G&&X.ch>1&&x.indexOf(E)>=0&&A.getRange(i(X.line,X.ch-2),X)==E+E){if(X.ch>2&&/\bstring/.test(A.getTokenTypeAt(i(X.line,X.ch-2))))return t.Pass;q="addFour"}else if(G){var ue=X.ch==0?" ":A.getRange(i(X.line,X.ch-1),X);if(!t.isWordChar(re)&&ue!=E&&!t.isWordChar(ue))q="both";else return t.Pass}else if(ee&&(re.length===0||/\s/.test(re)||F.indexOf(re)>-1))q="both";else return t.Pass;if(!ne)ne=q;else if(ne!=q)return t.Pass}var de=P%2?I.charAt(P-1):E,we=P%2?E:I.charAt(P+1);A.operation(function(){if(ne=="skip")h(A,1);else if(ne=="skipThree")h(A,3);else if(ne=="surround"){for(var ve=A.getSelections(),Ce=0;Ce<ve.length;Ce++)ve[Ce]=de+ve[Ce]+we;A.replaceSelections(ve,"around"),ve=A.listSelections().slice();for(var Ce=0;Ce<ve.length;Ce++)ve[Ce]=m(ve[Ce]);A.setSelections(ve)}else ne=="both"?(A.replaceSelection(de+we,null),A.triggerElectric(de+we),h(A,-1)):ne=="addFour"&&(A.replaceSelection(de+de+de+de,"before"),h(A,1))})}function y(A,E){var T=A.getRange(i(E.line,E.ch-1),i(E.line,E.ch+1));return T.length==2?T:null}function w(A,E){var T=A.getTokenAt(i(E.line,E.ch+1));return/\bstring/.test(T.type)&&T.start==E.ch&&(E.ch==0||!/\bstring/.test(A.getTokenTypeAt(E)))}})})();(function(n,e){(function(t){t(Of.exports)})(function(t){var r=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),i=t.Pos,a={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function o(h){return h&&h.bracketRegex||/[(){}[\]]/}function l(h,m,_){var y=h.getLineHandle(m.line),w=m.ch-1,A=_&&_.afterCursor;A==null&&(A=/(^| )cm-fat-cursor($| )/.test(h.getWrapperElement().className));var E=o(_),T=!A&&w>=0&&E.test(y.text.charAt(w))&&a[y.text.charAt(w)]||E.test(y.text.charAt(w+1))&&a[y.text.charAt(++w)];if(!T)return null;var I=T.charAt(1)==">"?1:-1;if(_&&_.strict&&I>0!=(w==m.ch))return null;var P=h.getTokenTypeAt(i(m.line,w+1)),F=s(h,i(m.line,w+(I>0?1:0)),I,P,_);return F==null?null:{from:i(m.line,w),to:F&&F.pos,match:F&&F.ch==T.charAt(0),forward:I>0}}function s(h,m,_,y,w){for(var A=w&&w.maxScanLineLength||1e4,E=w&&w.maxScanLines||1e3,T=[],I=o(w),P=_>0?Math.min(m.line+E,h.lastLine()+1):Math.max(h.firstLine()-1,m.line-E),F=m.line;F!=P;F+=_){var x=h.getLine(F);if(!!x){var G=_>0?0:x.length-1,W=_>0?x.length:-1;if(!(x.length>A))for(F==m.line&&(G=m.ch-(_<0?1:0));G!=W;G+=_){var ee=x.charAt(G);if(I.test(ee)&&(y===void 0||(h.getTokenTypeAt(i(F,G+1))||"")==(y||""))){var ne=a[ee];if(ne&&ne.charAt(1)==">"==_>0)T.push(ee);else if(T.length)T.pop();else return{pos:i(F,G),ch:ee}}}}}return F-_==(_>0?h.lastLine():h.firstLine())?!1:null}function u(h,m,_){for(var y=h.state.matchBrackets.maxHighlightLineLength||1e3,w=_&&_.highlightNonMatching,A=[],E=h.listSelections(),T=0;T<E.length;T++){var I=E[T].empty()&&l(h,E[T].head,_);if(I&&(I.match||w!==!1)&&h.getLine(I.from.line).length<=y){var P=I.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";A.push(h.markText(I.from,i(I.from.line,I.from.ch+1),{className:P})),I.to&&h.getLine(I.to.line).length<=y&&A.push(h.markText(I.to,i(I.to.line,I.to.ch+1),{className:P}))}}if(A.length){r&&h.state.focused&&h.focus();var F=function(){h.operation(function(){for(var x=0;x<A.length;x++)A[x].clear()})};if(m)setTimeout(F,800);else return F}}function c(h){h.operation(function(){h.state.matchBrackets.currentlyHighlighted&&(h.state.matchBrackets.currentlyHighlighted(),h.state.matchBrackets.currentlyHighlighted=null),h.state.matchBrackets.currentlyHighlighted=u(h,!1,h.state.matchBrackets)})}function f(h){h.state.matchBrackets&&h.state.matchBrackets.currentlyHighlighted&&(h.state.matchBrackets.currentlyHighlighted(),h.state.matchBrackets.currentlyHighlighted=null)}t.defineOption("matchBrackets",!1,function(h,m,_){_&&_!=t.Init&&(h.off("cursorActivity",c),h.off("focus",c),h.off("blur",f),f(h)),m&&(h.state.matchBrackets=typeof m=="object"?m:{},h.on("cursorActivity",c),h.on("focus",c),h.on("blur",f))}),t.defineExtension("matchBrackets",function(){u(this,!0)}),t.defineExtension("findMatchingBracket",function(h,m,_){return(_||typeof m=="boolean")&&(_?(_.strict=m,m=_):m=m?{strict:!0}:null),l(this,h,m)}),t.defineExtension("scanForBracket",function(h,m,_,y){return s(this,h,m,_,y)})})})();function _T(n){let e,t;return e=new cn({props:{small:!0,$$slots:{default:[I5e]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&33554434&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function I5e(n){let e;return{c(){e=oe(n[1])},m(t,r){S(t,e,r)},p(t,r){r&2&&_t(e,t[1])},d(t){t&&C(e)}}}function P5e(n){let e,t,r,i,a,o=n[1]&&_T(n);return{c(){o&&o.c(),e=U(),t=J("div"),r=J("textarea"),D(r,"tabindex","0"),r.readOnly=!0,r.value=n[0],D(r,"class","svelte-8k8uv"),D(t,"style",i=`--code-mirror-height: ${n[2]}px`),D(t,"class","svelte-8k8uv")},m(l,s){o&&o.m(l,s),S(l,e,s),S(l,t,s),j(t,r),n[13](r),a=!0},p(l,[s]){l[1]?o?(o.p(l,s),s&2&&b(o,1)):(o=_T(l),o.c(),b(o,1),o.m(e.parentNode,e)):o&&(Ae(),$(o,1,1,()=>{o=null}),Me()),(!a||s&1)&&(r.value=l[0]),(!a||s&4&&i!==(i=`--code-mirror-height: ${l[2]}px`))&&D(t,"style",i)},i(l){a||(b(o),a=!0)},o(l){$(o),a=!1},d(l){o&&o.d(l),l&&C(e),l&&C(t),n[13](null)}}}function bT(n){return new Promise(e=>setTimeout(e,n))}function V5e(n,e,t){let r;Ne(n,Tv,ne=>t(18,r=ne));const i=Un(),a={DARK:"tomorrow-night-eighties",LIGHT:"default"};let{label:o}=e,{value:l=""}=e,{readOnly:s=!1}=e,{lineNumbers:u=!0}=e,{tab:c=!0}=e,{mode:f}=e,{editorHeight:h=500}=e,m,_;async function y(ne,le){le!==f&&await W(t(4,f=le)),t(0,l=ne),F=!0,P&&P.setValue(l),F=!1}function w(ne){if(t(0,l=ne),P){const{left:le,top:te}=P.getScrollInfo();P.setValue(t(0,l=ne)),P.scrollTo(le,te)}}function A(){P.refresh()}function E(){P.focus()}const T={js:{name:"javascript",json:!1},json:{name:"javascript",json:!0},sql:{name:"sql"},svelte:{name:"handlebars",base:"text/html"}},I={};let P,F=!1,x=!1;ar(()=>(W(f).then(()=>{P&&P.setValue(l||"")}),()=>{x=!0,P&&P.toTextArea()}));let G=!0;async function W(ne){if(x||!Cf)return;P&&P.toTextArea();const le={lineNumbers:u,lineWrapping:!0,indentWithTabs:!0,indentUnit:2,tabSize:2,value:"",mode:T[ne]||{name:ne},readOnly:s,autoCloseBrackets:!0,autoCloseTags:!0,theme:r.theme.includes("light")?a.LIGHT:a.DARK};c||(le.extraKeys={Tab:c,"Shift-Tab":c}),G&&await bT(50),!x&&(Cf.commands.autocomplete=function(te){Cf.showHint(te,Cf.hint.javascript)},t(12,P=Cf.fromTextArea(I.editor,le)),P.on("change",te=>{if(!F){const X=te.getValue();i("change",{value:X})}}),G&&await bT(50),P.refresh(),G=!1)}function ee(ne){He[ne?"unshift":"push"](()=>{I.editor=ne,t(3,I)})}return n.$$set=ne=>{"label"in ne&&t(1,o=ne.label),"value"in ne&&t(0,l=ne.value),"readOnly"in ne&&t(5,s=ne.readOnly),"lineNumbers"in ne&&t(6,u=ne.lineNumbers),"tab"in ne&&t(7,c=ne.tab),"mode"in ne&&t(4,f=ne.mode),"editorHeight"in ne&&t(2,h=ne.editorHeight)},n.$$.update=()=>{n.$$.dirty&4096&&P&&m&&_&&P.refresh()},[l,o,h,I,f,s,u,c,y,w,A,E,P,ee]}class vp extends Re{constructor(e){super(),Ve(this,e,V5e,P5e,Oe,{label:1,value:0,readOnly:5,lineNumbers:6,tab:7,mode:4,editorHeight:2,set:8,update:9,resize:10,focus:11})}get set(){return this.$$.ctx[8]}get update(){return this.$$.ctx[9]}get resize(){return this.$$.ctx[10]}get focus(){return this.$$.ctx[11]}}const zc=n=>n.substring(0,1).toUpperCase()+n.substring(1),yT=n=>n.substring(0,1).toLowerCase()+n.substring(1),R5e=[{name:"Save Row",type:"data",component:"SaveRow",context:[{label:"Saved row",value:"row"}]},{name:"Duplicate Row",type:"data",component:"DuplicateRow",context:[{label:"Duplicated row",value:"row"}]},{name:"Delete Row",type:"data",component:"DeleteRow"},{name:"Navigate To",type:"application",component:"NavigateTo"},{name:"Execute Query",type:"data",component:"ExecuteQuery",context:[{label:"Query result",value:"result"}]},{name:"Trigger Automation",type:"application",component:"TriggerAutomation"},{name:"Update Field Value",type:"form",component:"UpdateFieldValue"},{name:"Validate Form",type:"form",component:"ValidateForm"},{name:"Change Form Step",type:"form",component:"ChangeFormStep"},{name:"Clear Form",type:"form",component:"ClearForm"},{name:"Log Out",type:"application",component:"LogOut"},{name:"Close Screen Modal",type:"application",component:"CloseScreenModal"},{name:"Refresh Data Provider",type:"data",component:"RefreshDataProvider"},{name:"Update State",type:"data",component:"UpdateState",dependsOnFeature:"state"},{name:"Upload File to S3",type:"data",component:"S3Upload",context:[{label:"File URL",value:"publicUrl"}]},{name:"Export Data",type:"data",component:"ExportData"},{name:"Continue if / Stop if",type:"logic",component:"ContinueIf",dependsOnFeature:"continueIfAction"},{name:"Show Notification",type:"application",component:"ShowNotification",dependsOnFeature:"showNotificationAction"}],$Y={actions:R5e},N5e=/{{([^}]+)}}/g,F5e=/\$\("([^")]+)"\)/g,Jk=(n,e)=>{const t=j5e(n,e),r=Zk(),i=G5e(n),a=U5e(),o=W5e(),l=q5e(n),s=Y5e();return[...t,...i,...o,...r,...a,...l,...s]},Iv=()=>[...Zk(),...wY()],wY=()=>{let n=[];const e=y1("user"),t=y1("oauth2"),r=y1("accessToken");return n=[{runtime:`${e}.${t}.${r}`,readable:"Current User.OAuthToken",key:"accessToken",display:{name:"OAuthToken"}}].map(a=>({type:"context",runtimeBinding:a.runtime,readableBinding:a.readable,fieldSchema:{type:"string",name:a.key},providerId:"user",category:"Current User",display:a.display})),n},gh=(n,e,t)=>n?Object.keys(n).reduce((r,i)=>{if(!i||!n[i])return r;let a={type:"context",runtimeBinding:i,readableBinding:`${e}.${i}`,icon:"Brackets"};return t&&(a.category=t),r.push(a),r},[]):[],$T=(n,e)=>!n||!e?{}:Object.keys(e).reduce((t,r)=>(t[r]=Df(n,e[r]),t),{}),U9=(n,e)=>!n||!e?{}:Object.keys(e).reduce((t,r)=>(t[r]=P3(n,e[r]),t),{}),x5e=(n,e)=>{if(!n||!e)return[];const t=wc(n.props,e),r=nn.actions.components.getDefinition(t==null?void 0:t._component);return r!=null&&r.context?kY(n,t):[]},o6=(n,e,t)=>{if(!n||!e)return[];const r=k4(n.props,e);return r.pop(),r.filter(i=>{const a=nn.actions.components.getDefinition(i._component);return a!=null&&a.context?t?(Array.isArray(a.context)?a.context:[a.context]).find(l=>l.type===t)!=null:!0:!1})},L7=(n,e,t)=>{if(!n||!e)return[];const r=k4(n.props,e);return r.pop(),r.filter(i=>{var o;const a=nn.actions.components.getDefinition(i._component);return(o=a==null?void 0:a.actions)==null?void 0:o.includes(t)})},E4=(n,e)=>{const t=S6(e==null?void 0:e._component),r=t.find(l=>l.type==="dataProvider");if(r){const l=e[r.key],s=Z5e(l),u=wc(n==null?void 0:n.props,s);return E4(n,u)}const i=["dataSource","table","schema"],a=t.find(l=>i.includes(l.type));if(!a)return null;const o=e[a==null?void 0:a.key];return typeof o=="string"?{tableId:o,type:"table"}:o},j5e=(n,e)=>{const t=o6(n,e);return kY(n,t)},kY=(n,e)=>{if(!n||!e)return[];Array.isArray(e)||(e=[e]);let t=[];return e.forEach(r=>{const i=nn.actions.components.getDefinition(r._component);(Array.isArray(i.context)?i.context:[i.context]).forEach(o=>{var _;if(!(o!=null&&o.type))return;let l,s,u,c=o.suffix;if(o.type==="form")l=Qk(r),u="Fields";else if(o.type==="static")l={},(o.values||[]).forEach(w=>{l[w.key]={name:w.label,type:w.type||"string"}});else if(o.type==="schema"){const y=E4(n,r);if(!y)return;const w=i3(n,y);if(l=w.schema,s=w.table,y.type==="jsonarray"){const A=y.label.split(".");u=A[A.length-1]}else u=(_=w.table)==null?void 0:_.name}if(!l)return;const f=Object.keys(l).sort();let h=r._id;c&&(h+=`-${c}`);const m=y1(h);f.forEach(y=>{const w=l[y],A=y.split(".").map(y1).join("."),E=`${m}.${A}`;let T=r._instanceName;u&&(T+=`.${u}`),T+=`.${w.name||y}`,t.push({type:"context",runtimeBinding:E,readableBinding:T,fieldSchema:w,providerId:h,tableId:s==null?void 0:s._id,category:r._instanceName,icon:i.icon,display:{name:w.name||y,type:w.type}})})})}),t},Zk=()=>{let n=[];const{schema:e}=x_(z4.USERS),t=Object.keys(e).sort(),r=y1("user");return n=t.reduce((i,a)=>{const o=e[a];return i.push({type:"context",runtimeBinding:`${r}.${y1(a)}`,readableBinding:`Current User.${a}`,fieldSchema:o,providerId:"user",category:"Current User",icon:"User"}),i},[]),n},U5e=()=>{var e;let n=[];if((e=pn(nn).clientFeatures)!=null&&e.deviceAwareness){const t=y1("device");n.push({type:"context",runtimeBinding:`${t}.${y1("mobile")}`,readableBinding:"Device.Mobile",category:"Device",icon:"DevicePhone",display:{type:"boolean",name:"mobile"}}),n.push({type:"context",runtimeBinding:`${t}.${y1("tablet")}`,readableBinding:"Device.Tablet",category:"Device",icon:"DevicePhone",display:{type:"boolean",name:"tablet"}})}return n},q5e=n=>{var t;let e=[];if((t=pn(nn).clientFeatures)!=null&&t.rowSelection){let r=op(n==null?void 0:n.props,o=>o._component.endsWith("table"));const i=y1("rowSelection");e=e.concat(r.map(o=>({type:"context",runtimeBinding:`${i}.${y1(o._id)}.${y1("selectedRows")}`,readableBinding:`${o._instanceName}.Selected rows`,category:"Selected rows",icon:"ViewRow"})));let a=op(n==null?void 0:n.props,o=>o._component.endsWith("tableblock"));e=e.concat(a.map(o=>({type:"context",runtimeBinding:`${i}.${y1(o._id+"-table")}.${y1("selectedRows")}`,readableBinding:`${o._instanceName}.Selected rows`})))}return e},W5e=()=>{var e;let n=[];if((e=pn(nn).clientFeatures)!=null&&e.state){const t=y1("state");n=zY().map(r=>({type:"context",runtimeBinding:`${t}.${y1(r)}`,readableBinding:`State.${r}`,category:"State",icon:"AutomatedSegment",display:{name:r}}))}return n},G5e=n=>{var l,s;const t=((s=(l=n==null?void 0:n.routing)==null?void 0:l.route)!=null?s:"").split("/");let r=[];t.forEach(u=>{u.startsWith(":")&&u.length>1&&r.push(u.replace(/:/g,"").replace(/\?/g,""))});const i=y1("url"),a=r.map(u=>({type:"context",runtimeBinding:`${i}.${y1(u)}`,readableBinding:`URL.${u}`,category:"URL",icon:"RailTop",display:{type:"string"}})),o={type:"context",runtimeBinding:y1("query"),readableBinding:"Query params",category:"URL",icon:"RailTop",display:{type:"object"}};return a.concat([o])},Y5e=()=>(pn(Bl)||[]).map(n=>({type:"context",runtimeBinding:`trim "${n._id}"`,readableBinding:`Role.${n.name}`,category:"Role",icon:"UserGroup",display:{type:"string",name:n.name}})),K5e=(n,e,t,r,i)=>{var h;let a=[];const o=wc(n.props,e),l=nn.actions.components.getDefinition(o==null?void 0:o._component),u=S6(o==null?void 0:o._component).find(m=>m.key===t);(h=u==null?void 0:u.context)!=null&&h.length&&u.context.forEach(m=>{a.push({readableBinding:m.label,runtimeBinding:`${y1("eventContext")}.${y1(m.key)}`,category:o._instanceName,icon:l.icon})});const c=r==null?void 0:r.findIndex(m=>m.id===i);return c==null||c===-1||r.slice(0,c).forEach((m,_)=>{const y=$Y.actions.find(w=>w.name===m["##eventHandlerType"]);y.context&&y.context.forEach(w=>{a.push({readableBinding:`Action ${_+1}.${w.label}`,runtimeBinding:`actions.${_}.${w.value}`,category:"Actions",icon:"JourneyAction"})})}),a},x_=(n,e)=>i3(null,{type:"table",tableId:n},e),i3=(n,e,t)=>{var a,o;t=t||{};let r,i;if(e){const{type:l}=e,s=pn(Dr).list;if(l==="provider"){const _=wc(n==null?void 0:n.props,e.providerId),y=E4(n,_);return i3(n,y,t)}else if(l==="query")i=pn(ya).list.find(y=>y._id===e._id);else if(l==="field"){i={name:e.fieldName};const{fieldType:_}=e;_==="attachment"?r={url:{type:"string"},name:{type:"string"}}:_==="array"&&(r={value:{type:"string"}})}else if(l==="jsonarray"){i=s.find(y=>y._id===e.tableId);let _=i==null?void 0:i.schema;r=$G(_,e)}else i=s.find(_=>_._id===e.tableId);if(i&&!r&&(l==="view"?r=A1.cloneDeep((o=(a=i.views)==null?void 0:a[e.name])==null?void 0:o.schema):l==="query"&&(t.formSchema||t.searchableSchema)?(r={},(i.parameters||[]).forEach(y=>{y!=null&&y.name&&(r[y.name]={...y,type:"string"})})):r=A1.cloneDeep(i.schema)),r){let _={};Object.keys(r).forEach(y=>{const w=r[y];if((w==null?void 0:w.type)==="json"){const A=Sk(w,{squashObjects:!0});Object.keys(A).forEach(E=>{_[`${y}.${E}`]={type:A[E].type,nestedJSON:!0}})}}),r={...r,..._}}const u=i&&!i.sql,c=["table","link"].includes(e.type);let f=c,h=c&&u;t.formSchema?(f=!1,h=!1):t.searchableSchema&&(f=c&&u),r&&(f&&(r._id={type:"string"}),h&&(r._rev={type:"string"}));let m={};Object.entries(r||{}).forEach(([_,y])=>{typeof y=="string"?m[_]={type:y,name:_}:m[_]={...y,name:_}}),r=m}return{schema:r,table:i}},Qk=n=>{var i;let e={};if(!n)return e;const r=S6(n._component).find(a=>a.key==="field"&&a.type.startsWith("field/"));if(r&&n.field){const a=r.type.split("field/")[1];a&&(e[n.field]={type:a})}return(i=n._children)==null||i.forEach(a=>{const o=Qk(a);e={...e,...o}}),e},zY=()=>{let n=[];X5e().forEach(t=>{op(t.props,r=>{S6(r._component).filter(a=>a.type==="event").forEach(a=>{n.push(r[a.key])})})}),pn(nn).screens.forEach(t=>{t.onLoad&&n.push(t.onLoad)});let e=new Set;return n.forEach(t=>{!Array.isArray(t)||t.forEach(r=>{var i,a,o;r["##eventHandlerType"]==="Update State"&&((i=r.parameters)==null?void 0:i.type)==="set"&&((a=r.parameters)==null?void 0:a.key)&&((o=r.parameters)==null?void 0:o.value)&&e.add(r.parameters.key)})}),Array.from(e)},X5e=()=>{let n=[];return n=n.concat(pn(nn).layouts||[]),n=n.concat(pn(nn).screens||[]),n},J5e=(n,e,t)=>{if(!(n!=null&&n.includes(e)))return!1;if(t==="readableBinding")return!0;const r=n.replace(/\s+/g,""),i=e.replace(/\s+/g,"");return![`[${i}]`,`"${i}"`,`'${i}'`].find(o=>r==null?void 0:r.includes(o))},wT=(n,e,t,r)=>n.substring(0,e)+r+n.substring(t),AY=(n,e,t)=>{const r=k7(e);r&&(e=Xh(e));const i=r?F5e:N5e,a=t==="runtimeBinding"?"readableBinding":"runtimeBinding";if(typeof e!="string")return e;const o=n.map(u=>u[a]).sort((u,c)=>c.length-u.length),l=e.match(i)||[];let s=e;for(let u of l){let c=u,f=c;for(let h of o)if(r||J5e(c,h,t)){const m=n.find(y=>y[a]===h);let _;do if(_=f.indexOf(h),_!==-1){let y=_+h.length,w=Array(m[t].length+1).join("*");f=wT(f,_,y,w),c=wT(c,_,y,m[t])}while(_!==-1)}s=s.replace(u,c)}return r&&(s=Sh(s)),s},Z5e=n=>{var e;return(e=n==null?void 0:n.match(/{{\s*literal\s*\[+([^\]]+)].*}}/))==null?void 0:e[1]},Df=(n,e)=>AY(n,e,"runtimeBinding"),P3=(n,e)=>AY(n,e,"readableBinding");function Q5e(n){return n}var ez=Q5e,epe=typeof b0=="object"&&b0&&b0.Object===Object&&b0,MY=epe,tpe=MY,npe=typeof self=="object"&&self&&self.Object===Object&&self,rpe=tpe||npe||Function("return this")(),J2=rpe,ipe=J2,ape=ipe.Symbol,L6=ape,kT=L6,CY=Object.prototype,ope=CY.hasOwnProperty,lpe=CY.toString,Zm=kT?kT.toStringTag:void 0;function spe(n){var e=ope.call(n,Zm),t=n[Zm];try{n[Zm]=void 0;var r=!0}catch{}var i=lpe.call(n);return r&&(e?n[Zm]=t:delete n[Zm]),i}var upe=spe,cpe=Object.prototype,fpe=cpe.toString;function ppe(n){return fpe.call(n)}var dpe=ppe,zT=L6,hpe=upe,mpe=dpe,gpe="[object Null]",vpe="[object Undefined]",AT=zT?zT.toStringTag:void 0;function _pe(n){return n==null?n===void 0?vpe:gpe:AT&&AT in Object(n)?hpe(n):mpe(n)}var xd=_pe;function bpe(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var _p=bpe,ype=xd,$pe=_p,wpe="[object AsyncFunction]",kpe="[object Function]",zpe="[object GeneratorFunction]",Ape="[object Proxy]";function Mpe(n){if(!$pe(n))return!1;var e=ype(n);return e==kpe||e==zpe||e==wpe||e==Ape}var tz=Mpe,Cpe=J2,Spe=Cpe["__core-js_shared__"],Lpe=Spe,$y=Lpe,MT=function(){var n=/[^.]+$/.exec($y&&$y.keys&&$y.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function Epe(n){return!!MT&&MT in n}var Tpe=Epe,Dpe=Function.prototype,Hpe=Dpe.toString;function Bpe(n){if(n!=null){try{return Hpe.call(n)}catch{}try{return n+""}catch{}}return""}var SY=Bpe,Ope=tz,Ipe=Tpe,Ppe=_p,Vpe=SY,Rpe=/[\\^$.*+?()[\]{}|]/g,Npe=/^\[object .+?Constructor\]$/,Fpe=Function.prototype,xpe=Object.prototype,jpe=Fpe.toString,Upe=xpe.hasOwnProperty,qpe=RegExp("^"+jpe.call(Upe).replace(Rpe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wpe(n){if(!Ppe(n)||Ipe(n))return!1;var e=Ope(n)?qpe:Npe;return e.test(Vpe(n))}var Gpe=Wpe;function Ype(n,e){return n==null?void 0:n[e]}var Kpe=Ype,Xpe=Gpe,Jpe=Kpe;function Zpe(n,e){var t=Jpe(n,e);return Xpe(t)?t:void 0}var jd=Zpe,Qpe=jd,ede=J2,tde=Qpe(ede,"WeakMap"),LY=tde,CT=LY,nde=CT&&new CT,EY=nde,rde=ez,ST=EY,ide=ST?function(n,e){return ST.set(n,e),n}:rde,TY=ide,ade=_p,LT=Object.create,ode=function(){function n(){}return function(e){if(!ade(e))return{};if(LT)return LT(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}(),j_=ode,lde=j_,sde=_p;function ude(n){return function(){var e=arguments;switch(e.length){case 0:return new n;case 1:return new n(e[0]);case 2:return new n(e[0],e[1]);case 3:return new n(e[0],e[1],e[2]);case 4:return new n(e[0],e[1],e[2],e[3]);case 5:return new n(e[0],e[1],e[2],e[3],e[4]);case 6:return new n(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new n(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=lde(n.prototype),r=n.apply(t,e);return sde(r)?r:t}}var U_=ude,cde=U_,fde=J2,pde=1;function dde(n,e,t){var r=e&pde,i=cde(n);function a(){var o=this&&this!==fde&&this instanceof a?i:n;return o.apply(r?t:this,arguments)}return a}var hde=dde;function mde(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var nz=mde,gde=Math.max;function vde(n,e,t,r){for(var i=-1,a=n.length,o=t.length,l=-1,s=e.length,u=gde(a-o,0),c=Array(s+u),f=!r;++l<s;)c[l]=e[l];for(;++i<o;)(f||i<a)&&(c[t[i]]=n[i]);for(;u--;)c[l++]=n[i++];return c}var DY=vde,_de=Math.max;function bde(n,e,t,r){for(var i=-1,a=n.length,o=-1,l=t.length,s=-1,u=e.length,c=_de(a-l,0),f=Array(c+u),h=!r;++i<c;)f[i]=n[i];for(var m=i;++s<u;)f[m+s]=e[s];for(;++o<l;)(h||i<a)&&(f[m+t[o]]=n[i++]);return f}var HY=bde;function yde(n,e){for(var t=n.length,r=0;t--;)n[t]===e&&++r;return r}var $de=yde;function wde(){}var rz=wde,kde=j_,zde=rz,Ade=4294967295;function Pv(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ade,this.__views__=[]}Pv.prototype=kde(zde.prototype);Pv.prototype.constructor=Pv;var iz=Pv;function Mde(){}var Cde=Mde,ET=EY,Sde=Cde,Lde=ET?function(n){return ET.get(n)}:Sde,BY=Lde,Ede={},Tde=Ede,TT=Tde,Dde=Object.prototype,Hde=Dde.hasOwnProperty;function Bde(n){for(var e=n.name+"",t=TT[e],r=Hde.call(TT,e)?t.length:0;r--;){var i=t[r],a=i.func;if(a==null||a==n)return i.name}return e}var Ode=Bde,Ide=j_,Pde=rz;function Vv(n,e){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}Vv.prototype=Ide(Pde.prototype);Vv.prototype.constructor=Vv;var OY=Vv,Vde=Array.isArray,Z2=Vde;function Rde(n){return n!=null&&typeof n=="object"}var q3=Rde;function Nde(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var q_=Nde,Fde=iz,xde=OY,jde=q_;function Ude(n){if(n instanceof Fde)return n.clone();var e=new xde(n.__wrapped__,n.__chain__);return e.__actions__=jde(n.__actions__),e.__index__=n.__index__,e.__values__=n.__values__,e}var qde=Ude,Wde=iz,DT=OY,Gde=rz,Yde=Z2,Kde=q3,Xde=qde,Jde=Object.prototype,Zde=Jde.hasOwnProperty;function Rv(n){if(Kde(n)&&!Yde(n)&&!(n instanceof Wde)){if(n instanceof DT)return n;if(Zde.call(n,"__wrapped__"))return Xde(n)}return new DT(n)}Rv.prototype=Gde.prototype;Rv.prototype.constructor=Rv;var Qde=Rv,ehe=iz,the=BY,nhe=Ode,rhe=Qde;function ihe(n){var e=nhe(n),t=rhe[e];if(typeof t!="function"||!(e in ehe.prototype))return!1;if(n===t)return!0;var r=the(t);return!!r&&n===r[0]}var ahe=ihe,ohe=800,lhe=16,she=Date.now;function uhe(n){var e=0,t=0;return function(){var r=she(),i=lhe-(r-t);if(t=r,i>0){if(++e>=ohe)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var IY=uhe,che=TY,fhe=IY,phe=fhe(che),PY=phe,dhe=/\{\n\/\* \[wrapped with (.+)\] \*/,hhe=/,? & /;function mhe(n){var e=n.match(dhe);return e?e[1].split(hhe):[]}var ghe=mhe,vhe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function _he(n,e){var t=e.length;if(!t)return n;var r=t-1;return e[r]=(t>1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(vhe,`{
480
480
  /* [wrapped with `+e+`] */
481
481
  `)}var bhe=_he;function yhe(n){return function(){return n}}var $he=yhe,whe=jd,khe=function(){try{var n=whe(Object,"defineProperty");return n({},"",{}),n}catch{}}(),VY=khe,zhe=$he,HT=VY,Ahe=ez,Mhe=HT?function(n,e){return HT(n,"toString",{configurable:!0,enumerable:!1,value:zhe(e),writable:!0})}:Ahe,Che=Mhe,She=Che,Lhe=IY,Ehe=Lhe(She),RY=Ehe;function The(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var az=The;function Dhe(n,e,t,r){for(var i=n.length,a=t+(r?1:-1);r?a--:++a<i;)if(e(n[a],a,n))return a;return-1}var Hhe=Dhe;function Bhe(n){return n!==n}var Ohe=Bhe;function Ihe(n,e,t){for(var r=t-1,i=n.length;++r<i;)if(n[r]===e)return r;return-1}var Phe=Ihe,Vhe=Hhe,Rhe=Ohe,Nhe=Phe;function Fhe(n,e,t){return e===e?Nhe(n,e,t):Vhe(n,Rhe,t)}var xhe=Fhe,jhe=xhe;function Uhe(n,e){var t=n==null?0:n.length;return!!t&&jhe(n,e,0)>-1}var qhe=Uhe,Whe=az,Ghe=qhe,Yhe=1,Khe=2,Xhe=8,Jhe=16,Zhe=32,Qhe=64,e6e=128,t6e=256,n6e=512,r6e=[["ary",e6e],["bind",Yhe],["bindKey",Khe],["curry",Xhe],["curryRight",Jhe],["flip",n6e],["partial",Zhe],["partialRight",Qhe],["rearg",t6e]];function i6e(n,e){return Whe(r6e,function(t){var r="_."+t[0];e&t[1]&&!Ghe(n,r)&&n.push(r)}),n.sort()}var a6e=i6e,o6e=ghe,l6e=bhe,s6e=RY,u6e=a6e;function c6e(n,e,t){var r=e+"";return s6e(n,l6e(r,u6e(o6e(r),t)))}var NY=c6e,f6e=ahe,p6e=PY,d6e=NY,h6e=1,m6e=2,g6e=4,v6e=8,BT=32,OT=64;function _6e(n,e,t,r,i,a,o,l,s,u){var c=e&v6e,f=c?o:void 0,h=c?void 0:o,m=c?a:void 0,_=c?void 0:a;e|=c?BT:OT,e&=~(c?OT:BT),e&g6e||(e&=~(h6e|m6e));var y=[n,e,i,m,f,_,h,l,s,u],w=t.apply(void 0,y);return f6e(n)&&p6e(w,y),w.placeholder=r,d6e(w,n,e)}var FY=_6e;function b6e(n){var e=n;return e.placeholder}var xY=b6e,y6e=9007199254740991,$6e=/^(?:0|[1-9]\d*)$/;function w6e(n,e){var t=typeof n;return e=e==null?y6e:e,!!e&&(t=="number"||t!="symbol"&&$6e.test(n))&&n>-1&&n%1==0&&n<e}var oz=w6e,k6e=q_,z6e=oz,A6e=Math.min;function M6e(n,e){for(var t=n.length,r=A6e(e.length,t),i=k6e(n);r--;){var a=e[r];n[r]=z6e(a,t)?i[a]:void 0}return n}var C6e=M6e,IT="__lodash_placeholder__";function S6e(n,e){for(var t=-1,r=n.length,i=0,a=[];++t<r;){var o=n[t];(o===e||o===IT)&&(n[t]=IT,a[i++]=t)}return a}var lz=S6e,L6e=DY,E6e=HY,T6e=$de,PT=U_,D6e=FY,H6e=xY,B6e=C6e,O6e=lz,I6e=J2,P6e=1,V6e=2,R6e=8,N6e=16,F6e=128,x6e=512;function jY(n,e,t,r,i,a,o,l,s,u){var c=e&F6e,f=e&P6e,h=e&V6e,m=e&(R6e|N6e),_=e&x6e,y=h?void 0:PT(n);function w(){for(var A=arguments.length,E=Array(A),T=A;T--;)E[T]=arguments[T];if(m)var I=H6e(w),P=T6e(E,I);if(r&&(E=L6e(E,r,i,m)),a&&(E=E6e(E,a,o,m)),A-=P,m&&A<u){var F=O6e(E,I);return D6e(n,e,jY,w.placeholder,t,E,F,l,s,u-A)}var x=f?t:this,G=h?x[n]:n;return A=E.length,l?E=B6e(E,l):_&&A>1&&E.reverse(),c&&s<A&&(E.length=s),this&&this!==I6e&&this instanceof w&&(G=y||PT(G)),G.apply(x,E)}return w}var UY=jY,j6e=nz,U6e=U_,q6e=UY,W6e=FY,G6e=xY,Y6e=lz,K6e=J2;function X6e(n,e,t){var r=U6e(n);function i(){for(var a=arguments.length,o=Array(a),l=a,s=G6e(i);l--;)o[l]=arguments[l];var u=a<3&&o[0]!==s&&o[a-1]!==s?[]:Y6e(o,s);if(a-=u.length,a<t)return W6e(n,e,q6e,i.placeholder,void 0,o,u,void 0,void 0,t-a);var c=this&&this!==K6e&&this instanceof i?r:n;return j6e(c,this,o)}return i}var J6e=X6e,Z6e=nz,Q6e=U_,e8e=J2,t8e=1;function n8e(n,e,t,r){var i=e&t8e,a=Q6e(n);function o(){for(var l=-1,s=arguments.length,u=-1,c=r.length,f=Array(c+s),h=this&&this!==e8e&&this instanceof o?a:n;++u<c;)f[u]=r[u];for(;s--;)f[u++]=arguments[++l];return Z6e(h,i?t:this,f)}return o}var r8e=n8e,i8e=DY,a8e=HY,VT=lz,RT="__lodash_placeholder__",wy=1,o8e=2,l8e=4,NT=8,Qm=128,FT=256,s8e=Math.min;function u8e(n,e){var t=n[1],r=e[1],i=t|r,a=i<(wy|o8e|Qm),o=r==Qm&&t==NT||r==Qm&&t==FT&&n[7].length<=e[8]||r==(Qm|FT)&&e[7].length<=e[8]&&t==NT;if(!(a||o))return n;r&wy&&(n[2]=e[2],i|=t&wy?0:l8e);var l=e[3];if(l){var s=n[3];n[3]=s?i8e(s,l,e[4]):l,n[4]=s?VT(n[3],RT):e[4]}return l=e[5],l&&(s=n[5],n[5]=s?a8e(s,l,e[6]):l,n[6]=s?VT(n[5],RT):e[6]),l=e[7],l&&(n[7]=l),r&Qm&&(n[8]=n[8]==null?e[8]:s8e(n[8],e[8])),n[9]==null&&(n[9]=e[9]),n[0]=e[0],n[1]=i,n}var c8e=u8e,f8e=/\s/;function p8e(n){for(var e=n.length;e--&&f8e.test(n.charAt(e)););return e}var d8e=p8e,h8e=d8e,m8e=/^\s+/;function g8e(n){return n&&n.slice(0,h8e(n)+1).replace(m8e,"")}var v8e=g8e,_8e=xd,b8e=q3,y8e="[object Symbol]";function $8e(n){return typeof n=="symbol"||b8e(n)&&_8e(n)==y8e}var E7=$8e,w8e=v8e,xT=_p,k8e=E7,jT=0/0,z8e=/^[-+]0x[0-9a-f]+$/i,A8e=/^0b[01]+$/i,M8e=/^0o[0-7]+$/i,C8e=parseInt;function S8e(n){if(typeof n=="number")return n;if(k8e(n))return jT;if(xT(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=xT(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=w8e(n);var t=A8e.test(n);return t||M8e.test(n)?C8e(n.slice(2),t?2:8):z8e.test(n)?jT:+n}var L8e=S8e,E8e=L8e,UT=1/0,T8e=17976931348623157e292;function D8e(n){if(!n)return n===0?n:0;if(n=E8e(n),n===UT||n===-UT){var e=n<0?-1:1;return e*T8e}return n===n?n:0}var H8e=D8e,B8e=H8e;function O8e(n){var e=B8e(n),t=e%1;return e===e?t?e-t:e:0}var qY=O8e,I8e=TY,P8e=hde,V8e=J6e,R8e=UY,N8e=r8e,F8e=BY,x8e=c8e,j8e=PY,U8e=NY,qT=qY,q8e="Expected a function",WT=1,W8e=2,ky=8,zy=16,Ay=32,GT=64,YT=Math.max;function G8e(n,e,t,r,i,a,o,l){var s=e&W8e;if(!s&&typeof n!="function")throw new TypeError(q8e);var u=r?r.length:0;if(u||(e&=~(Ay|GT),r=i=void 0),o=o===void 0?o:YT(qT(o),0),l=l===void 0?l:qT(l),u-=i?i.length:0,e&GT){var c=r,f=i;r=i=void 0}var h=s?void 0:F8e(n),m=[n,e,t,r,i,c,f,a,o,l];if(h&&x8e(m,h),n=m[0],e=m[1],t=m[2],r=m[3],i=m[4],l=m[9]=m[9]===void 0?s?0:n.length:YT(m[9]-u,0),!l&&e&(ky|zy)&&(e&=~(ky|zy)),!e||e==WT)var _=P8e(n,e,t);else e==ky||e==zy?_=V8e(n,e,l):(e==Ay||e==(WT|Ay))&&!i.length?_=N8e(n,e,t,r):_=R8e.apply(void 0,m);var y=h?I8e:j8e;return U8e(y(_,m),n,e)}var sz=G8e,Y8e=sz,K8e=128;function X8e(n,e,t){return e=t?void 0:e,e=n&&e==null?n.length:e,Y8e(n,K8e,void 0,void 0,void 0,void 0,e)}var J8e=X8e,KT=VY;function Z8e(n,e,t){e=="__proto__"&&KT?KT(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}var uz=Z8e;function Q8e(n,e){return n===e||n!==n&&e!==e}var cz=Q8e,eme=uz,tme=cz,nme=Object.prototype,rme=nme.hasOwnProperty;function ime(n,e,t){var r=n[e];(!(rme.call(n,e)&&tme(r,t))||t===void 0&&!(e in n))&&eme(n,e,t)}var WY=ime,ame=WY,ome=uz;function lme(n,e,t,r){var i=!t;t||(t={});for(var a=-1,o=e.length;++a<o;){var l=e[a],s=r?r(t[l],n[l],l,t,n):void 0;s===void 0&&(s=n[l]),i?ome(t,l,s):ame(t,l,s)}return t}var W_=lme;function sme(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var ume=sme,cme=xd,fme=q3,pme="[object Arguments]";function dme(n){return fme(n)&&cme(n)==pme}var hme=dme,XT=hme,mme=q3,GY=Object.prototype,gme=GY.hasOwnProperty,vme=GY.propertyIsEnumerable,_me=XT(function(){return arguments}())?XT:function(n){return mme(n)&&gme.call(n,"callee")&&!vme.call(n,"callee")},fz=_me,n7={exports:{}};function bme(){return!1}var yme=bme;(function(n,e){var t=J2,r=yme,i=e&&!e.nodeType&&e,a=i&&!0&&n&&!n.nodeType&&n,o=a&&a.exports===i,l=o?t.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;n.exports=u})(n7,n7.exports);var $me=9007199254740991;function wme(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=$me}var pz=wme,kme=xd,zme=pz,Ame=q3,Mme="[object Arguments]",Cme="[object Array]",Sme="[object Boolean]",Lme="[object Date]",Eme="[object Error]",Tme="[object Function]",Dme="[object Map]",Hme="[object Number]",Bme="[object Object]",Ome="[object RegExp]",Ime="[object Set]",Pme="[object String]",Vme="[object WeakMap]",Rme="[object ArrayBuffer]",Nme="[object DataView]",Fme="[object Float32Array]",xme="[object Float64Array]",jme="[object Int8Array]",Ume="[object Int16Array]",qme="[object Int32Array]",Wme="[object Uint8Array]",Gme="[object Uint8ClampedArray]",Yme="[object Uint16Array]",Kme="[object Uint32Array]",Jo={};Jo[Fme]=Jo[xme]=Jo[jme]=Jo[Ume]=Jo[qme]=Jo[Wme]=Jo[Gme]=Jo[Yme]=Jo[Kme]=!0;Jo[Mme]=Jo[Cme]=Jo[Rme]=Jo[Sme]=Jo[Nme]=Jo[Lme]=Jo[Eme]=Jo[Tme]=Jo[Dme]=Jo[Hme]=Jo[Bme]=Jo[Ome]=Jo[Ime]=Jo[Pme]=Jo[Vme]=!1;function Xme(n){return Ame(n)&&zme(n.length)&&!!Jo[kme(n)]}var Jme=Xme;function Zme(n){return function(e){return n(e)}}var dz=Zme,r7={exports:{}};(function(n,e){var t=MY,r=e&&!e.nodeType&&e,i=r&&!0&&n&&!n.nodeType&&n,a=i&&i.exports===r,o=a&&t.process,l=function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();n.exports=l})(r7,r7.exports);var Qme=Jme,ege=dz,JT=r7.exports,ZT=JT&&JT.isTypedArray,tge=ZT?ege(ZT):Qme,YY=tge,nge=ume,rge=fz,ige=Z2,age=n7.exports,oge=oz,lge=YY,sge=Object.prototype,uge=sge.hasOwnProperty;function cge(n,e){var t=ige(n),r=!t&&rge(n),i=!t&&!r&&age(n),a=!t&&!r&&!i&&lge(n),o=t||r||i||a,l=o?nge(n.length,String):[],s=l.length;for(var u in n)(e||uge.call(n,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||oge(u,s)))&&l.push(u);return l}var KY=cge,fge=Object.prototype;function pge(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||fge;return n===t}var hz=pge;function dge(n,e){return function(t){return n(e(t))}}var XY=dge,hge=XY,mge=hge(Object.keys,Object),gge=mge,vge=hz,_ge=gge,bge=Object.prototype,yge=bge.hasOwnProperty;function $ge(n){if(!vge(n))return _ge(n);var e=[];for(var t in Object(n))yge.call(n,t)&&t!="constructor"&&e.push(t);return e}var JY=$ge,wge=tz,kge=pz;function zge(n){return n!=null&&kge(n.length)&&!wge(n)}var mz=zge,Age=KY,Mge=JY,Cge=mz;function Sge(n){return Cge(n)?Age(n):Mge(n)}var T7=Sge,Lge=W_,Ege=T7;function Tge(n,e){return n&&Lge(e,Ege(e),n)}var ZY=Tge;function Dge(){this.__data__=[],this.size=0}var Hge=Dge,Bge=cz;function Oge(n,e){for(var t=n.length;t--;)if(Bge(n[t][0],e))return t;return-1}var G_=Oge,Ige=G_,Pge=Array.prototype,Vge=Pge.splice;function Rge(n){var e=this.__data__,t=Ige(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():Vge.call(e,t,1),--this.size,!0}var Nge=Rge,Fge=G_;function xge(n){var e=this.__data__,t=Fge(e,n);return t<0?void 0:e[t][1]}var jge=xge,Uge=G_;function qge(n){return Uge(this.__data__,n)>-1}var Wge=qge,Gge=G_;function Yge(n,e){var t=this.__data__,r=Gge(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Kge=Yge,Xge=Hge,Jge=Nge,Zge=jge,Qge=Wge,e7e=Kge;function E6(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}E6.prototype.clear=Xge;E6.prototype.delete=Jge;E6.prototype.get=Zge;E6.prototype.has=Qge;E6.prototype.set=e7e;var Y_=E6,t7e=Y_;function n7e(){this.__data__=new t7e,this.size=0}var r7e=n7e;function i7e(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}var a7e=i7e;function o7e(n){return this.__data__.get(n)}var l7e=o7e;function s7e(n){return this.__data__.has(n)}var u7e=s7e,c7e=jd,f7e=J2,p7e=c7e(f7e,"Map"),gz=p7e,d7e=jd,h7e=d7e(Object,"create"),K_=h7e,QT=K_;function m7e(){this.__data__=QT?QT(null):{},this.size=0}var g7e=m7e;function v7e(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var _7e=v7e,b7e=K_,y7e="__lodash_hash_undefined__",$7e=Object.prototype,w7e=$7e.hasOwnProperty;function k7e(n){var e=this.__data__;if(b7e){var t=e[n];return t===y7e?void 0:t}return w7e.call(e,n)?e[n]:void 0}var z7e=k7e,A7e=K_,M7e=Object.prototype,C7e=M7e.hasOwnProperty;function S7e(n){var e=this.__data__;return A7e?e[n]!==void 0:C7e.call(e,n)}var L7e=S7e,E7e=K_,T7e="__lodash_hash_undefined__";function D7e(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=E7e&&e===void 0?T7e:e,this}var H7e=D7e,B7e=g7e,O7e=_7e,I7e=z7e,P7e=L7e,V7e=H7e;function T6(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}T6.prototype.clear=B7e;T6.prototype.delete=O7e;T6.prototype.get=I7e;T6.prototype.has=P7e;T6.prototype.set=V7e;var R7e=T6,eD=R7e,N7e=Y_,F7e=gz;function x7e(){this.size=0,this.__data__={hash:new eD,map:new(F7e||N7e),string:new eD}}var j7e=x7e;function U7e(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var q7e=U7e,W7e=q7e;function G7e(n,e){var t=n.__data__;return W7e(e)?t[typeof e=="string"?"string":"hash"]:t.map}var X_=G7e,Y7e=X_;function K7e(n){var e=Y7e(this,n).delete(n);return this.size-=e?1:0,e}var X7e=K7e,J7e=X_;function Z7e(n){return J7e(this,n).get(n)}var Q7e=Z7e,e9e=X_;function t9e(n){return e9e(this,n).has(n)}var n9e=t9e,r9e=X_;function i9e(n,e){var t=r9e(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}var a9e=i9e,o9e=j7e,l9e=X7e,s9e=Q7e,u9e=n9e,c9e=a9e;function D6(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}D6.prototype.clear=o9e;D6.prototype.delete=l9e;D6.prototype.get=s9e;D6.prototype.has=u9e;D6.prototype.set=c9e;var vz=D6,f9e=Y_,p9e=gz,d9e=vz,h9e=200;function m9e(n,e){var t=this.__data__;if(t instanceof f9e){var r=t.__data__;if(!p9e||r.length<h9e-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new d9e(r)}return t.set(n,e),this.size=t.size,this}var g9e=m9e,v9e=Y_,_9e=r7e,b9e=a7e,y9e=l7e,$9e=u7e,w9e=g9e;function H6(n){var e=this.__data__=new v9e(n);this.size=e.size}H6.prototype.clear=_9e;H6.prototype.delete=b9e;H6.prototype.get=y9e;H6.prototype.has=$9e;H6.prototype.set=w9e;var _z=H6;function k9e(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var z9e=k9e,A9e=_p,M9e=hz,C9e=z9e,S9e=Object.prototype,L9e=S9e.hasOwnProperty;function E9e(n){if(!A9e(n))return C9e(n);var e=M9e(n),t=[];for(var r in n)r=="constructor"&&(e||!L9e.call(n,r))||t.push(r);return t}var T9e=E9e,D9e=KY,H9e=T9e,B9e=mz;function O9e(n){return B9e(n)?D9e(n,!0):H9e(n)}var bz=O9e,I9e=W_,P9e=bz;function V9e(n,e){return n&&I9e(e,P9e(e),n)}var R9e=V9e,tw={exports:{}};(function(n,e){var t=J2,r=e&&!e.nodeType&&e,i=r&&!0&&n&&!n.nodeType&&n,a=i&&i.exports===r,o=a?t.Buffer:void 0,l=o?o.allocUnsafe:void 0;function s(u,c){if(c)return u.slice();var f=u.length,h=l?l(f):new u.constructor(f);return u.copy(h),h}n.exports=s})(tw,tw.exports);function N9e(n,e){for(var t=-1,r=n==null?0:n.length,i=0,a=[];++t<r;){var o=n[t];e(o,t,n)&&(a[i++]=o)}return a}var F9e=N9e;function x9e(){return[]}var QY=x9e,j9e=F9e,U9e=QY,q9e=Object.prototype,W9e=q9e.propertyIsEnumerable,tD=Object.getOwnPropertySymbols,G9e=tD?function(n){return n==null?[]:(n=Object(n),j9e(tD(n),function(e){return W9e.call(n,e)}))}:U9e,yz=G9e,Y9e=W_,K9e=yz;function X9e(n,e){return Y9e(n,K9e(n),e)}var J9e=X9e;function Z9e(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var $z=Z9e,Q9e=XY,eve=Q9e(Object.getPrototypeOf,Object),wz=eve,tve=$z,nve=wz,rve=yz,ive=QY,ave=Object.getOwnPropertySymbols,ove=ave?function(n){for(var e=[];n;)tve(e,rve(n)),n=nve(n);return e}:ive,eK=ove,lve=W_,sve=eK;function uve(n,e){return lve(n,sve(n),e)}var cve=uve,fve=$z,pve=Z2;function dve(n,e,t){var r=e(n);return pve(n)?r:fve(r,t(n))}var tK=dve,hve=tK,mve=yz,gve=T7;function vve(n){return hve(n,gve,mve)}var nK=vve,_ve=tK,bve=eK,yve=bz;function $ve(n){return _ve(n,yve,bve)}var wve=$ve,kve=jd,zve=J2,Ave=kve(zve,"DataView"),Mve=Ave,Cve=jd,Sve=J2,Lve=Cve(Sve,"Promise"),Eve=Lve,Tve=jd,Dve=J2,Hve=Tve(Dve,"Set"),Bve=Hve,nw=Mve,rw=gz,iw=Eve,aw=Bve,ow=LY,rK=xd,B6=SY,nD="[object Map]",Ove="[object Object]",rD="[object Promise]",iD="[object Set]",aD="[object WeakMap]",oD="[object DataView]",Ive=B6(nw),Pve=B6(rw),Vve=B6(iw),Rve=B6(aw),Nve=B6(ow),fd=rK;(nw&&fd(new nw(new ArrayBuffer(1)))!=oD||rw&&fd(new rw)!=nD||iw&&fd(iw.resolve())!=rD||aw&&fd(new aw)!=iD||ow&&fd(new ow)!=aD)&&(fd=function(n){var e=rK(n),t=e==Ove?n.constructor:void 0,r=t?B6(t):"";if(r)switch(r){case Ive:return oD;case Pve:return nD;case Vve:return rD;case Rve:return iD;case Nve:return aD}return e});var D7=fd,Fve=Object.prototype,xve=Fve.hasOwnProperty;function jve(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&xve.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Uve=jve,qve=J2,Wve=qve.Uint8Array,iK=Wve,lD=iK;function Gve(n){var e=new n.constructor(n.byteLength);return new lD(e).set(new lD(n)),e}var kz=Gve,Yve=kz;function Kve(n,e){var t=e?Yve(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var Xve=Kve,Jve=/\w*$/;function Zve(n){var e=new n.constructor(n.source,Jve.exec(n));return e.lastIndex=n.lastIndex,e}var Qve=Zve,sD=L6,uD=sD?sD.prototype:void 0,cD=uD?uD.valueOf:void 0;function e_e(n){return cD?Object(cD.call(n)):{}}var t_e=e_e,n_e=kz;function r_e(n,e){var t=e?n_e(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var i_e=r_e,a_e=kz,o_e=Xve,l_e=Qve,s_e=t_e,u_e=i_e,c_e="[object Boolean]",f_e="[object Date]",p_e="[object Map]",d_e="[object Number]",h_e="[object RegExp]",m_e="[object Set]",g_e="[object String]",v_e="[object Symbol]",__e="[object ArrayBuffer]",b_e="[object DataView]",y_e="[object Float32Array]",$_e="[object Float64Array]",w_e="[object Int8Array]",k_e="[object Int16Array]",z_e="[object Int32Array]",A_e="[object Uint8Array]",M_e="[object Uint8ClampedArray]",C_e="[object Uint16Array]",S_e="[object Uint32Array]";function L_e(n,e,t){var r=n.constructor;switch(e){case __e:return a_e(n);case c_e:case f_e:return new r(+n);case b_e:return o_e(n,t);case y_e:case $_e:case w_e:case k_e:case z_e:case A_e:case M_e:case C_e:case S_e:return u_e(n,t);case p_e:return new r;case d_e:case g_e:return new r(n);case h_e:return l_e(n);case m_e:return new r;case v_e:return s_e(n)}}var E_e=L_e,T_e=j_,D_e=wz,H_e=hz;function B_e(n){return typeof n.constructor=="function"&&!H_e(n)?T_e(D_e(n)):{}}var O_e=B_e,I_e=D7,P_e=q3,V_e="[object Map]";function R_e(n){return P_e(n)&&I_e(n)==V_e}var N_e=R_e,F_e=N_e,x_e=dz,fD=r7.exports,pD=fD&&fD.isMap,j_e=pD?x_e(pD):F_e,U_e=j_e,q_e=D7,W_e=q3,G_e="[object Set]";function Y_e(n){return W_e(n)&&q_e(n)==G_e}var K_e=Y_e,X_e=K_e,J_e=dz,dD=r7.exports,hD=dD&&dD.isSet,Z_e=hD?J_e(hD):X_e,Q_e=Z_e,ebe=_z,tbe=az,nbe=WY,rbe=ZY,ibe=R9e,abe=tw.exports,obe=q_,lbe=J9e,sbe=cve,ube=nK,cbe=wve,fbe=D7,pbe=Uve,dbe=E_e,hbe=O_e,mbe=Z2,gbe=n7.exports,vbe=U_e,_be=_p,bbe=Q_e,ybe=T7,$be=bz,wbe=1,kbe=2,zbe=4,aK="[object Arguments]",Abe="[object Array]",Mbe="[object Boolean]",Cbe="[object Date]",Sbe="[object Error]",oK="[object Function]",Lbe="[object GeneratorFunction]",Ebe="[object Map]",Tbe="[object Number]",lK="[object Object]",Dbe="[object RegExp]",Hbe="[object Set]",Bbe="[object String]",Obe="[object Symbol]",Ibe="[object WeakMap]",Pbe="[object ArrayBuffer]",Vbe="[object DataView]",Rbe="[object Float32Array]",Nbe="[object Float64Array]",Fbe="[object Int8Array]",xbe="[object Int16Array]",jbe="[object Int32Array]",Ube="[object Uint8Array]",qbe="[object Uint8ClampedArray]",Wbe="[object Uint16Array]",Gbe="[object Uint32Array]",Do={};Do[aK]=Do[Abe]=Do[Pbe]=Do[Vbe]=Do[Mbe]=Do[Cbe]=Do[Rbe]=Do[Nbe]=Do[Fbe]=Do[xbe]=Do[jbe]=Do[Ebe]=Do[Tbe]=Do[lK]=Do[Dbe]=Do[Hbe]=Do[Bbe]=Do[Obe]=Do[Ube]=Do[qbe]=Do[Wbe]=Do[Gbe]=!0;Do[Sbe]=Do[oK]=Do[Ibe]=!1;function q9(n,e,t,r,i,a){var o,l=e&wbe,s=e&kbe,u=e&zbe;if(t&&(o=i?t(n,r,i,a):t(n)),o!==void 0)return o;if(!_be(n))return n;var c=mbe(n);if(c){if(o=pbe(n),!l)return obe(n,o)}else{var f=fbe(n),h=f==oK||f==Lbe;if(gbe(n))return abe(n,l);if(f==lK||f==aK||h&&!i){if(o=s||h?{}:hbe(n),!l)return s?sbe(n,ibe(o,n)):lbe(n,rbe(o,n))}else{if(!Do[f])return i?n:{};o=dbe(n,f,l)}}a||(a=new ebe);var m=a.get(n);if(m)return m;a.set(n,o),bbe(n)?n.forEach(function(w){o.add(q9(w,e,t,w,n,a))}):vbe(n)&&n.forEach(function(w,A){o.set(A,q9(w,e,t,A,n,a))});var _=u?s?cbe:ube:s?$be:ybe,y=c?void 0:_(n);return tbe(y||n,function(w,A){y&&(A=w,w=n[A]),nbe(o,A,q9(w,e,t,A,n,a))}),o}var zz=q9,Ybe=zz,Kbe=4;function Xbe(n){return Ybe(n,Kbe)}var Jbe=Xbe,Zbe=sz,Qbe=8;function Az(n,e,t){e=t?void 0:e;var r=Zbe(n,Qbe,void 0,void 0,void 0,void 0,void 0,e);return r.placeholder=Az.placeholder,r}Az.placeholder={};var eye=Az,tye=xd,nye=wz,rye=q3,iye="[object Object]",aye=Function.prototype,oye=Object.prototype,sK=aye.toString,lye=oye.hasOwnProperty,sye=sK.call(Object);function uye(n){if(!rye(n)||tye(n)!=iye)return!1;var e=nye(n);if(e===null)return!0;var t=lye.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&sK.call(t)==sye}var cye=uye,fye=xd,pye=q3,dye=cye,hye="[object DOMException]",mye="[object Error]";function gye(n){if(!pye(n))return!1;var e=fye(n);return e==mye||e==hye||typeof n.message=="string"&&typeof n.name=="string"&&!dye(n)}var vye=gye,_ye=D7,bye=q3,yye="[object WeakMap]";function $ye(n){return bye(n)&&_ye(n)==yye}var wye=$ye,kye="__lodash_hash_undefined__";function zye(n){return this.__data__.set(n,kye),this}var Aye=zye;function Mye(n){return this.__data__.has(n)}var Cye=Mye,Sye=vz,Lye=Aye,Eye=Cye;function Nv(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Sye;++e<t;)this.add(n[e])}Nv.prototype.add=Nv.prototype.push=Lye;Nv.prototype.has=Eye;var Tye=Nv;function Dye(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}var Hye=Dye;function Bye(n,e){return n.has(e)}var Oye=Bye,Iye=Tye,Pye=Hye,Vye=Oye,Rye=1,Nye=2;function Fye(n,e,t,r,i,a){var o=t&Rye,l=n.length,s=e.length;if(l!=s&&!(o&&s>l))return!1;var u=a.get(n),c=a.get(e);if(u&&c)return u==e&&c==n;var f=-1,h=!0,m=t&Nye?new Iye:void 0;for(a.set(n,e),a.set(e,n);++f<l;){var _=n[f],y=e[f];if(r)var w=o?r(y,_,f,e,n,a):r(_,y,f,n,e,a);if(w!==void 0){if(w)continue;h=!1;break}if(m){if(!Pye(e,function(A,E){if(!Vye(m,E)&&(_===A||i(_,A,t,r,a)))return m.push(E)})){h=!1;break}}else if(!(_===y||i(_,y,t,r,a))){h=!1;break}}return a.delete(n),a.delete(e),h}var uK=Fye;function xye(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}var jye=xye;function Uye(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var qye=Uye,mD=L6,gD=iK,Wye=cz,Gye=uK,Yye=jye,Kye=qye,Xye=1,Jye=2,Zye="[object Boolean]",Qye="[object Date]",e$e="[object Error]",t$e="[object Map]",n$e="[object Number]",r$e="[object RegExp]",i$e="[object Set]",a$e="[object String]",o$e="[object Symbol]",l$e="[object ArrayBuffer]",s$e="[object DataView]",vD=mD?mD.prototype:void 0,My=vD?vD.valueOf:void 0;function u$e(n,e,t,r,i,a,o){switch(t){case s$e:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case l$e:return!(n.byteLength!=e.byteLength||!a(new gD(n),new gD(e)));case Zye:case Qye:case n$e:return Wye(+n,+e);case e$e:return n.name==e.name&&n.message==e.message;case r$e:case a$e:return n==e+"";case t$e:var l=Yye;case i$e:var s=r&Xye;if(l||(l=Kye),n.size!=e.size&&!s)return!1;var u=o.get(n);if(u)return u==e;r|=Jye,o.set(n,e);var c=Gye(l(n),l(e),r,i,a,o);return o.delete(n),c;case o$e:if(My)return My.call(n)==My.call(e)}return!1}var c$e=u$e,_D=nK,f$e=1,p$e=Object.prototype,d$e=p$e.hasOwnProperty;function h$e(n,e,t,r,i,a){var o=t&f$e,l=_D(n),s=l.length,u=_D(e),c=u.length;if(s!=c&&!o)return!1;for(var f=s;f--;){var h=l[f];if(!(o?h in e:d$e.call(e,h)))return!1}var m=a.get(n),_=a.get(e);if(m&&_)return m==e&&_==n;var y=!0;a.set(n,e),a.set(e,n);for(var w=o;++f<s;){h=l[f];var A=n[h],E=e[h];if(r)var T=o?r(E,A,h,e,n,a):r(A,E,h,n,e,a);if(!(T===void 0?A===E||i(A,E,t,r,a):T)){y=!1;break}w||(w=h=="constructor")}if(y&&!w){var I=n.constructor,P=e.constructor;I!=P&&"constructor"in n&&"constructor"in e&&!(typeof I=="function"&&I instanceof I&&typeof P=="function"&&P instanceof P)&&(y=!1)}return a.delete(n),a.delete(e),y}var m$e=h$e,Cy=_z,g$e=uK,v$e=c$e,_$e=m$e,bD=D7,yD=Z2,$D=n7.exports,b$e=YY,y$e=1,wD="[object Arguments]",kD="[object Array]",$9="[object Object]",$$e=Object.prototype,zD=$$e.hasOwnProperty;function w$e(n,e,t,r,i,a){var o=yD(n),l=yD(e),s=o?kD:bD(n),u=l?kD:bD(e);s=s==wD?$9:s,u=u==wD?$9:u;var c=s==$9,f=u==$9,h=s==u;if(h&&$D(n)){if(!$D(e))return!1;o=!0,c=!1}if(h&&!c)return a||(a=new Cy),o||b$e(n)?g$e(n,e,t,r,i,a):v$e(n,e,s,t,r,i,a);if(!(t&y$e)){var m=c&&zD.call(n,"__wrapped__"),_=f&&zD.call(e,"__wrapped__");if(m||_){var y=m?n.value():n,w=_?e.value():e;return a||(a=new Cy),i(y,w,t,r,a)}}return h?(a||(a=new Cy),_$e(n,e,t,r,i,a)):!1}var k$e=w$e,z$e=k$e,AD=q3;function cK(n,e,t,r,i){return n===e?!0:n==null||e==null||!AD(n)&&!AD(e)?n!==n&&e!==e:z$e(n,e,t,r,cK,i)}var fK=cK,A$e=_z,M$e=fK,C$e=1,S$e=2;function L$e(n,e,t,r){var i=t.length,a=i,o=!r;if(n==null)return!a;for(n=Object(n);i--;){var l=t[i];if(o&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++i<a;){l=t[i];var s=l[0],u=n[s],c=l[1];if(o&&l[2]){if(u===void 0&&!(s in n))return!1}else{var f=new A$e;if(r)var h=r(u,c,s,n,e,f);if(!(h===void 0?M$e(c,u,C$e|S$e,r,f):h))return!1}}return!0}var E$e=L$e,T$e=_p;function D$e(n){return n===n&&!T$e(n)}var pK=D$e,H$e=pK,B$e=T7;function O$e(n){for(var e=B$e(n),t=e.length;t--;){var r=e[t],i=n[r];e[t]=[r,i,H$e(i)]}return e}var I$e=O$e;function P$e(n,e){return function(t){return t==null?!1:t[n]===e&&(e!==void 0||n in Object(t))}}var dK=P$e,V$e=E$e,R$e=I$e,N$e=dK;function F$e(n){var e=R$e(n);return e.length==1&&e[0][2]?N$e(e[0][0],e[0][1]):function(t){return t===n||V$e(t,n,e)}}var x$e=F$e,j$e=Z2,U$e=E7,q$e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W$e=/^\w*$/;function G$e(n,e){if(j$e(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||U$e(n)?!0:W$e.test(n)||!q$e.test(n)||e!=null&&n in Object(e)}var Mz=G$e,hK=vz,Y$e="Expected a function";function Cz(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(Y$e);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=t.cache;if(a.has(i))return a.get(i);var o=n.apply(this,r);return t.cache=a.set(i,o)||a,o};return t.cache=new(Cz.Cache||hK),t}Cz.Cache=hK;var K$e=Cz,X$e=K$e,J$e=500;function Z$e(n){var e=X$e(n,function(r){return t.size===J$e&&t.clear(),r}),t=e.cache;return e}var Q$e=Z$e,ewe=Q$e,twe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nwe=/\\(\\)?/g,rwe=ewe(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(twe,function(t,r,i,a){e.push(i?a.replace(nwe,"$1"):r||t)}),e}),mK=rwe;function iwe(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++t<r;)i[t]=e(n[t],t,n);return i}var gK=iwe,MD=L6,awe=gK,owe=Z2,lwe=E7,swe=1/0,CD=MD?MD.prototype:void 0,SD=CD?CD.toString:void 0;function vK(n){if(typeof n=="string")return n;if(owe(n))return awe(n,vK)+"";if(lwe(n))return SD?SD.call(n):"";var e=n+"";return e=="0"&&1/n==-swe?"-0":e}var uwe=vK,cwe=uwe;function fwe(n){return n==null?"":cwe(n)}var _K=fwe,pwe=Z2,dwe=Mz,hwe=mK,mwe=_K;function gwe(n,e){return pwe(n)?n:dwe(n,e)?[n]:hwe(mwe(n))}var bK=gwe,vwe=E7,_we=1/0;function bwe(n){if(typeof n=="string"||vwe(n))return n;var e=n+"";return e=="0"&&1/n==-_we?"-0":e}var H7=bwe,ywe=bK,$we=H7;function wwe(n,e){e=ywe(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[$we(e[t++])];return t&&t==r?n:void 0}var yK=wwe,kwe=yK;function zwe(n,e,t){var r=n==null?void 0:kwe(n,e);return r===void 0?t:r}var Awe=zwe;function Mwe(n,e){return n!=null&&e in Object(n)}var Cwe=Mwe,Swe=bK,Lwe=fz,Ewe=Z2,Twe=oz,Dwe=pz,Hwe=H7;function Bwe(n,e,t){e=Swe(e,n);for(var r=-1,i=e.length,a=!1;++r<i;){var o=Hwe(e[r]);if(!(a=n!=null&&t(n,o)))break;n=n[o]}return a||++r!=i?a:(i=n==null?0:n.length,!!i&&Dwe(i)&&Twe(o,i)&&(Ewe(n)||Lwe(n)))}var Owe=Bwe,Iwe=Cwe,Pwe=Owe;function Vwe(n,e){return n!=null&&Pwe(n,e,Iwe)}var Rwe=Vwe,Nwe=fK,Fwe=Awe,xwe=Rwe,jwe=Mz,Uwe=pK,qwe=dK,Wwe=H7,Gwe=1,Ywe=2;function Kwe(n,e){return jwe(n)&&Uwe(e)?qwe(Wwe(n),e):function(t){var r=Fwe(t,n);return r===void 0&&r===e?xwe(t,n):Nwe(e,r,Gwe|Ywe)}}var Xwe=Kwe;function Jwe(n){return function(e){return e==null?void 0:e[n]}}var Zwe=Jwe,Qwe=yK;function eke(n){return function(e){return Qwe(e,n)}}var tke=eke,nke=Zwe,rke=tke,ike=Mz,ake=H7;function oke(n){return ike(n)?nke(ake(n)):rke(n)}var lke=oke,ske=x$e,uke=Xwe,cke=ez,fke=Z2,pke=lke;function dke(n){return typeof n=="function"?n:n==null?cke:typeof n=="object"?fke(n)?uke(n[0],n[1]):ske(n):pke(n)}var $K=dke,hke=zz,mke=$K,gke=1;function vke(n){return mke(typeof n=="function"?n:hke(n,gke))}var _ke=vke,LD=L6,bke=fz,yke=Z2,ED=LD?LD.isConcatSpreadable:void 0;function $ke(n){return yke(n)||bke(n)||!!(ED&&n&&n[ED])}var wke=$ke,kke=$z,zke=wke;function wK(n,e,t,r,i){var a=-1,o=n.length;for(t||(t=zke),i||(i=[]);++a<o;){var l=n[a];e>0&&t(l)?e>1?wK(l,e-1,t,r,i):kke(i,l):r||(i[i.length]=l)}return i}var Ake=wK,Mke=Ake;function Cke(n){var e=n==null?0:n.length;return e?Mke(n,1):[]}var Ske=Cke,Lke=nz,TD=Math.max;function Eke(n,e,t){return e=TD(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,a=TD(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var l=Array(e+1);++i<e;)l[i]=r[i];return l[e]=t(o),Lke(n,this,l)}}var Tke=Eke,Dke=Ske,Hke=Tke,Bke=RY;function Oke(n){return Bke(Hke(n,void 0,Dke),n+"")}var Ike=Oke,Pke=sz,Vke=Ike,Rke=256,Nke=Vke(function(n,e){return Pke(n,Rke,void 0,void 0,void 0,e)}),Fke=Nke,xke=gK,jke=q_,Uke=Z2,qke=E7,Wke=mK,Gke=H7,Yke=_K;function Kke(n){return Uke(n)?xke(n,Gke):qke(n)?[n]:jke(Wke(Yke(n)))}var Xke=Kke,Jke={ary:J8e,assign:ZY,clone:Jbe,curry:eye,forEach:az,isArray:Z2,isError:vye,isFunction:tz,isWeakMap:wye,iteratee:_ke,keys:JY,rearg:Fke,toInteger:qY,toPath:Xke},Zke=LG,Qke=Jke;function eze(n,e,t){return Zke(Qke,n,e,t)}var tze=eze,Sy,DD;function nze(){if(DD)return Sy;DD=1;function n(e,t,r,i){for(var a=-1,o=e==null?0:e.length;++a<o;){var l=e[a];t(i,l,r(l),e)}return i}return Sy=n,Sy}var Ly,HD;function rze(){if(HD)return Ly;HD=1;function n(e){return function(t,r,i){for(var a=-1,o=Object(t),l=i(t),s=l.length;s--;){var u=l[e?s:++a];if(r(o[u],u,o)===!1)break}return t}}return Ly=n,Ly}var Ey,BD;function ize(){if(BD)return Ey;BD=1;var n=rze(),e=n();return Ey=e,Ey}var Ty,OD;function aze(){if(OD)return Ty;OD=1;var n=ize(),e=T7;function t(r,i){return r&&n(r,i,e)}return Ty=t,Ty}var Dy,ID;function oze(){if(ID)return Dy;ID=1;var n=mz;function e(t,r){return function(i,a){if(i==null)return i;if(!n(i))return t(i,a);for(var o=i.length,l=r?o:-1,s=Object(i);(r?l--:++l<o)&&a(s[l],l,s)!==!1;);return i}}return Dy=e,Dy}var Hy,PD;function lze(){if(PD)return Hy;PD=1;var n=aze(),e=oze(),t=e(n);return Hy=t,Hy}var By,VD;function sze(){if(VD)return By;VD=1;var n=lze();function e(t,r,i,a){return n(t,function(o,l,s){r(a,o,i(o),s)}),a}return By=e,By}var Oy,RD;function uze(){if(RD)return Oy;RD=1;var n=nze(),e=sze(),t=$K,r=Z2;function i(a,o){return function(l,s){var u=r(l)?n:e,c=o?o():{};return u(l,a,t(s),c)}}return Oy=i,Oy}var Iy,ND;function cze(){if(ND)return Iy;ND=1;var n=uz,e=uze(),t=Object.prototype,r=t.hasOwnProperty,i=e(function(a,o,l){r.call(a,l)?a[l].push(o):n(a,l,[o])});return Iy=i,Iy}var fze=tze,kK=fze("groupBy",cze());kK.placeholder=SG;var pze=kK;function dze(){const n=Fse();return Object.keys(n).flatMap(e=>Object.entries(n[e]).map(([t,r])=>({text:t,path:t,example:r.example,label:t,displayText:t,description:r.description})))}function FD(n,e,t){t=typeof t=="string"?t:t.path,n=n==null?"":n;const r=e!=null&&e.start?n.substring(0,e.start):"",i=e!=null&&e.end?n.substring(e.end):"";return(!r.includes("{{")||!i.includes("}}"))&&(t=`{{ ${t} }}`),e.start?n=n.substring(0,e.start)+t+n.substring(e.end,n.length):n+=t,n}function xD(n,e,t,{helper:r}={}){return t=typeof t=="string"?t:t.path,n=n==null?"":n,r?t=`helper.${t}()`:t=`$("${t}")`,e.start?n=n.substring(0,e.start)+t+n.substring(e.end,n.length):n+=t,n}function jD(n){let e,t,r;return t=new cn({props:{small:!0,$$slots:{default:[hze]},$$scope:{ctx:n}}}),{c(){e=J("div"),O(t.$$.fragment),yn(e,"margin-bottom","var(--spacing-s)"),D(e,"class","svelte-35ttya")},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a&32776&&(o.$$scope={dirty:a,ctx:i}),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function hze(n){let e;return{c(){e=oe(n[3])},m(t,r){S(t,e,r)},p(t,r){r&8&&_t(e,t[3])},d(t){t&&C(e)}}}function mze(n){let e,t,r,i,a,o=n[3]&&jD(n);return{c(){o&&o.c(),e=U(),t=J("div"),r=J("textarea"),D(r,"tabindex","0"),r.readOnly=!0,r.value=n[0],D(t,"style",i=`--code-mirror-height: ${n[1]}px; --code-mirror-resize: ${n[2]}`),D(t,"class","svelte-35ttya")},m(l,s){o&&o.m(l,s),S(l,e,s),S(l,t,s),j(t,r),n[10](r),a=!0},p(l,[s]){l[3]?o?(o.p(l,s),s&8&&b(o,1)):(o=jD(l),o.c(),b(o,1),o.m(e.parentNode,e)):o&&(Ae(),$(o,1,1,()=>{o=null}),Me()),(!a||s&1)&&(r.value=l[0]),(!a||s&6&&i!==(i=`--code-mirror-height: ${l[1]}px; --code-mirror-resize: ${l[2]}`))&&D(t,"style",i)},i(l){a||(b(o),a=!0)},o(l){$(o),a=!1},d(l){o&&o.d(l),l&&C(e),l&&C(t),n[10](null)}}}const Ig={JS:{name:"javascript",json:!1},JSON:{name:"javascript",json:!0},XML:{name:"xml"},SQL:{name:"sql"},Handlebars:{name:"handlebars",base:"text/html"},Text:{name:"text/html"}};function gze(n,e,t){let r;Ne(n,Tv,A=>t(12,r=A));let{mode:i=Ig.JS}=e,{value:a=""}=e,{height:o=300}=e,{resize:l="none"}=e,{readonly:s=!1}=e,{hints:u=[]}=e,{label:c}=e;const f=Un();let h,m;async function _(A,E){if(!Cf||!h)return;const T=r.theme.includes("light"),I={mode:A,value:E||"",readOnly:s,theme:T?"default":"tomorrow-night-eighties",lineNumbers:!0,lineWrapping:!0,indentWithTabs:!0,indentUnit:2,tabSize:2,extraKeys:{"Ctrl-Space":"autocomplete"},styleActiveLine:{nonEmpty:!0},autoCloseBrackets:!0,matchBrackets:!0};u!=null&&u.length&&(Cf.registerHelper("hint","dictionaryHint",function(P){const F=P.getCursor();return{list:u,from:Cf.Pos(F.line,F.ch),to:Cf.Pos(F.line,F.ch)}}),Cf.commands.autocomplete=function(P){Cf.showHint(P,Cf.hint.dictionaryHint)}),t(9,m=Cf.fromTextArea(h,I)),m.on("blur",P=>{f("change",P.getValue())})}const y=()=>{const A=m.getCursor();return{start:A.ch,end:A.ch}};ar(()=>(_(i,a),()=>{m&&m.toTextArea()}));function w(A){He[A?"unshift":"push"](()=>{h=A,t(4,h)})}return n.$$set=A=>{"mode"in A&&t(5,i=A.mode),"value"in A&&t(0,a=A.value),"height"in A&&t(1,o=A.height),"resize"in A&&t(2,l=A.resize),"readonly"in A&&t(6,s=A.readonly),"hints"in A&&t(7,u=A.hints),"label"in A&&t(3,c=A.label)},n.$$.update=()=>{n.$$.dirty&544&&(m==null||m.setOption("mode",i)),n.$$.dirty&513&&(m==null||m.setValue(a||""))},[a,o,l,c,h,i,s,u,y,m,w]}class J_ extends Re{constructor(e){super(),Ve(this,e,gze,mze,Oe,{mode:5,value:0,height:1,resize:2,readonly:6,hints:7,label:3,getCaretPosition:8})}get getCaretPosition(){return this.$$.ctx[8]}}function UD(n,e,t){const r=n.slice();return r[46]=e[t],r}function qD(n,e,t){const r=n.slice();return r[49]=e[t],r}function WD(n,e,t){const r=n.slice();return r[52]=e[t],r}function GD(n,e,t){const r=n.slice();return r[55]=e[t],r}function YD(n){let e,t=n[10].title+"",r;return{c(){e=J("div"),r=oe(t),D(e,"class","helper__name svelte-1tw16k3")},m(i,a){S(i,e,a),j(e,r)},p(i,a){a[0]&1024&&t!==(t=i[10].title+"")&&_t(r,t)},d(i){i&&C(e)}}}function KD(n){let e,t=n[10].description+"";return{c(){e=J("div"),D(e,"class","helper__description svelte-1tw16k3")},m(r,i){S(r,e,i),e.innerHTML=t},p(r,i){i[0]&1024&&t!==(t=r[10].description+"")&&(e.innerHTML=t)},d(r){r&&C(e)}}}function XD(n){let e,t=n[10].example+"",r;return{c(){e=J("pre"),r=oe(t),D(e,"class","helper__example svelte-1tw16k3")},m(i,a){S(i,e,a),j(e,r)},p(i,a){a[0]&1024&&t!==(t=i[10].example+"")&&_t(r,t)},d(i){i&&C(e)}}}function vze(n){let e,t,r,i=n[10].title&&YD(n),a=n[10].description&&KD(n),o=n[10].example&&XD(n);return{c(){e=J("div"),i&&i.c(),t=U(),a&&a.c(),r=U(),o&&o.c(),D(e,"class","helper svelte-1tw16k3")},m(l,s){S(l,e,s),i&&i.m(e,null),j(e,t),a&&a.m(e,null),j(e,r),o&&o.m(e,null)},p(l,s){l[10].title?i?i.p(l,s):(i=YD(l),i.c(),i.m(e,t)):i&&(i.d(1),i=null),l[10].description?a?a.p(l,s):(a=KD(l),a.c(),a.m(e,r)):a&&(a.d(1),a=null),l[10].example?o?o.p(l,s):(o=XD(l),o.c(),o.m(e,null)):o&&(o.d(1),o=null)},d(l){l&&C(e),i&&i.d(),a&&a.d(),o&&o.d()}}}function _ze(n){let e,t;return e=new Rt({props:{gap:"S",$$slots:{default:[vze]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i[0]&1024|i[1]&134217728&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function JD(n){let e;return{c(){e=J("p"),e.innerHTML=`Current Handlebars syntax is invalid, please check the guide
482
482
  <a href="https://handlebarsjs.com/guide/" class="svelte-1tw16k3">here</a>
@@ -932,7 +932,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location
932
932
  `),t=J("i"),i=oe(r),a=oe("?"),o=oe(`
933
933
  This action cannot be undone.`)},m(l,s){S(l,e,s),S(l,t,s),j(t,i),j(t,a),S(l,o,s)},p(l,s){s&1&&r!==(r=l[0].name+"")&&_t(i,r)},d(l){l&&C(e),l&&C(t),l&&C(o)}}}function _nt(n){let e,t,r,i,a,o;e=new Sc({props:{$$slots:{control:[gnt],default:[mnt]},$$scope:{ctx:n}}});let l={okText:"Delete Automation",onOk:n[3],title:"Confirm Deletion",$$slots:{default:[vnt]},$$scope:{ctx:n}};r=new au({props:l}),n[5](r);let s={automation:n[0]};return a=new fnt({props:s}),n[6](a),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),O(a.$$.fragment)},m(u,c){H(e,u,c),S(u,t,c),H(r,u,c),S(u,i,c),H(a,u,c),o=!0},p(u,[c]){const f={};c&518&&(f.$$scope={dirty:c,ctx:u}),e.$set(f);const h={};c&513&&(h.$$scope={dirty:c,ctx:u}),r.$set(h);const m={};c&1&&(m.automation=u[0]),a.$set(m)},i(u){o||(b(e.$$.fragment,u),b(r.$$.fragment,u),b(a.$$.fragment,u),o=!0)},o(u){$(e.$$.fragment,u),$(r.$$.fragment,u),$(a.$$.fragment,u),o=!1},d(u){B(e,u),u&&C(t),n[5](null),B(r,u),u&&C(i),n[6](null),B(a,u)}}}function bnt(n,e,t){let r,i;Ne(n,Or,h=>t(7,r=h)),Ne(n,si,h=>t(8,i=h));let{automation:a}=e,o,l;async function s(){try{await Or.actions.delete(a),yt.success("Automation deleted successfully"),i("../automate")}catch{yt.error("Error deleting automation")}}async function u(){try{await Or.actions.duplicate(a),yt.success("Automation has been duplicated successfully"),i(`./${r.selectedAutomation.automation._id}`)}catch{yt.error("Error duplicating automation")}}function c(h){He[h?"unshift":"push"](()=>{o=h,t(1,o)})}function f(h){He[h?"unshift":"push"](()=>{l=h,t(2,l)})}return n.$$set=h=>{"automation"in h&&t(0,a=h.automation)},[a,o,l,s,u,c,f]}class ynt extends Re{constructor(e){super(),Ve(this,e,bnt,_nt,Oe,{automation:0})}}function YR(n,e,t){const r=n.slice();return r[5]=e[t],r[7]=t,r}function $nt(n){let e,t,r;return e=new ynt({props:{automation:n[5]}}),{c(){O(e.$$.fragment),t=U()},m(i,a){H(e,i,a),S(i,t,a),r=!0},p(i,a){const o={};a&1&&(o.automation=i[5]),e.$set(o)},i(i){r||(b(e.$$.fragment,i),r=!0)},o(i){$(e.$$.fragment,i),r=!1},d(i){B(e,i),i&&C(t)}}}function KR(n){let e,t;function r(){return n[3](n[5])}return e=new k5({props:{border:n[7]>0,icon:"ShareAndroid",text:n[5].name,selected:n[5]._id===n[1],$$slots:{default:[$nt]},$$scope:{ctx:n}}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i;const o={};a&1&&(o.text=n[5].name),a&3&&(o.selected=n[5]._id===n[1]),a&257&&(o.$$scope={dirty:a,ctx:n}),e.$set(o)},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function wnt(n){let e,t,r=n[0].automations.sort(XR),i=[];for(let o=0;o<r.length;o+=1)i[o]=KR(YR(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=J("div");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","automations-list svelte-g64vb")},m(o,l){S(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,[l]){if(l&7){r=o[0].automations.sort(XR);let s;for(s=0;s<r.length;s+=1){const u=YR(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=KR(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(Ae(),s=r.length;s<i.length;s+=1)a(s);Me()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&C(e),Dn(i,o)}}}const XR=n=>n.name;function knt(n,e,t){let r,i,a;Ne(n,si,s=>t(4,i=s)),Ne(n,Or,s=>t(0,a=s)),ar(async()=>{try{await Or.actions.fetch()}catch{yt.error("Error getting automations list")}});function o(s){Or.actions.select(s),i(`./${s._id}`)}const l=s=>o(s);return n.$$.update=()=>{var s,u;n.$$.dirty&1&&t(1,r=(u=(s=a.selectedAutomation)==null?void 0:s.automation)==null?void 0:u._id)},[a,r,o,l]}class znt extends Re{constructor(e){super(),Ve(this,e,knt,wnt,Oe,{})}}function JR(n,e,t){const r=n.slice();return r[17]=e[t][0],r[18]=e[t][1],r}function Ant(n){let e;return{c(){e=oe(`Please name your automation, then select a trigger. Every automation must
934
934
  start with a trigger.`)},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Mnt(n){let e;return{c(){e=oe("Triggers")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Cnt(n){let e=n[18].name+"",t;return{c(){t=oe(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=r[18].name+"")&&_t(t,e)},d(r){r&&C(t)}}}function ZR(n){let e,t,r,i,a,o,l,s,u,c;r=new dn({props:{name:n[18].icon}}),o=new xt({props:{size:"S",$$slots:{default:[Cnt]},$$scope:{ctx:n}}});function f(){return n[13](n[18])}return{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),a=J("span"),O(o.$$.fragment),l=U(),D(a,"class","icon-spacing svelte-d3iboa"),D(t,"class","item-body svelte-d3iboa"),D(e,"class","item svelte-d3iboa"),De(e,"selected",n[2]===n[18].name)},m(h,m){S(h,e,m),j(e,t),H(r,t,null),j(t,i),j(t,a),H(o,a,null),j(e,l),s=!0,u||(c=At(e,"click",f),u=!0)},p(h,m){n=h;const _={};m&8&&(_.name=n[18].icon),r.$set(_);const y={};m&2097160&&(y.$$scope={dirty:m,ctx:n}),o.$set(y),m&12&&De(e,"selected",n[2]===n[18].name)},i(h){s||(b(r.$$.fragment,h),b(o.$$.fragment,h),s=!0)},o(h){$(r.$$.fragment,h),$(o.$$.fragment,h),s=!1},d(h){h&&C(e),B(r),B(o),u=!1,c()}}}function Snt(n){let e,t,r,i;e=new xt({props:{size:"S",$$slots:{default:[Mnt]},$$scope:{ctx:n}}});let a=n[3],o=[];for(let s=0;s<a.length;s+=1)o[s]=ZR(JR(n,a,s));const l=s=>$(o[s],1,1,()=>{o[s]=null});return{c(){O(e.$$.fragment),t=U(),r=J("div");for(let s=0;s<o.length;s+=1)o[s].c();D(r,"class","item-list svelte-d3iboa")},m(s,u){H(e,s,u),S(s,t,u),S(s,r,u);for(let c=0;c<o.length;c+=1)o[c].m(r,null);i=!0},p(s,u){const c={};if(u&2097152&&(c.$$scope={dirty:u,ctx:s}),e.$set(c),u&76){a=s[3];let f;for(f=0;f<a.length;f+=1){const h=JR(s,a,f);o[f]?(o[f].p(h,u),b(o[f],1)):(o[f]=ZR(h),o[f].c(),b(o[f],1),o[f].m(r,null))}for(Ae(),f=a.length;f<o.length;f+=1)l(f);Me()}},i(s){if(!i){b(e.$$.fragment,s);for(let u=0;u<a.length;u+=1)b(o[u]);i=!0}},o(s){$(e.$$.fragment,s),o=o.filter(Boolean);for(let u=0;u<o.length;u+=1)$(o[u]);i=!1},d(s){B(e,s),s&&C(t),s&&C(r),Dn(o,s)}}}function Lnt(n){let e,t,r,i,a,o,l,s,u,c;e=new h_({props:{header:"You must publish your app to activate your automations.",message:"To test your automation before publishing, you can use the 'Run Test' functionality on the next screen."}}),r=new xt({props:{size:"XS",$$slots:{default:[Ant]},$$scope:{ctx:n}}});function f(_){n[10](_)}function h(_){n[11](_)}let m={label:"Name"};return n[0]!==void 0&&(m.value=n[0]),n[4]!==void 0&&(m.error=n[4]),a=new En({props:m}),He.push(()=>rt(a,"value",f)),He.push(()=>rt(a,"error",h)),a.$on("change",n[12]),u=new Rt({props:{noPadding:!0,$$slots:{default:[Snt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),O(a.$$.fragment),s=U(),O(u.$$.fragment)},m(_,y){H(e,_,y),S(_,t,y),H(r,_,y),S(_,i,y),H(a,_,y),S(_,s,y),H(u,_,y),c=!0},p(_,y){const w={};y&2097152&&(w.$$scope={dirty:y,ctx:_}),r.$set(w);const A={};!o&&y&1&&(o=!0,A.value=_[0],it(()=>o=!1)),!l&&y&16&&(l=!0,A.error=_[4],it(()=>l=!1)),a.$set(A);const E={};y&2097164&&(E.$$scope={dirty:y,ctx:_}),u.$set(E)},i(_){c||(b(e.$$.fragment,_),b(r.$$.fragment,_),b(a.$$.fragment,_),b(u.$$.fragment,_),c=!0)},o(_){$(e.$$.fragment,_),$(r.$$.fragment,_),$(a.$$.fragment,_),$(u.$$.fragment,_),c=!1},d(_){B(e,_),_&&C(t),B(r,_),_&&C(i),B(a,_),_&&C(s),B(u,_)}}}function Ent(n){let e,t;return e=new _r({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:n[5],disabled:!n[2]||!n[0],$$slots:{default:[Lnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,[i]){const a={};i&5&&(a.disabled=!r[2]||!r[0]),i&2097183&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Tnt(n,e,t){let r,i,a,o,l,s;Ne(n,Or,I=>t(8,o=I)),Ne(n,si,I=>t(16,l=I)),Ne(n,Fd,I=>t(9,s=I));let u,c,f=!1,h,{webhookModal:m}=e;async function _(){var I;try{await Or.actions.create({name:u,instanceId:r});const P=o.selectedAutomation.constructBlock("TRIGGER",h.stepId,h);Or.actions.addBlockToAutomation(P),h.stepId===c6.WEBHOOK&&m.show,await Or.actions.save((I=o.selectedAutomation)==null?void 0:I.automation),yt.success(`Automation ${u} created`),l(`./${o.selectedAutomation.automation._id}`)}catch{yt.error("Error creating automation")}}const y=I=>{h=I,t(2,c=I.name)};function w(I){u=I,t(0,u)}function A(I){i=I,t(4,i),t(1,f),t(0,u)}const E=()=>t(1,f=!0),T=I=>y(I);return n.$$set=I=>{"webhookModal"in I&&t(7,m=I.webhookModal)},n.$$.update=()=>{n.$$.dirty&512&&(r=s._id),n.$$.dirty&3&&t(4,i=f&&!u?"Please specify a name for the automation.":null),n.$$.dirty&256&&t(3,a=Object.entries(o.blockDefinitions.TRIGGER))},[u,f,c,a,i,_,y,m,o,s,w,A,E,T]}class BX extends Re{constructor(e){super(),Ve(this,e,Tnt,Ent,Oe,{webhookModal:7})}}function Dnt(n){let e,t;return e=new BX({props:{webhookModal:n[1]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&2&&(a.webhookModal=r[1]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Hnt(n){let e,t,r,i;e=new znt({});let a={$$slots:{default:[Dnt]},$$scope:{ctx:n}};return r=new ir({props:a}),n[2](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,l){const s={};l&10&&(s.$$scope={dirty:l,ctx:o}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[2](null),B(r,o)}}}function Bnt(n){let e,t;return e=new x1({props:{title:"Automations",$$slots:{default:[Hnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&11&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Ont(n){let e,t,r,i,a,o;return t=new K2({props:{selected:"Automations",$$slots:{default:[Bnt]},$$scope:{ctx:n}}}),a=new dn({props:{hoverable:!0,name:"AddCircle"}}),a.$on("click",function(){An(n[0].show)&&n[0].show.apply(this,arguments)}),{c(){e=J("div"),O(t.$$.fragment),r=U(),i=J("div"),O(a.$$.fragment),D(i,"class","add-button svelte-mcmub4"),D(e,"class","title svelte-mcmub4")},m(l,s){S(l,e,s),H(t,e,null),j(e,r),j(e,i),H(a,i,null),o=!0},p(l,[s]){n=l;const u={};s&11&&(u.$$scope={dirty:s,ctx:n}),t.$set(u)},i(l){o||(b(t.$$.fragment,l),b(a.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(a.$$.fragment,l),o=!1},d(l){l&&C(e),B(t),B(a)}}}function Int(n,e,t){let{modal:r}=e,{webhookModal:i}=e;function a(o){He[o?"unshift":"push"](()=>{r=o,t(0,r)})}return n.$$set=o=>{"modal"in o&&t(0,r=o.modal),"webhookModal"in o&&t(1,i=o.webhookModal)},[r,i,a]}class Pnt extends Re{constructor(e){super(),Ve(this,e,Int,Ont,Oe,{modal:0,webhookModal:1})}}function QR(n,e,t){const r=n.slice();return r[8]=e[t],r[10]=t,r}function eN(n){var u;let e,t,r,i,a;function o(c){n[6](c)}let l={showTestStatus:!0,block:n[8],isTrigger:n[10]===0,testResult:(u=n[2])==null?void 0:u[n[10]]};n[3]!==void 0&&(l.showParameters=n[3]),e=new HX({props:l}),He.push(()=>rt(e,"showParameters",o));let s=n[3]&&n[3][n[8].id]&&tN(n);return{c(){O(e.$$.fragment),r=U(),s&&s.c(),i=$t()},m(c,f){H(e,c,f),S(c,r,f),s&&s.m(c,f),S(c,i,f),a=!0},p(c,f){var m;const h={};f&2&&(h.block=c[8]),f&4&&(h.testResult=(m=c[2])==null?void 0:m[c[10]]),!t&&f&8&&(t=!0,h.showParameters=c[3],it(()=>t=!1)),e.$set(h),c[3]&&c[3][c[8].id]?s?(s.p(c,f),f&10&&b(s,1)):(s=tN(c),s.c(),b(s,1),s.m(i.parentNode,i)):s&&(Ae(),$(s,1,1,()=>{s=null}),Me())},i(c){a||(b(e.$$.fragment,c),b(s),a=!0)},o(c){$(e.$$.fragment,c),$(s),a=!1},d(c){B(e,c),c&&C(r),s&&s.d(c),c&&C(i)}}}function tN(n){var s,u;let e,t,r,i,a,o;e=new hi({props:{noMargin:!0}});let l=((u=(s=n[2])==null?void 0:s[n[10]])==null?void 0:u.outputs.iterations)&&nN(n);return a=new K2({props:{noHorizPadding:!0,selected:"Input",$$slots:{default:[Fnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),l&&l.c(),r=U(),i=J("div"),O(a.$$.fragment),D(i,"class","tabs svelte-1iblsnb")},m(c,f){H(e,c,f),S(c,t,f),l&&l.m(c,f),S(c,r,f),S(c,i,f),H(a,i,null),o=!0},p(c,f){var m,_;(_=(m=c[2])==null?void 0:m[c[10]])!=null&&_.outputs.iterations?l?(l.p(c,f),f&4&&b(l,1)):(l=nN(c),l.c(),b(l,1),l.m(r.parentNode,r)):l&&(Ae(),$(l,1,1,()=>{l=null}),Me());const h={};f&2052&&(h.$$scope={dirty:f,ctx:c}),a.$set(h)},i(c){o||(b(e.$$.fragment,c),b(l),b(a.$$.fragment,c),o=!0)},o(c){$(e.$$.fragment,c),$(l),$(a.$$.fragment,c),o=!1},d(c){B(e,c),c&&C(t),l&&l.d(c),c&&C(r),c&&C(i),B(a)}}}function nN(n){let e,t,r,i,a,o;return t=new dn({props:{name:"Reuse"}}),a=new cn({props:{$$slots:{default:[Vnt]},$$scope:{ctx:n}}}),{c(){e=J("div"),O(t.$$.fragment),r=U(),i=J("div"),O(a.$$.fragment),yn(i,"margin-left","10px"),yn(e,"display","flex"),yn(e,"padding","10px 10px 0px 12px")},m(l,s){S(l,e,s),H(t,e,null),j(e,r),j(e,i),H(a,i,null),o=!0},p(l,s){const u={};s&2052&&(u.$$scope={dirty:s,ctx:l}),a.$set(u)},i(l){o||(b(t.$$.fragment,l),b(a.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(a.$$.fragment,l),o=!1},d(l){l&&C(e),B(t),B(a)}}}function Vnt(n){var a,o;let e,t=((o=(a=n[2])==null?void 0:a[n[10]])==null?void 0:o.outputs.iterations)+"",r,i;return{c(){e=oe("This loop ran "),r=oe(t),i=oe(" times.")},m(l,s){S(l,e,s),S(l,r,s),S(l,i,s)},p(l,s){var u,c;s&4&&t!==(t=((c=(u=l[2])==null?void 0:u[l[10]])==null?void 0:c.outputs.iterations)+"")&&_t(r,t)},d(l){l&&C(e),l&&C(r),l&&C(i)}}}function Rnt(n){var r,i;let e,t;return e=new F3({props:{minHeight:"80px",disabled:!0,value:Kv((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.inputs,"No input")}}),{c(){O(e.$$.fragment)},m(a,o){H(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=Kv((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.inputs,"No input")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function Nnt(n){var r,i;let e,t;return e=new F3({props:{minHeight:"100px",disabled:!0,value:Kv((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.outputs,"No output")}}),{c(){O(e.$$.fragment)},m(a,o){H(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=Kv((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.outputs,"No output")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function Fnt(n){let e,t,r,i;return e=new x1({props:{title:"Input",$$slots:{default:[Rnt]},$$scope:{ctx:n}}}),r=new x1({props:{title:"Output",$$slots:{default:[Nnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(a,o){H(e,a,o),S(a,t,o),H(r,a,o),i=!0},p(a,o){const l={};o&2052&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&2052&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),B(r,a)}}}function rN(n){let e;return{c(){e=J("div"),D(e,"class","separator svelte-1iblsnb")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function iN(n){let e,t,r,i,a,o=n[8].stepId!==V3.LOOP&&eN(n),l=n[1].length-1!==n[10]&&rN();return{c(){e=J("div"),o&&o.c(),r=U(),l&&l.c(),i=$t(),D(e,"class","block svelte-1iblsnb"),D(e,"style",t=n[0]?`width: ${n[0]}`:"")},m(s,u){S(s,e,u),o&&o.m(e,null),S(s,r,u),l&&l.m(s,u),S(s,i,u),a=!0},p(s,u){s[8].stepId!==V3.LOOP?o?(o.p(s,u),u&2&&b(o,1)):(o=eN(s),o.c(),b(o,1),o.m(e,null)):o&&(Ae(),$(o,1,1,()=>{o=null}),Me()),(!a||u&1&&t!==(t=s[0]?`width: ${s[0]}`:""))&&D(e,"style",t),s[1].length-1!==s[10]?l||(l=rN(),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i(s){a||(b(o),a=!0)},o(s){$(o),a=!1},d(s){s&&C(e),o&&o.d(),s&&C(r),l&&l.d(s),s&&C(i)}}}function xnt(n){let e,t,r=n[1],i=[];for(let o=0;o<r.length;o+=1)i[o]=iN(QR(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=J("div");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","container svelte-1iblsnb")},m(o,l){S(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,[l]){if(l&15){r=o[1];let s;for(s=0;s<r.length;s+=1){const u=QR(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=iN(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(Ae(),s=r.length;s<i.length;s+=1)a(s);Me()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&C(e),Dn(i,o)}}}function Kv(n,e){return n?JSON.stringify(n,null,2):e}function jnt(n,e,t){let r,{automation:i}=e,{testResults:a}=e,{width:o="400px"}=e,l,s;function u(f){return f==null?void 0:f.steps.filter(h=>h.stepId!==V3.LOOP||[])}function c(f){l=f,t(3,l)}return n.$$set=f=>{"automation"in f&&t(4,i=f.automation),"testResults"in f&&t(5,a=f.testResults),"width"in f&&t(0,o=f.width)},n.$$.update=()=>{if(n.$$.dirty&32&&t(2,r=u(a)),n.$$.dirty&22){if(t(1,s=[]),i)i.definition.trigger&&s.push(i.definition.trigger),t(1,s=s.concat(i.definition.steps||[]).filter(f=>f.stepId!==V3.LOOP));else if(r){t(1,s=r||[]);let f=0;for(let h of s)h.id=f++}}},[o,s,r,l,i,a,c]}class OX extends Re{constructor(e){super(),Ve(this,e,jnt,xnt,Oe,{automation:4,testResults:5,width:0})}}function Unt(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;return r=new dn({props:{name:"MultipleCheck"}}),s=new dn({props:{hoverable:!0,name:"Close"}}),s.$on("click",n[4]),c=new hi({}),h=new OX({props:{automation:n[0],testResults:n[2]}}),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),a=J("div"),a.textContent="Test Details",o=U(),l=J("div"),O(s.$$.fragment),u=U(),O(c.$$.fragment),f=U(),O(h.$$.fragment),yn(a,"padding-left","var(--spacing-l)"),D(t,"class","title-text svelte-nwwj95"),yn(l,"padding-right","var(--spacing-xl)"),D(e,"class","title svelte-nwwj95")},m(_,y){S(_,e,y),j(e,t),H(r,t,null),j(t,i),j(t,a),j(e,o),j(e,l),H(s,l,null),S(_,u,y),H(c,_,y),S(_,f,y),H(h,_,y),m=!0},p(_,[y]){const w={};y&1&&(w.automation=_[0]),y&4&&(w.testResults=_[2]),h.$set(w)},i(_){m||(b(r.$$.fragment,_),b(s.$$.fragment,_),b(c.$$.fragment,_),b(h.$$.fragment,_),m=!0)},o(_){$(r.$$.fragment,_),$(s.$$.fragment,_),$(c.$$.fragment,_),$(h.$$.fragment,_),m=!1},d(_){_&&C(e),B(r),B(s),_&&C(u),B(c,_),_&&C(f),B(h,_)}}}function qnt(n,e,t){let r;Ne(n,Or,s=>t(1,r=s));let{automation:i}=e,a,o;const l=async()=>{Y1(Or,r.showTestPanel=!1,r)};return n.$$set=s=>{"automation"in s&&t(0,i=s.automation)},n.$$.update=()=>{var s;n.$$.dirty&11&&(t(3,a=[]),i?(i.definition.trigger&&a.push(i.definition.trigger),t(3,a=a.concat(i.definition.steps||[]).filter(u=>u.stepId!==V3.LOOP))):r.selectedAutomation&&t(0,i=r.selectedAutomation)),n.$$.dirty&2&&t(2,o=(s=r.selectedAutomation)==null?void 0:s.testResults)},[i,r,o,a,l]}class Wnt extends Re{constructor(e){super(),Ve(this,e,qnt,Unt,Oe,{automation:0})}}function Gnt(n){let e,t,r,i;return r=new Rt({props:{gap:"S",justifyItems:"center",$$slots:{default:[Znt]},$$scope:{ctx:n}}}),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),D(t,"class","main svelte-374m3f"),D(e,"class","centered svelte-374m3f")},m(a,o){S(a,e,o),j(e,t),H(r,t,null),i=!0},p(a,o){const l={};o&258&&(l.$$scope={dirty:o,ctx:a}),r.$set(l)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){$(r.$$.fragment,a),i=!1},d(a){a&&C(e),B(r)}}}function Ynt(n){let e;const t=n[4].default,r=Xn(t,n,n[8],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&256)&&Zn(r,t,i,i[8],e?Jn(t,i[8],a,null):Qn(i[8]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function Knt(n){let e;return{c(){e=oe("You have no automations")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Xnt(n){let e;return{c(){e=oe("Let's fix that. Call the bots!")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Jnt(n){let e;return{c(){e=oe("Create automation")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Znt(n){let e,t,r,i,a,o,l,s,u;return i=new Rn({props:{size:"M",$$slots:{default:[Knt]},$$scope:{ctx:n}}}),o=new xt({props:{size:"M",$$slots:{default:[Xnt]},$$scope:{ctx:n}}}),s=new $n({props:{size:"M",cta:!0,$$slots:{default:[Jnt]},$$scope:{ctx:n}}}),s.$on("click",n[5]),{c(){e=ut("svg"),t=ut("use"),r=U(),O(i.$$.fragment),a=U(),O(o.$$.fragment),l=U(),O(s.$$.fragment),Wr(t,"xlink:href","#spectrum-icon-18-WorkflowAdd"),D(e,"width","60px"),D(e,"height","60px"),D(e,"class","spectrum-Icon"),D(e,"focusable","false")},m(c,f){S(c,e,f),j(e,t),S(c,r,f),H(i,c,f),S(c,a,f),H(o,c,f),S(c,l,f),H(s,c,f),u=!0},p(c,f){const h={};f&256&&(h.$$scope={dirty:f,ctx:c}),i.$set(h);const m={};f&256&&(m.$$scope={dirty:f,ctx:c}),o.$set(m);const _={};f&256&&(_.$$scope={dirty:f,ctx:c}),s.$set(_)},i(c){u||(b(i.$$.fragment,c),b(o.$$.fragment,c),b(s.$$.fragment,c),u=!0)},o(c){$(i.$$.fragment,c),$(o.$$.fragment,c),$(s.$$.fragment,c),u=!1},d(c){c&&C(e),c&&C(r),B(i,c),c&&C(a),B(o,c),c&&C(l),B(s,c)}}}function aN(n){let e,t,r;return t=new Wnt({props:{automation:n[3]}}),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","setup svelte-374m3f")},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a&8&&(o.automation=i[3]),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function Qnt(n){let e,t;return e=new BX({props:{webhookModal:n[2]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4&&(a.webhookModal=r[2]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function ert(n){let e,t;return e=new Jz({}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function trt(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;r=new Pnt({props:{modal:n[1],webhookModal:n[2]}});const _=[Ynt,Gnt],y=[];function w(I,P){return I[3]?0:1}o=w(n),l=y[o]=_[o](n);let A=n[0].showTestPanel&&aN(n),E={$$slots:{default:[Qnt]},$$scope:{ctx:n}};c=new ir({props:E}),n[6](c);let T={width:"30%",$$slots:{default:[ert]},$$scope:{ctx:n}};return h=new ir({props:T}),n[7](h),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),a=J("div"),l.c(),s=U(),A&&A.c(),u=U(),O(c.$$.fragment),f=U(),O(h.$$.fragment),D(t,"class","nav svelte-374m3f"),D(a,"class","content svelte-374m3f"),D(e,"class","root svelte-374m3f")},m(I,P){S(I,e,P),j(e,t),H(r,t,null),j(e,i),j(e,a),y[o].m(a,null),j(e,s),A&&A.m(e,null),j(e,u),H(c,e,null),j(e,f),H(h,e,null),m=!0},p(I,[P]){const F={};P&2&&(F.modal=I[1]),P&4&&(F.webhookModal=I[2]),r.$set(F);let x=o;o=w(I),o===x?y[o].p(I,P):(Ae(),$(y[x],1,1,()=>{y[x]=null}),Me(),l=y[o],l?l.p(I,P):(l=y[o]=_[o](I),l.c()),b(l,1),l.m(a,null)),I[0].showTestPanel?A?(A.p(I,P),P&1&&b(A,1)):(A=aN(I),A.c(),b(A,1),A.m(e,u)):A&&(Ae(),$(A,1,1,()=>{A=null}),Me());const G={};P&260&&(G.$$scope={dirty:P,ctx:I}),c.$set(G);const W={};P&256&&(W.$$scope={dirty:P,ctx:I}),h.$set(W)},i(I){m||(b(r.$$.fragment,I),b(l),b(A),b(c.$$.fragment,I),b(h.$$.fragment,I),m=!0)},o(I){$(r.$$.fragment,I),$(l),$(A),$(c.$$.fragment,I),$(h.$$.fragment,I),m=!1},d(I){I&&C(e),B(r),y[o].d(),A&&A.d(),n[6](null),B(c),n[7](null),B(h)}}}function nrt(n,e,t){let r,i;Ne(n,Or,h=>t(0,i=h));let{$$slots:a={},$$scope:o}=e,l,s;ar(()=>{Y1(Or,i.showTestPanel=!1,i)});const u=()=>l.show();function c(h){He[h?"unshift":"push"](()=>{l=h,t(1,l)})}function f(h){He[h?"unshift":"push"](()=>{s=h,t(2,s)})}return n.$$set=h=>{"$$scope"in h&&t(8,o=h.$$scope)},n.$$.update=()=>{var h;n.$$.dirty&1&&t(3,r=((h=i.selectedAutomation)==null?void 0:h.automation)||i.automations[0])},[i,l,s,r,a,u,c,f,o]}class rrt extends Re{constructor(e){super(),Ve(this,e,nrt,trt,Oe,{})}}function irt(n){let e,t,r,i,a,o,l;function s(c){n[4](c)}let u={};return n[2]!==void 0&&(u.value=n[2]),a=new En({props:u}),He.push(()=>rt(a,"value",s)),{c(){e=J("span"),e.textContent=`The changes you have made will be deleted and the application reverted
935
- back to its production state.`,t=U(),r=J("span"),r.textContent="Please enter your app name to continue.",i=U(),O(a.$$.fragment)},m(c,f){S(c,e,f),S(c,t,f),S(c,r,f),S(c,i,f),H(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],it(()=>o=!1)),a.$set(h)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&C(e),c&&C(t),c&&C(r),c&&C(i),B(a,c)}}}function art(n){let e,t;return e=new _r({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[irt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function ort(n){let e,t,r,i;e=new dn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){An(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[art]},$$scope:{ctx:n}};return r=new ir({props:a}),n[5](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[5](null),B(r,o)}}}function lrt(n,e,t){let r,i;Ne(n,nn,c=>t(0,i=c));let a,o;const l=async()=>{try{await tn.revertAppChanges(r);const c=await tn.fetchAppPackage(r);await nn.actions.initialise(c),yt.info("Changes reverted successfully")}catch(c){yt.error(`Error reverting changes: ${c}`)}};function s(c){o=c,t(2,o)}function u(c){He[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class srt extends Re{constructor(e){super(),Ve(this,e,lrt,ort,Oe,{})}}const urt="@budibase/client",crt="2.0.19",frt="MPL-2.0",prt="dist/budibase-client.js",drt="dist/budibase-client.js",hrt="module",mrt="src/index.js",grt={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},vrt={build:"rollup -c","dev:builder":"rollup -cw"},_rt={"@budibase/bbui":"^2.0.19","@budibase/frontend-core":"^2.0.19","@budibase/string-templates":"^2.0.19","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5",downloadjs:"1.4.7",leaflet:"^1.7.1",regexparam:"^1.3.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15","socket.io-client":"^4.5.1",svelte:"^3.49.0","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},brt={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.0","rollup-plugin-polyfill-node":"^0.8.0","rollup-plugin-postcss":"^4.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-svg":"^2.0.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-visualizer":"^5.5.4"},yrt="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",Ed={name:urt,version:crt,license:frt,module:prt,main:drt,type:hrt,svelte:mrt,exports:grt,scripts:vrt,dependencies:_rt,devDependencies:brt,gitHead:yrt};function oN(n){let e,t;return e=new x3({props:{hoverable:!0,notice:!0,$$slots:{default:[$rt]},$$scope:{ctx:n}}}),e.$on("click",function(){An(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){n=r;const a={};i&4096&&(a.$$scope={dirty:i,ctx:n}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function $rt(n){let e;return{c(){e=oe("Update available")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function wrt(n){let e,t;return e=new xt({props:{size:"S",$$slots:{default:[zrt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function krt(n){let e,t;return e=new xt({props:{size:"S",$$slots:{default:[Art]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function zrt(n){let e,t,r=n[1].version+"",i,a;return{c(){e=oe("This app is currently using version "),t=J("b"),i=oe(r),a=oe(` which is the
935
+ back to its production state.`,t=U(),r=J("span"),r.textContent="Please enter your app name to continue.",i=U(),O(a.$$.fragment)},m(c,f){S(c,e,f),S(c,t,f),S(c,r,f),S(c,i,f),H(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],it(()=>o=!1)),a.$set(h)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&C(e),c&&C(t),c&&C(r),c&&C(i),B(a,c)}}}function art(n){let e,t;return e=new _r({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[irt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function ort(n){let e,t,r,i;e=new dn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){An(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[art]},$$scope:{ctx:n}};return r=new ir({props:a}),n[5](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[5](null),B(r,o)}}}function lrt(n,e,t){let r,i;Ne(n,nn,c=>t(0,i=c));let a,o;const l=async()=>{try{await tn.revertAppChanges(r);const c=await tn.fetchAppPackage(r);await nn.actions.initialise(c),yt.info("Changes reverted successfully")}catch(c){yt.error(`Error reverting changes: ${c}`)}};function s(c){o=c,t(2,o)}function u(c){He[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class srt extends Re{constructor(e){super(),Ve(this,e,lrt,ort,Oe,{})}}const urt="@budibase/client",crt="2.0.20",frt="MPL-2.0",prt="dist/budibase-client.js",drt="dist/budibase-client.js",hrt="module",mrt="src/index.js",grt={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},vrt={build:"rollup -c","dev:builder":"rollup -cw"},_rt={"@budibase/bbui":"^2.0.20","@budibase/frontend-core":"^2.0.20","@budibase/string-templates":"^2.0.20","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5",downloadjs:"1.4.7",leaflet:"^1.7.1",regexparam:"^1.3.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15","socket.io-client":"^4.5.1",svelte:"^3.49.0","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},brt={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.0","rollup-plugin-polyfill-node":"^0.8.0","rollup-plugin-postcss":"^4.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-svg":"^2.0.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-visualizer":"^5.5.4"},yrt="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",Ed={name:urt,version:crt,license:frt,module:prt,main:drt,type:hrt,svelte:mrt,exports:grt,scripts:vrt,dependencies:_rt,devDependencies:brt,gitHead:yrt};function oN(n){let e,t;return e=new x3({props:{hoverable:!0,notice:!0,$$slots:{default:[$rt]},$$scope:{ctx:n}}}),e.$on("click",function(){An(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){n=r;const a={};i&4096&&(a.$$scope={dirty:i,ctx:n}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function $rt(n){let e;return{c(){e=oe("Update available")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function wrt(n){let e,t;return e=new xt({props:{size:"S",$$slots:{default:[zrt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function krt(n){let e,t;return e=new xt({props:{size:"S",$$slots:{default:[Art]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function zrt(n){let e,t,r=n[1].version+"",i,a;return{c(){e=oe("This app is currently using version "),t=J("b"),i=oe(r),a=oe(` which is the
936
936
  latest version available.`)},m(o,l){S(o,e,l),S(o,t,l),j(t,i),S(o,a,l)},p(o,l){l&2&&r!==(r=o[1].version+"")&&_t(i,r)},d(o){o&&C(e),o&&C(t),o&&C(a)}}}function Art(n){let e,t,r=n[1].version+"",i,a,o,l;return{c(){e=oe("This app is currently using version "),t=J("b"),i=oe(r),a=oe(`, but version
937
937
  `),o=J("b"),o.textContent=`${Ed.version}`,l=oe(` is available. Updates can contain new features,
938
938
  performance improvements and bug fixes.`)},m(s,u){S(s,e,u),S(s,t,u),j(t,i),S(s,a,u),S(s,o,u),S(s,l,u)},p(s,u){u&2&&r!==(r=s[1].version+"")&&_t(i,r)},d(s){s&&C(e),s&&C(t),s&&C(a),s&&C(o),s&&C(l)}}}function lN(n){let e,t;return e=new xt({props:{size:"S",$$slots:{default:[Mrt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Mrt(n){let e,t,r=n[1].revertableVersion+"",i,a;return{c(){e=oe(`You can revert this app to version