/*! For license information please see chipbot.js.LICENSE.txt */ !function(){"use strict";function t(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:"").match(i(this,d));return t&&t[0]}},{key:"matches",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return i(this,p).filter((function(e){return new RegExp(e,"i").test(t)}))}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.exclude(this.matches(t))}},{key:"extend",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];[].push.apply(i(this,p),e.filter((function(e){return-1===u(t,v,g).call(t,e)})).map((function(t){return t.toLowerCase()}))),u(this,y,m).call(this)}},{key:"exclude",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.length;e--;){var r=u(this,v,g).call(this,t[e]);r>-1&&i(this,p).splice(r,1)}u(this,y,m).call(this)}},{key:"spawn",value:function(t){return new n(t||i(this,p))}}],c&&t(o.prototype,c),Object.defineProperty(o,"prototype",{writable:!1}),n}();function m(){a(this,d,new RegExp(i(this,p).join("|"),"i"))}function g(t){return i(this,p).indexOf(t.toLowerCase())}var b=new w;function _(){return"main"===window.__CB_BUILD_TYPE}function O(){return _()?"https://static.getchipbot.com":"https://static.sameorigin.net"}function E(){}function x(){var t=document.querySelector('[src*="chipbot.js"]');if(!window.CHIPBOT_DOMAIN_ID&&t&&t.src.indexOf("?")>=0){var e=new URL(t.src),r=e.searchParams.get("id"),n=e.searchParams.get("d");r&&(window.CHIPBOT_ID=r),n&&(window.CHIPBOT_DOMAIN_ID=n)}}function I(){window.CHIPBOT_ID&&[{accountId:"EfG2PGMQ-a",domainId:"XInCTkAw0"},{accountId:"0DeHb4Z3km",domainId:"C6EC2OJDq"},{accountId:"actT34SD67Rz5jm",domainId:"dom_PNCVxctHXSbc"}].forEach((function(t){var e=t.accountId,r=t.domainId;e===window.CHIPBOT_ID&&(window.CHIPBOT_DOMAIN_ID=r)}))}function k(){try{var t=!1;window.CHIPBOT_DOMAIN_ID||([E,x,I].forEach((function(e){var r=!!window.CHIPBOT_DOMAIN_ID;if(!r)try{e()}catch(t){console.error("failed to run `".concat(e.name,"`"),t)}!r&&window.CHIPBOT_DOMAIN_ID&&(t=!0)})),t&&!{REVISION:"6c1ee8b",BUILD_DATE:"2025-10-06T19:58:16.965Z",TAG_DATE:"2025-10-06T19:50:49.000Z",TAG:"v20.0.0","process.env.NODE_ENV":"production",APP_HOST:"https://getchipbot.com",EDGE_API_HOST:"https://api.getchipbot.com",SCRIPT_RUN_NAME:"build",NODE_ENV_CLIENT:"production"}.CHIPBOT_DOMAIN_ID&&console.warn("\n You're currently using a legacy embed code. Consider updating \n your ChipBot install code: https://getchipbot.com/install\n ".replace(/\s\s+/g," ").trim()))}catch(t){console.error("failed resolve legacy account IDs",t)}}function L(){return window.CHIPBOT_CACHE_KEY||Math.round(Date.now()/1e3/86400).toString()}var P="c";function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function j(){j=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),c=new D(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function w(){}function m(){}function g(){}var b={};s(b,a,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(N([])));O&&O!==r&&n.call(O,a)&&(b=O);var E=g.prototype=w.prototype=Object.create(b);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==T(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=h;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=L(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function C(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function D(){try{return new DOMRect&&!0}catch(t){return!1}}function N(t){return S.apply(this,arguments)}function S(){var t;return t=j().mark((function t(e){var r,n,o,i;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,"dom_-nqkc9QPdv8b"===e){t.next=3;break}return t.abrupt("return");case 3:if("function"==typeof(r=Object.create)&&Function.prototype.toString.call(r).indexOf("[native code]")>=0){t.next=20;break}if(document.body){t.next=9;break}return t.next=9,new Promise((function(t){return document.addEventListener("DOMContentLoaded",(function(){return t()}),{once:!0})}));case 9:if((o=document.createElement("iframe")).style.display="none",document.body.appendChild(o),i=null===(n=o.contentWindow)||void 0===n||null===(n=n.Object)||void 0===n?void 0:n.create,document.body.removeChild(o),"function"!=typeof i){t.next=18;break}r=i,t.next=20;break;case 18:return console.warn("Iframe fallback failed to get native Object.create"),t.abrupt("return");case 20:Object.defineProperty(Object,"create",{configurable:!1,writable:!1,enumerable:!1,value:r}),t.next=26;break;case 23:t.prev=23,t.t0=t.catch(0),console.warn("Failed to preserve native Object.create",t.t0);case 26:case"end":return t.stop()}}),t,null,[[0,23]])})),S=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){C(i,n,o,a,c,"next",t)}function c(t){C(i,n,o,a,c,"throw",t)}a(void 0)}))},S.apply(this,arguments)}function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}function B(){B=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),c=new j(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function w(){}function m(){}function g(){}var b={};s(b,a,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(C([])));O&&O!==r&&n.call(O,a)&&(b=O);var E=g.prototype=w.prototype=Object.create(b);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==A(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=h;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=L(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function H(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var M=_()?"ChipBot":"Bot",G="[".concat(M," Bootloader]");function z(){var t;return t=B().mark((function t(){var e;return B().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.__CB_BUILD_TYPE="main",window.__CB_CDN_HOST=O(),window.DOMAIN_ID_CB&&!window.CHIPBOT_DOMAIN_ID&&(window.CHIPBOT_DOMAIN_ID=window.DOMAIN_ID_CB),N(window.CHIPBOT_DOMAIN_ID||""),!b(window.navigator.userAgent)||((null===(e=window)||void 0===e||null===(e=e.location)||void 0===e?void 0:e.search)||"").includes("load_chipbot")){t.next=8;break}return console.log(G,"loading aborted, bot detected"),t.abrupt("return");case 8:if([D()].every((function(t){return t}))){t.next=12;break}return console.warn(G,"loading aborted, browser not compatible"),t.abrupt("return");case 12:["dom_hSZnr2kqn3JT","dom_TyWVt0VJ7k-_"].indexOf(window.CHIPBOT_DOMAIN_ID||""),t.next=15;break;case 15:if(k(),window.CHIPBOT_DOMAIN_ID){t.next=19;break}return console.warn(G,"loading aborted, no domain ID found"),t.abrupt("return");case 19:return t.next=21,r=window.CHIPBOT_DOMAIN_ID,fetch("".concat(O(),"/").concat(P,"/d/").concat(r,"/cache")).then((function(t){return 200===t.status?t.text():L()})).then((function(t){return e=t,window.CHIPBOT_CACHE_KEY=e||window.CHIPBOT_CACHE_KEY,window.CHIPBOT_CACHE_KEY||"unset-cache-key";var e})).catch((function(){return L()}));case 21:if(!(t.sent.indexOf("disabled")>=0)||window.CHIPBOT_PREVIEW_ONLY||window.AGENCY_ACCOUNT_ID){t.next=25;break}return console.warn(["".concat(M," is disabled. Enable at least one feature within the dashboard"),_()?"".concat("https://getchipbot.com","/user/dashboard"):""].join(" ")),t.abrupt("return");case 25:"https://static.getchipbot.com/edge/p/2025/10/06/6c1ee8b.f6d18e9.js|https://static.getchipbot.com/edge/p/2025/10/06/6c1ee8b.83b9a01.js|https://static.getchipbot.com/edge/p/2025/10/06/582.6c1ee8b.8f38d49.js|https://static.getchipbot.com/edge/p/2025/10/06/875.6c1ee8b.e56fc59.js|https://static.getchipbot.com/edge/p/2025/10/06/6c1ee8b.a30ff29.js".split("|").forEach((function(t){var e,r=document.getElementsByTagName("script")[0],n=document.createElement("script");n.setAttribute("data-cfasync","false"),n.src=t,n.async=!0,null==r||null===(e=r.parentNode)||void 0===e||e.insertBefore(n,r)}));case 27:case"end":return t.stop()}var r}),t)})),z=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){H(i,n,o,a,c,"next",t)}function c(t){H(i,n,o,a,c,"throw",t)}a(void 0)}))},z.apply(this,arguments)}try{(function(){return z.apply(this,arguments)})().catch((function(t){console.error(G,t)}))}catch(t){console.error(G,t)}}();