@opencxh/domain 1.264.5 → 1.265.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +12 -12
- package/dist/index.js +126 -122
- package/dist/platform/ai-tools.d.ts +48 -0
- package/dist/platform/tool-reversible.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -14,34 +14,34 @@ Hierbij de bevestiging van uw opdracht.`,invoice:`Beste {customer.contact},
|
|
|
14
14
|
|
|
15
15
|
Hierbij onze factuur. Hieronder vindt u de specificatie.`,credit_note:`Beste {customer.contact},
|
|
16
16
|
|
|
17
|
-
Hierbij onze creditnota. De onderstaande bedragen worden met u verrekend.`},Gt={quote:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld. Deze offerte is geldig tot {quote.valid_until}.",order:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",invoice:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",credit_note:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld."},el=ro("quote"),oo=De.map(e=>e.key),io="product";function so(e,t){return`${e}:${t}`}function tl(e){return`${io}:${e}`}function nl(e){const t=e.indexOf(":");if(t<0)return;const n=e.slice(0,t);return oo.includes(n)?e.slice(t+1):void 0}function rl(e){const t=new Set([so(e.kindKey,e.id)]);return e.companyId&&t.add(`company:${e.companyId}`),e.contactId&&t.add(`contact:${e.contactId}`),e.dealItemId&&t.add(`work_item:${e.dealItemId}`),Array.from(t)}const ol=4;function il(e,t){const n=String(t).padStart(Math.max(1,e.padding),"0");return`${e.prefix}${e.period?`${e.period}-`:""}${n}`}function sl(e,t=Date.now()){return e==="year"?String(new Date(t).getFullYear()):""}const al=["cash","credit","direct_debit","card","other"];function cl(e,t){return e+Math.max(0,Math.round(t))*24*60*60*1e3}function ll(e,t){const n=new Map;for(const r of e)r.businessEntityId||n.set(r.code,r);if(t)for(const r of e)r.businessEntityId===t&&n.set(r.code,r);return[...n.values()]}function ul(e){return{code:e.code,label:e.label,method:e.method,dueDays:e.dueDays}}const dl=[{code:"14D",label:"Binnen 14 dagen",method:"credit",dueDays:14,isDefault:!0,order:0},{code:"30D",label:"Binnen 30 dagen",method:"credit",dueDays:30,order:1},{code:"CONTANT",label:"Contant",method:"cash",dueDays:0,order:2}];function pl(e){return e.type==="agent"}const fl="WORK_COMMENT_ADDED",ml="WORK_ITEM_ASSIGNED",gl="WORK_ITEM_STATUS_CHANGED";function hl(e,t){const n=r=>{const o=new Date(r);return o.setHours(0,0,0,0),o.getTime()};return Math.round((n(e)-n(t))/xn)}function yl(e,t){if(e.closedAt!=null)return{score:L,reasons:[]};const n=t.remindersById?.[e.id];if(n&&n.remindAt>t.now)return{score:L,reasons:[]};let r=0;const o=[],i=e.priority??"normal";if(X[i]>0&&(r+=X[i],o.push(`priority:${i}`)),typeof e.dueDate=="number"){const s=hl(e.dueDate,t.now);s<0?(r+=35,o.push("overdue")):s===0&&(r+=20,o.push("due-today"))}return e.source?.initiator==="system"&&e.source.systemReason&&(r+=15,o.push(`auto:${e.source.systemReason}`)),{score:r,reasons:o}}const xe=[{key:"task",label:"type_task"},{key:"bug",label:"type_bug"},{key:"story",label:"type_story"},{key:"epic",label:"type_epic"},{key:"subtask",label:"type_subtask"},{key:"case",label:"type_case"},{key:"deal",label:"type_deal"}],El=xe.map(e=>e.key);function _l(e){return e?.types?.length?e.types:xe}function Al(e,t){return t.find(n=>n.key===e)}function Sl(e){const t=e.trim().toLowerCase();return t?t.includes("sub-task")||t.includes("subtask")||t.includes("sub task")?"subtask":t.includes("bug")||t.includes("defect")?"bug":t.includes("epic")?"epic":t.includes("story")?"story":t.includes("incident")||t.includes("problem")||t.includes("service request")||t.includes("change")?"case":t.includes("task")?"task":null:null}function bl(...e){return e.map(t=>xe.find(n=>n.key===t)).filter(t=>!!t)}const ao="work_item",co="work_project",lo="work_activity",Tl="work_cycle";function uo(e){return`${ao}:${e}`}function At(e){return`${co}:${e}`}function Il(e){return`${lo}:${e}`}function Ml(e,t,n){const r=`${e}-${t}`;return n?`${r}-${n}`:r}function Ol(e){const t=/^([A-Za-z0-9]{2,8})-(\d+)(?:-(\d+))?$/.exec((e||"").trim());return t?{projectKey:t[1].toUpperCase(),sequenceNumber:Number(t[2]),...t[3]?{subSequence:Number(t[3])}:{}}:null}function kl(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().replace(/[^A-Z0-9]/g,"").slice(0,3)||"PRJ"}function Cl(e,t=25){const n=new Set([uo(e.id)]);e.projectId&&n.add(At(e.projectId));for(const r of e.ancestorKeys??[])n.add(r);for(const r of e.partyKeys??[])n.add(r);return Array.from(n).slice(0,t)}function Nl(e){return[At(e.id)]}const Le=[{key:"open",label:"status_open",category:"todo",order:0},{key:"in_progress",label:"status_in_progress",category:"in_progress",order:1},{key:"done",label:"status_done",category:"done",order:2},{key:"cancelled",label:"status_cancelled",category:"done",order:3}],St=Le.map(e=>e.key);function po(e){return e?.statuses?.length?e.statuses:Le}function fo(e,t){return t.find(n=>n.key===e)?.category??"todo"}function wl(e,t){return t.find(n=>n.key===e)}function vl(e){const t=po(e),n=e?.defaultStatusKey;return n&&t.some(r=>r.key===n)?n:mo(t)[0]?.key??Le[0].key}function mo(e){return[...e].sort((t,n)=>{const r=(t.order??0)-(n.order??0);return r!==0?r:(t.label||"").localeCompare(n.label||"")})}function Rl(e,t){return fo(e,t)==="done"}function go(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").slice(0,48).replace(/^-+|-+$/g,"")}function Dl(e,t){const n=go(e)||"status",r=new Set([...t,...St]);if(!r.has(n))return n;for(let o=2;o<500;o++){const i=`${n}-${o}`;if(!r.has(i))return i}return`${n}-${r.size+1}`}function xl(e){const t=[];if(!e.length)return[{index:-1,reason:"empty"}];const n=new Set;return e.forEach((r,o)=>{if(!r.key){t.push({index:o,reason:"missing_key"});return}St.includes(r.key)&&t.push({index:o,reason:"reserved_key",key:r.key}),n.has(r.key)&&t.push({index:o,reason:"duplicate_key",key:r.key}),n.add(r.key)}),e.some(r=>r.category==="todo"||r.category==="in_progress")||t.push({index:-1,reason:"no_open"}),e.some(r=>r.category==="done")||t.push({index:-1,reason:"no_done"}),t}function Ll(e,t){return t.find(n=>n.key===e)?.requiresApproval===!0}function Pl(e){return e.startDate??Number.MAX_SAFE_INTEGER}function $l(e){return e.completedAt?"completed":e.startedAt?"active":"planned"}const Ul=new Set(["image/png","image/jpeg","image/jpg","image/gif","image/webp"]),Kl=new Set(["text/plain","text/markdown","text/csv","application/json","text/html","application/xml","text/xml"]);function ho(e){const t=(e??"").trim().toLowerCase().split(";")[0];return t?Ul.has(t)?"image":t==="application/pdf"?"pdf":Kl.has(t)?"text":t.startsWith("audio/")?"audio":"unsupported":"unsupported"}const Y=1024*1024,yo={image:5*Y,pdf:20*Y,text:1*Y,audio:20*Y},Fl=25*Y,Bl=5;function Hl(e,t){const n=ho(e);return n==="unsupported"?"unsupported":t>yo[n]?"too-large":null}function Eo(e){return e.access!=="read"&&e.effect!=="internal"}function _o(e){return`${e.kind}:${e.id||e.url||e.title}`}function Gl(e,t=[]){const n=new Set(t),r=[],o=[];for(const i of e){const s=_o(i);n.has(s)||(n.add(s),r.push(i),o.push(s))}return{sources:r,keys:o}}const Wl="assist-source",jl=["blocking","due","open"];function Vl(e,t){const[n,r]=(e.subjectKey??"").split(":");return n===t&&r?r:void 0}const Wt={blocking:0,due:1,open:2};function Yl(e,t){return Wt[e.band??"open"]-Wt[t.band??"open"]||(t.priority??0)-(e.priority??0)||e.id.localeCompare(t.id)}function zl(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&e.canHold(t.providerId))}function Xl(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&!e.canHold(t.providerId))}function ql(e){return e.sessions.some(n=>n.id!==e.exceptSessionId&&(n.state==="connected"||n.state==="on_hold"))?{admit:!1,reason:"busy"}:{admit:!0}}function Ao(e,t){const n=new Set(e.disabledIntents??[]),r=e.intentOverrides??{},o=t.intents.filter(s=>!n.has(s.intent)).map(s=>Jl(s,r[s.intent]));if(!e.extraIntents||e.extraIntents.length===0)return o;const i=new Set(o.map(s=>s.intent));for(const s of e.extraIntents)i.has(s.intent)||(o.push(s),i.add(s.intent));return o}function So(e,t){const n={};for(const r of e.intents){if(!r.togglable)continue;const o=t?.[r.intent];n[r.intent]=o??r.defaultEnabled??!0}return n}function Ql(e,t){const n=So(e,t);return Object.entries(n).filter(([,r])=>!r).map(([r])=>r)}function Jl(e,t){return t?{intent:t.intent??e.intent,targetSchemes:t.targetSchemes??e.targetSchemes,transport:t.transport??e.transport}:e}function Zl(e,t){const n=[];for(const r of e){if(!r.enabled)continue;const o=t[r.providerId];if(o)for(const i of Ao(r,o))n.push({channel:r,description:o,capability:i})}return n}function eu(e,t){return t.filter(n=>n.capability.intent===e)}function bo(e,t){return t.filter(n=>n.capability.targetSchemes.includes(e))}function tu(e,t){return bo(e.scheme,t)}function nu(e,t,n){const r=[];for(const o of e)for(const i of n)i.capability.intent===t&&i.capability.targetSchemes.includes(o.scheme)&&r.push({channelIntent:i,endpoint:o});return r}var To=(e=>(e.MAILTO="mailto",e.SIP="sip",e.TEL="tel",e.WEBHOOK="webhook",e.USERNAME="username",e.ID="id",e.CUSTOM="custom",e.URL="url",e.TELEGRAM="telegram",e.WHATSAPP="whatsapp",e.MESSENGER="messenger",e.INSTAGRAM="instagram",e.VIBER="viber",e.SMS="sms",e.FAX="fax",e.TEAMS="teams",e.CALENDAR="calendar",e))(To||{});const ru={mailto:"mail",sip:"tel",tel:"tel",fax:"tel",sms:"chat",teams:"chat",telegram:"chat",messenger:"chat",instagram:"chat",viber:"chat",whatsapp:"wa",webhook:"note",url:"note",calendar:"note",username:"note",id:"note",custom:"note"};function ou(e){return e?ru[e]??"note":"note"}const iu="message_window",su="message_templates",au={FROM:"from",TO:"to",CC:"cc",BCC:"bcc",ORGANIZER:"organizer",PRESENTER:"presenter",ATTENDEE:"attendee",OWNER:"owner",MEMBER:"member",GUEST:"guest",HOST:"host",PARTICIPANT:"participant"},cu=(e,t)=>({intent:e,...t}),lu="folder_management",uu="remote_search",du="message_reactions",pu={ok:!1,code:"UNSUPPORTED",message:"Provider does not support this op"},fu="connector",mu="context.collect",A=e=>({type:"string",description:e}),_=e=>({type:"number",description:e}),le=e=>({type:"boolean",description:e}),C=A("Sheet name. Omit for the sheet the user is looking at."),jt=A("Slide id, as `inspect` reports it.");function E(e,t,n,r,o,i){return{op:e,kinds:t,summary:n,parameters:{type:"object",properties:r,required:o},undoable:i.undoable,visible:i.visible}}const z={undoable:!1,visible:!0},T={undoable:!0,visible:!0},Vt={undoable:!1,visible:!0},Me={undoable:!1,visible:!1},gu=[E("pdf.goToPage",["pdf"],"Scroll the viewer to a page.",{page:_("1-based page number.")},["page"],z),E("pdf.search",["pdf"],"Search the document and highlight the matches, as the find bar does.",{query:A("Text to find."),next:le("Jump to the next match instead of the first.")},["query"],z),E("pdf.setTool",["pdf"],"Select a markup tool for the user, so their next click draws it.",{tool:{type:"string",enum:["highlight","text","draw","image","signature","none"],description:"Which tool to arm. `none` puts the tool row back to reading."}},["tool"],z),E("pdf.fillField",["pdf"],"Fill one form field of a fillable PDF.",{field:A("Field name, exactly as `inspect` reports it under `fields`."),value:{type:["string","boolean"],description:"Text for a text field, true/false for a checkbox or radio."}},["field","value"],T),E("pdf.reorderPages",["pdf"],"Put the pages in a different order. Pages left out are deleted.",{order:{type:"array",items:{type:"number"},description:"1-based source page numbers, in the order they should end up in."}},["order"],Vt),E("pdf.deletePages",["pdf"],"Remove pages, keeping the rest in order.",{pages:{type:"array",items:{type:"number"},description:"1-based page numbers."}},["pages"],Vt),E("pdf.addNote",["pdf"],"Place a text note on a page. Written on save; not visible before that.",{page:_("1-based page number."),text:A("The note's text."),left:_("Distance from the left edge, in PDF points (72 per inch)."),top:_("Distance from the top edge, in PDF points."),width:_("Box width in points. Omit for a sensible default."),height:_("Box height in points. Omit for a sensible default."),fontSize:_("Font size in points. Omit for 12.")},["page","text","left","top"],Me),E("pdf.highlightText",["pdf"],"Highlight a phrase on a page. Written on save; not visible before that.",{page:_("1-based page number."),text:A("The exact phrase to highlight, as it appears in the page's text."),occurrence:_("Which occurrence on that page, 1-based. Omit for the first.")},["page","text"],Me)],hu=[E("sheet.setValues",["sheet"],"Write a block of values. The block's shape must match the range.",{sheet:C,range:A("A1 notation, e.g. `B2:D5` or a single `A1`."),values:{type:"array",items:{type:"array",items:{type:["string","number","boolean","null"]}},description:"Rows of cells, top-left first. `null` clears a cell."}},["range","values"],T),E("sheet.setFormula",["sheet"],"Put a formula in every cell of a range.",{sheet:C,range:A("A1 notation."),formula:A("Including the leading `=`.")},["range","formula"],T),E("sheet.setStyle",["sheet"],"Change the look of a range. Only the properties you pass are touched.",{sheet:C,range:A("A1 notation."),bold:le("Bold on or off."),italic:le("Italic on or off."),fontSize:_("Point size."),fontColor:A("CSS colour, e.g. `#b91c1c`."),background:A("CSS colour for the cell fill."),horizontalAlignment:{type:"string",enum:["left","center","right"],description:"Horizontal alignment."},numberFormat:A("Number format pattern, e.g. `#,##0.00` or `0%`.")},["range"],T),E("sheet.insertRows",["sheet"],"Insert empty rows, pushing the rest down.",{sheet:C,at:_("1-based row number to insert before."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.deleteRows",["sheet"],"Delete rows, pulling the rest up.",{sheet:C,at:_("1-based first row to delete."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.insertColumns",["sheet"],"Insert empty columns, pushing the rest right.",{sheet:C,at:_("1-based column number to insert before."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.deleteColumns",["sheet"],"Delete columns, pulling the rest left.",{sheet:C,at:_("1-based first column to delete."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.merge",["sheet"],"Merge a range into one cell.",{sheet:C,range:A("A1 notation.")},["range"],T),E("sheet.unmerge",["sheet"],"Break merged cells in a range apart.",{sheet:C,range:A("A1 notation.")},["range"],T),E("sheet.sort",["sheet"],"Sort a range on one of its columns.",{sheet:C,range:A("A1 notation covering the rows to sort, header excluded."),column:_("1-based column *within the range*, not within the sheet."),ascending:le("Ascending. Omit for ascending.")},["range","column"],T),E("sheet.insertSheet",["sheet"],"Add a new sheet.",{name:A("Name for the new sheet.")},["name"],T),E("sheet.renameSheet",["sheet"],"Rename a sheet.",{sheet:A("Current name."),name:A("New name.")},["sheet","name"],T),E("sheet.deleteSheet",["sheet"],"Remove a sheet and everything on it.",{sheet:A("Name of the sheet to delete.")},["sheet"],T),E("sheet.activate",["sheet"],"Show the user a sheet and select a range on it.",{sheet:C,range:A("A1 notation to select. Omit to only switch sheets.")},[],z)],yu=[E("word.replaceParagraph",["word"],"Rewrite one whole paragraph, keeping its style. This is the verb for shortening or rephrasing something; call it once per paragraph.",{at:_("The offset the paragraph starts at, exactly as `inspect` prints it."),text:A("The new text for that paragraph. A newline starts a further paragraph.")},["at","text"],T),E("word.replaceRange",["word"],"Replace a stretch of text inside a paragraph - a sentence, a phrase. To rewrite whole paragraphs use word.replaceParagraph: a range covering several paragraph styles is refused, because a replacement carries one style and would set the whole span in the first.",{start:_("Character offset where the replaced text starts, as `inspect` reports offsets."),end:_("Character offset just past the last character to replace."),text:A("The replacement text. A newline starts a new paragraph.")},["start","end","text"],T),E("word.insertText",["word"],"Insert text at a character offset, without removing anything.",{index:_("Character offset, as `inspect` reports offsets."),text:A("The text to insert.")},["index","text"],T),E("word.appendText",["word"],"Add text at the end of the document.",{text:A("The text to append.")},["text"],T),E("word.insertParagraph",["word"],"Start a new paragraph, optionally with text in it.",{text:A("Paragraph text. Newlines start further paragraphs."),index:_("Character offset to insert at. Omit for the end of the document.")},[],T),E("word.setSelection",["word"],"Put the user's cursor on a stretch of text, and move the reading window there: the page context carries one window of a long document, and the text around this offset arrives in the next turn.",{start:_("Start character offset."),end:_("End character offset. Omit for a caret.")},["start"],z)],Eu=[E("slides.setText",["slides"],"Replace the text of one shape. Written on save; not visible before that, and not undoable.",{slide:jt,element:A("Element id, as `inspect` reports it."),text:A("The new text.")},["slide","element","text"],Me),E("slides.setTransform",["slides"],"Move or resize one shape. Only the values you pass change. Written on save; not visible before that, and not undoable.",{slide:jt,element:A("Element id."),left:_("Distance from the left edge, in pixels."),top:_("Distance from the top edge, in pixels."),width:_("Width in pixels."),height:_("Height in pixels.")},["slide","element"],Me)],bt=[...gu,...hu,...yu,...Eu];function _u(e){return bt.filter(t=>t.kinds.includes(e))}function Au(e){return bt.find(t=>t.op===e)}const Yt=/(?: {2,}|\\)$/,Su=/^\*\*([^*]+)\*\*\s+(.*)$/;function zt(e){const t=Su.exec(e);return t?{lead:t[1],text:t[2]}:{text:e}}function bu(e){const t=(e??"").replace(/\r\n/g,`
|
|
17
|
+
Hierbij onze creditnota. De onderstaande bedragen worden met u verrekend.`},Gt={quote:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld. Deze offerte is geldig tot {quote.valid_until}.",order:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",invoice:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",credit_note:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld."},el=ro("quote"),oo=De.map(e=>e.key),io="product";function so(e,t){return`${e}:${t}`}function tl(e){return`${io}:${e}`}function nl(e){const t=e.indexOf(":");if(t<0)return;const n=e.slice(0,t);return oo.includes(n)?e.slice(t+1):void 0}function rl(e){const t=new Set([so(e.kindKey,e.id)]);return e.companyId&&t.add(`company:${e.companyId}`),e.contactId&&t.add(`contact:${e.contactId}`),e.dealItemId&&t.add(`work_item:${e.dealItemId}`),Array.from(t)}const ol=4;function il(e,t){const n=String(t).padStart(Math.max(1,e.padding),"0");return`${e.prefix}${e.period?`${e.period}-`:""}${n}`}function sl(e,t=Date.now()){return e==="year"?String(new Date(t).getFullYear()):""}const al=["cash","credit","direct_debit","card","other"];function cl(e,t){return e+Math.max(0,Math.round(t))*24*60*60*1e3}function ll(e,t){const n=new Map;for(const r of e)r.businessEntityId||n.set(r.code,r);if(t)for(const r of e)r.businessEntityId===t&&n.set(r.code,r);return[...n.values()]}function ul(e){return{code:e.code,label:e.label,method:e.method,dueDays:e.dueDays}}const dl=[{code:"14D",label:"Binnen 14 dagen",method:"credit",dueDays:14,isDefault:!0,order:0},{code:"30D",label:"Binnen 30 dagen",method:"credit",dueDays:30,order:1},{code:"CONTANT",label:"Contant",method:"cash",dueDays:0,order:2}];function pl(e){return e.type==="agent"}const fl="WORK_COMMENT_ADDED",ml="WORK_ITEM_ASSIGNED",gl="WORK_ITEM_STATUS_CHANGED";function hl(e,t){const n=r=>{const o=new Date(r);return o.setHours(0,0,0,0),o.getTime()};return Math.round((n(e)-n(t))/xn)}function yl(e,t){if(e.closedAt!=null)return{score:L,reasons:[]};const n=t.remindersById?.[e.id];if(n&&n.remindAt>t.now)return{score:L,reasons:[]};let r=0;const o=[],i=e.priority??"normal";if(X[i]>0&&(r+=X[i],o.push(`priority:${i}`)),typeof e.dueDate=="number"){const s=hl(e.dueDate,t.now);s<0?(r+=35,o.push("overdue")):s===0&&(r+=20,o.push("due-today"))}return e.source?.initiator==="system"&&e.source.systemReason&&(r+=15,o.push(`auto:${e.source.systemReason}`)),{score:r,reasons:o}}const xe=[{key:"task",label:"type_task"},{key:"bug",label:"type_bug"},{key:"story",label:"type_story"},{key:"epic",label:"type_epic"},{key:"subtask",label:"type_subtask"},{key:"case",label:"type_case"},{key:"deal",label:"type_deal"}],El=xe.map(e=>e.key);function _l(e){return e?.types?.length?e.types:xe}function Al(e,t){return t.find(n=>n.key===e)}function Sl(e){const t=e.trim().toLowerCase();return t?t.includes("sub-task")||t.includes("subtask")||t.includes("sub task")?"subtask":t.includes("bug")||t.includes("defect")?"bug":t.includes("epic")?"epic":t.includes("story")?"story":t.includes("incident")||t.includes("problem")||t.includes("service request")||t.includes("change")?"case":t.includes("task")?"task":null:null}function bl(...e){return e.map(t=>xe.find(n=>n.key===t)).filter(t=>!!t)}const ao="work_item",co="work_project",lo="work_activity",Tl="work_cycle";function uo(e){return`${ao}:${e}`}function At(e){return`${co}:${e}`}function Il(e){return`${lo}:${e}`}function Ml(e,t,n){const r=`${e}-${t}`;return n?`${r}-${n}`:r}function Ol(e){const t=/^([A-Za-z0-9]{2,8})-(\d+)(?:-(\d+))?$/.exec((e||"").trim());return t?{projectKey:t[1].toUpperCase(),sequenceNumber:Number(t[2]),...t[3]?{subSequence:Number(t[3])}:{}}:null}function kl(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().replace(/[^A-Z0-9]/g,"").slice(0,3)||"PRJ"}function Cl(e,t=25){const n=new Set([uo(e.id)]);e.projectId&&n.add(At(e.projectId));for(const r of e.ancestorKeys??[])n.add(r);for(const r of e.partyKeys??[])n.add(r);return Array.from(n).slice(0,t)}function Nl(e){return[At(e.id)]}const Le=[{key:"open",label:"status_open",category:"todo",order:0},{key:"in_progress",label:"status_in_progress",category:"in_progress",order:1},{key:"done",label:"status_done",category:"done",order:2},{key:"cancelled",label:"status_cancelled",category:"done",order:3}],St=Le.map(e=>e.key);function po(e){return e?.statuses?.length?e.statuses:Le}function fo(e,t){return t.find(n=>n.key===e)?.category??"todo"}function wl(e,t){return t.find(n=>n.key===e)}function vl(e){const t=po(e),n=e?.defaultStatusKey;return n&&t.some(r=>r.key===n)?n:mo(t)[0]?.key??Le[0].key}function mo(e){return[...e].sort((t,n)=>{const r=(t.order??0)-(n.order??0);return r!==0?r:(t.label||"").localeCompare(n.label||"")})}function Rl(e,t){return fo(e,t)==="done"}function go(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").slice(0,48).replace(/^-+|-+$/g,"")}function Dl(e,t){const n=go(e)||"status",r=new Set([...t,...St]);if(!r.has(n))return n;for(let o=2;o<500;o++){const i=`${n}-${o}`;if(!r.has(i))return i}return`${n}-${r.size+1}`}function xl(e){const t=[];if(!e.length)return[{index:-1,reason:"empty"}];const n=new Set;return e.forEach((r,o)=>{if(!r.key){t.push({index:o,reason:"missing_key"});return}St.includes(r.key)&&t.push({index:o,reason:"reserved_key",key:r.key}),n.has(r.key)&&t.push({index:o,reason:"duplicate_key",key:r.key}),n.add(r.key)}),e.some(r=>r.category==="todo"||r.category==="in_progress")||t.push({index:-1,reason:"no_open"}),e.some(r=>r.category==="done")||t.push({index:-1,reason:"no_done"}),t}function Ll(e,t){return t.find(n=>n.key===e)?.requiresApproval===!0}function Pl(e){return e.startDate??Number.MAX_SAFE_INTEGER}function $l(e){return e.completedAt?"completed":e.startedAt?"active":"planned"}const Ul=new Set(["image/png","image/jpeg","image/jpg","image/gif","image/webp"]),Kl=new Set(["text/plain","text/markdown","text/csv","application/json","text/html","application/xml","text/xml"]);function ho(e){const t=(e??"").trim().toLowerCase().split(";")[0];return t?Ul.has(t)?"image":t==="application/pdf"?"pdf":Kl.has(t)?"text":t.startsWith("audio/")?"audio":"unsupported":"unsupported"}const Y=1024*1024,yo={image:5*Y,pdf:20*Y,text:1*Y,audio:20*Y},Fl=25*Y,Bl=5;function Hl(e,t){const n=ho(e);return n==="unsupported"?"unsupported":t>yo[n]?"too-large":null}function Gl(e){return e.access==="read"?"idempotent":e.reversible??"none"}function Eo(e){return e.access!=="read"&&e.effect!=="internal"}function _o(e){return`${e.kind}:${e.id||e.url||e.title}`}function Wl(e,t=[]){const n=new Set(t),r=[],o=[];for(const i of e){const s=_o(i);n.has(s)||(n.add(s),r.push(i),o.push(s))}return{sources:r,keys:o}}const jl="assist-source",Vl=["blocking","due","open"];function Yl(e,t){const[n,r]=(e.subjectKey??"").split(":");return n===t&&r?r:void 0}const Wt={blocking:0,due:1,open:2};function zl(e,t){return Wt[e.band??"open"]-Wt[t.band??"open"]||(t.priority??0)-(e.priority??0)||e.id.localeCompare(t.id)}function Xl(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&e.canHold(t.providerId))}function ql(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&!e.canHold(t.providerId))}function Ql(e){return e.sessions.some(n=>n.id!==e.exceptSessionId&&(n.state==="connected"||n.state==="on_hold"))?{admit:!1,reason:"busy"}:{admit:!0}}function Ao(e,t){const n=new Set(e.disabledIntents??[]),r=e.intentOverrides??{},o=t.intents.filter(s=>!n.has(s.intent)).map(s=>Zl(s,r[s.intent]));if(!e.extraIntents||e.extraIntents.length===0)return o;const i=new Set(o.map(s=>s.intent));for(const s of e.extraIntents)i.has(s.intent)||(o.push(s),i.add(s.intent));return o}function So(e,t){const n={};for(const r of e.intents){if(!r.togglable)continue;const o=t?.[r.intent];n[r.intent]=o??r.defaultEnabled??!0}return n}function Jl(e,t){const n=So(e,t);return Object.entries(n).filter(([,r])=>!r).map(([r])=>r)}function Zl(e,t){return t?{intent:t.intent??e.intent,targetSchemes:t.targetSchemes??e.targetSchemes,transport:t.transport??e.transport}:e}function eu(e,t){const n=[];for(const r of e){if(!r.enabled)continue;const o=t[r.providerId];if(o)for(const i of Ao(r,o))n.push({channel:r,description:o,capability:i})}return n}function tu(e,t){return t.filter(n=>n.capability.intent===e)}function bo(e,t){return t.filter(n=>n.capability.targetSchemes.includes(e))}function nu(e,t){return bo(e.scheme,t)}function ru(e,t,n){const r=[];for(const o of e)for(const i of n)i.capability.intent===t&&i.capability.targetSchemes.includes(o.scheme)&&r.push({channelIntent:i,endpoint:o});return r}var To=(e=>(e.MAILTO="mailto",e.SIP="sip",e.TEL="tel",e.WEBHOOK="webhook",e.USERNAME="username",e.ID="id",e.CUSTOM="custom",e.URL="url",e.TELEGRAM="telegram",e.WHATSAPP="whatsapp",e.MESSENGER="messenger",e.INSTAGRAM="instagram",e.VIBER="viber",e.SMS="sms",e.FAX="fax",e.TEAMS="teams",e.CALENDAR="calendar",e))(To||{});const ou={mailto:"mail",sip:"tel",tel:"tel",fax:"tel",sms:"chat",teams:"chat",telegram:"chat",messenger:"chat",instagram:"chat",viber:"chat",whatsapp:"wa",webhook:"note",url:"note",calendar:"note",username:"note",id:"note",custom:"note"};function iu(e){return e?ou[e]??"note":"note"}const su="message_window",au="message_templates",cu={FROM:"from",TO:"to",CC:"cc",BCC:"bcc",ORGANIZER:"organizer",PRESENTER:"presenter",ATTENDEE:"attendee",OWNER:"owner",MEMBER:"member",GUEST:"guest",HOST:"host",PARTICIPANT:"participant"},lu=(e,t)=>({intent:e,...t}),uu="folder_management",du="remote_search",pu="message_reactions",fu={ok:!1,code:"UNSUPPORTED",message:"Provider does not support this op"},mu="connector",gu="context.collect",A=e=>({type:"string",description:e}),_=e=>({type:"number",description:e}),le=e=>({type:"boolean",description:e}),C=A("Sheet name. Omit for the sheet the user is looking at."),jt=A("Slide id, as `inspect` reports it.");function E(e,t,n,r,o,i){return{op:e,kinds:t,summary:n,parameters:{type:"object",properties:r,required:o},undoable:i.undoable,visible:i.visible}}const z={undoable:!1,visible:!0},T={undoable:!0,visible:!0},Vt={undoable:!1,visible:!0},Me={undoable:!1,visible:!1},hu=[E("pdf.goToPage",["pdf"],"Scroll the viewer to a page.",{page:_("1-based page number.")},["page"],z),E("pdf.search",["pdf"],"Search the document and highlight the matches, as the find bar does.",{query:A("Text to find."),next:le("Jump to the next match instead of the first.")},["query"],z),E("pdf.setTool",["pdf"],"Select a markup tool for the user, so their next click draws it.",{tool:{type:"string",enum:["highlight","text","draw","image","signature","none"],description:"Which tool to arm. `none` puts the tool row back to reading."}},["tool"],z),E("pdf.fillField",["pdf"],"Fill one form field of a fillable PDF.",{field:A("Field name, exactly as `inspect` reports it under `fields`."),value:{type:["string","boolean"],description:"Text for a text field, true/false for a checkbox or radio."}},["field","value"],T),E("pdf.reorderPages",["pdf"],"Put the pages in a different order. Pages left out are deleted.",{order:{type:"array",items:{type:"number"},description:"1-based source page numbers, in the order they should end up in."}},["order"],Vt),E("pdf.deletePages",["pdf"],"Remove pages, keeping the rest in order.",{pages:{type:"array",items:{type:"number"},description:"1-based page numbers."}},["pages"],Vt),E("pdf.addNote",["pdf"],"Place a text note on a page. Written on save; not visible before that.",{page:_("1-based page number."),text:A("The note's text."),left:_("Distance from the left edge, in PDF points (72 per inch)."),top:_("Distance from the top edge, in PDF points."),width:_("Box width in points. Omit for a sensible default."),height:_("Box height in points. Omit for a sensible default."),fontSize:_("Font size in points. Omit for 12.")},["page","text","left","top"],Me),E("pdf.highlightText",["pdf"],"Highlight a phrase on a page. Written on save; not visible before that.",{page:_("1-based page number."),text:A("The exact phrase to highlight, as it appears in the page's text."),occurrence:_("Which occurrence on that page, 1-based. Omit for the first.")},["page","text"],Me)],yu=[E("sheet.setValues",["sheet"],"Write a block of values. The block's shape must match the range.",{sheet:C,range:A("A1 notation, e.g. `B2:D5` or a single `A1`."),values:{type:"array",items:{type:"array",items:{type:["string","number","boolean","null"]}},description:"Rows of cells, top-left first. `null` clears a cell."}},["range","values"],T),E("sheet.setFormula",["sheet"],"Put a formula in every cell of a range.",{sheet:C,range:A("A1 notation."),formula:A("Including the leading `=`.")},["range","formula"],T),E("sheet.setStyle",["sheet"],"Change the look of a range. Only the properties you pass are touched.",{sheet:C,range:A("A1 notation."),bold:le("Bold on or off."),italic:le("Italic on or off."),fontSize:_("Point size."),fontColor:A("CSS colour, e.g. `#b91c1c`."),background:A("CSS colour for the cell fill."),horizontalAlignment:{type:"string",enum:["left","center","right"],description:"Horizontal alignment."},numberFormat:A("Number format pattern, e.g. `#,##0.00` or `0%`.")},["range"],T),E("sheet.insertRows",["sheet"],"Insert empty rows, pushing the rest down.",{sheet:C,at:_("1-based row number to insert before."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.deleteRows",["sheet"],"Delete rows, pulling the rest up.",{sheet:C,at:_("1-based first row to delete."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.insertColumns",["sheet"],"Insert empty columns, pushing the rest right.",{sheet:C,at:_("1-based column number to insert before."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.deleteColumns",["sheet"],"Delete columns, pulling the rest left.",{sheet:C,at:_("1-based first column to delete."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.merge",["sheet"],"Merge a range into one cell.",{sheet:C,range:A("A1 notation.")},["range"],T),E("sheet.unmerge",["sheet"],"Break merged cells in a range apart.",{sheet:C,range:A("A1 notation.")},["range"],T),E("sheet.sort",["sheet"],"Sort a range on one of its columns.",{sheet:C,range:A("A1 notation covering the rows to sort, header excluded."),column:_("1-based column *within the range*, not within the sheet."),ascending:le("Ascending. Omit for ascending.")},["range","column"],T),E("sheet.insertSheet",["sheet"],"Add a new sheet.",{name:A("Name for the new sheet.")},["name"],T),E("sheet.renameSheet",["sheet"],"Rename a sheet.",{sheet:A("Current name."),name:A("New name.")},["sheet","name"],T),E("sheet.deleteSheet",["sheet"],"Remove a sheet and everything on it.",{sheet:A("Name of the sheet to delete.")},["sheet"],T),E("sheet.activate",["sheet"],"Show the user a sheet and select a range on it.",{sheet:C,range:A("A1 notation to select. Omit to only switch sheets.")},[],z)],Eu=[E("word.replaceParagraph",["word"],"Rewrite one whole paragraph, keeping its style. This is the verb for shortening or rephrasing something; call it once per paragraph.",{at:_("The offset the paragraph starts at, exactly as `inspect` prints it."),text:A("The new text for that paragraph. A newline starts a further paragraph.")},["at","text"],T),E("word.replaceRange",["word"],"Replace a stretch of text inside a paragraph - a sentence, a phrase. To rewrite whole paragraphs use word.replaceParagraph: a range covering several paragraph styles is refused, because a replacement carries one style and would set the whole span in the first.",{start:_("Character offset where the replaced text starts, as `inspect` reports offsets."),end:_("Character offset just past the last character to replace."),text:A("The replacement text. A newline starts a new paragraph.")},["start","end","text"],T),E("word.insertText",["word"],"Insert text at a character offset, without removing anything.",{index:_("Character offset, as `inspect` reports offsets."),text:A("The text to insert.")},["index","text"],T),E("word.appendText",["word"],"Add text at the end of the document.",{text:A("The text to append.")},["text"],T),E("word.insertParagraph",["word"],"Start a new paragraph, optionally with text in it.",{text:A("Paragraph text. Newlines start further paragraphs."),index:_("Character offset to insert at. Omit for the end of the document.")},[],T),E("word.setSelection",["word"],"Put the user's cursor on a stretch of text, and move the reading window there: the page context carries one window of a long document, and the text around this offset arrives in the next turn.",{start:_("Start character offset."),end:_("End character offset. Omit for a caret.")},["start"],z)],_u=[E("slides.setText",["slides"],"Replace the text of one shape. Written on save; not visible before that, and not undoable.",{slide:jt,element:A("Element id, as `inspect` reports it."),text:A("The new text.")},["slide","element","text"],Me),E("slides.setTransform",["slides"],"Move or resize one shape. Only the values you pass change. Written on save; not visible before that, and not undoable.",{slide:jt,element:A("Element id."),left:_("Distance from the left edge, in pixels."),top:_("Distance from the top edge, in pixels."),width:_("Width in pixels."),height:_("Height in pixels.")},["slide","element"],Me)],bt=[...hu,...yu,...Eu,..._u];function Au(e){return bt.filter(t=>t.kinds.includes(e))}function Su(e){return bt.find(t=>t.op===e)}const Yt=/(?: {2,}|\\)$/,bu=/^\*\*([^*]+)\*\*\s+(.*)$/;function zt(e){const t=bu.exec(e);return t?{lead:t[1],text:t[2]}:{text:e}}function Tu(e){const t=(e??"").replace(/\r\n/g,`
|
|
18
18
|
`).split(`
|
|
19
19
|
`),n=[];let r=null;const o=()=>{r&&n.push({type:"list",style:r.style,items:r.items}),r=null},i=(p,f)=>{r&&r.style!==p&&o(),r?r.items.push(zt(f)):r={style:p,items:[zt(f)]}};let s=[],a=[];const u=()=>{if(s.length){const p=s.join("").trim();p&&n.push({type:"paragraph",text:p}),s=[]}},l=()=>{a.length&&(n.push({type:"quote",text:a.join(`
|
|
20
20
|
`)}),a=[])},d=()=>{u(),l(),o()};let c=0;for(;c<t.length;){const p=t[c]??"",f=p.match(/^```(\w*)\s*$/);if(f){d();const h=[];for(c++;c<t.length&&!/^```\s*$/.test(t[c]??"");)h.push(t[c]??""),c++;c++,n.push({type:"code",...f[1]?{lang:f[1]}:{},text:h.join(`
|
|
21
21
|
`)});continue}const y=p.match(/^(#{1,3})\s+(.*)$/);if(y){d(),n.push({type:"heading",level:y[1].length,text:y[2].trim()}),c++;continue}const m=p.match(/^!\[([^\]]*)\]\(([^)\s]+)\)\s*$/);if(m){d(),n.push({type:"image",url:m[2],...m[1]?{alt:m[1]}:{}}),c++;continue}if(/^\s*[-*]\s+/.test(p)){u(),l(),i("bulleted",p.replace(/^\s*[-*]\s+/,"")),c++;continue}if(/^\s*\d+\.\s+/.test(p)){u(),l(),i("numbered",p.replace(/^\s*\d+\.\s+/,"")),c++;continue}if(/^\s*(-{3,}|\*{3,}|_{3,})\s*$/.test(p)){d(),n.push({type:"divider"}),c++;continue}if(/^>\s?/.test(p)){u(),o(),a.push(p.replace(/^>\s?/,"")),c++;continue}if(p.trim()===""){d(),c++;continue}l(),o();const b=Yt.test(p);s.push(p.replace(Yt,"").trim()+(b?`
|
|
22
|
-
`:" ")),c++}return d(),n}function
|
|
22
|
+
`:" ")),c++}return d(),n}function Iu(e,t){return at(e,t).replace(/^```.*$/gm,"").replace(/^\|[\s:|-]*\|$/gm,"").replace(/[ \t]*\|[ \t]*/g," ").replace(/^[ \t]*(#{1,6}|>|[-*+]|\d+\.)[ \t]+/gm,"").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/(\*\*|__|\*|_|`|~~)/g,"").replace(/[ \t]+$/gm,"").replace(/\n{3,}/g,`
|
|
23
23
|
|
|
24
|
-
`).trim()}const Iu="documents.describe",Mu="documents.inspect",Ou="documents.apply";function ku(e){const t=e.indexOf(":");if(t!==-1)return e.slice(0,t);const n=e.indexOf(".");return n===-1?e:e.slice(0,n)}const Cu="installation-id";function Nu(e){const t=[];for(const n of Object.keys(e))for(const r of Object.keys(e[n]))t.push({lang:n,key:r,value:e[n][r]});return t}const wu="notification-source",vu=(e,t)=>`${e}.pref.${t}`,Ru={ai:["account.read","account.write","agent.read","agent.write","assignment.read","assignment.write","budget.read","budget.write","connector.read","connector.write","context.read","context.write","conversation.read","conversation.write","lens.read","lens.write","message.read","message.write","playbook.read","playbook.write","profile.read","profile.write","run.read","run.write","settings.read","settings.write","tool.read","transcript.write","usage.read"],analytics:["report.read"],"app-store":["app.publish","app.read","app.write","setting.read","setting.write"],assist:["board.read"],automations:["sync.read","sync.write","webhook.read","webhook.write"],communication:["account.read","account.write","activity-type.read","activity.read","activity.write","attachment.read","attribute.read","attribute.write","calendar.read","calendar.write","channel.read","channel.write","custom-field.read","custom-field.write","folder.read","folder.write","inbox.read","inbox.write","interaction.read","interaction.write","reaction.read","reaction.write","reminder.read","template.read","template.write","topic.read","topic.write"],context:["kind.read","kind.write","memory.read","memory.write"],crm:["company.read","company.write","contact.read","contact.write"],"eylo-voip":["account.read","account.write","callflow.read","callflow.write","channel.read","channel.write","contact.read","contact.write","device.read","device.write","group.read","group.write","interaction.read","interaction.write","media.read","media.write","menu.read","menu.write","phone-number.read","phone-number.write","recording.read","recording.write","sip.read","temporal-rule.read","temporal-rule.write","user.read","user.write","vmbox.read","vmbox.write","webhook.read","webhook.write"],google:["account.read","account.write","contact.read"],kb:["article.read","article.write","category.read","category.write","help-center.read","help-center.write","kb.read","kb.write"],mail:["account.write"],meta:["account.read","account.write"],microsoft:["account.read","account.write","contact.read","sync.write"],organization:["billing.read","billing.write","settings.read","settings.write","team.read","team.write"],shopify:["account.read","account.write","order.read"],slack:["thread.read","thread.write"],storage:["artifact.read","artifact.write","file.read","file.write","mount.read","mount.write"],time:["entry.read","entry.write","work-type.read","work-type.write"],user:["user.read","user.write"],work:["item.read","item.write","project.read","project.write"]},Tt=9e4,Io=["out_of_office"],Mo=e=>Io.includes(e);function Du(e,t,n){const r=n-e<Tt,o=t?.status&&(!t.expiresAt||t.expiresAt>n)?t:void 0;if(!o?.status)return{online:r,status:r?"available":"offline"};const i=o.status;return!r&&!Mo(i)?{online:!1,status:"offline"}:{online:r,status:i,message:o.message}}function xu(e,t){const n=t-e.lastSeenAt<Tt,r=n||Mo(e.status)?e.status:"offline";return n===e.online&&r===e.status?e:{...e,online:n,status:r}}function Lu(e,t){return e?.teamId&&t.includes(e.teamId)?{teamId:e.teamId,mustChoose:!1}:t.length===1?{teamId:t[0],mustChoose:!1}:{teamId:void 0,mustChoose:t.length>1}}function Pu(e){return e.providerAvailable&&e.allowed}const $u="resources.describe",Uu="resources.search",Ku="resources.resolve",Fu="resources.attached";function Bu(e){const t=e.indexOf(":");return t===-1?e:e.slice(0,t)}const Hu="/provider/scope/related",Gu="/provider/scope/read",Wu="/provider/scope/acts",It="auth";function Mt(e){const t=typeof e=="string"?e.match(/apps\/([^/?#]+)/):null;return t?t[1]:null}function ju(e){const t=Mt(e);return t?t!==It:typeof e=="string"&&e.startsWith("/wake")}function Vu(e){return typeof e!="string"||e===""||e==="/"?!0:Mt(e)===It}function Yu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Oo(e){const n=e.split("/").filter(Boolean).map(r=>r.startsWith(":")?r.endsWith("?")?"(?:/[^/]+)?":"/[^/]+":`/${Yu(r)}`).join("");return new RegExp(`^${n}\\/?$`)}function ko(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean),o={};return n.forEach((i,s)=>{if(i.startsWith(":")){const a=i.endsWith("?")?i.slice(1,-1):i.slice(1),u=r[s];u&&(o[a]=u)}}),o}function Co(e){return e.publicBasePath??`/apps/${e.name}`}function zu(e){const t=[];for(const n of e){if(!n?.name)continue;const r=Co(n);for(const o of n.routes??[]){if(!o.public)continue;const i=o.path==="/"?"":o.path;t.push({appName:n.name,resource:o.resource,pattern:`${r}${i}`,props:o.props})}}return t}function No(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean);for(let o=0;o<Math.min(n.length,r.length);o++){const i=n[o].startsWith(":"),s=r[o].startsWith(":");if(i!==s)return s}return n.length>r.length}function wo(e,t){if(typeof e!="string")return null;let n=null;for(const r of t)Oo(r.pattern).test(e)&&(!n||No(r.pattern,n.pattern))&&(n=r);return n?{...n,params:{...n.props,...ko(n.pattern,e)}}:null}function Xu(e,t){return wo(e,t)!==null}const qu=10*1024*1024,Qu=25*1024*1024,Ju="sync-target",Zu=20;function tt(e,t){const n=Array.isArray(t)?t.find(r=>r.name===e.name)?.policy:void 0;return n?n!=="read":e.access?e.access!=="read":!0}function ed(e){return e.produces==="draft"}function td(e,t){if(t.allowed){const n=t.personalTools==="allow"&&e.personal===!0;if(!t.allowed.has(e.name)&&!n)return"hidden"}return t.narrow&&!t.narrow.has(e.name)||!t.attended&&(e.personal===!0||e.surface==="interactive")||t.readOnly&&e.access!=="read"||t.mode==="ask"&&tt(e)||t.mode==="draft"&&(Eo(e)||e.access!=="read"&&!ed(e))?"hidden":tt(e,t.policy)&&t.gate?"held":"free"}const nd={afrikaans:["[Muziek]","(C) TV GELDERLAND 2021","*Thomp thomp thomp*","www.youtube.com","ä n wood s","!.."],english:["[applause]","[APPLAUSE]","(claps)","(clapping)","(audience applauds)","(keyboard clicking)","(keyboard clacking)","(clicking)","[CLICK]","[BLANK_AUDIO]","(upbeat music)","(dramatic music)","[music playing]","(electronic music)","(audience cheering)","(audience cheers)","[MUSIC]","( ( ( ( ) ( ) ( ) ( )","(laughs)","(air whooshing)","<u>Transcribed</u> by https://otter.ai","All new tonight at 6... coming up. A new look at your forecast is A new look at your forecast is","www.mooji.org","KATHRYN A new forecast is coming up... A new forecast is coming up...","KATHRYN pandemic started. increasing since the The pandemic has been","A new look at your forecast this morning... A new look at your","We'll be right back.","We'll see you next week.","Thanks for watching!","❤️ Translated by Amara.org Communit"],flemish:["*clap*","TV GELDERLAND 2020","TV Gelderland 2021","(C) TV GELDERLAND 2021","[Muziek]","Kuman","Ondertitels ingediend door de Amara.org gemeenschap","Ondertiteld door de Amara.org gemeenschap","Dank u wel voor het kijken.","Ondertiteling door de Amara.org gemeenschap","GELUID VAN MAHIH U similarly"],french:["(applaudissements)","[Applaudissements]","Sous-titres réalisés par la communauté d'Amara.org","- Bonne journée. - Bonjour.","POP POP הי","Merci d'avoir regardé cette vidéo.","Merci d'avoir regardé cette vidéo!","Merci d'avoir regardé la vidéo.","J'espère que vous avez apprécié la vidéo.","Je vous remercie de vous abonner","Merci d'avoir regardé!","❤️ par SousTitreur.com","— Sous-titrage ST'501 —","Thanks for watching!","Sous-titres réalisés par l'Amara.org","Sous-titres réalisés para la communauté d'Amara.org","Sous-titres réalisés par la communauté d'Amara.org","Sous-titres fait par Sous-titres par Amara.org","Sous-titres réalisés par les SousTitres d'Amara.org","Sous-titres par Amara.org","Sous-titres par la communauté d'Amara.org","Sous-titres réalisés pour la communauté d'Amara.org","Sous-titres réalisés par la communauté de l'Amara.org","Sous-Titres faits par la communauté d'Amara.org","Sous-titres par l'Amara.org","Sous-titres fait par la communauté d'Amara.org","Sous-titrage ST' 501","Sous-titrage ST'501","Cliquez-vous sur les sous-titres et abonnez-vous à la chaîne d'Amara.org","❤️ par SousTitreur.com"],german:["[Klicken]","(Jubel)","*lacht*","[Anhaltender Beifall]","[Applaus]","(Applaus)","* Applaus *","[MUSIK]","* mustard ml Drumglöck und knack in einem Handbewerb *","Untertitelung aufgrund der Amara.org-Community","Untertitel im Auftrag des ZDF für funk, 2017","Untertitel von Stephanie Geiges","Untertitel der Amara.org-Community","Untertitel im Auftrag des ZDF, 2017","Untertitel im Auftrag des ZDF, 2020","Untertitel im Auftrag des ZDF, 2018","Untertitel im Auftrag des ZDF, 2021","Untertitelung im Auftrag des ZDF, 2021","Copyright WDR 2021","Copyright WDR 2020","Copyright WDR 2019","SWR 2021","SWR 2020"],italian:["Alla prossima!","*applauso*","[Musica]","[Musica]","[Applausi]","*Bip bip bip bip*","(musica del NS shore)","D' 1962 alle tribunte del Gulf","Sottotitoli creati dalla comunità Amara.org","Sottotitoli di Sottotitoli di Amara.org","Sottotitoli e revisione al canale di Amara.org","Sottotitoli e revisione a cura di Amara.org","Sottotitoli e revisione a cura di QTSS","Sottotitoli e revisione a cura di QTSS.","Sottotitoli a cura di QTSS","Sottotitoli a cura di Sottotitoli"],spanish:["[música]","[Música de cierre]","[Aplausos]","(Aplausos)","www.alimmenta.com","¡Gracias por ver el vídeo!","(sonidos del celular) (Inudible distorsión)","¡Suscríbete!","Subtítulos realizados por la comunidad de Amara.org","Subtitulado por la comunidad de Amara.org","Subtítulos por la comunidad de Amara.org","Subtítulos creados por la comunidad de Amara.org","Subtítulos en español de Amara.org","Subtítulos hechos por la comunidad de Amara.org","Subtitulos por la comunidad de Amara.org","Más información www.alimmenta.com","www.mooji.org","[MÚSICA]","[Music cuts in British]"]},vo=e=>{let t=e;return Object.values(nd).forEach(n=>{n.forEach(r=>{t=t.replaceAll(r,"")})}),t=t.replace(/\(.*?\)/g,""),t=t.replace(/\[.*?\]/g,""),t},Ro=6e4,Do=8e3,xo=2,Lo=.4,rd=3,od=new Set(["aan","als","ben","bent","bij","dan","dat","deze","die","dit","doen","door","dus","echt","een","eens","even","gaan","gaat","geen","geweest","goed","graag","had","heb","hebben","hebt","heeft","het","hier","hoe","hoor","iets","inderdaad","kan","klopt","kunnen","kunt","maar","mag","mee","meer","met","mij","mijn","misschien","moet","moeten","naar","net","niet","nog","nou","oke","ook","over","prima","toch","uhm","uit","van","veel","voor","wat","weer","weet","wel","wij","wil","wilt","worden","wordt","zeg","zeggen","zijn","zou","zult","about","and","are","been","but","can","does","for","have","just","know","like","not","okay","right","she","that","the","them","then","there","they","this","want","was","well","were","what","will","with","would","yeah","you","your"]);function Po(e){const t=new Set;for(const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))n.length<rd||od.has(n)||t.add(n);return[...t]}function $o(e,t){if(!e.length)return 0;if(!t.length)return 1;const n=new Set(t),r=new Set(e);let o=0;for(const i of r)n.has(i)||(o+=1);return o/r.size}function Uo(e,t=Ro){const n=e.filter(s=>!s.partial&&typeof s.text=="string");if(!n.length)return{text:"",segmentCount:0};const o=n.reduce((s,a)=>Math.max(s,a.endedAt??0),0)-t;return{text:n.filter(s=>(s.endedAt??0)>=o).map(s=>vo(s.text).trim()).filter(Boolean).join(" ").replace(/\s+/g," ").trim(),segmentCount:n.length}}const Ko=60;function id(e,t,n=Ko){const r=new Set(e),o=[...e];for(const i of t)!i||r.has(i)||(r.add(i),o.push(i));return o.slice(-n)}function sd(e){const{segments:t,now:n,state:r}=e;if(r.lastTriggerAt&&n-r.lastTriggerAt<Do)return{trigger:!1,reason:"too_soon"};const o=Uo(t,e.windowMs);if(!o.text)return{trigger:!1,reason:"no_speech"};const i=o.segmentCount-(r.lastSegmentCount??0);if(r.lastQueryTerms&&i<xo)return{trigger:!1,reason:"too_few_new"};const s=Po(o.text);return s.length?r.lastQueryTerms?.length&&$o(s,r.lastQueryTerms)<Lo?{trigger:!1,reason:"same_topic"}:{trigger:!0,text:o.text,terms:s,segmentCount:o.segmentCount}:{trigger:!1,reason:"no_speech"}}const ad=["personal","organization","connections","flows","work","administration","ai"],cd="navNotice",Pe={NL:{callingCode:"31",trunkPrefix:"0",nsnMin:7,nsnMax:9},BE:{callingCode:"32",trunkPrefix:"0",nsnMin:8,nsnMax:9},LU:{callingCode:"352",nsnMin:6,nsnMax:9},DE:{callingCode:"49",trunkPrefix:"0",nsnMin:6,nsnMax:13},FR:{callingCode:"33",trunkPrefix:"0",nsnMin:9,nsnMax:9},GB:{callingCode:"44",trunkPrefix:"0",nsnMin:9,nsnMax:10},IE:{callingCode:"353",trunkPrefix:"0",nsnMin:7,nsnMax:9},ES:{callingCode:"34",nsnMin:9,nsnMax:9},PT:{callingCode:"351",nsnMin:9,nsnMax:9},IT:{callingCode:"39",nsnMin:6,nsnMax:11},AT:{callingCode:"43",trunkPrefix:"0",nsnMin:7,nsnMax:13},CH:{callingCode:"41",trunkPrefix:"0",nsnMin:9,nsnMax:9},DK:{callingCode:"45",nsnMin:8,nsnMax:8},SE:{callingCode:"46",trunkPrefix:"0",nsnMin:7,nsnMax:13},NO:{callingCode:"47",nsnMin:8,nsnMax:8},FI:{callingCode:"358",trunkPrefix:"0",nsnMin:5,nsnMax:12},PL:{callingCode:"48",nsnMin:9,nsnMax:9},US:{callingCode:"1",nsnMin:10,nsnMax:10},CA:{callingCode:"1",nsnMin:10,nsnMax:10}},Fo="NL",ld=15,ud=8,dd=Array.from(new Set(Object.values(Pe).map(e=>e.callingCode))).sort((e,t)=>t.length-e.length);function Xt(e){if(e)return Pe[e.trim().toUpperCase()]}function ue(e,t){return e.length>=t.nsnMin&&e.length<=t.nsnMax}function qt(e){if(e.length>ld)return null;for(const t of dd){if(!e.startsWith(t))continue;const n=e.slice(t.length);for(const r of Object.values(Pe)){if(r.callingCode!==t)continue;const o=r.trunkPrefix,i=o&&n.startsWith(o)?n.slice(o.length):n;if(ue(i,r))return`+${t}${i}`}return null}return e.length<ud?null:`+${e}`}function pd(e){let t=e.trim();const n=t.match(/^(sips?|tel|whatsapp):/i);n&&(t=t.slice(n[0].length));const r=t.indexOf("@");return r>=0&&(t=t.slice(0,r)),t.trim()}function fd(e){if(!e)return!1;const t=e.indexOf("@");if(t<=0)return!1;const n=e.slice(0,t).trim();return!/^[+\d\s().-]+$/.test(n)}function nt(e,t){if(!e)return null;const n=pd(e);if(!n)return null;const r=n.startsWith("+"),o=n.replace(/\D/g,"");if(!o)return null;if(r)return qt(o);if(o.startsWith("00"))return qt(o.slice(2));const i=Xt(t)??Xt(Fo);if(!i)return null;const s=i.trunkPrefix;if(s&&o.startsWith(s)){const a=o.slice(s.length);return ue(a,i)?`+${i.callingCode}${a}`:null}if(o.startsWith(i.callingCode)){const a=o.slice(i.callingCode.length);if(ue(a,i))return`+${i.callingCode}${a}`}return!s&&ue(o,i)?`+${i.callingCode}${o}`:null}function md(e,t=9){const n=(e??"").replace(/\D/g,"");return n.length<t?null:n.slice(-t)}function Ot(e){if(!e)return null;const t=e.trim().toLowerCase(),n=t.lastIndexOf("@");if(n<=0||n===t.length-1)return null;const r=t.slice(0,n).split("+")[0],o=t.slice(n+1);return!r||!o.includes(".")?null:`${r}@${o}`}function gd(e){const t=Ot(e);return t?t.slice(t.lastIndexOf("@")+1):null}const hd=new Set(["co.uk","org.uk","gov.uk","ac.uk","com.au","co.nz","com.br","co.za"]);function Bo(e){if(!e)return null;const t=e.trim().toLowerCase().replace(/\.$/,"").split(".").filter(Boolean);if(t.length<2)return null;const n=t.slice(-2).join(".");return hd.has(n)&&t.length>=3?t.slice(-3).join("."):n}const Ho=new Set(["gmail.com","googlemail.com","outlook.com","hotmail.com","hotmail.nl","hotmail.be","hotmail.co.uk","live.com","live.nl","live.be","msn.com","yahoo.com","yahoo.co.uk","ymail.com","icloud.com","me.com","mac.com","aol.com","gmx.net","gmx.de","web.de","protonmail.com","proton.me","pm.me","tutanota.com","zoho.com","mail.com","ziggo.nl","kpnmail.nl","planet.nl","home.nl","casema.nl","chello.nl","xs4all.nl","telfort.nl","hetnet.nl","zonnet.nl","upcmail.nl","quicknet.nl","telenet.be","skynet.be","proximus.be","scarlet.be"]);function yd(e){const t=Bo(e);return t?Ho.has(t):!1}function Ed(e){if(!e)return!1;const t=e.trim().toLowerCase();return t==="tel"||t==="sms"||t==="whatsapp"||t==="fax"}function _d(e,t,n){if(!e||!t)return null;const r=e.trim().toLowerCase();if(r==="tel"||r==="sms"||r==="whatsapp"){const i=nt(t,n);return i?`tel:${i}`:null}if(r==="fax"){const i=nt(t,n);return i?`fax:${i}`:null}if(r==="mailto"||r==="email"){const i=Ot(t);return i?`mailto:${i}`:null}const o=t.trim().toLowerCase();return o?`${r}:${o}`:null}const Ad=[/<blockquote/i,/class="?gmail_quote/i,/id="?[^"]*divRplyFwdMsg/i,/id="?[^"]*mail-editor-reference-message-container/i,/-{3,}\s*Original Message\s*-{3,}/i,/\n_{5,}\s*\n/,/\bOn\b[\s\S]{0,200}?\bwrote:/i],Qt=/^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i,Sd=/^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;function bd(e){const t=e.split(`
|
|
25
|
-
`);for(let n=0;n<t.length;n++)if(
|
|
26
|
-
`).trim();return e}const
|
|
24
|
+
`).trim()}const Mu="documents.describe",Ou="documents.inspect",ku="documents.apply";function Cu(e){const t=e.indexOf(":");if(t!==-1)return e.slice(0,t);const n=e.indexOf(".");return n===-1?e:e.slice(0,n)}const Nu="installation-id";function wu(e){const t=[];for(const n of Object.keys(e))for(const r of Object.keys(e[n]))t.push({lang:n,key:r,value:e[n][r]});return t}const vu="notification-source",Ru=(e,t)=>`${e}.pref.${t}`,Du={ai:["account.read","account.write","agent.read","agent.write","assignment.read","assignment.write","budget.read","budget.write","connector.read","connector.write","context.read","context.write","conversation.read","conversation.write","lens.read","lens.write","message.read","message.write","playbook.read","playbook.write","profile.read","profile.write","run.read","run.write","settings.read","settings.write","tool.read","transcript.write","usage.read"],analytics:["report.read"],"app-store":["app.publish","app.read","app.write","setting.read","setting.write"],assist:["board.read"],automations:["sync.read","sync.write","webhook.read","webhook.write"],communication:["account.read","account.write","activity-type.read","activity.read","activity.write","attachment.read","attribute.read","attribute.write","calendar.read","calendar.write","channel.read","channel.write","custom-field.read","custom-field.write","folder.read","folder.write","inbox.read","inbox.write","interaction.read","interaction.write","reaction.read","reaction.write","reminder.read","template.read","template.write","topic.read","topic.write"],context:["kind.read","kind.write","memory.read","memory.write"],crm:["company.read","company.write","contact.read","contact.write"],"eylo-voip":["account.read","account.write","callflow.read","callflow.write","channel.read","channel.write","contact.read","contact.write","device.read","device.write","group.read","group.write","interaction.read","interaction.write","media.read","media.write","menu.read","menu.write","phone-number.read","phone-number.write","recording.read","recording.write","sip.read","temporal-rule.read","temporal-rule.write","user.read","user.write","vmbox.read","vmbox.write","webhook.read","webhook.write"],google:["account.read","account.write","contact.read"],kb:["article.read","article.write","category.read","category.write","help-center.read","help-center.write","kb.read","kb.write"],mail:["account.write"],meta:["account.read","account.write"],microsoft:["account.read","account.write","contact.read","sync.write"],organization:["billing.read","billing.write","settings.read","settings.write","team.read","team.write"],shopify:["account.read","account.write","order.read"],slack:["thread.read","thread.write"],storage:["artifact.read","artifact.write","file.read","file.write","mount.read","mount.write"],time:["entry.read","entry.write","work-type.read","work-type.write"],user:["user.read","user.write"],work:["item.read","item.write","project.read","project.write"]},Tt=9e4,Io=["out_of_office"],Mo=e=>Io.includes(e);function xu(e,t,n){const r=n-e<Tt,o=t?.status&&(!t.expiresAt||t.expiresAt>n)?t:void 0;if(!o?.status)return{online:r,status:r?"available":"offline"};const i=o.status;return!r&&!Mo(i)?{online:!1,status:"offline"}:{online:r,status:i,message:o.message}}function Lu(e,t){const n=t-e.lastSeenAt<Tt,r=n||Mo(e.status)?e.status:"offline";return n===e.online&&r===e.status?e:{...e,online:n,status:r}}function Pu(e,t){return e?.teamId&&t.includes(e.teamId)?{teamId:e.teamId,mustChoose:!1}:t.length===1?{teamId:t[0],mustChoose:!1}:{teamId:void 0,mustChoose:t.length>1}}function $u(e){return e.providerAvailable&&e.allowed}const Uu="resources.describe",Ku="resources.search",Fu="resources.resolve",Bu="resources.attached";function Hu(e){const t=e.indexOf(":");return t===-1?e:e.slice(0,t)}const Gu="/provider/scope/related",Wu="/provider/scope/read",ju="/provider/scope/acts",It="auth";function Mt(e){const t=typeof e=="string"?e.match(/apps\/([^/?#]+)/):null;return t?t[1]:null}function Vu(e){const t=Mt(e);return t?t!==It:typeof e=="string"&&e.startsWith("/wake")}function Yu(e){return typeof e!="string"||e===""||e==="/"?!0:Mt(e)===It}function zu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Oo(e){const n=e.split("/").filter(Boolean).map(r=>r.startsWith(":")?r.endsWith("?")?"(?:/[^/]+)?":"/[^/]+":`/${zu(r)}`).join("");return new RegExp(`^${n}\\/?$`)}function ko(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean),o={};return n.forEach((i,s)=>{if(i.startsWith(":")){const a=i.endsWith("?")?i.slice(1,-1):i.slice(1),u=r[s];u&&(o[a]=u)}}),o}function Co(e){return e.publicBasePath??`/apps/${e.name}`}function Xu(e){const t=[];for(const n of e){if(!n?.name)continue;const r=Co(n);for(const o of n.routes??[]){if(!o.public)continue;const i=o.path==="/"?"":o.path;t.push({appName:n.name,resource:o.resource,pattern:`${r}${i}`,props:o.props})}}return t}function No(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean);for(let o=0;o<Math.min(n.length,r.length);o++){const i=n[o].startsWith(":"),s=r[o].startsWith(":");if(i!==s)return s}return n.length>r.length}function wo(e,t){if(typeof e!="string")return null;let n=null;for(const r of t)Oo(r.pattern).test(e)&&(!n||No(r.pattern,n.pattern))&&(n=r);return n?{...n,params:{...n.props,...ko(n.pattern,e)}}:null}function qu(e,t){return wo(e,t)!==null}const Qu=10*1024*1024,Ju=25*1024*1024,Zu="sync-target",ed=20;function tt(e,t){const n=Array.isArray(t)?t.find(r=>r.name===e.name)?.policy:void 0;return n?n!=="read":e.access?e.access!=="read":!0}function td(e){return e.produces==="draft"}function nd(e,t){if(t.allowed){const n=t.personalTools==="allow"&&e.personal===!0;if(!t.allowed.has(e.name)&&!n)return"hidden"}return t.narrow&&!t.narrow.has(e.name)||!t.attended&&(e.personal===!0||e.surface==="interactive")||t.readOnly&&e.access!=="read"||t.mode==="ask"&&tt(e)||t.mode==="draft"&&(Eo(e)||e.access!=="read"&&!td(e))?"hidden":tt(e,t.policy)&&t.gate?"held":"free"}const rd={afrikaans:["[Muziek]","(C) TV GELDERLAND 2021","*Thomp thomp thomp*","www.youtube.com","ä n wood s","!.."],english:["[applause]","[APPLAUSE]","(claps)","(clapping)","(audience applauds)","(keyboard clicking)","(keyboard clacking)","(clicking)","[CLICK]","[BLANK_AUDIO]","(upbeat music)","(dramatic music)","[music playing]","(electronic music)","(audience cheering)","(audience cheers)","[MUSIC]","( ( ( ( ) ( ) ( ) ( )","(laughs)","(air whooshing)","<u>Transcribed</u> by https://otter.ai","All new tonight at 6... coming up. A new look at your forecast is A new look at your forecast is","www.mooji.org","KATHRYN A new forecast is coming up... A new forecast is coming up...","KATHRYN pandemic started. increasing since the The pandemic has been","A new look at your forecast this morning... A new look at your","We'll be right back.","We'll see you next week.","Thanks for watching!","❤️ Translated by Amara.org Communit"],flemish:["*clap*","TV GELDERLAND 2020","TV Gelderland 2021","(C) TV GELDERLAND 2021","[Muziek]","Kuman","Ondertitels ingediend door de Amara.org gemeenschap","Ondertiteld door de Amara.org gemeenschap","Dank u wel voor het kijken.","Ondertiteling door de Amara.org gemeenschap","GELUID VAN MAHIH U similarly"],french:["(applaudissements)","[Applaudissements]","Sous-titres réalisés par la communauté d'Amara.org","- Bonne journée. - Bonjour.","POP POP הי","Merci d'avoir regardé cette vidéo.","Merci d'avoir regardé cette vidéo!","Merci d'avoir regardé la vidéo.","J'espère que vous avez apprécié la vidéo.","Je vous remercie de vous abonner","Merci d'avoir regardé!","❤️ par SousTitreur.com","— Sous-titrage ST'501 —","Thanks for watching!","Sous-titres réalisés par l'Amara.org","Sous-titres réalisés para la communauté d'Amara.org","Sous-titres réalisés par la communauté d'Amara.org","Sous-titres fait par Sous-titres par Amara.org","Sous-titres réalisés par les SousTitres d'Amara.org","Sous-titres par Amara.org","Sous-titres par la communauté d'Amara.org","Sous-titres réalisés pour la communauté d'Amara.org","Sous-titres réalisés par la communauté de l'Amara.org","Sous-Titres faits par la communauté d'Amara.org","Sous-titres par l'Amara.org","Sous-titres fait par la communauté d'Amara.org","Sous-titrage ST' 501","Sous-titrage ST'501","Cliquez-vous sur les sous-titres et abonnez-vous à la chaîne d'Amara.org","❤️ par SousTitreur.com"],german:["[Klicken]","(Jubel)","*lacht*","[Anhaltender Beifall]","[Applaus]","(Applaus)","* Applaus *","[MUSIK]","* mustard ml Drumglöck und knack in einem Handbewerb *","Untertitelung aufgrund der Amara.org-Community","Untertitel im Auftrag des ZDF für funk, 2017","Untertitel von Stephanie Geiges","Untertitel der Amara.org-Community","Untertitel im Auftrag des ZDF, 2017","Untertitel im Auftrag des ZDF, 2020","Untertitel im Auftrag des ZDF, 2018","Untertitel im Auftrag des ZDF, 2021","Untertitelung im Auftrag des ZDF, 2021","Copyright WDR 2021","Copyright WDR 2020","Copyright WDR 2019","SWR 2021","SWR 2020"],italian:["Alla prossima!","*applauso*","[Musica]","[Musica]","[Applausi]","*Bip bip bip bip*","(musica del NS shore)","D' 1962 alle tribunte del Gulf","Sottotitoli creati dalla comunità Amara.org","Sottotitoli di Sottotitoli di Amara.org","Sottotitoli e revisione al canale di Amara.org","Sottotitoli e revisione a cura di Amara.org","Sottotitoli e revisione a cura di QTSS","Sottotitoli e revisione a cura di QTSS.","Sottotitoli a cura di QTSS","Sottotitoli a cura di Sottotitoli"],spanish:["[música]","[Música de cierre]","[Aplausos]","(Aplausos)","www.alimmenta.com","¡Gracias por ver el vídeo!","(sonidos del celular) (Inudible distorsión)","¡Suscríbete!","Subtítulos realizados por la comunidad de Amara.org","Subtitulado por la comunidad de Amara.org","Subtítulos por la comunidad de Amara.org","Subtítulos creados por la comunidad de Amara.org","Subtítulos en español de Amara.org","Subtítulos hechos por la comunidad de Amara.org","Subtitulos por la comunidad de Amara.org","Más información www.alimmenta.com","www.mooji.org","[MÚSICA]","[Music cuts in British]"]},vo=e=>{let t=e;return Object.values(rd).forEach(n=>{n.forEach(r=>{t=t.replaceAll(r,"")})}),t=t.replace(/\(.*?\)/g,""),t=t.replace(/\[.*?\]/g,""),t},Ro=6e4,Do=8e3,xo=2,Lo=.4,od=3,id=new Set(["aan","als","ben","bent","bij","dan","dat","deze","die","dit","doen","door","dus","echt","een","eens","even","gaan","gaat","geen","geweest","goed","graag","had","heb","hebben","hebt","heeft","het","hier","hoe","hoor","iets","inderdaad","kan","klopt","kunnen","kunt","maar","mag","mee","meer","met","mij","mijn","misschien","moet","moeten","naar","net","niet","nog","nou","oke","ook","over","prima","toch","uhm","uit","van","veel","voor","wat","weer","weet","wel","wij","wil","wilt","worden","wordt","zeg","zeggen","zijn","zou","zult","about","and","are","been","but","can","does","for","have","just","know","like","not","okay","right","she","that","the","them","then","there","they","this","want","was","well","were","what","will","with","would","yeah","you","your"]);function Po(e){const t=new Set;for(const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))n.length<od||id.has(n)||t.add(n);return[...t]}function $o(e,t){if(!e.length)return 0;if(!t.length)return 1;const n=new Set(t),r=new Set(e);let o=0;for(const i of r)n.has(i)||(o+=1);return o/r.size}function Uo(e,t=Ro){const n=e.filter(s=>!s.partial&&typeof s.text=="string");if(!n.length)return{text:"",segmentCount:0};const o=n.reduce((s,a)=>Math.max(s,a.endedAt??0),0)-t;return{text:n.filter(s=>(s.endedAt??0)>=o).map(s=>vo(s.text).trim()).filter(Boolean).join(" ").replace(/\s+/g," ").trim(),segmentCount:n.length}}const Ko=60;function sd(e,t,n=Ko){const r=new Set(e),o=[...e];for(const i of t)!i||r.has(i)||(r.add(i),o.push(i));return o.slice(-n)}function ad(e){const{segments:t,now:n,state:r}=e;if(r.lastTriggerAt&&n-r.lastTriggerAt<Do)return{trigger:!1,reason:"too_soon"};const o=Uo(t,e.windowMs);if(!o.text)return{trigger:!1,reason:"no_speech"};const i=o.segmentCount-(r.lastSegmentCount??0);if(r.lastQueryTerms&&i<xo)return{trigger:!1,reason:"too_few_new"};const s=Po(o.text);return s.length?r.lastQueryTerms?.length&&$o(s,r.lastQueryTerms)<Lo?{trigger:!1,reason:"same_topic"}:{trigger:!0,text:o.text,terms:s,segmentCount:o.segmentCount}:{trigger:!1,reason:"no_speech"}}const cd=["personal","organization","connections","flows","work","administration","ai"],ld="navNotice",Pe={NL:{callingCode:"31",trunkPrefix:"0",nsnMin:7,nsnMax:9},BE:{callingCode:"32",trunkPrefix:"0",nsnMin:8,nsnMax:9},LU:{callingCode:"352",nsnMin:6,nsnMax:9},DE:{callingCode:"49",trunkPrefix:"0",nsnMin:6,nsnMax:13},FR:{callingCode:"33",trunkPrefix:"0",nsnMin:9,nsnMax:9},GB:{callingCode:"44",trunkPrefix:"0",nsnMin:9,nsnMax:10},IE:{callingCode:"353",trunkPrefix:"0",nsnMin:7,nsnMax:9},ES:{callingCode:"34",nsnMin:9,nsnMax:9},PT:{callingCode:"351",nsnMin:9,nsnMax:9},IT:{callingCode:"39",nsnMin:6,nsnMax:11},AT:{callingCode:"43",trunkPrefix:"0",nsnMin:7,nsnMax:13},CH:{callingCode:"41",trunkPrefix:"0",nsnMin:9,nsnMax:9},DK:{callingCode:"45",nsnMin:8,nsnMax:8},SE:{callingCode:"46",trunkPrefix:"0",nsnMin:7,nsnMax:13},NO:{callingCode:"47",nsnMin:8,nsnMax:8},FI:{callingCode:"358",trunkPrefix:"0",nsnMin:5,nsnMax:12},PL:{callingCode:"48",nsnMin:9,nsnMax:9},US:{callingCode:"1",nsnMin:10,nsnMax:10},CA:{callingCode:"1",nsnMin:10,nsnMax:10}},Fo="NL",ud=15,dd=8,pd=Array.from(new Set(Object.values(Pe).map(e=>e.callingCode))).sort((e,t)=>t.length-e.length);function Xt(e){if(e)return Pe[e.trim().toUpperCase()]}function ue(e,t){return e.length>=t.nsnMin&&e.length<=t.nsnMax}function qt(e){if(e.length>ud)return null;for(const t of pd){if(!e.startsWith(t))continue;const n=e.slice(t.length);for(const r of Object.values(Pe)){if(r.callingCode!==t)continue;const o=r.trunkPrefix,i=o&&n.startsWith(o)?n.slice(o.length):n;if(ue(i,r))return`+${t}${i}`}return null}return e.length<dd?null:`+${e}`}function fd(e){let t=e.trim();const n=t.match(/^(sips?|tel|whatsapp):/i);n&&(t=t.slice(n[0].length));const r=t.indexOf("@");return r>=0&&(t=t.slice(0,r)),t.trim()}function md(e){if(!e)return!1;const t=e.indexOf("@");if(t<=0)return!1;const n=e.slice(0,t).trim();return!/^[+\d\s().-]+$/.test(n)}function nt(e,t){if(!e)return null;const n=fd(e);if(!n)return null;const r=n.startsWith("+"),o=n.replace(/\D/g,"");if(!o)return null;if(r)return qt(o);if(o.startsWith("00"))return qt(o.slice(2));const i=Xt(t)??Xt(Fo);if(!i)return null;const s=i.trunkPrefix;if(s&&o.startsWith(s)){const a=o.slice(s.length);return ue(a,i)?`+${i.callingCode}${a}`:null}if(o.startsWith(i.callingCode)){const a=o.slice(i.callingCode.length);if(ue(a,i))return`+${i.callingCode}${a}`}return!s&&ue(o,i)?`+${i.callingCode}${o}`:null}function gd(e,t=9){const n=(e??"").replace(/\D/g,"");return n.length<t?null:n.slice(-t)}function Ot(e){if(!e)return null;const t=e.trim().toLowerCase(),n=t.lastIndexOf("@");if(n<=0||n===t.length-1)return null;const r=t.slice(0,n).split("+")[0],o=t.slice(n+1);return!r||!o.includes(".")?null:`${r}@${o}`}function hd(e){const t=Ot(e);return t?t.slice(t.lastIndexOf("@")+1):null}const yd=new Set(["co.uk","org.uk","gov.uk","ac.uk","com.au","co.nz","com.br","co.za"]);function Bo(e){if(!e)return null;const t=e.trim().toLowerCase().replace(/\.$/,"").split(".").filter(Boolean);if(t.length<2)return null;const n=t.slice(-2).join(".");return yd.has(n)&&t.length>=3?t.slice(-3).join("."):n}const Ho=new Set(["gmail.com","googlemail.com","outlook.com","hotmail.com","hotmail.nl","hotmail.be","hotmail.co.uk","live.com","live.nl","live.be","msn.com","yahoo.com","yahoo.co.uk","ymail.com","icloud.com","me.com","mac.com","aol.com","gmx.net","gmx.de","web.de","protonmail.com","proton.me","pm.me","tutanota.com","zoho.com","mail.com","ziggo.nl","kpnmail.nl","planet.nl","home.nl","casema.nl","chello.nl","xs4all.nl","telfort.nl","hetnet.nl","zonnet.nl","upcmail.nl","quicknet.nl","telenet.be","skynet.be","proximus.be","scarlet.be"]);function Ed(e){const t=Bo(e);return t?Ho.has(t):!1}function _d(e){if(!e)return!1;const t=e.trim().toLowerCase();return t==="tel"||t==="sms"||t==="whatsapp"||t==="fax"}function Ad(e,t,n){if(!e||!t)return null;const r=e.trim().toLowerCase();if(r==="tel"||r==="sms"||r==="whatsapp"){const i=nt(t,n);return i?`tel:${i}`:null}if(r==="fax"){const i=nt(t,n);return i?`fax:${i}`:null}if(r==="mailto"||r==="email"){const i=Ot(t);return i?`mailto:${i}`:null}const o=t.trim().toLowerCase();return o?`${r}:${o}`:null}const Sd=[/<blockquote/i,/class="?gmail_quote/i,/id="?[^"]*divRplyFwdMsg/i,/id="?[^"]*mail-editor-reference-message-container/i,/-{3,}\s*Original Message\s*-{3,}/i,/\n_{5,}\s*\n/,/\bOn\b[\s\S]{0,200}?\bwrote:/i],Qt=/^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i,bd=/^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;function Td(e){const t=e.split(`
|
|
25
|
+
`);for(let n=0;n<t.length;n++)if(bd.test(t[n])||Qt.test(t[n])&&t.slice(n+1,n+4).some(r=>Qt.test(r)))return t.slice(0,n).join(`
|
|
26
|
+
`).trim();return e}const Id=/^(?:https?:|mailto:|tel:)/i,Md=/^(?:https?:|cid:|data:image\/)/i;function He(e,t){const n=e.match(new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s">]+))`,"i"));return(n?.[1]??n?.[2]??n?.[3]??"").trim()}const Od=/(!\[[^\]]*\]\([^)]*\))/;function Jt(e){return e.replace(/\s+/g," ").trim().split(Od).map((t,n)=>n%2===1?t:t.replace(/[[\]]/g,"\\$&")).join("")}function Ge(e){return e.replace(/[()\s<>"]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`)}function kd(e){return e.replace(/<img\b([^>]*?)\/?>/gi,(n,r)=>{const o=He(r,"src");return Md.test(o)?`})`:""}).replace(/<a\b([^>]*)>([\s\S]*?)<\/a\s*>/gi,(n,r,o)=>{const i=Jt(o.replace(/<[^>]*>/g,"")),s=He(r,"href");return Id.test(s)?`[${i||Ge(s)}](${Ge(s)})`:i})}const Cd=/<table\b[^>]*>((?:(?!<table\b)[\s\S])*?)<\/table\s*>/i,Nd=/<tr\b[^>]*>([\s\S]*?)<\/tr\s*>/gi,wd=/<(t[dh])\b([^>]*)>([\s\S]*?)<\/\1\s*>/gi;function vd(e,t){return/<table\b/i.test(e)||e.includes(`
|
|
27
27
|
|
|
28
|
-
|`)||t.includes("![")||t.length>200}const
|
|
28
|
+
|`)||t.includes("![")||t.length>200}const Rd=40,Dd={left:"---",center:":---:",right:"---:"};function xd(e){const t=e.match(/align\s*[=:]\s*["']?\s*(right|center)/i);return t?t[1].toLowerCase():"left"}function Ld(e){return e.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim().replace(/\|/g,"\\|")}function Pd(e){const t=[];for(const s of e.matchAll(Nd)){const a=[];for(const u of s[1].matchAll(wd)){const l=Ld(u[3]);if(vd(u[3],l))return null;a.push({text:l,align:xd(u[2])})}if(a.length===0)return null;a.some(u=>u.text!=="")&&t.push(a)}const n=t[0]?.length??0;if(t.length<2||n<2||t.some(s=>s.length!==n))return null;const r=s=>`| ${s.map(a=>a.text).join(" | ")} |`,o=t[1].map(s=>Dd[s.align]).join(" | "),i=t.slice(1).map(r).join(`
|
|
29
29
|
`);return`
|
|
30
30
|
|
|
31
31
|
${r(t[0])}
|
|
32
32
|
| ${o} |
|
|
33
33
|
${i}
|
|
34
34
|
|
|
35
|
-
`}function
|
|
36
|
-
`).replace(/<(?:tbody|thead|tfoot|caption|colgroup|col|tr|t[dh])\b[^>]*>/gi,"").replace(/<\/(?:tbody|thead|tfoot|caption|colgroup)\s*>/gi,"")}function
|
|
35
|
+
`}function $d(e){return e.replace(/<\/(t[dh])\s*>/gi," ").replace(/<\/tr\s*>/gi,`
|
|
36
|
+
`).replace(/<(?:tbody|thead|tfoot|caption|colgroup|col|tr|t[dh])\b[^>]*>/gi,"").replace(/<\/(?:tbody|thead|tfoot|caption|colgroup)\s*>/gi,"")}function Ud(e){let t=e;for(let n=0;n<Rd;n++){const r=Cd.exec(t);if(!r||r.index===void 0)break;const i=Pd(r[1])??`
|
|
37
37
|
|
|
38
|
-
${
|
|
38
|
+
${$d(r[1])}
|
|
39
39
|
|
|
40
40
|
`;t=t.slice(0,r.index)+i+t.slice(r.index+r[0].length)}return t}function Zt(e,t){let n=e;return n=n.replace(/<(script|style)[\s\S]*?<\/\1>/gi,""),n=n.replace(/<!--[\s\S]*?-->/g,""),n=n.replace(/<br\s*\/?>/gi,`
|
|
41
|
-
`),t&&(n
|
|
41
|
+
`),t&&(n=Ud(kd(n))),n=n.replace(/<\/(p|h[1-6]|ul|ol|table|blockquote)>/gi,`
|
|
42
42
|
|
|
43
43
|
`),n=n.replace(/<\/(div|li|tr)>/gi,`
|
|
44
|
-
`),n=n.replace(/<\/(td|th)>/gi," "),n=n.replace(/<[^>]+>/g,""),n=n.replace(/<[^>]*$/,""),n}function en(e){return!Number.isInteger(e)||e<0||e>1114111?null:String.fromCodePoint(e)}const
|
|
44
|
+
`),n=n.replace(/<\/(td|th)>/gi," "),n=n.replace(/<[^>]+>/g,""),n=n.replace(/<[^>]*$/,""),n}function en(e){return!Number.isInteger(e)||e<0||e>1114111?null:String.fromCodePoint(e)}const Kd={euro:"€",pound:"£",yen:"¥",cent:"¢",copy:"©",reg:"®",trade:"™",deg:"°",plusmn:"±",times:"×",middot:"·",bull:"•",hellip:"…",mdash:"—",ndash:"–",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",apos:"'"};function tn(e){return e.replace(/ /gi," ").replace(/&([a-z]+);/gi,(t,n)=>Kd[n.toLowerCase()]??t).replace(/</gi,"<").replace(/>/gi,">").replace(/"/gi,'"').replace(/&#(\d+);/g,(t,n)=>en(Number(n))??t).replace(/&#x([0-9a-f]+);/gi,(t,n)=>en(parseInt(n,16))??t).replace(/&/gi,"&")}function nn(e){return e.replace(/\r/g,"").replace(/[ \t]+/g," ").replace(/ *\n */g,`
|
|
45
45
|
`).replace(/\n{3,}/g,`
|
|
46
46
|
|
|
47
|
-
`).trim()}const Go=/<\s*(html|body|div|p|table|br|span)\b/i;function Kd(e){return Go.test(e)}function Fd(e){return Wo(e,!1)}function Bd(e){return Wo(e,!0)}function Wo(e,t){if(typeof e!="string"||!e)return"";let n=e.length;for(const s of Ad){const a=e.search(s);a>=0&&a<n&&(n=a)}const r=e.slice(0,n);let o=nn(tn(Zt(r,t)));return o||(o=nn(tn(Zt(e,t)))),bd(o)||o}exports.ACTIVE_ASSIGNMENT_STATUSES=Vi;exports.ACTIVITY_CATALOG=D;exports.AI_ATTACHMENT_LIMITS=yo;exports.AI_ATTACHMENT_MAX_PER_TURN=Bl;exports.AI_ATTACHMENT_TURN_BUDGET=Fl;exports.AI_CAPABILITIES=Oe;exports.AI_VENDORS=it;exports.ALLOWED_LINK_SCHEMES=En;exports.APP_PERMISSIONS=Ru;exports.ARTIFACT_MAX_BLOCKS=fe;exports.ARTIFACT_MAX_BODY_BYTES=yn;exports.ARTIFACT_MAX_CELL_LEN=F;exports.ARTIFACT_MAX_KPI_ITEMS=ye;exports.ARTIFACT_MAX_LIST_ITEMS=me;exports.ARTIFACT_MAX_TABLE_COLUMNS=he;exports.ARTIFACT_MAX_TABLE_ROWS=ge;exports.ARTIFACT_MAX_TEXT_LEN=ke;exports.ASSIGNMENT_SCOPE_KIND=In;exports.ASSIST_BANDS=jl;exports.ASSIST_SOURCE_PROVIDER_GROUP=Wl;exports.ATTENTION_STATUSES=Bn;exports.AT_RISK_GAP=jr;exports.AUTH_APP_NAME=It;exports.AUTO_READY_MIN_PROPOSALS=vr;exports.AUTO_READY_RATE=Rr;exports.ActivityTypeRegistry=ln;exports.BUILT_IN_ONLY=li;exports.BULK_PENALTY=Hn;exports.BUSINESS_ENTITY_LIST_SERVICE=es;exports.CADENCE_FLOOR_MS=Do;exports.CADENCE_MIN_NEW_SEGMENTS=xo;exports.CADENCE_MIN_NOVELTY=Lo;exports.CADENCE_WINDOW_MS=Ro;exports.CLASSIFY_VARS=Ba;exports.CONNECTOR_PROVIDER_GROUP=fu;exports.CONTEXT_COLLECT_SERVICE=mu;exports.CORE_DIMENSIONS=Ii;exports.CommunicationScheme=To;exports.DAY_MS=xn;exports.DEFAULT_CHECK_IN_DAYS=Gr;exports.DEFAULT_FORECAST_WEEKS=gr;exports.DEFAULT_MEMORY_BUDGET=qs;exports.DEFAULT_NUMBER_PADDING=ol;exports.DEFAULT_PHONE_REGION=Fo;exports.DEFAULT_QUOTE_TEMPLATE_BLOCKS=el;exports.DEFAULT_TEMPLATE_CONDITIONS=Jc;exports.DEMAND_SOURCE_PROVIDER_GROUP=la;exports.DOCUMENT_APPLY_SERVICE=Ou;exports.DOCUMENT_DESCRIBE_SERVICE=Iu;exports.DOCUMENT_INSPECT_SERVICE=Mu;exports.DOCUMENT_MAX_BLOCKS=fe;exports.DOCUMENT_MAX_BODY_BYTES=yn;exports.DOCUMENT_MAX_CELL_LEN=F;exports.DOCUMENT_MAX_KPI_ITEMS=ye;exports.DOCUMENT_MAX_LETTERHEAD_FIELDS=Ve;exports.DOCUMENT_MAX_LIST_ITEMS=me;exports.DOCUMENT_MAX_RECIPIENT_LINES=hn;exports.DOCUMENT_MAX_TABLE_COLUMNS=he;exports.DOCUMENT_MAX_TABLE_ROWS=ge;exports.DOCUMENT_MAX_TEXT_LEN=ke;exports.DOCUMENT_MAX_TOTALS_ROWS=Ye;exports.DOCUMENT_OPERATIONS=bt;exports.DUTCH_SLOT_LABELS=no;exports.EMPTY_WORKFLOW=Ga;exports.ENABLED_TRANSACTION_KINDS=eo;exports.FEATURE_FOLDER_MANAGEMENT=lu;exports.FEATURE_MESSAGE_REACTIONS=du;exports.FEATURE_REMOTE_SEARCH=uu;exports.FIXED_KINDS=Ne;exports.FIXED_LEVELS=ee;exports.FIXED_TYPES=xe;exports.FIXED_UNITS=us;exports.FOLLOW_UP_HOURS=Wn;exports.FROZEN_WRITABLE_FIELDS=jc;exports.HOUR_MS=Dn;exports.HTML_BODY_RE=Go;exports.INELIGIBLE=L;exports.INSTALLATION_HEADER=Cu;exports.INTERACTION_KIND=Or;exports.InteractionParticipantRole=au;exports.KB_FALLBACK_LOCALE=tr;exports.KB_LOCALES=Ee;exports.LOCALES=Ee;exports.LOOSE_STATUSES=Le;exports.MAIL_HINT_HEADERS=Kn;exports.MAX_ACTIONS=ie;exports.MAX_ASSIGNMENT_TURNS=Mn;exports.MAX_BLOCKS=We;exports.MAX_COLLECTION_DEPTH=dt;exports.MAX_DELEGATION_DEPTH=On;exports.MAX_EDITABLE_FILE_BYTES=qu;exports.MAX_FIELDS=re;exports.MAX_LIST_ITEMS=oe;exports.MAX_MEMORY_BROWSE=Vs;exports.MAX_MEMORY_BUDGET=Xs;exports.MAX_MEMORY_CHARS=Ys;exports.MAX_SHOWN_KEYS=Ko;exports.MAX_TOPIC_CANDIDATES=qr;exports.MAX_TOPIC_EXAMPLES=Xr;exports.MAX_TOPIC_EXAMPLE_CHARS=ce;exports.MAX_VIEWABLE_FILE_BYTES=Qu;exports.MIN_MEMORY_BUDGET=zs;exports.NAV_NOTICE_SLOT=cd;exports.NL_PAYMENT_TERMS=dl;exports.NL_TAX_RATES=Js;exports.NOTIFICATION_SOURCE_PROVIDER_GROUP=wu;exports.OFF_TRACK_GAP=Vr;exports.ONBOARDING_SOURCE_PROVIDER_GROUP=ea;exports.PAUSE_HOLD=be;exports.PAUSE_SNOOZED=Ae;exports.PAUSE_WAITING_FOR_CUSTOMER=Se;exports.PAYMENT_TERM_METHODS=al;exports.PHONE_REGIONS=Pe;exports.PRESENCE_ONLINE_WINDOW_MS=Tt;exports.PRESENCE_SURVIVES_OFFLINE=Io;exports.PRODUCT_SCOPE_KIND=io;exports.PROFILE_TOOL_DISPOSITIONS=na;exports.PROVIDER_FEATURE_MESSAGE_TEMPLATES=su;exports.PROVIDER_FEATURE_MESSAGE_WINDOW=iu;exports.PUBLIC_EMAIL_DOMAINS=Ho;exports.READ_STEP_TYPES=ze;exports.RELATED_SUBJECT_KINDS=rr;exports.RESERVED_STATUS_KEYS=St;exports.RESERVED_TYPE_KEYS=El;exports.RESOURCE_ATTACHED_SERVICE=Fu;exports.RESOURCE_DESCRIBE_SERVICE=$u;exports.RESOURCE_RESOLVE_SERVICE=Ku;exports.RESOURCE_SEARCH_SERVICE=Uu;exports.SCHEDULE_ENTRY_SCOPE_KIND=hr;exports.SCOPE_ACTS_ROUTE=Wu;exports.SCOPE_READ_ROUTE=Gu;exports.SCOPE_RELATED_ROUTE=Hu;exports.SETTINGS_CATEGORIES=ad;exports.SIGNATURE_INTENTS=ds;exports.SLA_HOURS_BY_PRIORITY=Gn;exports.SLA_METRICS=ic;exports.SLA_PAUSE_REASONS=sc;exports.STEP_MAX_TOKENS_MAX=Nr;exports.STEP_MAX_TOKENS_MIN=Cr;exports.STRATEGY_ITEM_SCOPE_KIND=Br;exports.SUMMARY_MIN_LAST_CHARS=Un;exports.SUMMARY_MIN_MESSAGES=$n;exports.SYNC_RUN_MAX_ERRORS=Zu;exports.SYNC_TARGET_PROVIDER_GROUP=Ju;exports.TERMINAL_ASSIGNMENT_STATUSES=Tn;exports.TERMINAL_RUN_STATUSES=Dr;exports.TRANSACTION_KINDS=De;exports.TRANSACTION_SCOPE_KINDS=oo;exports.TRIGGER_VARS=Ka;exports.UNKNOWN_KIND=sr;exports.UNKNOWN_LEVEL_ORDER=Hr;exports.UNSUPPORTED=pu;exports.USAGE_DIMENSIONS=pn;exports.USAGE_DIMENSION_IDS=fn;exports.WORKSTREAM_SCOPE_KIND=yr;exports.WORK_ACTIVITY_SCOPE_KIND=lo;exports.WORK_AREAS=ta;exports.WORK_COMMENT_ADDED=fl;exports.WORK_CYCLE_SYNC_KIND=Tl;exports.WORK_ITEM_ASSIGNED=ml;exports.WORK_ITEM_SCOPE_KIND=ao;exports.WORK_ITEM_STATUS_CHANGED=gl;exports.WORK_PROJECT_SCOPE_KIND=co;exports.W_PRIORITY=X;exports.acceptExampleCandidate=Bc;exports.actingIdentityKey=Ar;exports.activeWorkTypes=Kc;exports.activityIconOf=Xo;exports.activityJoinUrl=ii;exports.activitySnippet=an;exports.activityTextParams=cn;exports.activityTimelineText=oi;exports.activityTimestamp=un;exports.activityTypeInfo=M;exports.actorKey=Ra;exports.addExampleCandidate=Fc;exports.addWorkingMs=we;exports.agePresenceEntry=xu;exports.aiAttachmentKind=ho;exports.aiAttachmentRejection=Hl;exports.aiBudgetLimit=je;exports.aiBudgetPeriodKey=bi;exports.aiBudgetPeriodStart=dn;exports.aiBudgetState=Si;exports.aiVendorAcceptsAttachment=Ai;exports.aiVendorDefaultModel=yi;exports.aiVendorLabel=hi;exports.aiVendorNeedsBaseUrl=_i;exports.aiVendorsWith=Ei;exports.allocate=Cn;exports.appNameFromPath=Mt;exports.applyApprovalDecision=Li;exports.applyRounding=xc;exports.applySignature=ps;exports.approvalRate=wr;exports.artifactBodyBytes=Sn;exports.artifactOutline=bn;exports.artifactToMarkdown=at;exports.assignmentMismatch=Pa;exports.assignmentScopeKey=zi;exports.assignmentSubject=Qi;exports.availabilityByPerson=ca;exports.belongsOnCalendar=ra;exports.belongsToEntity=ts;exports.buildActivityPreview=ai;exports.buildChannelIntents=Zl;exports.buildShareKeys=Gi;exports.buildWindow=Uo;exports.businessEntitySender=Rn;exports.calendarDaysBetween=ar;exports.calendarOf=ve;exports.canNestUnder=Ks;exports.canParent=Ac;exports.capabilityDefaultFlag=fi;exports.capacityTotal=sa;exports.capacityWeights=Ca;exports.carriesText=ei;exports.categoryLabel=Bs;exports.categoryOf=fo;exports.channelKindForScheme=ou;exports.channelKindOf=qo;exports.checkInOverdueMs=vc;exports.clampStepMaxTokens=Ha;exports.classifyMail=ks;exports.cleanMessageMarkdown=Bd;exports.cleanMessageText=Fd;exports.codeQuery=rs;exports.compareAssistRank=Yl;exports.compareWorkTypes=zr;exports.conditionHolds=vn;exports.copyFrom=to;exports.countsAsPlanned=j;exports.coverageByPerson=aa;exports.coverageFor=ga;exports.coversWorkstream=ft;exports.currentPeriod=sl;exports.cycleDayIndex=mt;exports.cycleOrder=Pl;exports.cycleState=$l;exports.decideAssignmentState=Ji;exports.decideCadence=sd;exports.decideIncomingCall=ql;exports.defaultLocaleOf=nr;exports.defaultStatusKey=vl;exports.defaultTemplateBlocks=ro;exports.defineIntent=cu;exports.delegationRefusal=Zi;exports.depthOf=Zn;exports.derivePresence=Du;exports.describeClause=wi;exports.disabledIntentsFromCapabilities=Ql;exports.documentBodyBytes=Sn;exports.documentKindOf=ku;exports.documentOutline=bn;exports.documentToMarkdown=at;exports.documentToText=Tu;exports.dueAtOf=mc;exports.dueDateFrom=cl;exports.elapsedSeconds=Dc;exports.emailDomain=gd;exports.endpointKey=_d;exports.erlangC=lr;exports.extractParams=ko;exports.extractTerms=Po;exports.fillDocument=Es;exports.fillText=wn;exports.filterByEndpoint=tu;exports.filterByIntent=eu;exports.filterByTargetScheme=bo;exports.filterableDimensions=Ni;exports.findAiVendor=J;exports.fixedLevelForName=bc;exports.fixedTypeForName=Sl;exports.fixedTypes=bl;exports.flattenLocales=Nu;exports.floorToPeriod=G;exports.forecastIntervals=Ia;exports.formatActingIdentity=_r;exports.formatCents=x;exports.formatClock=Pc;exports.formatHm=Lc;exports.formatItemKey=Ml;exports.formatPeriod=H;exports.formatSeriesNumber=il;exports.formatSlaDuration=yc;exports.freshSources=Gl;exports.getActivitySeenUserIds=ui;exports.getContactEndpoints=fs;exports.getShortTitle=xs;exports.getUrgencyScore=Ds;exports.hasReacted=Za;exports.healthCategory=Tc;exports.healthsInCategory=Ic;exports.heightOf=pt;exports.helpCenterText=Ps;exports.humanizeAction=$a;exports.interactionIdOf=kr;exports.isAgentUser=pl;exports.isAssigned=vs;exports.isAssignmentTerminal=Yi;exports.isAssignmentTrigger=Tr;exports.isAutoReady=Va;exports.isAwaitingThem=Qn;exports.isChatMessageActivity=pi;exports.isClosed=Rs;exports.isConnectedType=ni;exports.isDeepLink=ju;exports.isDescendant=er;exports.isEligible=As;exports.isEmailActivity=di;exports.isFrozen=Wc;exports.isHeldClock=fc;exports.isHtmlBody=Kd;exports.isInFlight=za;exports.isInteractionUnseen=Fn;exports.isLandingPath=Vu;exports.isLikelyBulk=Pn;exports.isMessageShape=rt;exports.isMessageType=Qo;exports.isMoreSpecificPattern=No;exports.isNoteShape=ot;exports.isOpenClock=Fr;exports.isOutwardTool=Eo;exports.isParked=Vn;exports.isPaused=xr;exports.isPlaybookAuthoredType=ti;exports.isPublicEmailDomain=yd;exports.isPublicPath=Xu;exports.isReminderActive=Yn;exports.isReplyableType=Zo;exports.isSlaAtRisk=Ns;exports.isTerminal=Ya;exports.isThreadLongEnough=Ts;exports.isTranscriptType=ri;exports.isWorkClosed=Rl;exports.isWorkTypeVisible=Uc;exports.isWriteTool=tt;exports.itemDossierKeys=Cl;exports.kindFor=v;exports.ladderFor=po;exports.levelIn=Wr;exports.levelOrder=Ie;exports.lineNet=ir;exports.linkLabel=Ls;exports.listedTransactionKinds=Gc;exports.listeningAllowed=Ti;exports.localeInstruction=Us;exports.localeName=$s;exports.localesOf=Fs;exports.looksLikeEmail=fd;exports.lookup=ut;exports.marginCents=ss;exports.markdownToDocument=bu;exports.matchApprovalPolicy=Di;exports.matchContactToIntents=nu;exports.matchPublicRoute=wo;exports.mcpCredentialScope=Ws;exports.mcpToolPrefix=js;exports.measureRatio=Oc;exports.mergeDefaultFlags=gi;exports.mergeShownKeys=id;exports.messageCountsAs=sn;exports.metricOption=vi;exports.minutesOn=gt;exports.needsPhoneRegion=Ed;exports.nestsUnderParent=Jo;exports.nextLevelBelow=Sc;exports.nextSlaClock=gc;exports.nextVersion=Vc;exports.normalizeArtifactBlocks=An;exports.normalizeBlocks=Vo;exports.normalizeDocumentBlocks=An;exports.normalizeEmail=Ot;exports.normalizeExample=P;exports.normalizeGtin=kn;exports.notificationPrefKey=vu;exports.novelty=$o;exports.operationDescriptor=Au;exports.operationsForKind=_u;exports.organizationSender=_s;exports.overlapSeconds=ae;exports.overlaps=ma;exports.paceRatio=kc;exports.parkMarksById=Ss;exports.parseActingIdentity=wa;exports.parseAmount=os;exports.parseClockMinutes=rc;exports.parseItemKey=Ol;exports.pathToRegex=Oo;exports.patternFor=yt;exports.patternStartTime=ht;exports.pauseBitFor=oc;exports.pendingApprovers=xi;exports.periodsInRange=ki;exports.phoneSuffix=md;exports.pickMailHeaders=Is;exports.pickTemplate=gs;exports.placeLumps=Na;exports.plainTextFromMarkdown=rn;exports.planSlaEvent=pc;exports.plannedBillable=ha;exports.plannedWorkTypeKey=mr;exports.playbookActor=br;exports.procedureOf=ja;exports.productScopeKey=tl;exports.projectDossierKeys=Nl;exports.publicBasePathFor=Co;exports.publicRoutePatterns=zu;exports.reactionWakesAssignment=qi;exports.readDefaultFlags=mi;exports.readPath=de;exports.readStepError=se;exports.recencyOf=jn;exports.recipientLocale=ms;exports.refKey=Mr;exports.registrableDomain=Bo;exports.rejectExampleCandidate=Jr;exports.relatedByDefault=Qs;exports.remainingMsOf=Te;exports.requiredAgents=pr;exports.requirementFor=fr;exports.resolveAccountCapabilities=So;exports.resolveActivityText=pe;exports.resolveChannelIntents=Ao;exports.resolvePrice=cs;exports.resolveSignature=Nn;exports.resolveWorkMode=Lu;exports.resourceKindOf=Bu;exports.rollupChildren=wc;exports.roundHalfUp=W;exports.runActor=va;exports.runInteractionId=qa;exports.sanitizeInline=_n;exports.sanitizeTranscript=vo;exports.scheduleEntryScopeKey=Ma;exports.scoreInteraction=ws;exports.scoreWorkItem=yl;exports.selectLenses=Gs;exports.serviceLevel=ur;exports.sessionsHoldCannotReach=Xl;exports.sessionsToHold=zl;exports.shadowTermsByCode=ll;exports.shareKeyForTeam=lt;exports.shareKeyForUser=ct;exports.shareKeysForViewer=Wi;exports.shortfalls=ya;exports.shouldRunAudioPipeline=Pu;exports.slaBadgeTone=hc;exports.slaHoursByInbox=Cs;exports.slaHoursFor=qn;exports.sortStatuses=mo;exports.sourceKey=_o;exports.spreadOverWeights=Er;exports.statusIn=wl;exports.statusRequiresApproval=Ll;exports.stepsOf=Wa;exports.strategyAncestorKeysFor=_c;exports.strategyDossierKeys=Ec;exports.strategyItemScopeKey=_t;exports.stripHtml=on;exports.subjectKeyOf=Xa;exports.subjectOf=Et;exports.subjectRef=Vl;exports.suggestProjectKey=kl;exports.suggestedHealth=Cc;exports.summarizeReactions=Qa;exports.targetById=La;exports.targetForActivityType=xa;exports.targetOrder=Rc;exports.taxRateFor=or;exports.termsFor=cr;exports.toActingIdentity=Sr;exports.toE164=nt;exports.toTransactionTerm=ul;exports.toolBareName=Ir;exports.toolDisplayName=Ua;exports.toolName=q;exports.toolSourceKinds=ji;exports.toolVerdict=td;exports.topicOfferedForTeam=Zr;exports.topicsForTeam=Hc;exports.trafficIntensity=dr;exports.transactionContext=Yc;exports.transactionDossierKeys=rl;exports.transactionIdFromScope=nl;exports.transactionKind=U;exports.transactionScopeKey=so;exports.transactionSlots=zc;exports.transactionTotals=Zs;exports.triggerFillsVar=Fa;exports.truncateExample=Qr;exports.typeIn=Al;exports.typesFor=_l;exports.uniqueWorkStatusKey=Dl;exports.uniqueWorkTypeKey=$c;exports.usageMetricId=mn;exports.usageMetrics=Ri;exports.validateStatuses=xl;exports.valueAtPath=Da;exports.waitHoursOf=Ce;exports.wakesAssignment=Xi;exports.workActivityScopeKey=Il;exports.workItemScopeKey=uo;exports.workProjectScopeKey=At;exports.workRatio=Nc;exports.workStatusKey=go;exports.workTypeKey=Yr;exports.workingMsBetween=_e;exports.workstreamScopeKey=Oa;
|
|
47
|
+
`).trim()}const Go=/<\s*(html|body|div|p|table|br|span)\b/i;function Fd(e){return Go.test(e)}function Bd(e){return Wo(e,!1)}function Hd(e){return Wo(e,!0)}function Wo(e,t){if(typeof e!="string"||!e)return"";let n=e.length;for(const s of Sd){const a=e.search(s);a>=0&&a<n&&(n=a)}const r=e.slice(0,n);let o=nn(tn(Zt(r,t)));return o||(o=nn(tn(Zt(e,t)))),Td(o)||o}exports.ACTIVE_ASSIGNMENT_STATUSES=Vi;exports.ACTIVITY_CATALOG=D;exports.AI_ATTACHMENT_LIMITS=yo;exports.AI_ATTACHMENT_MAX_PER_TURN=Bl;exports.AI_ATTACHMENT_TURN_BUDGET=Fl;exports.AI_CAPABILITIES=Oe;exports.AI_VENDORS=it;exports.ALLOWED_LINK_SCHEMES=En;exports.APP_PERMISSIONS=Du;exports.ARTIFACT_MAX_BLOCKS=fe;exports.ARTIFACT_MAX_BODY_BYTES=yn;exports.ARTIFACT_MAX_CELL_LEN=F;exports.ARTIFACT_MAX_KPI_ITEMS=ye;exports.ARTIFACT_MAX_LIST_ITEMS=me;exports.ARTIFACT_MAX_TABLE_COLUMNS=he;exports.ARTIFACT_MAX_TABLE_ROWS=ge;exports.ARTIFACT_MAX_TEXT_LEN=ke;exports.ASSIGNMENT_SCOPE_KIND=In;exports.ASSIST_BANDS=Vl;exports.ASSIST_SOURCE_PROVIDER_GROUP=jl;exports.ATTENTION_STATUSES=Bn;exports.AT_RISK_GAP=jr;exports.AUTH_APP_NAME=It;exports.AUTO_READY_MIN_PROPOSALS=vr;exports.AUTO_READY_RATE=Rr;exports.ActivityTypeRegistry=ln;exports.BUILT_IN_ONLY=li;exports.BULK_PENALTY=Hn;exports.BUSINESS_ENTITY_LIST_SERVICE=es;exports.CADENCE_FLOOR_MS=Do;exports.CADENCE_MIN_NEW_SEGMENTS=xo;exports.CADENCE_MIN_NOVELTY=Lo;exports.CADENCE_WINDOW_MS=Ro;exports.CLASSIFY_VARS=Ba;exports.CONNECTOR_PROVIDER_GROUP=mu;exports.CONTEXT_COLLECT_SERVICE=gu;exports.CORE_DIMENSIONS=Ii;exports.CommunicationScheme=To;exports.DAY_MS=xn;exports.DEFAULT_CHECK_IN_DAYS=Gr;exports.DEFAULT_FORECAST_WEEKS=gr;exports.DEFAULT_MEMORY_BUDGET=qs;exports.DEFAULT_NUMBER_PADDING=ol;exports.DEFAULT_PHONE_REGION=Fo;exports.DEFAULT_QUOTE_TEMPLATE_BLOCKS=el;exports.DEFAULT_TEMPLATE_CONDITIONS=Jc;exports.DEMAND_SOURCE_PROVIDER_GROUP=la;exports.DOCUMENT_APPLY_SERVICE=ku;exports.DOCUMENT_DESCRIBE_SERVICE=Mu;exports.DOCUMENT_INSPECT_SERVICE=Ou;exports.DOCUMENT_MAX_BLOCKS=fe;exports.DOCUMENT_MAX_BODY_BYTES=yn;exports.DOCUMENT_MAX_CELL_LEN=F;exports.DOCUMENT_MAX_KPI_ITEMS=ye;exports.DOCUMENT_MAX_LETTERHEAD_FIELDS=Ve;exports.DOCUMENT_MAX_LIST_ITEMS=me;exports.DOCUMENT_MAX_RECIPIENT_LINES=hn;exports.DOCUMENT_MAX_TABLE_COLUMNS=he;exports.DOCUMENT_MAX_TABLE_ROWS=ge;exports.DOCUMENT_MAX_TEXT_LEN=ke;exports.DOCUMENT_MAX_TOTALS_ROWS=Ye;exports.DOCUMENT_OPERATIONS=bt;exports.DUTCH_SLOT_LABELS=no;exports.EMPTY_WORKFLOW=Ga;exports.ENABLED_TRANSACTION_KINDS=eo;exports.FEATURE_FOLDER_MANAGEMENT=uu;exports.FEATURE_MESSAGE_REACTIONS=pu;exports.FEATURE_REMOTE_SEARCH=du;exports.FIXED_KINDS=Ne;exports.FIXED_LEVELS=ee;exports.FIXED_TYPES=xe;exports.FIXED_UNITS=us;exports.FOLLOW_UP_HOURS=Wn;exports.FROZEN_WRITABLE_FIELDS=jc;exports.HOUR_MS=Dn;exports.HTML_BODY_RE=Go;exports.INELIGIBLE=L;exports.INSTALLATION_HEADER=Nu;exports.INTERACTION_KIND=Or;exports.InteractionParticipantRole=cu;exports.KB_FALLBACK_LOCALE=tr;exports.KB_LOCALES=Ee;exports.LOCALES=Ee;exports.LOOSE_STATUSES=Le;exports.MAIL_HINT_HEADERS=Kn;exports.MAX_ACTIONS=ie;exports.MAX_ASSIGNMENT_TURNS=Mn;exports.MAX_BLOCKS=We;exports.MAX_COLLECTION_DEPTH=dt;exports.MAX_DELEGATION_DEPTH=On;exports.MAX_EDITABLE_FILE_BYTES=Qu;exports.MAX_FIELDS=re;exports.MAX_LIST_ITEMS=oe;exports.MAX_MEMORY_BROWSE=Vs;exports.MAX_MEMORY_BUDGET=Xs;exports.MAX_MEMORY_CHARS=Ys;exports.MAX_SHOWN_KEYS=Ko;exports.MAX_TOPIC_CANDIDATES=qr;exports.MAX_TOPIC_EXAMPLES=Xr;exports.MAX_TOPIC_EXAMPLE_CHARS=ce;exports.MAX_VIEWABLE_FILE_BYTES=Ju;exports.MIN_MEMORY_BUDGET=zs;exports.NAV_NOTICE_SLOT=ld;exports.NL_PAYMENT_TERMS=dl;exports.NL_TAX_RATES=Js;exports.NOTIFICATION_SOURCE_PROVIDER_GROUP=vu;exports.OFF_TRACK_GAP=Vr;exports.ONBOARDING_SOURCE_PROVIDER_GROUP=ea;exports.PAUSE_HOLD=be;exports.PAUSE_SNOOZED=Ae;exports.PAUSE_WAITING_FOR_CUSTOMER=Se;exports.PAYMENT_TERM_METHODS=al;exports.PHONE_REGIONS=Pe;exports.PRESENCE_ONLINE_WINDOW_MS=Tt;exports.PRESENCE_SURVIVES_OFFLINE=Io;exports.PRODUCT_SCOPE_KIND=io;exports.PROFILE_TOOL_DISPOSITIONS=na;exports.PROVIDER_FEATURE_MESSAGE_TEMPLATES=au;exports.PROVIDER_FEATURE_MESSAGE_WINDOW=su;exports.PUBLIC_EMAIL_DOMAINS=Ho;exports.READ_STEP_TYPES=ze;exports.RELATED_SUBJECT_KINDS=rr;exports.RESERVED_STATUS_KEYS=St;exports.RESERVED_TYPE_KEYS=El;exports.RESOURCE_ATTACHED_SERVICE=Bu;exports.RESOURCE_DESCRIBE_SERVICE=Uu;exports.RESOURCE_RESOLVE_SERVICE=Fu;exports.RESOURCE_SEARCH_SERVICE=Ku;exports.SCHEDULE_ENTRY_SCOPE_KIND=hr;exports.SCOPE_ACTS_ROUTE=ju;exports.SCOPE_READ_ROUTE=Wu;exports.SCOPE_RELATED_ROUTE=Gu;exports.SETTINGS_CATEGORIES=cd;exports.SIGNATURE_INTENTS=ds;exports.SLA_HOURS_BY_PRIORITY=Gn;exports.SLA_METRICS=ic;exports.SLA_PAUSE_REASONS=sc;exports.STEP_MAX_TOKENS_MAX=Nr;exports.STEP_MAX_TOKENS_MIN=Cr;exports.STRATEGY_ITEM_SCOPE_KIND=Br;exports.SUMMARY_MIN_LAST_CHARS=Un;exports.SUMMARY_MIN_MESSAGES=$n;exports.SYNC_RUN_MAX_ERRORS=ed;exports.SYNC_TARGET_PROVIDER_GROUP=Zu;exports.TERMINAL_ASSIGNMENT_STATUSES=Tn;exports.TERMINAL_RUN_STATUSES=Dr;exports.TRANSACTION_KINDS=De;exports.TRANSACTION_SCOPE_KINDS=oo;exports.TRIGGER_VARS=Ka;exports.UNKNOWN_KIND=sr;exports.UNKNOWN_LEVEL_ORDER=Hr;exports.UNSUPPORTED=fu;exports.USAGE_DIMENSIONS=pn;exports.USAGE_DIMENSION_IDS=fn;exports.WORKSTREAM_SCOPE_KIND=yr;exports.WORK_ACTIVITY_SCOPE_KIND=lo;exports.WORK_AREAS=ta;exports.WORK_COMMENT_ADDED=fl;exports.WORK_CYCLE_SYNC_KIND=Tl;exports.WORK_ITEM_ASSIGNED=ml;exports.WORK_ITEM_SCOPE_KIND=ao;exports.WORK_ITEM_STATUS_CHANGED=gl;exports.WORK_PROJECT_SCOPE_KIND=co;exports.W_PRIORITY=X;exports.acceptExampleCandidate=Bc;exports.actingIdentityKey=Ar;exports.activeWorkTypes=Kc;exports.activityIconOf=Xo;exports.activityJoinUrl=ii;exports.activitySnippet=an;exports.activityTextParams=cn;exports.activityTimelineText=oi;exports.activityTimestamp=un;exports.activityTypeInfo=M;exports.actorKey=Ra;exports.addExampleCandidate=Fc;exports.addWorkingMs=we;exports.agePresenceEntry=Lu;exports.aiAttachmentKind=ho;exports.aiAttachmentRejection=Hl;exports.aiBudgetLimit=je;exports.aiBudgetPeriodKey=bi;exports.aiBudgetPeriodStart=dn;exports.aiBudgetState=Si;exports.aiVendorAcceptsAttachment=Ai;exports.aiVendorDefaultModel=yi;exports.aiVendorLabel=hi;exports.aiVendorNeedsBaseUrl=_i;exports.aiVendorsWith=Ei;exports.allocate=Cn;exports.appNameFromPath=Mt;exports.applyApprovalDecision=Li;exports.applyRounding=xc;exports.applySignature=ps;exports.approvalRate=wr;exports.artifactBodyBytes=Sn;exports.artifactOutline=bn;exports.artifactToMarkdown=at;exports.assignmentMismatch=Pa;exports.assignmentScopeKey=zi;exports.assignmentSubject=Qi;exports.availabilityByPerson=ca;exports.belongsOnCalendar=ra;exports.belongsToEntity=ts;exports.buildActivityPreview=ai;exports.buildChannelIntents=eu;exports.buildShareKeys=Gi;exports.buildWindow=Uo;exports.businessEntitySender=Rn;exports.calendarDaysBetween=ar;exports.calendarOf=ve;exports.canNestUnder=Ks;exports.canParent=Ac;exports.capabilityDefaultFlag=fi;exports.capacityTotal=sa;exports.capacityWeights=Ca;exports.carriesText=ei;exports.categoryLabel=Bs;exports.categoryOf=fo;exports.channelKindForScheme=iu;exports.channelKindOf=qo;exports.checkInOverdueMs=vc;exports.clampStepMaxTokens=Ha;exports.classifyMail=ks;exports.cleanMessageMarkdown=Hd;exports.cleanMessageText=Bd;exports.codeQuery=rs;exports.compareAssistRank=zl;exports.compareWorkTypes=zr;exports.conditionHolds=vn;exports.copyFrom=to;exports.countsAsPlanned=j;exports.coverageByPerson=aa;exports.coverageFor=ga;exports.coversWorkstream=ft;exports.currentPeriod=sl;exports.cycleDayIndex=mt;exports.cycleOrder=Pl;exports.cycleState=$l;exports.decideAssignmentState=Ji;exports.decideCadence=ad;exports.decideIncomingCall=Ql;exports.defaultLocaleOf=nr;exports.defaultStatusKey=vl;exports.defaultTemplateBlocks=ro;exports.defineIntent=lu;exports.delegationRefusal=Zi;exports.depthOf=Zn;exports.derivePresence=xu;exports.describeClause=wi;exports.disabledIntentsFromCapabilities=Jl;exports.documentBodyBytes=Sn;exports.documentKindOf=Cu;exports.documentOutline=bn;exports.documentToMarkdown=at;exports.documentToText=Iu;exports.dueAtOf=mc;exports.dueDateFrom=cl;exports.elapsedSeconds=Dc;exports.emailDomain=hd;exports.endpointKey=Ad;exports.erlangC=lr;exports.extractParams=ko;exports.extractTerms=Po;exports.fillDocument=Es;exports.fillText=wn;exports.filterByEndpoint=nu;exports.filterByIntent=tu;exports.filterByTargetScheme=bo;exports.filterableDimensions=Ni;exports.findAiVendor=J;exports.fixedLevelForName=bc;exports.fixedTypeForName=Sl;exports.fixedTypes=bl;exports.flattenLocales=wu;exports.floorToPeriod=G;exports.forecastIntervals=Ia;exports.formatActingIdentity=_r;exports.formatCents=x;exports.formatClock=Pc;exports.formatHm=Lc;exports.formatItemKey=Ml;exports.formatPeriod=H;exports.formatSeriesNumber=il;exports.formatSlaDuration=yc;exports.freshSources=Wl;exports.getActivitySeenUserIds=ui;exports.getContactEndpoints=fs;exports.getShortTitle=xs;exports.getUrgencyScore=Ds;exports.hasReacted=Za;exports.healthCategory=Tc;exports.healthsInCategory=Ic;exports.heightOf=pt;exports.helpCenterText=Ps;exports.humanizeAction=$a;exports.interactionIdOf=kr;exports.isAgentUser=pl;exports.isAssigned=vs;exports.isAssignmentTerminal=Yi;exports.isAssignmentTrigger=Tr;exports.isAutoReady=Va;exports.isAwaitingThem=Qn;exports.isChatMessageActivity=pi;exports.isClosed=Rs;exports.isConnectedType=ni;exports.isDeepLink=Vu;exports.isDescendant=er;exports.isEligible=As;exports.isEmailActivity=di;exports.isFrozen=Wc;exports.isHeldClock=fc;exports.isHtmlBody=Fd;exports.isInFlight=za;exports.isInteractionUnseen=Fn;exports.isLandingPath=Yu;exports.isLikelyBulk=Pn;exports.isMessageShape=rt;exports.isMessageType=Qo;exports.isMoreSpecificPattern=No;exports.isNoteShape=ot;exports.isOpenClock=Fr;exports.isOutwardTool=Eo;exports.isParked=Vn;exports.isPaused=xr;exports.isPlaybookAuthoredType=ti;exports.isPublicEmailDomain=Ed;exports.isPublicPath=qu;exports.isReminderActive=Yn;exports.isReplyableType=Zo;exports.isSlaAtRisk=Ns;exports.isTerminal=Ya;exports.isThreadLongEnough=Ts;exports.isTranscriptType=ri;exports.isWorkClosed=Rl;exports.isWorkTypeVisible=Uc;exports.isWriteTool=tt;exports.itemDossierKeys=Cl;exports.kindFor=v;exports.ladderFor=po;exports.levelIn=Wr;exports.levelOrder=Ie;exports.lineNet=ir;exports.linkLabel=Ls;exports.listedTransactionKinds=Gc;exports.listeningAllowed=Ti;exports.localeInstruction=Us;exports.localeName=$s;exports.localesOf=Fs;exports.looksLikeEmail=md;exports.lookup=ut;exports.marginCents=ss;exports.markdownToDocument=Tu;exports.matchApprovalPolicy=Di;exports.matchContactToIntents=ru;exports.matchPublicRoute=wo;exports.mcpCredentialScope=Ws;exports.mcpToolPrefix=js;exports.measureRatio=Oc;exports.mergeDefaultFlags=gi;exports.mergeShownKeys=sd;exports.messageCountsAs=sn;exports.metricOption=vi;exports.minutesOn=gt;exports.needsPhoneRegion=_d;exports.nestsUnderParent=Jo;exports.nextLevelBelow=Sc;exports.nextSlaClock=gc;exports.nextVersion=Vc;exports.normalizeArtifactBlocks=An;exports.normalizeBlocks=Vo;exports.normalizeDocumentBlocks=An;exports.normalizeEmail=Ot;exports.normalizeExample=P;exports.normalizeGtin=kn;exports.notificationPrefKey=Ru;exports.novelty=$o;exports.operationDescriptor=Su;exports.operationsForKind=Au;exports.organizationSender=_s;exports.overlapSeconds=ae;exports.overlaps=ma;exports.paceRatio=kc;exports.parkMarksById=Ss;exports.parseActingIdentity=wa;exports.parseAmount=os;exports.parseClockMinutes=rc;exports.parseItemKey=Ol;exports.pathToRegex=Oo;exports.patternFor=yt;exports.patternStartTime=ht;exports.pauseBitFor=oc;exports.pendingApprovers=xi;exports.periodsInRange=ki;exports.phoneSuffix=gd;exports.pickMailHeaders=Is;exports.pickTemplate=gs;exports.placeLumps=Na;exports.plainTextFromMarkdown=rn;exports.planSlaEvent=pc;exports.plannedBillable=ha;exports.plannedWorkTypeKey=mr;exports.playbookActor=br;exports.procedureOf=ja;exports.productScopeKey=tl;exports.projectDossierKeys=Nl;exports.publicBasePathFor=Co;exports.publicRoutePatterns=Xu;exports.reactionWakesAssignment=qi;exports.readDefaultFlags=mi;exports.readPath=de;exports.readStepError=se;exports.recencyOf=jn;exports.recipientLocale=ms;exports.refKey=Mr;exports.registrableDomain=Bo;exports.rejectExampleCandidate=Jr;exports.relatedByDefault=Qs;exports.remainingMsOf=Te;exports.requiredAgents=pr;exports.requirementFor=fr;exports.resolveAccountCapabilities=So;exports.resolveActivityText=pe;exports.resolveChannelIntents=Ao;exports.resolvePrice=cs;exports.resolveSignature=Nn;exports.resolveWorkMode=Pu;exports.resourceKindOf=Hu;exports.rollupChildren=wc;exports.roundHalfUp=W;exports.runActor=va;exports.runInteractionId=qa;exports.sanitizeInline=_n;exports.sanitizeTranscript=vo;exports.scheduleEntryScopeKey=Ma;exports.scoreInteraction=ws;exports.scoreWorkItem=yl;exports.selectLenses=Gs;exports.serviceLevel=ur;exports.sessionsHoldCannotReach=ql;exports.sessionsToHold=Xl;exports.shadowTermsByCode=ll;exports.shareKeyForTeam=lt;exports.shareKeyForUser=ct;exports.shareKeysForViewer=Wi;exports.shortfalls=ya;exports.shouldRunAudioPipeline=$u;exports.slaBadgeTone=hc;exports.slaHoursByInbox=Cs;exports.slaHoursFor=qn;exports.sortStatuses=mo;exports.sourceKey=_o;exports.spreadOverWeights=Er;exports.statusIn=wl;exports.statusRequiresApproval=Ll;exports.stepsOf=Wa;exports.strategyAncestorKeysFor=_c;exports.strategyDossierKeys=Ec;exports.strategyItemScopeKey=_t;exports.stripHtml=on;exports.subjectKeyOf=Xa;exports.subjectOf=Et;exports.subjectRef=Yl;exports.suggestProjectKey=kl;exports.suggestedHealth=Cc;exports.summarizeReactions=Qa;exports.targetById=La;exports.targetForActivityType=xa;exports.targetOrder=Rc;exports.taxRateFor=or;exports.termsFor=cr;exports.toActingIdentity=Sr;exports.toE164=nt;exports.toTransactionTerm=ul;exports.toolBareName=Ir;exports.toolDisplayName=Ua;exports.toolName=q;exports.toolReversible=Gl;exports.toolSourceKinds=ji;exports.toolVerdict=nd;exports.topicOfferedForTeam=Zr;exports.topicsForTeam=Hc;exports.trafficIntensity=dr;exports.transactionContext=Yc;exports.transactionDossierKeys=rl;exports.transactionIdFromScope=nl;exports.transactionKind=U;exports.transactionScopeKey=so;exports.transactionSlots=zc;exports.transactionTotals=Zs;exports.triggerFillsVar=Fa;exports.truncateExample=Qr;exports.typeIn=Al;exports.typesFor=_l;exports.uniqueWorkStatusKey=Dl;exports.uniqueWorkTypeKey=$c;exports.usageMetricId=mn;exports.usageMetrics=Ri;exports.validateStatuses=xl;exports.valueAtPath=Da;exports.waitHoursOf=Ce;exports.wakesAssignment=Xi;exports.workActivityScopeKey=Il;exports.workItemScopeKey=uo;exports.workProjectScopeKey=At;exports.workRatio=Nc;exports.workStatusKey=go;exports.workTypeKey=Yr;exports.workingMsBetween=_e;exports.workstreamScopeKey=Oa;
|
package/dist/index.js
CHANGED
|
@@ -3529,13 +3529,16 @@ function Iu(e, t) {
|
|
|
3529
3529
|
const n = di(e);
|
|
3530
3530
|
return n === "unsupported" ? "unsupported" : t > fi[n] ? "too-large" : null;
|
|
3531
3531
|
}
|
|
3532
|
+
function ku(e) {
|
|
3533
|
+
return e.access === "read" ? "idempotent" : e.reversible ?? "none";
|
|
3534
|
+
}
|
|
3532
3535
|
function pi(e) {
|
|
3533
3536
|
return e.access !== "read" && e.effect !== "internal";
|
|
3534
3537
|
}
|
|
3535
3538
|
function mi(e) {
|
|
3536
3539
|
return `${e.kind}:${e.id || e.url || e.title}`;
|
|
3537
3540
|
}
|
|
3538
|
-
function
|
|
3541
|
+
function wu(e, t = []) {
|
|
3539
3542
|
const n = new Set(t), r = [], o = [];
|
|
3540
3543
|
for (const i of e) {
|
|
3541
3544
|
const s = mi(i);
|
|
@@ -3543,26 +3546,26 @@ function ku(e, t = []) {
|
|
|
3543
3546
|
}
|
|
3544
3547
|
return { sources: r, keys: o };
|
|
3545
3548
|
}
|
|
3546
|
-
const
|
|
3547
|
-
function
|
|
3549
|
+
const vu = "assist-source", Mu = ["blocking", "due", "open"];
|
|
3550
|
+
function Cu(e, t) {
|
|
3548
3551
|
const [n, r] = (e.subjectKey ?? "").split(":");
|
|
3549
3552
|
return n === t && r ? r : void 0;
|
|
3550
3553
|
}
|
|
3551
3554
|
const mt = { blocking: 0, due: 1, open: 2 };
|
|
3552
|
-
function
|
|
3555
|
+
function Ou(e, t) {
|
|
3553
3556
|
return mt[e.band ?? "open"] - mt[t.band ?? "open"] || (t.priority ?? 0) - (e.priority ?? 0) || e.id.localeCompare(t.id);
|
|
3554
3557
|
}
|
|
3555
|
-
function
|
|
3558
|
+
function Nu(e) {
|
|
3556
3559
|
return e.sessions.filter(
|
|
3557
3560
|
(t) => t.id !== e.exceptSessionId && t.state === "connected" && e.canHold(t.providerId)
|
|
3558
3561
|
);
|
|
3559
3562
|
}
|
|
3560
|
-
function
|
|
3563
|
+
function xu(e) {
|
|
3561
3564
|
return e.sessions.filter(
|
|
3562
3565
|
(t) => t.id !== e.exceptSessionId && t.state === "connected" && !e.canHold(t.providerId)
|
|
3563
3566
|
);
|
|
3564
3567
|
}
|
|
3565
|
-
function
|
|
3568
|
+
function Ru(e) {
|
|
3566
3569
|
return e.sessions.some(
|
|
3567
3570
|
(n) => n.id !== e.exceptSessionId && (n.state === "connected" || n.state === "on_hold")
|
|
3568
3571
|
) ? { admit: !1, reason: "busy" } : { admit: !0 };
|
|
@@ -3584,7 +3587,7 @@ function hi(e, t) {
|
|
|
3584
3587
|
}
|
|
3585
3588
|
return n;
|
|
3586
3589
|
}
|
|
3587
|
-
function
|
|
3590
|
+
function Du(e, t) {
|
|
3588
3591
|
const n = hi(e, t);
|
|
3589
3592
|
return Object.entries(n).filter(([, r]) => !r).map(([r]) => r);
|
|
3590
3593
|
}
|
|
@@ -3595,7 +3598,7 @@ function yi(e, t) {
|
|
|
3595
3598
|
transport: t.transport ?? e.transport
|
|
3596
3599
|
} : e;
|
|
3597
3600
|
}
|
|
3598
|
-
function
|
|
3601
|
+
function $u(e, t) {
|
|
3599
3602
|
const n = [];
|
|
3600
3603
|
for (const r of e) {
|
|
3601
3604
|
if (!r.enabled) continue;
|
|
@@ -3606,16 +3609,16 @@ function Du(e, t) {
|
|
|
3606
3609
|
}
|
|
3607
3610
|
return n;
|
|
3608
3611
|
}
|
|
3609
|
-
function
|
|
3612
|
+
function Lu(e, t) {
|
|
3610
3613
|
return t.filter((n) => n.capability.intent === e);
|
|
3611
3614
|
}
|
|
3612
3615
|
function bi(e, t) {
|
|
3613
3616
|
return t.filter((n) => n.capability.targetSchemes.includes(e));
|
|
3614
3617
|
}
|
|
3615
|
-
function
|
|
3618
|
+
function Pu(e, t) {
|
|
3616
3619
|
return bi(e.scheme, t);
|
|
3617
3620
|
}
|
|
3618
|
-
function
|
|
3621
|
+
function Ku(e, t, n) {
|
|
3619
3622
|
const r = [];
|
|
3620
3623
|
for (const o of e)
|
|
3621
3624
|
for (const i of n)
|
|
@@ -3644,10 +3647,10 @@ const _i = {
|
|
|
3644
3647
|
id: "note",
|
|
3645
3648
|
custom: "note"
|
|
3646
3649
|
};
|
|
3647
|
-
function
|
|
3650
|
+
function Uu(e) {
|
|
3648
3651
|
return e ? _i[e] ?? "note" : "note";
|
|
3649
3652
|
}
|
|
3650
|
-
const
|
|
3653
|
+
const Fu = "message_window", Bu = "message_templates", ju = {
|
|
3651
3654
|
// E-mail
|
|
3652
3655
|
FROM: "from",
|
|
3653
3656
|
TO: "to",
|
|
@@ -3664,11 +3667,11 @@ const Uu = "message_window", Fu = "message_templates", Bu = {
|
|
|
3664
3667
|
// Voice/conference
|
|
3665
3668
|
HOST: "host",
|
|
3666
3669
|
PARTICIPANT: "participant"
|
|
3667
|
-
},
|
|
3670
|
+
}, Hu = (e, t) => ({ intent: e, ...t }), Gu = "folder_management", Wu = "remote_search", zu = "message_reactions", Vu = {
|
|
3668
3671
|
ok: !1,
|
|
3669
3672
|
code: "UNSUPPORTED",
|
|
3670
3673
|
message: "Provider does not support this op"
|
|
3671
|
-
},
|
|
3674
|
+
}, Xu = "connector", Yu = "context.collect", _ = (e) => ({ type: "string", description: e }), A = (e) => ({ type: "number", description: e }), J = (e) => ({ type: "boolean", description: e }), M = _("Sheet name. Omit for the sheet the user is looking at."), gt = _("Slide id, as `inspect` reports it.");
|
|
3672
3675
|
function b(e, t, n, r, o, i) {
|
|
3673
3676
|
return {
|
|
3674
3677
|
op: e,
|
|
@@ -4022,10 +4025,10 @@ const H = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, ht =
|
|
|
4022
4025
|
...Ti,
|
|
4023
4026
|
...Ii
|
|
4024
4027
|
];
|
|
4025
|
-
function
|
|
4028
|
+
function qu(e) {
|
|
4026
4029
|
return rn.filter((t) => t.kinds.includes(e));
|
|
4027
4030
|
}
|
|
4028
|
-
function
|
|
4031
|
+
function Qu(e) {
|
|
4029
4032
|
return rn.find((t) => t.op === e);
|
|
4030
4033
|
}
|
|
4031
4034
|
const yt = /(?: {2,}|\\)$/, ki = /^\*\*([^*]+)\*\*\s+(.*)$/;
|
|
@@ -4033,7 +4036,7 @@ function bt(e) {
|
|
|
4033
4036
|
const t = ki.exec(e);
|
|
4034
4037
|
return t ? { lead: t[1], text: t[2] } : { text: e };
|
|
4035
4038
|
}
|
|
4036
|
-
function
|
|
4039
|
+
function Zu(e) {
|
|
4037
4040
|
const t = (e ?? "").replace(/\r\n/g, `
|
|
4038
4041
|
`).split(`
|
|
4039
4042
|
`), n = [];
|
|
@@ -4112,27 +4115,27 @@ function Qu(e) {
|
|
|
4112
4115
|
}
|
|
4113
4116
|
return d(), n;
|
|
4114
4117
|
}
|
|
4115
|
-
function
|
|
4118
|
+
function Ju(e, t) {
|
|
4116
4119
|
return Fn(e, t).replace(/^```.*$/gm, "").replace(/^\|[\s:|-]*\|$/gm, "").replace(/[ \t]*\|[ \t]*/g, " ").replace(/^[ \t]*(#{1,6}|>|[-*+]|\d+\.)[ \t]+/gm, "").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/(\*\*|__|\*|_|`|~~)/g, "").replace(/[ \t]+$/gm, "").replace(/\n{3,}/g, `
|
|
4117
4120
|
|
|
4118
4121
|
`).trim();
|
|
4119
4122
|
}
|
|
4120
|
-
const
|
|
4121
|
-
function
|
|
4123
|
+
const ed = "documents.describe", td = "documents.inspect", nd = "documents.apply";
|
|
4124
|
+
function rd(e) {
|
|
4122
4125
|
const t = e.indexOf(":");
|
|
4123
4126
|
if (t !== -1) return e.slice(0, t);
|
|
4124
4127
|
const n = e.indexOf(".");
|
|
4125
4128
|
return n === -1 ? e : e.slice(0, n);
|
|
4126
4129
|
}
|
|
4127
|
-
const
|
|
4128
|
-
function
|
|
4130
|
+
const od = "installation-id";
|
|
4131
|
+
function id(e) {
|
|
4129
4132
|
const t = [];
|
|
4130
4133
|
for (const n of Object.keys(e))
|
|
4131
4134
|
for (const r of Object.keys(e[n]))
|
|
4132
4135
|
t.push({ lang: n, key: r, value: e[n][r] });
|
|
4133
4136
|
return t;
|
|
4134
4137
|
}
|
|
4135
|
-
const
|
|
4138
|
+
const sd = "notification-source", ad = (e, t) => `${e}.pref.${t}`, cd = {
|
|
4136
4139
|
ai: [
|
|
4137
4140
|
"account.read",
|
|
4138
4141
|
"account.write",
|
|
@@ -4268,37 +4271,37 @@ const id = "notification-source", sd = (e, t) => `${e}.pref.${t}`, ad = {
|
|
|
4268
4271
|
user: ["user.read", "user.write"],
|
|
4269
4272
|
work: ["item.read", "item.write", "project.read", "project.write"]
|
|
4270
4273
|
}, on = 9e4, wi = ["out_of_office"], sn = (e) => wi.includes(e);
|
|
4271
|
-
function
|
|
4274
|
+
function ld(e, t, n) {
|
|
4272
4275
|
const r = n - e < on, o = t?.status && (!t.expiresAt || t.expiresAt > n) ? t : void 0;
|
|
4273
4276
|
if (!o?.status) return { online: r, status: r ? "available" : "offline" };
|
|
4274
4277
|
const i = o.status;
|
|
4275
4278
|
return !r && !sn(i) ? { online: !1, status: "offline" } : { online: r, status: i, message: o.message };
|
|
4276
4279
|
}
|
|
4277
|
-
function
|
|
4280
|
+
function ud(e, t) {
|
|
4278
4281
|
const n = t - e.lastSeenAt < on, r = n || sn(e.status) ? e.status : "offline";
|
|
4279
4282
|
return n === e.online && r === e.status ? e : { ...e, online: n, status: r };
|
|
4280
4283
|
}
|
|
4281
|
-
function
|
|
4284
|
+
function dd(e, t) {
|
|
4282
4285
|
return e?.teamId && t.includes(e.teamId) ? { teamId: e.teamId, mustChoose: !1 } : t.length === 1 ? { teamId: t[0], mustChoose: !1 } : { teamId: void 0, mustChoose: t.length > 1 };
|
|
4283
4286
|
}
|
|
4284
|
-
function
|
|
4287
|
+
function fd(e) {
|
|
4285
4288
|
return e.providerAvailable && e.allowed;
|
|
4286
4289
|
}
|
|
4287
|
-
const
|
|
4288
|
-
function
|
|
4290
|
+
const pd = "resources.describe", md = "resources.search", gd = "resources.resolve", hd = "resources.attached";
|
|
4291
|
+
function yd(e) {
|
|
4289
4292
|
const t = e.indexOf(":");
|
|
4290
4293
|
return t === -1 ? e : e.slice(0, t);
|
|
4291
4294
|
}
|
|
4292
|
-
const
|
|
4295
|
+
const bd = "/provider/scope/related", Ad = "/provider/scope/read", _d = "/provider/scope/acts", an = "auth";
|
|
4293
4296
|
function cn(e) {
|
|
4294
4297
|
const t = typeof e == "string" ? e.match(/apps\/([^/?#]+)/) : null;
|
|
4295
4298
|
return t ? t[1] : null;
|
|
4296
4299
|
}
|
|
4297
|
-
function
|
|
4300
|
+
function Ed(e) {
|
|
4298
4301
|
const t = cn(e);
|
|
4299
4302
|
return t ? t !== an : typeof e == "string" && e.startsWith("/wake");
|
|
4300
4303
|
}
|
|
4301
|
-
function
|
|
4304
|
+
function Sd(e) {
|
|
4302
4305
|
return typeof e != "string" || e === "" || e === "/" ? !0 : cn(e) === an;
|
|
4303
4306
|
}
|
|
4304
4307
|
function vi(e) {
|
|
@@ -4320,7 +4323,7 @@ function Ci(e, t) {
|
|
|
4320
4323
|
function Oi(e) {
|
|
4321
4324
|
return e.publicBasePath ?? `/apps/${e.name}`;
|
|
4322
4325
|
}
|
|
4323
|
-
function
|
|
4326
|
+
function Td(e) {
|
|
4324
4327
|
const t = [];
|
|
4325
4328
|
for (const n of e) {
|
|
4326
4329
|
if (!n?.name) continue;
|
|
@@ -4353,10 +4356,10 @@ function xi(e, t) {
|
|
|
4353
4356
|
Mi(r.pattern).test(e) && (!n || Ni(r.pattern, n.pattern)) && (n = r);
|
|
4354
4357
|
return n ? { ...n, params: { ...n.props, ...Ci(n.pattern, e) } } : null;
|
|
4355
4358
|
}
|
|
4356
|
-
function
|
|
4359
|
+
function Id(e, t) {
|
|
4357
4360
|
return xi(e, t) !== null;
|
|
4358
4361
|
}
|
|
4359
|
-
const
|
|
4362
|
+
const kd = 10 * 1024 * 1024, wd = 25 * 1024 * 1024, vd = "sync-target", Md = 20;
|
|
4360
4363
|
function At(e, t) {
|
|
4361
4364
|
const n = Array.isArray(t) ? t.find((r) => r.name === e.name)?.policy : void 0;
|
|
4362
4365
|
return n ? n !== "read" : e.access ? e.access !== "read" : !0;
|
|
@@ -4364,7 +4367,7 @@ function At(e, t) {
|
|
|
4364
4367
|
function Ri(e) {
|
|
4365
4368
|
return e.produces === "draft";
|
|
4366
4369
|
}
|
|
4367
|
-
function
|
|
4370
|
+
function Cd(e, t) {
|
|
4368
4371
|
if (t.allowed) {
|
|
4369
4372
|
const n = t.personalTools === "allow" && e.personal === !0;
|
|
4370
4373
|
if (!t.allowed.has(e.name) && !n) return "hidden";
|
|
@@ -4662,13 +4665,13 @@ function Gi(e, t = Li) {
|
|
|
4662
4665
|
return { text: n.filter((s) => (s.endedAt ?? 0) >= o).map((s) => $i(s.text).trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), segmentCount: n.length };
|
|
4663
4666
|
}
|
|
4664
4667
|
const Wi = 60;
|
|
4665
|
-
function
|
|
4668
|
+
function Od(e, t, n = Wi) {
|
|
4666
4669
|
const r = new Set(e), o = [...e];
|
|
4667
4670
|
for (const i of t)
|
|
4668
4671
|
!i || r.has(i) || (r.add(i), o.push(i));
|
|
4669
4672
|
return o.slice(-n);
|
|
4670
4673
|
}
|
|
4671
|
-
function
|
|
4674
|
+
function Nd(e) {
|
|
4672
4675
|
const { segments: t, now: n, state: r } = e;
|
|
4673
4676
|
if (r.lastTriggerAt && n - r.lastTriggerAt < Pi)
|
|
4674
4677
|
return { trigger: !1, reason: "too_soon" };
|
|
@@ -4680,7 +4683,7 @@ function Od(e) {
|
|
|
4680
4683
|
const s = ji(o.text);
|
|
4681
4684
|
return s.length ? r.lastQueryTerms?.length && Hi(s, r.lastQueryTerms) < Ui ? { trigger: !1, reason: "same_topic" } : { trigger: !0, text: o.text, terms: s, segmentCount: o.segmentCount } : { trigger: !1, reason: "no_speech" };
|
|
4682
4685
|
}
|
|
4683
|
-
const
|
|
4686
|
+
const xd = [
|
|
4684
4687
|
"personal",
|
|
4685
4688
|
"organization",
|
|
4686
4689
|
"connections",
|
|
@@ -4688,7 +4691,7 @@ const Nd = [
|
|
|
4688
4691
|
"work",
|
|
4689
4692
|
"administration",
|
|
4690
4693
|
"ai"
|
|
4691
|
-
],
|
|
4694
|
+
], Rd = "navNotice", Fe = {
|
|
4692
4695
|
// The lower bounds are deliberately generous: service ranges (0800/0900) are
|
|
4693
4696
|
// shorter than geographic numbers, and a too-strict minimum silently drops them.
|
|
4694
4697
|
// An over-permissive key is harmless — it simply matches nothing.
|
|
@@ -4742,7 +4745,7 @@ function qi(e) {
|
|
|
4742
4745
|
const r = t.indexOf("@");
|
|
4743
4746
|
return r >= 0 && (t = t.slice(0, r)), t.trim();
|
|
4744
4747
|
}
|
|
4745
|
-
function
|
|
4748
|
+
function Dd(e) {
|
|
4746
4749
|
if (!e) return !1;
|
|
4747
4750
|
const t = e.indexOf("@");
|
|
4748
4751
|
if (t <= 0) return !1;
|
|
@@ -4770,7 +4773,7 @@ function St(e, t) {
|
|
|
4770
4773
|
}
|
|
4771
4774
|
return !s && ee(o, i) ? `+${i.callingCode}${o}` : null;
|
|
4772
4775
|
}
|
|
4773
|
-
function
|
|
4776
|
+
function $d(e, t = 9) {
|
|
4774
4777
|
const n = (e ?? "").replace(/\D/g, "");
|
|
4775
4778
|
return n.length < t ? null : n.slice(-t);
|
|
4776
4779
|
}
|
|
@@ -4781,7 +4784,7 @@ function ln(e) {
|
|
|
4781
4784
|
const r = t.slice(0, n).split("+")[0], o = t.slice(n + 1);
|
|
4782
4785
|
return !r || !o.includes(".") ? null : `${r}@${o}`;
|
|
4783
4786
|
}
|
|
4784
|
-
function
|
|
4787
|
+
function Ld(e) {
|
|
4785
4788
|
const t = ln(e);
|
|
4786
4789
|
return t ? t.slice(t.lastIndexOf("@") + 1) : null;
|
|
4787
4790
|
}
|
|
@@ -4847,16 +4850,16 @@ const Ji = /* @__PURE__ */ new Set([
|
|
|
4847
4850
|
"proximus.be",
|
|
4848
4851
|
"scarlet.be"
|
|
4849
4852
|
]);
|
|
4850
|
-
function
|
|
4853
|
+
function Pd(e) {
|
|
4851
4854
|
const t = Zi(e);
|
|
4852
4855
|
return t ? Ji.has(t) : !1;
|
|
4853
4856
|
}
|
|
4854
|
-
function
|
|
4857
|
+
function Kd(e) {
|
|
4855
4858
|
if (!e) return !1;
|
|
4856
4859
|
const t = e.trim().toLowerCase();
|
|
4857
4860
|
return t === "tel" || t === "sms" || t === "whatsapp" || t === "fax";
|
|
4858
4861
|
}
|
|
4859
|
-
function
|
|
4862
|
+
function Ud(e, t, n) {
|
|
4860
4863
|
if (!e || !t) return null;
|
|
4861
4864
|
const r = e.trim().toLowerCase();
|
|
4862
4865
|
if (r === "tel" || r === "sms" || r === "whatsapp") {
|
|
@@ -5023,13 +5026,13 @@ function Mt(e) {
|
|
|
5023
5026
|
`).trim();
|
|
5024
5027
|
}
|
|
5025
5028
|
const As = /<\s*(html|body|div|p|table|br|span)\b/i;
|
|
5026
|
-
function
|
|
5029
|
+
function Fd(e) {
|
|
5027
5030
|
return As.test(e);
|
|
5028
5031
|
}
|
|
5029
|
-
function
|
|
5032
|
+
function Bd(e) {
|
|
5030
5033
|
return un(e, !1);
|
|
5031
5034
|
}
|
|
5032
|
-
function
|
|
5035
|
+
function jd(e) {
|
|
5033
5036
|
return un(e, !0);
|
|
5034
5037
|
}
|
|
5035
5038
|
function un(e, t) {
|
|
@@ -5052,7 +5055,7 @@ export {
|
|
|
5052
5055
|
Ne as AI_CAPABILITIES,
|
|
5053
5056
|
Nt as AI_VENDORS,
|
|
5054
5057
|
xn as ALLOWED_LINK_SCHEMES,
|
|
5055
|
-
|
|
5058
|
+
cd as APP_PERMISSIONS,
|
|
5056
5059
|
Ye as ARTIFACT_MAX_BLOCKS,
|
|
5057
5060
|
aa as ARTIFACT_MAX_BODY_BYTES,
|
|
5058
5061
|
Z as ARTIFACT_MAX_CELL_LEN,
|
|
@@ -5062,8 +5065,8 @@ export {
|
|
|
5062
5065
|
Qe as ARTIFACT_MAX_TABLE_ROWS,
|
|
5063
5066
|
Rt as ARTIFACT_MAX_TEXT_LEN,
|
|
5064
5067
|
jn as ASSIGNMENT_SCOPE_KIND,
|
|
5065
|
-
|
|
5066
|
-
|
|
5068
|
+
Mu as ASSIST_BANDS,
|
|
5069
|
+
vu as ASSIST_SOURCE_PROVIDER_GROUP,
|
|
5067
5070
|
pr as ATTENTION_STATUSES,
|
|
5068
5071
|
Do as AT_RISK_GAP,
|
|
5069
5072
|
an as AUTH_APP_NAME,
|
|
@@ -5078,8 +5081,8 @@ export {
|
|
|
5078
5081
|
Ui as CADENCE_MIN_NOVELTY,
|
|
5079
5082
|
Li as CADENCE_WINDOW_MS,
|
|
5080
5083
|
Fc as CLASSIFY_VARS,
|
|
5081
|
-
|
|
5082
|
-
|
|
5084
|
+
Xu as CONNECTOR_PROVIDER_GROUP,
|
|
5085
|
+
Yu as CONTEXT_COLLECT_SERVICE,
|
|
5083
5086
|
Zs as CORE_DIMENSIONS,
|
|
5084
5087
|
Ai as CommunicationScheme,
|
|
5085
5088
|
or as DAY_MS,
|
|
@@ -5091,9 +5094,9 @@ export {
|
|
|
5091
5094
|
Ul as DEFAULT_QUOTE_TEMPLATE_BLOCKS,
|
|
5092
5095
|
Kl as DEFAULT_TEMPLATE_CONDITIONS,
|
|
5093
5096
|
Ac as DEMAND_SOURCE_PROVIDER_GROUP,
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
+
nd as DOCUMENT_APPLY_SERVICE,
|
|
5098
|
+
ed as DOCUMENT_DESCRIBE_SERVICE,
|
|
5099
|
+
td as DOCUMENT_INSPECT_SERVICE,
|
|
5097
5100
|
Ye as DOCUMENT_MAX_BLOCKS,
|
|
5098
5101
|
aa as DOCUMENT_MAX_BODY_BYTES,
|
|
5099
5102
|
Z as DOCUMENT_MAX_CELL_LEN,
|
|
@@ -5109,9 +5112,9 @@ export {
|
|
|
5109
5112
|
Wo as DUTCH_SLOT_LABELS,
|
|
5110
5113
|
jc as EMPTY_WORKFLOW,
|
|
5111
5114
|
Ho as ENABLED_TRANSACTION_KINDS,
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
+
Gu as FEATURE_FOLDER_MANAGEMENT,
|
|
5116
|
+
zu as FEATURE_MESSAGE_REACTIONS,
|
|
5117
|
+
Wu as FEATURE_REMOTE_SEARCH,
|
|
5115
5118
|
De as FIXED_KINDS,
|
|
5116
5119
|
ie as FIXED_LEVELS,
|
|
5117
5120
|
Ke as FIXED_TYPES,
|
|
@@ -5121,9 +5124,9 @@ export {
|
|
|
5121
5124
|
rr as HOUR_MS,
|
|
5122
5125
|
As as HTML_BODY_RE,
|
|
5123
5126
|
L as INELIGIBLE,
|
|
5124
|
-
|
|
5127
|
+
od as INSTALLATION_HEADER,
|
|
5125
5128
|
lo as INTERACTION_KIND,
|
|
5126
|
-
|
|
5129
|
+
ju as InteractionParticipantRole,
|
|
5127
5130
|
Ir as KB_FALLBACK_LOCALE,
|
|
5128
5131
|
ot as KB_LOCALES,
|
|
5129
5132
|
ot as LOCALES,
|
|
@@ -5134,7 +5137,7 @@ export {
|
|
|
5134
5137
|
_s as MAX_BLOCKS,
|
|
5135
5138
|
Bt as MAX_COLLECTION_DEPTH,
|
|
5136
5139
|
Gn as MAX_DELEGATION_DEPTH,
|
|
5137
|
-
|
|
5140
|
+
kd as MAX_EDITABLE_FILE_BYTES,
|
|
5138
5141
|
Es as MAX_FIELDS,
|
|
5139
5142
|
Ss as MAX_LIST_ITEMS,
|
|
5140
5143
|
oc as MAX_MEMORY_BROWSE,
|
|
@@ -5144,12 +5147,12 @@ export {
|
|
|
5144
5147
|
Uo as MAX_TOPIC_CANDIDATES,
|
|
5145
5148
|
Ko as MAX_TOPIC_EXAMPLES,
|
|
5146
5149
|
me as MAX_TOPIC_EXAMPLE_CHARS,
|
|
5147
|
-
|
|
5150
|
+
wd as MAX_VIEWABLE_FILE_BYTES,
|
|
5148
5151
|
sc as MIN_MEMORY_BUDGET,
|
|
5149
|
-
|
|
5152
|
+
Rd as NAV_NOTICE_SLOT,
|
|
5150
5153
|
ql as NL_PAYMENT_TERMS,
|
|
5151
5154
|
uc as NL_TAX_RATES,
|
|
5152
|
-
|
|
5155
|
+
sd as NOTIFICATION_SOURCE_PROVIDER_GROUP,
|
|
5153
5156
|
$o as OFF_TRACK_GAP,
|
|
5154
5157
|
fc as ONBOARDING_SOURCE_PROVIDER_GROUP,
|
|
5155
5158
|
ve as PAUSE_HOLD,
|
|
@@ -5161,22 +5164,22 @@ export {
|
|
|
5161
5164
|
wi as PRESENCE_SURVIVES_OFFLINE,
|
|
5162
5165
|
Zo as PRODUCT_SCOPE_KIND,
|
|
5163
5166
|
mc as PROFILE_TOOL_DISPOSITIONS,
|
|
5164
|
-
|
|
5165
|
-
|
|
5167
|
+
Bu as PROVIDER_FEATURE_MESSAGE_TEMPLATES,
|
|
5168
|
+
Fu as PROVIDER_FEATURE_MESSAGE_WINDOW,
|
|
5166
5169
|
Ji as PUBLIC_EMAIL_DOMAINS,
|
|
5167
5170
|
it as READ_STEP_TYPES,
|
|
5168
5171
|
vr as RELATED_SUBJECT_KINDS,
|
|
5169
5172
|
nn as RESERVED_STATUS_KEYS,
|
|
5170
5173
|
nu as RESERVED_TYPE_KEYS,
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5174
|
+
hd as RESOURCE_ATTACHED_SERVICE,
|
|
5175
|
+
pd as RESOURCE_DESCRIBE_SERVICE,
|
|
5176
|
+
gd as RESOURCE_RESOLVE_SERVICE,
|
|
5177
|
+
md as RESOURCE_SEARCH_SERVICE,
|
|
5175
5178
|
Zr as SCHEDULE_ENTRY_SCOPE_KIND,
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5179
|
+
_d as SCOPE_ACTS_ROUTE,
|
|
5180
|
+
Ad as SCOPE_READ_ROUTE,
|
|
5181
|
+
bd as SCOPE_RELATED_ROUTE,
|
|
5182
|
+
xd as SETTINGS_CATEGORIES,
|
|
5180
5183
|
Ca as SIGNATURE_INTENTS,
|
|
5181
5184
|
gr as SLA_HOURS_BY_PRIORITY,
|
|
5182
5185
|
el as SLA_METRICS,
|
|
@@ -5186,8 +5189,8 @@ export {
|
|
|
5186
5189
|
Co as STRATEGY_ITEM_SCOPE_KIND,
|
|
5187
5190
|
cr as SUMMARY_MIN_LAST_CHARS,
|
|
5188
5191
|
ar as SUMMARY_MIN_MESSAGES,
|
|
5189
|
-
|
|
5190
|
-
|
|
5192
|
+
Md as SYNC_RUN_MAX_ERRORS,
|
|
5193
|
+
vd as SYNC_TARGET_PROVIDER_GROUP,
|
|
5191
5194
|
Bn as TERMINAL_ASSIGNMENT_STATUSES,
|
|
5192
5195
|
yo as TERMINAL_RUN_STATUSES,
|
|
5193
5196
|
Pe as TRANSACTION_KINDS,
|
|
@@ -5195,7 +5198,7 @@ export {
|
|
|
5195
5198
|
Kc as TRIGGER_VARS,
|
|
5196
5199
|
Or as UNKNOWN_KIND,
|
|
5197
5200
|
Oo as UNKNOWN_LEVEL_ORDER,
|
|
5198
|
-
|
|
5201
|
+
Vu as UNSUPPORTED,
|
|
5199
5202
|
vn as USAGE_DIMENSIONS,
|
|
5200
5203
|
Mn as USAGE_DIMENSION_IDS,
|
|
5201
5204
|
Jr as WORKSTREAM_SCOPE_KIND,
|
|
@@ -5221,7 +5224,7 @@ export {
|
|
|
5221
5224
|
Nc as actorKey,
|
|
5222
5225
|
Cl as addExampleCandidate,
|
|
5223
5226
|
$e as addWorkingMs,
|
|
5224
|
-
|
|
5227
|
+
ud as agePresenceEntry,
|
|
5225
5228
|
di as aiAttachmentKind,
|
|
5226
5229
|
Iu as aiAttachmentRejection,
|
|
5227
5230
|
Xe as aiBudgetLimit,
|
|
@@ -5249,7 +5252,7 @@ export {
|
|
|
5249
5252
|
gc as belongsOnCalendar,
|
|
5250
5253
|
Ta as belongsToEntity,
|
|
5251
5254
|
Ls as buildActivityPreview,
|
|
5252
|
-
|
|
5255
|
+
$u as buildChannelIntents,
|
|
5253
5256
|
da as buildShareKeys,
|
|
5254
5257
|
Gi as buildWindow,
|
|
5255
5258
|
nr as businessEntitySender,
|
|
@@ -5263,15 +5266,15 @@ export {
|
|
|
5263
5266
|
Os as carriesText,
|
|
5264
5267
|
ec as categoryLabel,
|
|
5265
5268
|
si as categoryOf,
|
|
5266
|
-
|
|
5269
|
+
Uu as channelKindForScheme,
|
|
5267
5270
|
ws as channelKindOf,
|
|
5268
5271
|
_l as checkInOverdueMs,
|
|
5269
5272
|
Bc as clampStepMaxTokens,
|
|
5270
5273
|
Fa as classifyMail,
|
|
5271
|
-
|
|
5272
|
-
|
|
5274
|
+
jd as cleanMessageMarkdown,
|
|
5275
|
+
Bd as cleanMessageText,
|
|
5273
5276
|
Ia as codeQuery,
|
|
5274
|
-
|
|
5277
|
+
Ou as compareAssistRank,
|
|
5275
5278
|
Po as compareWorkTypes,
|
|
5276
5279
|
tr as conditionHolds,
|
|
5277
5280
|
Go as copyFrom,
|
|
@@ -5284,41 +5287,41 @@ export {
|
|
|
5284
5287
|
_u as cycleOrder,
|
|
5285
5288
|
Eu as cycleState,
|
|
5286
5289
|
_a as decideAssignmentState,
|
|
5287
|
-
|
|
5288
|
-
|
|
5290
|
+
Nd as decideCadence,
|
|
5291
|
+
Ru as decideIncomingCall,
|
|
5289
5292
|
kr as defaultLocaleOf,
|
|
5290
5293
|
gu as defaultStatusKey,
|
|
5291
5294
|
Yo as defaultTemplateBlocks,
|
|
5292
|
-
|
|
5295
|
+
Hu as defineIntent,
|
|
5293
5296
|
Ea as delegationRefusal,
|
|
5294
5297
|
Sr as depthOf,
|
|
5295
|
-
|
|
5298
|
+
ld as derivePresence,
|
|
5296
5299
|
ta as describeClause,
|
|
5297
|
-
|
|
5300
|
+
Du as disabledIntentsFromCapabilities,
|
|
5298
5301
|
la as documentBodyBytes,
|
|
5299
|
-
|
|
5302
|
+
rd as documentKindOf,
|
|
5300
5303
|
ua as documentOutline,
|
|
5301
5304
|
Fn as documentToMarkdown,
|
|
5302
|
-
|
|
5305
|
+
Ju as documentToText,
|
|
5303
5306
|
ol as dueAtOf,
|
|
5304
5307
|
Vl as dueDateFrom,
|
|
5305
5308
|
Sl as elapsedSeconds,
|
|
5306
|
-
|
|
5307
|
-
|
|
5309
|
+
Ld as emailDomain,
|
|
5310
|
+
Ud as endpointKey,
|
|
5308
5311
|
Lr as erlangC,
|
|
5309
5312
|
Ci as extractParams,
|
|
5310
5313
|
ji as extractTerms,
|
|
5311
5314
|
Da as fillDocument,
|
|
5312
5315
|
er as fillText,
|
|
5313
|
-
|
|
5314
|
-
|
|
5316
|
+
Pu as filterByEndpoint,
|
|
5317
|
+
Lu as filterByIntent,
|
|
5315
5318
|
bi as filterByTargetScheme,
|
|
5316
5319
|
ea as filterableDimensions,
|
|
5317
5320
|
oe as findAiVendor,
|
|
5318
5321
|
fl as fixedLevelForName,
|
|
5319
5322
|
iu as fixedTypeForName,
|
|
5320
5323
|
su as fixedTypes,
|
|
5321
|
-
|
|
5324
|
+
id as flattenLocales,
|
|
5322
5325
|
W as floorToPeriod,
|
|
5323
5326
|
Ic as forecastIntervals,
|
|
5324
5327
|
no as formatActingIdentity,
|
|
@@ -5329,7 +5332,7 @@ export {
|
|
|
5329
5332
|
G as formatPeriod,
|
|
5330
5333
|
Gl as formatSeriesNumber,
|
|
5331
5334
|
al as formatSlaDuration,
|
|
5332
|
-
|
|
5335
|
+
wu as freshSources,
|
|
5333
5336
|
Ks as getActivitySeenUserIds,
|
|
5334
5337
|
Na as getContactEndpoints,
|
|
5335
5338
|
Va as getShortTitle,
|
|
@@ -5350,16 +5353,16 @@ export {
|
|
|
5350
5353
|
Fs as isChatMessageActivity,
|
|
5351
5354
|
Wa as isClosed,
|
|
5352
5355
|
xs as isConnectedType,
|
|
5353
|
-
|
|
5356
|
+
Ed as isDeepLink,
|
|
5354
5357
|
Tr as isDescendant,
|
|
5355
5358
|
La as isEligible,
|
|
5356
5359
|
Us as isEmailActivity,
|
|
5357
5360
|
Rl as isFrozen,
|
|
5358
5361
|
rl as isHeldClock,
|
|
5359
|
-
|
|
5362
|
+
Fd as isHtmlBody,
|
|
5360
5363
|
Vc as isInFlight,
|
|
5361
5364
|
fr as isInteractionUnseen,
|
|
5362
|
-
|
|
5365
|
+
Sd as isLandingPath,
|
|
5363
5366
|
sr as isLikelyBulk,
|
|
5364
5367
|
Ct as isMessageShape,
|
|
5365
5368
|
vs as isMessageType,
|
|
@@ -5370,8 +5373,8 @@ export {
|
|
|
5370
5373
|
br as isParked,
|
|
5371
5374
|
bo as isPaused,
|
|
5372
5375
|
Ns as isPlaybookAuthoredType,
|
|
5373
|
-
|
|
5374
|
-
|
|
5376
|
+
Pd as isPublicEmailDomain,
|
|
5377
|
+
Id as isPublicPath,
|
|
5375
5378
|
Ar as isReminderActive,
|
|
5376
5379
|
Cs as isReplyableType,
|
|
5377
5380
|
ja as isSlaAtRisk,
|
|
@@ -5393,22 +5396,22 @@ export {
|
|
|
5393
5396
|
Qa as localeInstruction,
|
|
5394
5397
|
qa as localeName,
|
|
5395
5398
|
Ja as localesOf,
|
|
5396
|
-
|
|
5399
|
+
Dd as looksLikeEmail,
|
|
5397
5400
|
Lt as lookup,
|
|
5398
5401
|
wa as marginCents,
|
|
5399
|
-
|
|
5402
|
+
Zu as markdownToDocument,
|
|
5400
5403
|
oa as matchApprovalPolicy,
|
|
5401
|
-
|
|
5404
|
+
Ku as matchContactToIntents,
|
|
5402
5405
|
xi as matchPublicRoute,
|
|
5403
5406
|
nc as mcpCredentialScope,
|
|
5404
5407
|
rc as mcpToolPrefix,
|
|
5405
5408
|
gl as measureRatio,
|
|
5406
5409
|
Hs as mergeDefaultFlags,
|
|
5407
|
-
|
|
5410
|
+
Od as mergeShownKeys,
|
|
5408
5411
|
hn as messageCountsAs,
|
|
5409
5412
|
na as metricOption,
|
|
5410
5413
|
Wt as minutesOn,
|
|
5411
|
-
|
|
5414
|
+
Kd as needsPhoneRegion,
|
|
5412
5415
|
Ms as nestsUnderParent,
|
|
5413
5416
|
dl as nextLevelBelow,
|
|
5414
5417
|
il as nextSlaClock,
|
|
@@ -5419,10 +5422,10 @@ export {
|
|
|
5419
5422
|
ln as normalizeEmail,
|
|
5420
5423
|
P as normalizeExample,
|
|
5421
5424
|
Wn as normalizeGtin,
|
|
5422
|
-
|
|
5425
|
+
ad as notificationPrefKey,
|
|
5423
5426
|
Hi as novelty,
|
|
5424
|
-
|
|
5425
|
-
|
|
5427
|
+
Qu as operationDescriptor,
|
|
5428
|
+
qu as operationsForKind,
|
|
5426
5429
|
$a as organizationSender,
|
|
5427
5430
|
fe as overlapSeconds,
|
|
5428
5431
|
_c as overlaps,
|
|
@@ -5438,7 +5441,7 @@ export {
|
|
|
5438
5441
|
Jc as pauseBitFor,
|
|
5439
5442
|
ia as pendingApprovers,
|
|
5440
5443
|
Js as periodsInRange,
|
|
5441
|
-
|
|
5444
|
+
$d as phoneSuffix,
|
|
5442
5445
|
Ua as pickMailHeaders,
|
|
5443
5446
|
Ra as pickTemplate,
|
|
5444
5447
|
Mc as placeLumps,
|
|
@@ -5451,7 +5454,7 @@ export {
|
|
|
5451
5454
|
Fl as productScopeKey,
|
|
5452
5455
|
pu as projectDossierKeys,
|
|
5453
5456
|
Oi as publicBasePathFor,
|
|
5454
|
-
|
|
5457
|
+
Td as publicRoutePatterns,
|
|
5455
5458
|
ba as reactionWakesAssignment,
|
|
5456
5459
|
js as readDefaultFlags,
|
|
5457
5460
|
ye as readPath,
|
|
@@ -5470,8 +5473,8 @@ export {
|
|
|
5470
5473
|
gi as resolveChannelIntents,
|
|
5471
5474
|
va as resolvePrice,
|
|
5472
5475
|
Qn as resolveSignature,
|
|
5473
|
-
|
|
5474
|
-
|
|
5476
|
+
dd as resolveWorkMode,
|
|
5477
|
+
yd as resourceKindOf,
|
|
5475
5478
|
Al as rollupChildren,
|
|
5476
5479
|
z as roundHalfUp,
|
|
5477
5480
|
Oc as runActor,
|
|
@@ -5483,14 +5486,14 @@ export {
|
|
|
5483
5486
|
tu as scoreWorkItem,
|
|
5484
5487
|
tc as selectLenses,
|
|
5485
5488
|
Pr as serviceLevel,
|
|
5486
|
-
|
|
5487
|
-
|
|
5489
|
+
xu as sessionsHoldCannotReach,
|
|
5490
|
+
Nu as sessionsToHold,
|
|
5488
5491
|
Xl as shadowTermsByCode,
|
|
5489
5492
|
$t as shareKeyForTeam,
|
|
5490
5493
|
Dt as shareKeyForUser,
|
|
5491
5494
|
fa as shareKeysForViewer,
|
|
5492
5495
|
Tc as shortfalls,
|
|
5493
|
-
|
|
5496
|
+
fd as shouldRunAudioPipeline,
|
|
5494
5497
|
sl as slaBadgeTone,
|
|
5495
5498
|
Ba as slaHoursByInbox,
|
|
5496
5499
|
_r as slaHoursFor,
|
|
@@ -5506,7 +5509,7 @@ export {
|
|
|
5506
5509
|
gn as stripHtml,
|
|
5507
5510
|
Xc as subjectKeyOf,
|
|
5508
5511
|
Xt as subjectOf,
|
|
5509
|
-
|
|
5512
|
+
Cu as subjectRef,
|
|
5510
5513
|
du as suggestProjectKey,
|
|
5511
5514
|
yl as suggestedHealth,
|
|
5512
5515
|
qc as summarizeReactions,
|
|
@@ -5521,8 +5524,9 @@ export {
|
|
|
5521
5524
|
ao as toolBareName,
|
|
5522
5525
|
Pc as toolDisplayName,
|
|
5523
5526
|
ne as toolName,
|
|
5527
|
+
ku as toolReversible,
|
|
5524
5528
|
pa as toolSourceKinds,
|
|
5525
|
-
|
|
5529
|
+
Cd as toolVerdict,
|
|
5526
5530
|
jo as topicOfferedForTeam,
|
|
5527
5531
|
Nl as topicsForTeam,
|
|
5528
5532
|
Kr as trafficIntensity,
|
|
@@ -45,7 +45,20 @@ export interface ToolCatalogEntry {
|
|
|
45
45
|
surface?: "interactive";
|
|
46
46
|
/** What it leaves for a human to finish. See {@link AiToolDescriptor.produces}. */
|
|
47
47
|
produces?: "draft";
|
|
48
|
+
/** Whether it can be taken back. See {@link AiToolDescriptor.reversible}. */
|
|
49
|
+
reversible?: "self" | "none" | "idempotent";
|
|
48
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* How an action can be taken back. Reads the fail-safe default in one place, so no caller has to
|
|
53
|
+
* remember that absent means irreversible.
|
|
54
|
+
*
|
|
55
|
+
* A **read** is `"idempotent"` by construction: it changed nothing, so there is nothing to
|
|
56
|
+
* reverse and running it again is free. Only writes have a real answer here.
|
|
57
|
+
*/
|
|
58
|
+
export declare function toolReversible(tool: {
|
|
59
|
+
access?: "read" | "write";
|
|
60
|
+
reversible?: "self" | "none" | "idempotent";
|
|
61
|
+
}): "self" | "none" | "idempotent";
|
|
49
62
|
/**
|
|
50
63
|
* Can this tool reach outside the building? A read never does; an `effect: "internal"` write says
|
|
51
64
|
* so itself. Everything else — including a tool that declares neither — counts as outward, so a
|
|
@@ -199,6 +212,41 @@ export interface AiToolDescriptor extends AiTool {
|
|
|
199
212
|
* whichever one its description matched. See `tools/mode.ts` in the ai app.
|
|
200
213
|
*/
|
|
201
214
|
produces?: "draft";
|
|
215
|
+
/**
|
|
216
|
+
* Can this be taken back, and how?
|
|
217
|
+
*
|
|
218
|
+
* The question a rule engine forces: one badly written rule does not touch one conversation
|
|
219
|
+
* but forty, and "undo this run" then has to say honestly what it can and cannot put back.
|
|
220
|
+
* This generalises `DocumentOperation.undoable`, which already carries the idea for document
|
|
221
|
+
* edits — *"'I changed it, undo if you disagree' is a promise that has to hold."*
|
|
222
|
+
*
|
|
223
|
+
* - `"self"` — **the same call with the previous value undoes it** (status, assignee, an
|
|
224
|
+
* attribute, an SLA profile). The executor records what was there before; undo replays that
|
|
225
|
+
* through this same tool, and nothing else has to know anything.
|
|
226
|
+
*
|
|
227
|
+
* Deliberately narrow. `add_tag` is reversible too, but by a *different* tool
|
|
228
|
+
* (`remove_tag`), and expressing that needs a second field naming the counter-action. That
|
|
229
|
+
* field can arrive the day an undo actually wants it; until then such a tool stays on the
|
|
230
|
+
* default and simply is not offered as undoable. Under-promising is the safe direction.
|
|
231
|
+
* - `"none"` — irreversible. A sent mail, a webhook, a row at a third party. The gate belongs
|
|
232
|
+
* *before* it; afterwards there is nothing to do but send a second message, and that is a
|
|
233
|
+
* human's decision, not an undo.
|
|
234
|
+
* - `"idempotent"` — running it again is the repair (a sync landing). Replay, never reverse.
|
|
235
|
+
*
|
|
236
|
+
* **Absent means `"none"`.** The same fail-safe-by-absence as {@link AiToolDescriptor.effect},
|
|
237
|
+
* and for the same reason. Guessing wrong this way costs a button that stays grey; the other
|
|
238
|
+
* way it costs a promise that breaks.
|
|
239
|
+
*
|
|
240
|
+
* **What `"self"` demands before you declare it, and why nothing does yet.** Replaying the
|
|
241
|
+
* previous value only works if the tool can express *every* previous value — including "there
|
|
242
|
+
* was nothing here". Today several cannot: `update_interaction` does
|
|
243
|
+
* `if (assignedUserId) patch.assignedUserId = …`, so an empty string is falsy and an
|
|
244
|
+
* assignment cannot be taken back; the same shape as the older scar where `null` never
|
|
245
|
+
* survives the invoke transport and clearing a field needs an explicit clear-list. So a tool
|
|
246
|
+
* becomes `"self"` when its clear-semantics are fixed, not when someone decides it feels
|
|
247
|
+
* reversible — which is exactly why the default is the careful one.
|
|
248
|
+
*/
|
|
249
|
+
reversible?: "self" | "none" | "idempotent";
|
|
202
250
|
}
|
|
203
251
|
/**
|
|
204
252
|
* Body of `POST /provider/ai-tools/invoke`. Replaces five inline structural types (the caller in
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|