PageSourceSearch

https://timsupport.bubbleapps.io/package/static_js/fc40f19c8afe8d8…/index/xnull/xfalse/xfalse/xfalse/static.js

js timsupport.bubbleapps.io collected 2026-10-03 08:25:05 UTC 934,133 bytes, 185 lines download raw bytes

1
2    if (!window._bubble_page_load_data) {
3        window._bubble_page_load_data = {}
4    }
5    if (!window._bubble_page_load_data.js_execution_timings) {
6      window._bubble_page_load_data.js_execution_timings = {}
7    }
8    window._bubble_page_load_data.js_execution_timings.static_js_start_execution = Date.now();
9window.preloaded = window.preloaded || {};
10window._bubble_watcher_cache = {"bTGYf":{"statics":{"title":true,"backdropBackgroundData":true,"containerClass":true,"id":true},"styles":{"6":{},"12":{"opacity":1}},"props":{"title":"Bubble | No-code apps","backdropBackgroundData":{"is_backdrop":true,"background_style":"bgcolor","bgcolor":"rgba(255, 255, 255, 1)","background_gradient_direction":"top","background_gradient_from":"#FFFFFF","background_gradient_mid":null,"background_gradient_to":"#AAAAAA","background_image":null,"center_background":null,"crop_responsive":null,"background_size_cover":null,"repeat_background_vertical":null,"repeat_background_horizontal":null,"background_color_if_empty_image":"rgba(255, 255, 255, 0.0)","background_gradient_style":"linear","background_radial_gradient_shape":"ellipse","background_radial_gradient_size":"farthest-corner","background_radial_gradient_xpos":10,"background_radial_gradient_ypos":10,"background_gradient_custom_angle":45,"backdrop_paralax_speed":0.2,"backdrop_image_paralax":false},"containerClass":"bubble-r-container relative"},"preCached":{"shouldAddWrapper":false}},"bTGyY":{"statics":{"useDotDotDot":true,"verticalCenter":true,"id":true},"styles":{"1":{},"11":{"opacity":1},"17":{}},"props":{"textData":{"html":""},"useDotDotDot":false,"verticalCenter":false},"preCached":{"tagName":"div"}},"bTLgr1":{"statics":{"containerClass":true,"id":true},"styles":{"0":{"overflow":"visible"},"2":{},"8":{"opacity":1},"14":{}},"props":{"containerClass":"bubble-r-container flex column","id":"myGroup"},"preCached":{"shouldAddWrapper":false}},"bTLgb1":{"statics":{"buttonType":true,"text":true,"iconPlacement":true,"icon":true,"spinIcon":true,"icon_transition_style":true,"id":true},"styles":{"0":{},"9":{"opacity":1},"16":{}},"props":{"buttonType":"label","text":"...edit me...","iconPlacement":"left","icon":{"set":"material","variant":"outlined","icon":"star_border"},"spinIcon":false,"icon_transition_style":""},"preCached":{"icon_transition_style":""}},"bTLhE1":{"statics":{"html":true,"useIframe":true,"id":true},"styles":{"0":{},"6":{"opacity":1},"12":{}},"props":{"html":"<style>\n#myGroup, #myGroup * {\n    font-family: Arial, Helvetica, sans-serif !important;\n}\n</style>","useIframe":false},"preCached":{"deferDrawing":null}}}
11window.preloaded['app/page_metadata:index'] = true;
12/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
13// BUBBLE PATCH NOTES - offset() changed below, see comment
14"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=true),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.no
14deName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
14,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){
15    var e=this[0];
16    // BUBBLE PATCH NOTES - offset() changed below, see comment in non-minified
17    if (!e) return {left:0, top:0};
18    return(!e||e.nodeType&&e.getBoundingClientRect)
19        ?I.apply(this,arguments)
20        :(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length
21            ?this
22            :({left:0,top:0}))},"offset-valid-elem"
23),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
24
25window.preloaded['js/vendor:jquery-migrate-3.4.1.min.js'] = true;
26
27window.bubble_version = 29;
28window.preloaded['app/metadata:bubble_version'] = true;
29window._bubble_page_load_data.hardcoded_plugins = window._bubble_page_load_data.hardcoded_plugins || {};
30window._bubble_page_load_data.hardcoded_plugins['apiconnector2'] = true;
31window.__code__ = window.__code__ || {};
32if(!window.__code__['0fc81b8accbb3692a1df256f595e17e71bad75c37d3c1438233633dccd2fa45e']){window.__code__['0fc81b8accbb3692a1df256f595e17e71bad75c37d3c1438233633dccd2fa45e']=1;
33
34"use strict";(()=>{var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exp
vendor: 5,835 bytes, line 34
34orts:{}}).exports,mod),mod.exports};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));var init_define_process_env=__esm({"<define:process.env>"(){}});var require_base64_js=__commonJS({"node_modules/base64-js/index.js"(exports2){"use strict";init_define_process_env();init_shim();exports2.byteLength=byteLength;exports2.toByteArray=toByteArray;exports2.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(i=0,len=code.length;i<len;++i)lookup[i]=code[i],revLookup[code.charCodeAt(i)]=i;var i,len;revLookup["-".charCodeAt(0)]=62;revLookup["_".charCodeAt(0)]=63;function getLens(b64){var len2=b64.length;if(len2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var validLen=b64.indexOf("=");validLen===-1&&(validLen=len2);var placeHoldersLen=validLen===len2?0:4-validLen%4;return[validLen,placeHoldersLen]}function byteLength(b64){var lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function toByteArray(b64){var tmp,lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1],arr=new Arr(_byteLength(b64,validLen,placeHoldersLen)),curByte=0,len2=placeHoldersLen>0?validLen-4:validLen,i2;for(i2=0;i2<len2;i2+=4)tmp=revLookup[b64.charCodeAt(i2)]<<18|revLookup[b64.charCodeAt(i2+1)]<<12|revLookup[b64.charCodeAt(i2+2)]<<6|revLookup[b64.charCodeAt(i2+3)],arr[curByte++]=tmp>>16&255,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255;return placeHoldersLen===2&&(tmp=revLookup[b64.charCodeAt(i2)]<<2|revLookup[b64.charCodeAt(i2+1)]>>4,arr[curByte++]=tmp&255),placeHoldersLen===1&&(tmp=revLookup[b64.charCodeAt(i2)]<<10|revLookup[b64.charCodeAt(i2+1)]<<4|revLookup[b64.charCodeAt(i2+2)]>>2,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255),arr}function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[num&63]}function encodeChunk(uint8,start,end){for(var tmp,output=[],i2=start;i2<end;i2+=3)tmp=(uint8[i2]<<16&16711680)+(uint8[i2+1]<<8&65280)+(uint8[i2+2]&255),output.push(tripletToBase64(tmp));return output.join("")}function fromByteArray(uint8){for(var tmp,len2=uint8.length,extraBytes=len2%3,parts=[],maxChunkLength=16383,i2=0,len22=len2-extraBytes;i2<len22;i2+=maxChunkLength)parts.push(encodeChunk(uint8,i2,i2+maxChunkLength>len22?len22:i2+maxChunkLength));return extraBytes===1?(tmp=uint8[len2-1],parts.push(lookup[tmp>>2]+lookup[tmp<<4&63]+"==")):extraBytes===2&&(tmp=(uint8[len2-2]<<8)+uint8[len2-1],parts.push(lookup[tmp>>10]+lookup[tmp>>4&63]+lookup[tmp<<2&63]+"=")),parts.join("")}}});var require_ieee754=__commonJS({"node_modules/ieee754/index.js"(exports2){init_define_process_env();init_shim();exports2.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8);if(e===0)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m=m+Math.pow(2,mLen),e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports2.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||value===0&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),e+eBias>=1?value+=rt/c:value+=rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e=e+eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8);for(e=e<<mLen|m,eLen+=mLen;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=s*128}}});var require_buffer=__commonJS({"node_modules/node-stdlib-browser/node_modules/buffer/index.js"(exports2){"use strict";init_define_process_env();init_shim();var base64=require_base64_js(),ieee754=require_ieee754(),customInspectSymbol=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;exports2.Buffer=Buffer4;exports2.SlowBuffer=SlowBuffer;exports2.INSPECT_MAX_BYTES=50;var K_MAX_LENGTH=2147483647;exports2.kMaxLength=K_MAX_LENGTH;Buffer4.TYPED_ARRAY_SUPPORT=typedArraySupport();!Buffer4.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function typedArraySupport(){try{var arr=new Uint8Array(1),proto={foo:function(){return 42}};return Object.setPrototypeOf(proto,Uint8Array.prototype),Object.setPrototypeOf(arr,proto),arr.foo()===42}catch{return!1}}Object.defineProperty(Buffer4.prototype,"parent",{enumerable:!0,get:function(){if(Buffer4.isBuffer(this))return this.buffer}});Object.defineProperty(Buffer4.prototype,"offset",{enumerable:!0,get:function(){if(Buffer4.isBuffer(this))return this.byteOffset}});function createBuffer(length){if(length>
vendor: 23,596 bytes, line 34
34K_MAX_LENGTH)throw new RangeError('The value "'+length+'" is invalid for option "size"');var buf=new Uint8Array(length);return Object.setPrototypeOf(buf,Buffer4.prototype),buf}function Buffer4(arg,encodingOrOffset,length){if(typeof arg=="number"){if(typeof encodingOrOffset=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(arg)}return from(arg,encodingOrOffset,length)}Buffer4.poolSize=8192;function from(value,encodingOrOffset,length){if(typeof value=="string")return fromString(value,encodingOrOffset);if(ArrayBuffer.isView(value))return fromArrayView(value);if(value==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value);if(isInstance(value,ArrayBuffer)||value&&isInstance(value.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(isInstance(value,SharedArrayBuffer)||value&&isInstance(value.buffer,SharedArrayBuffer)))return fromArrayBuffer(value,encodingOrOffset,length);if(typeof value=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var valueOf=value.valueOf&&value.valueOf();if(valueOf!=null&&valueOf!==value)return Buffer4.from(valueOf,encodingOrOffset,length);var b=fromObject(value);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof value[Symbol.toPrimitive]=="function")return Buffer4.from(value[Symbol.toPrimitive]("string"),encodingOrOffset,length);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value)}Buffer4.from=function(value,encodingOrOffset,length){return from(value,encodingOrOffset,length)};Object.setPrototypeOf(Buffer4.prototype,Uint8Array.prototype);Object.setPrototypeOf(Buffer4,Uint8Array);function assertSize(size){if(typeof size!="number")throw new TypeError('"size" argument must be of type number');if(size<0)throw new RangeError('The value "'+size+'" is invalid for option "size"')}function alloc(size,fill,encoding){return assertSize(size),size<=0?createBuffer(size):fill!==void 0?typeof encoding=="string"?createBuffer(size).fill(fill,encoding):createBuffer(size).fill(fill):createBuffer(size)}Buffer4.alloc=function(size,fill,encoding){return alloc(size,fill,encoding)};function allocUnsafe(size){return assertSize(size),createBuffer(size<0?0:checked(size)|0)}Buffer4.allocUnsafe=function(size){return allocUnsafe(size)};Buffer4.allocUnsafeSlow=function(size){return allocUnsafe(size)};function fromString(string,encoding){if((typeof encoding!="string"||encoding==="")&&(encoding="utf8"),!Buffer4.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding);var length=byteLength(string,encoding)|0,buf=createBuffer(length),actual=buf.write(string,encoding);return actual!==length&&(buf=buf.slice(0,actual)),buf}function fromArrayLike(array){for(var length=array.length<0?0:checked(array.length)|0,buf=createBuffer(length),i=0;i<length;i+=1)buf[i]=array[i]&255;return buf}function fromArrayView(arrayView){if(isInstance(arrayView,Uint8Array)){var copy=new Uint8Array(arrayView);return fromArrayBuffer(copy.buffer,copy.byteOffset,copy.byteLength)}return fromArrayLike(arrayView)}function fromArrayBuffer(array,byteOffset,length){if(byteOffset<0||array.byteLength<byteOffset)throw new RangeError('"offset" is outside of buffer bounds');if(array.byteLength<byteOffset+(length||0))throw new RangeError('"length" is outside of buffer bounds');var buf;return byteOffset===void 0&&length===void 0?buf=new Uint8Array(array):length===void 0?buf=new Uint8Array(array,byteOffset):buf=new Uint8Array(array,byteOffset,length),Object.setPrototypeOf(buf,Buffer4.prototype),buf}function fromObject(obj){if(Buffer4.isBuffer(obj)){var len=checked(obj.length)|0,buf=createBuffer(len);return buf.length===0||obj.copy(buf,0,0,len),buf}if(obj.length!==void 0)return typeof obj.length!="number"||numberIsNaN(obj.length)?createBuffer(0):fromArrayLike(obj);if(obj.type==="Buffer"&&Array.isArray(obj.data))return fromArrayLike(obj.data)}function checked(length){if(length>=K_MAX_LENGTH)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K_MAX_LENGTH.toString(16)+" bytes");return length|0}function SlowBuffer(length){return+length!=length&&(length=0),Buffer4.alloc(+length)}Buffer4.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==Buffer4.prototype};Buffer4.compare=function(a,b){if(isInstance(a,Uint8Array)&&(a=Buffer4.from(a,a.offset,a.byteLength)),isInstance(b,Uint8Array)&&(b=Buffer4.from(b,b.offset,b.byteLength)),!Buffer4.isBuffer(a)||!Buffer4.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i<len;++i)if(a[i]!==b[i]){x=a[i],y=b[i];break}return x<y?-1:y<x?1:0};Buffer4.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Buffer4.concat=function(list,length){if(!Array.isArray(list))throw new TypeError('"list" argument must be an Array of Buffers');if(list.length===0)return Buffer4.alloc(0);var i;if(length===void 0)for(length=0,i=0;i<list.length;++i)length+=list[i].length;var buffer=Buffer4.allocUnsafe(length),pos=0;for(i=0;i<list.length;++i){var buf=list[i];if(isInstance(buf,Uint8Array))pos+buf.length>buffer.length?Buffer4.from(buf).copy(buffer,pos):Uint8Array.prototype.set.call(buffer,buf,pos);else if(Buffer4.isBuffer(buf))buf.copy(buffer,pos);else throw new TypeError('"list" argument must be an Array of Buffers');pos+=buf.length}return buffer};function byteLength(string,encoding){if(Buffer4.isBuffer(string))return string.length;if(ArrayBuffer.isView(string)||isInstance(string,ArrayBuffer))return string.byteLength;if(typeof string!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof string);var len=string.length,mustMatch=arguments.length>2&&arguments[2]===!0;if(!mustMatch&&len===0)return 0;for(var loweredCase=!1;;)switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return len*2;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return mustMatch?-1:utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}Buffer4.byteLength=byteLength;function slowToString(encoding,start,end){var loweredCase=!1;if((start===void 0||start<0)&&(start=0),start>this.length||((end===void 0||end>this.length)&&(end=this.length),end<=0)||(end>>>=0,start>>>=0,end<=start))return"";for(encoding||(encoding="utf8");;)switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"latin1":case"binary":return latin1Slice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}Buffer4.prototype._isBuffer=!0;function swap(b,n,m){var i=b[n];b[n]=b[m],b[m]=i}Buffer4.prototype.swap16=function(){var len=this.length;if(len%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<len;i+=2)swap(this,i,i+1);return this};Buffer4.prototype.swap32=function(){var len=this.length;if(len%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<len;i+=4)swap(this,i,i+3),swap(this,i+1,i+2);return this};Buffer4.prototype.swap64=function(){var len=this.length;if(len%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<len;i+=8)swap(this,i,i+7),swap(this,i+1,i+6),swap(this,i+2,i+5),swap(this,i+3,i+4);return this};Buffer4.prototype.toString=function(){var length=this.length;return length===0?"":arguments.length===0?utf8Slice(this,0,length):slowToString.apply(this,arguments)};Buffer4.prototype.toLocaleString=Buffer4.prototype.toString;Buffer4.prototype.equals=function(b){if(!Buffer4.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:Buffer4.compare(this,b)===0};Buffer4.prototype.inspect=function(){var str="",max=exports2.INSPECT_MAX_BYTES;return str=this.toString("hex",0,max).replace(/(.{2})/g,"$1 ").trim(),this.length>max&&(str+=" ... "),"<Buffer "+str+">"};customInspectSymbol&&(Buffer4.prototype[customInspectSymbol]=Buffer4.prototype.inspect);Buffer4.prototype.compare=function(target,start,end,thisStart,thisEnd){if(isInstance(target,Uint8Array)&&(target=Buffer4.from(target,target.offset,target.byteLength)),!Buffer4.isBuffer(target))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof target);if(start===void 0&&(start=0),end===void 0&&(end=target?target.length:0),thisStart===void 0&&(thisStart=0),thisEnd===void 0&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw new RangeError("out of range index");if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;for(var x=thisEnd-thisStart,y=end-start,len=Math.min(x,y),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end),i=0;i<len;++i)if(thisCopy[i]!==targetCopy[i]){x=thisCopy[i],y=targetCopy[i];break}return x<y?-1:y<x?1:0};function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){if(buffer.length===0)return-1;if(typeof byteOffset=="string"?(encoding=byteOffset,byteOffset=0):byteOffset>2147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,numberIsNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1),byteOffset<0&&(byteOffset=buffer.length+byteOffset),byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(byteOffset<0)if(dir)byteOffset=0;else return-1;if(typeof val=="string"&&(val=Buffer4.from(val,encoding)),Buffer4.isBuffer(val))return val.length===0?-1:arrayIndexOf(buffer,val,byteOffset,encoding,dir);if(typeof val=="number")return val=val&255,typeof Uint8Array.prototype.indexOf=="function"?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf(buffer,[val],byteOffset,encoding,dir);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(arr,val,byteOffset,encoding,dir){var indexSize=1,arrLength=arr.length,valLength=val.length;if(encoding!==void 0&&(encoding=String(encoding).toLowerCase(),encoding==="ucs2"||encoding==="ucs-2"||encoding==="utf16le"||encoding==="utf-16le")){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}function read(buf,i2){return indexSize===1?buf[i2]:buf.readUInt16BE(i2*indexSize)}var i;if(dir){var foundIndex=-1;for(i=byteOffset;i<arrLength;i++)if(read(arr,i)===read(val,foundIndex===-1?0:i-foundIndex)){if(foundIndex===-1&&(foundIndex=i),i-foundIndex+1===valLength)return foundIndex*indexSize}else foundIndex!==-1&&(i-=i-foundIndex),foundIndex=-1}else for(byteOffset+valLength>arrLength&&(byteOffset=arrLength-valLength),i=byteOffset;i>=0;i--){for(var found=!0,j=0;j<valLength;j++)if(read(arr,i+j)!==read(val,j)){found=!1;break}if(found)return i}return-1}Buffer4.prototype.includes=function(val,byteOffset,encoding){return this.indexOf(val,byteOffset,encoding)!==-1};Buffer4.prototype.indexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!0)};Buffer4.prototype.lastIndexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!1)};function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;length?(length=Number(length),length>remaining&&(length=remaining)):length=remaining;var strLen=string.length;length>strLen/2&&(length=strLen/2);for(var i=0;i<length;++i){var parsed=parseInt(string.substr(i*2,2),16);if(numberIsNaN(parsed))return i;buf[offset+i]=parsed}return i}function utf8Write(buf,string,offset,length){return blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length)}function asciiWrite(buf,string,offset,length){return blitBuffer(asciiToBytes(string),buf,offset,length)}function base64Write(buf,string,offset,length){return blitBuffer(base64ToBytes(string),buf,offset,length)}function ucs2Write(buf,string,offset,length){return blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length)}Buffer4.prototype.write=function(string,offset,length,encoding){if(offset===void 0)encoding="utf8",length=this.length,offset=0;else if(length===void 0&&typeof offset=="string")encoding=offset,length=this.length,offset=0;else if(isFinite(offset))offset=offset>>>0,isFinite(length)?(length=length>>>0,encoding===void 0&&(encoding="utf8")):(encoding=length,length=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var remaining=this.length-offset;if((length===void 0||length>remaining)&&(length=remaining),string.length>0&&(length<0||offset<0)||offset>this.length)throw new RangeError("Attempt to write outside buffer bounds");encoding||(encoding="utf8");for(var loweredCase=!1;;)switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":case"latin1":case"binary":return asciiWrite(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}};Buffer4.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){return start===0&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);for(var res=[],i=start;i<end;){var firstByte=buf[i],codePoint=null,bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i+1],(secondByte&192)===128&&(tempCodePoint=(firstByte&31)<<6|secondByte&63,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i+1],thirdByte=buf[i+2],(secondByte&192)===128&&(thirdByte&192)===128&&(tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i+1],thirdByte=buf[i+2],fourthByte=buf[i+3],(secondByte&192)===128&&(thirdByte&192)===128&&(fourthByte&192)===128&&(tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}codePoint===null?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|codePoint&1023),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;i<len;)res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(buf[i]&127);return ret}function latin1Slice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(buf[i]);return ret}function hexSlice(buf,start,end){var len=buf.length;(!start||start<0)&&(start=0),(!end||end<0||end>len)&&(end=len);for(var out="",i=start;i<end;++i)out+=hexSliceLookupTable[buf[i]];return out}function utf16leSlice(buf,start,end){for(var bytes=buf.slice(start,end),res="",i=0;i<bytes.length-1;i+=2)res+=String.fromCharCode(bytes[i]+bytes[i+1]*256);return res}Buffer4.prototype.slice=function(start,end){var len=this.length;start=~~start,end=end===void 0?len:~~end,start<0?(start+=len,start<0&&(start=0)):start>len&&(start=len),end<0?(end+=len,end<0&&(end=0)):end>len&&(end=len),end<start&&(end=start);var newBuf=this.subarray(start,end);return Object.setPrototypeOf(newBuf,Buffer4.prototype),newBuf};function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}Buffer4.prototype.readUintLE=Buffer4.prototype.readUIntLE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset],mul=1,i=0;++i<byteLength2&&(mul*=256);)val+=this[offset+i]*mul;return val};Buffer4.prototype.readUintBE=Buffer4.prototype.readUIntBE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset+--byteLength2],mul=1;byteLength2>0&&(mul*=256);)val+=this[offset+--byteLength2]*mul;return val};Buffer4.prototype.readUint8=Buffer4.prototype.readUInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,1,this.length),this[offset]};Buffer4.prototype.readUint16LE=Buffer4.prototype.readUInt16LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,2,this.length),this[offset]|this[offset+1]<<8};Buffer4.prototype.readUint16BE=Buffer4.prototype.readUInt16BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,2,this.length),this[offset]<<8|this[offset+1]};Buffer4.prototype.readUint32LE=Buffer4.prototype.readUInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer4.prototype.readUint32BE=Buffer4.prototype.readUInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer4.prototype.readIntLE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset],mul=1,i=0;++i<byteLength2&&(mul*=256);)val+=this[offset+i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength2)),val};Buffer4.prototype.readIntBE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var i=byteLength2,mul=1,val=this[offset+--i];i>0&&(mul*=256);)val+=this[offset+--i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength2)),val};Buffer4.prototype.readInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,1,this.length),this[offset]&128?(255-this[offset]+1)*-1:this[offset]};Buffer4.prototype.readInt16LE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer4.prototype.readInt16BE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer4.prototype.readInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer4.prototype.readInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer4.prototype.readFloatLE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!0,23,4)};Buffer4.prototype.readFloatBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!1,23,4)};Buffer4.prototype.readDoubleLE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!0,52,8)};Buffer4.prototype.readDoubleBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!1,52,8)};function checkInt(buf,value,offset,ext,max,min){if(!Buffer4.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||value<min)throw new RangeError('"value" argument is out of bounds');if(offset+ext>buf.length)throw new RangeError("Index out of range")}Buffer4.prototype.writeUintLE=Buffer4.prototype.writeUIntLE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,byteLength2=byteLength2>>>0,!noAssert){var maxBytes=Math.pow(2,8*byteLength2)-1;checkInt(this,value,offset,byteLength2,maxBytes,0)}var mul=1,i=0;for(this[offset]=value&255;++i<byteLength2&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength2};Buffer4.prototype.writeUintBE=Buffer4.prototype.writeUIntBE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,byteLength2=byteLength2>>>0,!noAssert){var maxBytes=Math.pow(2,8*byteLength2)-1;checkInt(this,value,offset,byteLength2,maxBytes,0)}var i=byteLength2-1,mul=1;for(this[offset+i]=value&255;--i>=0&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength2};Buffer4.prototype.writeUint8=Buffer4.prototype.writeUInt8=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,1,255,0),this[offset]=value&255,offset+1};Buffer4.prototype.writeUint16LE=Buffer4.prototype.writeUInt16LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,65535,0),this[offset]=value&255,this[offset+1]=value>>>8,offset+2};Buffer4.prototype.writeUint16BE=Buffer4.prototype.writeUInt16BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,65535,0),this[offset]=value>>>8,this[offset+1]=value&255,offset+2};Buffer4.prototype.writeUint32LE=Buffer4.prototype.writeUInt32LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,4294967295,0),this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=value>>>8,this[offset]=value&255,offset+4};Buffer4.prototype.writeUint32BE=Buffer4.prototype.writeUInt32BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,4294967295,0),this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=value&255,offset+4};Buffer4.prototype.writeIntLE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,!noAssert){var limit=Math.pow(2,8*byteLength2-1);checkInt(this,value,offset,byteLength2,limit-1,-limit)}var i=0,mul=1,sub=0;for(this[offset]=value&255;++i<byteLength2&&(mul*=256);
vendor: 3,223 bytes, line 34
34)value<0&&sub===0&&this[offset+i-1]!==0&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength2};Buffer4.prototype.writeIntBE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,!noAssert){var limit=Math.pow(2,8*byteLength2-1);checkInt(this,value,offset,byteLength2,limit-1,-limit)}var i=byteLength2-1,mul=1,sub=0;for(this[offset+i]=value&255;--i>=0&&(mul*=256);)value<0&&sub===0&&this[offset+i+1]!==0&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength2};Buffer4.prototype.writeInt8=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,1,127,-128),value<0&&(value=255+value+1),this[offset]=value&255,offset+1};Buffer4.prototype.writeInt16LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,32767,-32768),this[offset]=value&255,this[offset+1]=value>>>8,offset+2};Buffer4.prototype.writeInt16BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,32767,-32768),this[offset]=value>>>8,this[offset+1]=value&255,offset+2};Buffer4.prototype.writeInt32LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),this[offset]=value&255,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24,offset+4};Buffer4.prototype.writeInt32BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),value<0&&(value=4294967295+value+1),this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=value&255,offset+4};function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return value=+value,offset=offset>>>0,noAssert||checkIEEE754(buf,value,offset,4,34028234663852886e22,-34028234663852886e22),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}Buffer4.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)};Buffer4.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)};function writeDouble(buf,value,offset,littleEndian,noAssert){return value=+value,offset=offset>>>0,noAssert||checkIEEE754(buf,value,offset,8,17976931348623157e292,-17976931348623157e292),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}Buffer4.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)};Buffer4.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)};Buffer4.prototype.copy=function(target,targetStart,start,end){if(!Buffer4.isBuffer(target))throw new TypeError("argument should be a Buffer");if(start||(start=0),!end&&end!==0&&(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&end<start&&(end=start),end===start||target.length===0||this.length===0)return 0;
vendor: 5,183 bytes, line 34
34if(targetStart<0)throw new RangeError("targetStart out of bounds");if(start<0||start>=this.length)throw new RangeError("Index out of range");if(end<0)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStart<end-start&&(end=target.length-targetStart+start);var len=end-start;return this===target&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(targetStart,start,end):Uint8Array.prototype.set.call(target,this.subarray(start,end),targetStart),len};Buffer4.prototype.fill=function(val,start,end,encoding){if(typeof val=="string"){if(typeof start=="string"?(encoding=start,start=0,end=this.length):typeof end=="string"&&(encoding=end,end=this.length),encoding!==void 0&&typeof encoding!="string")throw new TypeError("encoding must be a string");if(typeof encoding=="string"&&!Buffer4.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding);if(val.length===1){var code=val.charCodeAt(0);(encoding==="utf8"&&code<128||encoding==="latin1")&&(val=code)}}else typeof val=="number"?val=val&255:typeof val=="boolean"&&(val=Number(val));if(start<0||this.length<start||this.length<end)throw new RangeError("Out of range index");if(end<=start)return this;start=start>>>0,end=end===void 0?this.length:end>>>0,val||(val=0);var i;if(typeof val=="number")for(i=start;i<end;++i)this[i]=val;else{var bytes=Buffer4.isBuffer(val)?val:Buffer4.from(val,encoding),len=bytes.length;if(len===0)throw new TypeError('The value "'+val+'" is invalid for argument "value"');for(i=0;i<end-start;++i)this[i+start]=bytes[i%len]}return this};var INVALID_BASE64_RE=/[^+/0-9A-Za-z-_]/g;function base64clean(str){if(str=str.split("=")[0],str=str.trim().replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str=str+"=";return str}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;i<length;++i){if(codePoint=string.charCodeAt(i),codePoint>55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}else if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else throw new Error("Invalid code point")}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i<str.length;++i)byteArray.push(str.charCodeAt(i)&255);return byteArray}function utf16leToBytes(str,units){for(var c,hi,lo,byteArray=[],i=0;i<str.length&&!((units-=2)<0);++i)c=str.charCodeAt(i),hi=c>>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;i<length&&!(i+offset>=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}function isInstance(obj,type){return obj instanceof type||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type.name}function numberIsNaN(obj){return obj!==obj}var hexSliceLookupTable=function(){for(var alphabet="0123456789abcdef",table=new Array(256),i=0;i<16;++i)for(var i16=i*16,j=0;j<16;++j)table[i16+j]=alphabet[i]+alphabet[j];return table}()}});var require_browser=__commonJS({"node_modules/process/browser.js"(exports2,module2){init_define_process_env();init_shim();var process2=module2.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch{try{return cachedSetTimeout.call(null,fun,0)}catch{return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch{try{return cachedClearTimeout.call(null,marker)}catch{return cachedClearTimeout.call(this,marker)}}}
34var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}process2.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(fun,array){this.fun=fun,this.array=array}Item.prototype.run=function(){this.fun.apply(null,this.array)};process2.title="browser";process2.browser=!0;process2.env={};process2.argv=[];process2.version="";process2.versions={};function noop(){}process2.on=noop;process2.addListener=noop;process2.once=noop;process2.off=noop;process2.removeListener=noop;process2.removeAllListeners=noop;process2.emit=noop;process2.prependListener=noop;process2.prependOnceListener=noop;process2.listeners=function(name){return[]};process2.binding=function(name){throw new Error("process.binding is not supported")};process2.cwd=function(){return"/"};process2.chdir=function(dir){throw new Error("process.chdir is not supported")};process2.umask=function(){return 0}}});var import_buffer,import_process,_globalThis,init_shim=__esm({"node_modules/node-stdlib-browser/helpers/esbuild/shim.js"(){import_buffer=__toESM(require_buffer()),import_process=__toESM(require_browser()),_globalThis=function(Object2){function get(){var _global3=this||self;return delete Object2.prototype.__magic__,_global3}if(typeof globalThis=="object")return globalThis;if(this)return get();Object2.defineProperty(Object2.prototype,"__magic__",{configurable:!0,get});var _global2=__magic__;return _global2}(Object)}});var require_global=__commonJS({"node_modules/core-js/internals/global.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var check=function(it){return it&&it.Math===Math&&it};module2.exports=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof window=="object"&&window)||check(typeof exports2=="object"&&exports2)||function(){return this}()||Function("return this")()}});var require_fails=__commonJS({"node_modules/core-js/internals/fails.js"(exports2,module2){"use strict";init_define_process_env();init_shim();module2.exports=function(exec){try{return!!exec()}catch{return!0}}}});var require_descriptors=__commonJS({"node_modules/core-js/internals/descriptors.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var fails=require_fails();module2.exports=!fails(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}});var require_function_bind_native=__commonJS({"node_modules/core-js/internals/function-bind-native.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var fails=require_fails();module2.exports=!fails(function(){var test=(function(){}).bind();return typeof test!="function"||test.hasOwnProperty("prototype")})}});var require_function_call=__commonJS({"node_modules/core-js/internals/function-call.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var NATIVE_BIND=require_function_bind_native(),call=Function.prototype.call;module2.exports=NATIVE_BIND?call.bind(call):function(){return call.apply(call,arguments)}}});var require_object_property_is_enumerable=__commonJS({"node_modules/core-js/internals/object-property-is-enumerable.js"(exports2){"use strict";init_define_process_env();init_shim();var $propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor&&!$propertyIsEnumerable.call({1:2},1);exports2.f=NASHORN_BUG?function(V){var descriptor=getOwnPropertyDescriptor(this,V);return!!descriptor&&descriptor.enumerable}:$propertyIsEnumerable}});var require_create_property_descriptor=__commonJS({"node_modules/core-js/internals/create-property-descriptor.js"(exports2,module2){"use strict";init_define_process_env();init_shim();module2.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value}}}});var require_function_uncurry_this=__commonJS({"node_modules/core-js/internals/function-uncurr
34y-this.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var NATIVE_BIND=require_function_bind_native(),FunctionPrototype=Function.prototype,call=FunctionPrototype.call,uncurryThisWithBind=NATIVE_BIND&&FunctionPrototype.bind.bind(call,call);module2.exports=NATIVE_BIND?uncurryThisWithBind:function(fn){return function(){return call.apply(fn,arguments)}}}});var require_classof_raw=__commonJS({"node_modules/core-js/internals/classof-raw.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),toString=uncurryThis({}.toString),stringSlice=uncurryThis("".slice);module2.exports=function(it){return stringSlice(toString(it),8,-1)}}});var require_indexed_object=__commonJS({"node_modules/core-js/internals/indexed-object.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),fails=require_fails(),classof=require_classof_raw(),$Object=Object,split=uncurryThis("".split);module2.exports=fails(function(){return!$Object("z").propertyIsEnumerable(0)})?function(it){return classof(it)==="String"?split(it,""):$Object(it)}
34:$Object}});var require_is_null_or_undefined=__commonJS({"node_modules/core-js/internals/is-null-or-undefined.js"(exports2,module2){"use strict";init_define_process_env();init_shim();module2.exports=function(it){return it==null}}});var require_require_object_coercible=__commonJS({"node_modules/core-js/internals/require-object-coercible.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var isNullOrUndefined=require_is_null_or_undefined(),$TypeError=TypeError;module2.exports=function(it){if(isNullOrUndefined(it))throw new $TypeError("Can't call method on "+it);return it}}});var require_to_indexed_object=__commonJS({"node_modules/core-js/internals/to-indexed-object.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var IndexedObject=require_indexed_object(),requireObjectCoercible=require_require_object_coercible();module2.exports=function(it){return IndexedObject(requireObjectCoercible(it))}}});var require_is_callable=__commonJS({"node_modules/core-js/internals/is-callable.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var documentAll=typeof document=="object"&&document.all;module2.exports=typeof documentAll>"u"&&documentAll!==void 0?function(argument){return typeof argument=="function"||argument===documentAll}:function(argument){return typeof argument=="function"}}});var require_is_object=__commonJS({"node_modules/core-js/internals/is-object.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var isCallable=require_is_callable();module2.exports=function(it){return typeof it=="object"?it!==null:isCallable(it)}}});var require_get_built_in=__commonJS({"node_modules/core-js/internals/get-built-in.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var global=require_global(),isCallable=require_is_callable(),aFunction=function(argument){return isCallable(argument)?argument:void 0};module2.exports=function(namespace,method){return arguments.length<2?aFunction(global[namespace]):global[namespace]&&global[namespace][method]}}});var require_object_is_prototype_of=__commonJS({"node_modules/core-js/internals/object-is-prototype-of.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this();module2.exports=uncurryThis({}.isPrototypeOf)}});var require_engine_user_agent=__commonJS({"node_modules/core-js/internals/engine-user-agent.js"(exports2,module2){"use strict";init_define_process_env();init_shim();module2.exports=typeof navigator<"u"&&String(navigator.userAgent)||""}});var require_engine_v8_version=__commonJS({"node_modules/core-js/internals/engine-v8-version.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var global=require_global(),userAgent=require_engine_user_agent(),process2=global.process,Deno=global.Deno,versions=process2&&process2.versions||Deno&&Deno.version,v8=versions&&versions.v8,match,version;v8&&(match=v8.split("."),version=match[0]>0&&match[0]<4?1:+(match[0]+match[1]));!version&&userAgent&&(match=userAgent.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=userAgent.match(/Chrome\/(\d+)/),match&&(version=+match[1])));module2.exports=version}});var require_symbol_constructor_detection=__commonJS({"node_modules/core-js/internals/symbol-constructor-detection.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var V8_VERSION=require_engine_v8_version(),fails=require_fails(),global=require_global(),$String=global.String;module2.exports=!!Object.getOwnPropertySymbols&&!fails(function(){var symbol=Symbol("symbol detection");return!$String(symbol)||!(Object(symbol)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41})}});var require_use_symbol_as_uid=__commonJS({"node_modules/core-js/internals/use-symbol-as-uid.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var NATIVE_SYMBOL=require_symbol_constructor_detection();module2.exports=NATIVE_SYMBOL&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}});var require_is_symbol=__commonJS({"node_modules/core-js/internals/is-symbol.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var getBuiltIn=require_get_built_in(),isCallable=require_is_callable(),isPrototypeOf=require_object_is_prototype_of(),USE_SYMBOL_AS_UID=require_use_symbol_as_uid(),$Object=Object;module2.exports=USE_SYMBOL_AS_UID?function(it){return typeof it=="symbol"}:function(it){var $Symbol=getBuiltIn("Symbol");return isCallable($Symbol)&&isPrototypeOf($Symbol.prototype,$Object(it))}}});var require_try_to_string=__commonJS({"node_modules/core-js/internals/try-to-string.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var $String=String;module2.exports=function(argument){try{return $String(argument)}catch{return"Object"}}}});var require_a_callable=__commonJS({"node_modules/core-js/internals/a-callable.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var isCallable=require_is_callable(),tryToString=require_try_to_string(),$TypeError=TypeError;module2.exports=function(argument){if(isCallable(argument))return argument;throw new $TypeError(tryToString(argument)+" is not a function")}}});var require_get_method=__commonJS({"node_modules/core-js/internals/get-method.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var aCallable=require_a_callable(),isNullOrUndefined=require_is_null_or_undefined();module2.exports=function(V,P){var func=V[P];return isNullOrUndefined(func)?void 0:aCallable(func)}}});var require_ordinary_to_primitive=__commonJS({"node_modules/core-js/internals/ordinary-to-primitive.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var call=require_function_call(),isCallable=require_is_callable(),isObject2=require_is_object(),$TypeError=TypeError;module2.exports=function(input,pref){var fn,val;if(pref==="string"&&isCallable(fn=input.toString)&&!isObject2(val=call(fn,input))||isCallable(fn=input.valueOf)&&!isObject2(val=call(fn,input))||pref!=="string"&&isCallable(fn=input.toString)&&!isObject2(val=call(fn,input)))return val;throw new $TypeError("Can't convert object to primitive value")}}});var require_is_pure=__commonJS({"node_modules/core-js/internals/is-pure.js"(exports2,module2){"use strict";init_define_process_env();init_shim();module2.exports=!1}});var require_define_global_property=__commonJS({"node_modules/core-js/internals/define-global-property.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var global=require_global(),defineProperty=Object.defineProperty;module2.exports=function(key,value){try{defineProperty(global,key,{value,configurable:!0,writable:!0})}catch{global[key]=value}return value}}});var require_shared_store=__commonJS({"node_modules/core-js/internals/shared-store.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var global=require_global(),defineGlobalProperty=require_define_global_property(),SHARED="__core-js_shared__",store=global[SHARED]||defineGlobalProperty(S
34HARED,{});module2.exports=store}});var require_shared=__commonJS({"node_modules/core-js/internals/shared.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var IS_PURE=require_is_pure(),store=require_shared_store();(module2.exports=function(key,value){return store[key]||(store[key]=value!==void 0?value:{})})("versions",[]).push({version:"3.35.1",mode:IS_PURE?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})}});var require_to_object=__commonJS({"node_modules/core-js/internals/to-object.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var requireObjectCoercible=require_require_object_coercible(),$Object=Object;module2.exports=function(argument){return $Object(requireObjectCoercible(argument))}}});var require_has_own_property=__commonJS({"node_modules/core-js/internals/has-own-property.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),toObject=require_to_object(),hasOwnProperty10=uncurryThis({}.hasOwnProperty);module2.exports=Object.hasOwn||function(it,key){return hasOwnProperty10(toObject(it),key)}}});var require_uid=__commonJS({"node_modules/core-js/internals/uid.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),id=0,postfix=Math.random(),toString=uncurryThis(1 .toString);module2.exports=function(key){return"Symbol("+(key===void 0?"":key)+")_"+toString(++id+postfix,36)}}});var require_well_known_symbol=__commonJS({"node_modules/core-js/internals/well-known-symbol.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var global=require_global(),shared=require_shared(),hasOwn=require_has_own_property(),uid=require_uid(),NATIVE_SYMBOL=require_symbol_constructor_detection(),USE_SYMBOL_AS_UID=require_use_symbol_as_uid(),Symbol3=global.Symbol,WellKnownSymbolsStore=shared("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol3.for||Symbol3:Symbol3&&Symbol3.withoutSetter||uid;module2.exports=function(name){return hasOwn(WellKnownSymbolsStore,name)||(WellKnownSymbolsStore[name]=NATIVE_SYMBOL&&hasOwn(Symbol3,name)?Symbol3[name]:createWellKnownSymbol("Symbol."+name)),WellKnownSymbolsStore[name]}}});var require_to_primitive=__commonJS({"node_modules/core-js/internals/to-primitive.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var call=require_function_call(),isObject2=require_is_object(),isSymbol
34=require_is_symbol(),getMethod=require_get_method(),ordinaryToPrimitive=require_ordinary_to_primitive(),wellKnownSymbol=require_well_known_symbol(),$TypeError=TypeError,TO_PRIMITIVE=wellKnownSymbol("toPrimitive");module2.exports=function(input,pref){if(!isObject2(input)||isSymbol(input))return input;var exoticToPrim=getMethod(input,TO_PRIMITIVE),result;if(exoticToPrim){if(pref===void 0&&(pref="default"),result=call(exoticToPrim,input,pref),!isObject2(result)||isSymbol(result))return result;throw new $TypeError("Can't convert object to primitive value")}return pref===void 0&&(pref="number"),ordinaryToPrimitive(input,pref)}}});var require_to_property_key=__commonJS({"node_modules/core-js/internals/to-property-key.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var toPrimitive=require_to_primitive(),isSymbol=require_is_symbol();module2.exports=function(argument){var key=toPrimitive(argument,"string");return isSymbol(key)?key:key+""}}});var require_document_create_element=__commonJS({"node_modules/core-js/internals/document-create-element.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var global=require_global(),isObject2=require_is_object(),document2=global.document,EXISTS=isObject2(document2)&&isObject2(document2.createElement);module2.exports=function(it){return EXISTS?document2.createElement(it):{}}}});var require_ie8_dom_define=__commonJS({"node_modules/core-js/internals/ie8-dom-define.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),fails=require_fails(),createElement=require_document_create_element();module2.exports=!DESCRIPTORS&&!fails(function(){return Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a!==7})}});var require_object_get_own_property_descriptor=__commonJS({"node_modules/core-js/internals/object-get-own-property-descriptor.js"(exports2){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),call=require_function_call(),propertyIsEnumerableModule=require_object_property_is_enumerable(),createPropertyDescriptor=require_create_property_descriptor(),toIndexedObject=require_to_indexed_object(),toPropertyKey=require_to_property_key(),hasOwn=require_has_own_property(),IE8_DOM_DEFINE=require_ie8_dom_define(),$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;exports2.f=DESCRIPTORS?$getOwnPropertyDescriptor:function(O,P){if(O=toIndexedObject(O),P=toPropertyKey(P),IE8_DOM_DEFINE)try{return $getOwnPropertyDescriptor(O,P)}catch{}if(hasOwn(O,P))return createPropertyDescriptor(!call(propertyIsEnumerableModule.f,O,P),O[P])}}});var require_v8_prototype_define_bug=__commonJS({"node_modules/core-js/internals/v8-prototype-define-bug.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),fails=require_fails();module2.exports=DESCRIPTORS&&fails(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}});var require_an_object=__commonJS({"node_modules/core-js/internals/an-object.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var isObject2=require_is_object(),$String=String,$TypeError=TypeError;module2.exports=function(argument){if(isObject2(argument))return argument;throw new $TypeError($String(argument)+" is not an object")}}});var require_object_define_property=__commonJS({"node_modules/core-js/internals/object-define-property.js"(exports2){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),IE8_DOM_DEFINE=require_ie8_dom_define(),V8_PROTOTYPE_DEFINE_BUG=require_v8_prototype_define_bug(),anObject=require_an_object(),toPropertyKey=require_to_property_key(),$TypeError=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE="configurable",WRITABLE="writable";exports2.f=DESCRIPTORS?V8_PROTOTYPE_DEFINE_BUG?function(O,P,Attributes){if(anObject(O),P=toPropertyKey(P),anObject(Attributes),typeof O=="function"&&P==="prototype"&&"value"in Attributes&&WRITABLE in Attributes&&!Attributes[WRITABLE]){var current=$getOwnPropertyDescriptor(O,P);current&&current[WRITABLE]&&(O[P]=Attributes.value,Attributes={configurable:CONFIGURABLE in Attributes?Attributes[CONFIGURABLE]:current[CONFIGURABLE],enumerable:ENUMERABLE in Attributes?Attributes[ENUMERABLE]:current[ENUMERABLE],writable:!1})}return $defineProperty(O,P,Attributes)}
34:$defineProperty:function(O,P,Attributes){if(anObject(O),P=toPropertyKey(P),anObject(Attributes),IE8_DOM_DEFINE)try{return $defineProperty(O,P,Attributes)}catch{}if("get"in Attributes||"set"in Attributes)throw new $TypeError("Accessors not supported");return"value"in Attributes&&(O[P]=Attributes.value),O}}});var require_create_non_enumerable_property=__commonJS({"node_modules/core-js/internals/create-non-enumerable-property.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),definePropertyModule=require_object_define_property(),createPropertyDescriptor=require_create_property_descriptor();module2.exports=DESCRIPTORS?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){return object[key]=value,object}}});var require_function_name=__commonJS({"node_modules/core-js/internals/function-name.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),hasOwn=require_has_own_property(),FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn(FunctionPrototype,"name"),PROPER=EXISTS&&(function(){}).name==="something",CONFIGURABLE=EXISTS&&(!DESCRIPTORS||DESCRIPTORS&&getDescriptor(FunctionPrototype,"name").configurable);module2.exports={EXISTS,PROPER,CONFIGURABLE}}});
34var require_inspect_source=__commonJS({"node_modules/core-js/internals/inspect-source.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),isCallable=require_is_callable(),store=require_shared_store(),functionToString=uncurryThis(Function.toString);isCallable(store.inspectSource)||(store.inspectSource=function(it){return functionToString(it)});module2.exports=store.inspectSource}});var require_weak_map_basic_detection=__commonJS({"node_modules/core-js/internals/weak-map-basic-detection.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var global=require_global(),isCallable=require_is_callable(),WeakMap2=global.WeakMap;module2.exports=isCallable(WeakMap2)&&/native code/.test(String(WeakMap2))}});var require_shared_key=__commonJS({"node_modules/core-js/internals/shared-key.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var shared=require_shared(),uid=require_uid(),keys2=shared("keys");module2.exports=function(key){return keys2[key]||(keys2[key]=uid(key))}}});var require_hidden_keys=__commonJS({"node_modules/core-js/internals/hidden-keys.js"(exports2,module2){"use strict";init_define_process_env();init_shim();module2.exports={}}});var require_internal_state=__commonJS({"node_modules/core-js/internals/internal-state.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var NATIVE_WEAK_MAP=require_weak_map_basic_detection(),global=require_global(),isObject2=require_is_object(),createNonEnumerableProperty=require_create_non_enumerable_property(),hasOwn=require_has_own_property(),shared=require_shared_store(),sharedKey=require_shared_key(),hiddenKeys=require_hidden_keys(),OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError2=global.TypeError,WeakMap2=global.WeakMap,set,get,has,enforce=function(it){return has(it)?get(it):set(it,{})},getterFor=function(TYPE){return function(it){var state;if(!isObject2(it)||(state=get(it)).type!==TYPE)throw new TypeError2("Incompatible receiver, "+TYPE+" required");return state}};NATIVE_WEAK_MAP||shared.state?(store=shared.state||(shared.state=new WeakMap2),store.get=store.get,store.has=store.has,store.set=store.set,set=function(it,metadata){if(store.has(it))throw new TypeError2(OBJECT_ALREADY_INITIALIZED);return metadata.facade=it,store.set(it,metadata),metadata},get=function(it){return store.get(it)||{}},has=function(it){return store.has(it)}):(STATE=sharedKey("state"),hiddenKeys[STATE]=!0,set=function(it,metadata){if(hasOwn(it,STATE))throw new TypeError2(OBJECT_ALREADY_INITIALIZED);return metadata.facade=it,createNonEnumerableProperty(it,STATE,metadata),metadata},get=function(it){return hasOwn(it,STATE)?it[STATE]:{}},has=function(it){return hasOwn(it,STATE)});var store,STATE;module2.exports={set,get,has,enforce,getterFor}}});var require_make_built_in=__commonJS({"node_modules/core-js/internals/make-built-in.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),fails=require_fails(),isCallable=require_is_callable(),hasOwn=require_has_own_property(),DESCRIPTORS=require_descriptors(),CONFIGURABLE_FUNCTION_NAME=require_function_name().CONFIGURABLE,inspectSource=require_inspect_source(),InternalStateModule=require_internal_state(),enforceInternalState=InternalStateModule.enforce,getInternalState=InternalStateModule.get,$String=String,defineProperty=Object.defineProperty,stringSlice=uncurryThis("".slice),replace=uncurryThis("".replace),join=uncurr
34yThis([].join),CONFIGURABLE_LENGTH=DESCRIPTORS&&!fails(function(){return defineProperty(function(){},"length",{value:8}).length!==8}),TEMPLATE=String(String).split("String"),makeBuiltIn=module2.exports=function(value,name,options){stringSlice($String(name),0,7)==="Symbol("&&(name="["+replace($String(name),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),options&&options.getter&&(name="get "+name),options&&options.setter&&(name="set "+name),(!hasOwn(value,"name")||CONFIGURABLE_FUNCTION_NAME&&value.name!==name)&&(DESCRIPTORS?defineProperty(value,"name",{value:name,configurable:!0}):value.name=name),CONFIGURABLE_LENGTH&&options&&hasOwn(options,"arity")&&value.length!==options.arity&&defineProperty(value,"length",{value:options.arity});try{options&&hasOwn(options,"constructor")&&options.constructor?DESCRIPTORS&&defineProperty(value,"prototype",{writable:!1}):value.prototype&&(value.prototype=void 0)}catch{}var state=enforceInternalState(value);return hasOwn(state,"source")||(state.source=join(TEMPLATE,typeof name=="string"?name:"")),value};Function.prototype.toString=makeBuiltIn(function(){return isCallable(this)&&getInternalState(this).source||inspectSource(this)},"toString")}});var require_define_built_in=__commonJS({"node_modules/core-js/internals/define-built-in.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var isCallable=require_is_callable(),definePropertyModule=require_object_define_property(),makeBuiltIn=require_make_built_in(),defineGlobalProperty=require_define_global_property();module2.exports=function(O,key,value,options){options||(options={});var simple=options.enumerable,name=options.name!==void 0?options.name:key;if(isCallable(value)&&makeBuiltIn(value,name,options),options.global)simple?O[key]=value:defineGlobalProperty(key,value);else{try{options.unsafe?O[key]&&(simple=!0):delete O[key]}catch{}simple?O[key]=value:definePropertyModule.f(O,key,{value,enumerable:!1,configurable:!options.nonConfigurable,writable:!options.nonWritable})}return O}}});var require_math_trunc=__commonJS({"node_modules/core-js/internals/math-trunc.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var ceil=Math.ceil,floor=Math.floor;module2.exports=Math.trunc||function(x){var n=+x;return(n>0?floor:ceil)(n)}}});var require_to_integer_or_infinity=__commonJS({"node_modules/core-js/internals/to-integer-or-infinity.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var trunc=require_math_trunc();module2.exports=function(argument){var number=+argument;return number!==number||number===0?0:trunc(number)}}});var require_to_absolute_index=__commonJS({"node_modules/core-js/internals/to-absolute-index.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var toIntegerOrInfinity=require_to_integer_or_infinity(),max=Math.max,min=Math.min;module2.exports=function(index,length){var integer=toIntegerOrInfinity(index);return integer<0?max(integer+length,0):min(integer,length)}}});var require_to_length=__commonJS({"node_modules/core-js/internals/to-length.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var toIntegerOrInfinity=require_to_integer_or_infinity(),min=Math.min;module2.exports=function(argument){var len=toIntegerOrInfinity(argument);return len>0?min(len,9007199254740991):0}}});var require_length_of_array_like=__commonJS({"node_modules/core-js/internals/length-of-array-like.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var toLength=require_to_length();module2.exports=function(obj){return toLength(obj.length)}}});var require_array_includes=__commonJS({"node_modules/core-js/internals/array-includes.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var toIndexedObject=require_to_indexed_object(),toAbsoluteIndex=require_to_absolute_index(),lengthOfArrayLike=require_length_of_array_like(),createMethod=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIndexedObject($this),length=lengthOfArrayLike(O),index=toAbsoluteIndex(fromIndex,length),value;if(IS_INCLUDES&&el!==el){for(;length>index;)if(value=O[index++],value!==value)return!0}else for(;length>index;index++)if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0;return!IS_INCLUDES&&-1}};module2.exports={includes:createMethod(!0),indexOf:createMethod(!1)}}});var require_object_keys_internal=__commonJS({"node_modules/core-js/internals/object-keys-internal.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),hasOwn=require_has_own_property(),toIndexedObject=require_to_indexed_object(),indexOf=require_array_includes().indexOf,hiddenKeys=require_hidden_keys(),push=uncurryThis([].push);module2.exports=function(object,names){var O=toIndexedObject(object),i=0,result=[],key;for(key in O)!hasOwn(hiddenKeys,key)&&hasOwn(O,key)&&push(result,key);for(;names.length>i;)hasOwn(O,key=names[i++])&&(~indexOf(result,key)||push(result,key));return result}}});var require_enum_bug_keys=__commonJS({"node_modules/core-js/internals/enum-bug-keys.js"(exports2,module2){"use strict";init_define_process_env();init_shim();module2.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
34ing","toString","valueOf"]}});var require_object_get_own_property_names=__commonJS({"node_modules/core-js/internals/object-get-own-property-names.js"(exports2){"use strict";init_define_process_env();init_shim();var internalObjectKeys=require_object_keys_internal(),enumBugKeys=require_enum_bug_keys(),hiddenKeys=enumBugKeys.concat("length","prototype");exports2.f=Object.getOwnPropertyNames||function(O){return internalObjectKeys(O,hiddenKeys)}}});var require_object_get_own_property_symbols=__commonJS({"node_modules/core-js/internals/object-get-own-property-symbols.js"(exports2){"use strict";init_define_process_env();init_shim();exports2.f=Object.getOwnPropertySymbols}});var require_own_keys=__commonJS({"node_modules/core-js/internals/own-keys.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var getBuiltIn=require_get_built_in(),uncurryThis=require_function_uncurry_this(),getOwnPropertyNamesModule=require_object_get_own_property_names(),getOwnPropertySymbolsModule=require_object_get_own_property_symbols(),anObject=require_an_object(),concat=uncurryThis([].concat);module2.exports=getBuiltIn("Reflect","ownKeys")||function(it){var keys2=getOwnPropertyNamesModule.f(anObject(it)),getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?concat(keys2,getOwnPropertySymbols(it)):keys2}}});var require_copy_constructor_properties=__commonJS({"node_modules/core-js/internals/copy-constructor-properties.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var hasOwn=require_has_own_property(),ownKeys=require_own_keys(),getOwnPropertyDescriptorModule=require_object_get_own_property_descriptor(),definePropertyModule=require_object_define_property();module2.exports=function(target,source,exceptions){for(var keys2=ownKeys(source),defineProperty=definePropertyModule.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,i=0;i<keys2.length;i++){var key=keys2[i];!hasOwn(target,key)&&!(exceptions&&hasOwn(exceptions,key))&&defineProperty(target,key,getOwnPropertyDescriptor(source,key))}}}});var require_is_forced=__commonJS({"node_modules/core-js/internals/is-forced.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var fails=require_fails(),isCallable=require_is_callable(),replacement=/#|\.prototype\./,isForced=function(feature,detection){var value=data[normalize(feature)];return value===POLYFILL?!0:value===NATIVE?!1:isCallable(detection)?fails(detection):!!detection},normalize=isForced.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()},data=isForced.data={},NATIVE=isForced.NATIVE="N",POLYFILL=isForced.POLYFILL="P";module2.exports=isForced}});var require_export=__commonJS({"node_modules/core-js/internals/export.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var global=require_global(),getOwnPropertyDescriptor=require_object_get_own_property_descriptor().f,createNonEnumerableProperty=require_create_non_enumerable_property(),defineBuiltIn=require_define_built_in(),defineGlobalProperty=require_define_global_property(),copyConstructorProperties=require_copy_constructor_properties(),isForced=require_is_forced();module2.exports=function(options,source){var TARGET=options.target,GLOBAL=options.global,STATIC=options.stat,FORCED,target,key,targetProperty,sourceProperty,descriptor;if(GLOBAL?target=global:STATIC?target=global[TARGET]||defineGlobalProperty(TARGET,{}):target=global[TARGET]&&global[TARGET].prototype,target)for(key in source){if(sourceProperty=source[key],options.dontCallGetSet?(descriptor=getOwnPropertyDescriptor(target,key),targetProperty=descriptor&&descriptor.value):targetProperty=target[key],FORCED=isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced),!FORCED&&targetProperty!==void 0){if(typeof sourceProperty==typeof targetProperty)continue;copyConstructorProperties(sourceProperty,targetProperty)}(options.sham||targetProperty&&targetProperty.sham)&&createNonEnumerableProperty(sourceProperty,"sham",!0),defineBuiltIn(target,key,sourceProperty,options)}}}});var require_an_instance=__commonJS({"node_modules/core-js/internals/an-instance.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var isPrototypeOf=require_object_is_prototype_of(),$TypeError=TypeError;module2.exports=function(it,Prototype){if(isPrototypeOf(Prototype,it))return it;throw new $TypeError("Incorrect invocation")}}});var require_correct_prototype_getter=__commonJS({"node_modules/core-js/internals/correct-prototype-getter.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var fails=require_fails();module2.exports=!fails(function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})}});var require_object_get_prototype_of=__commonJS({"node_modules/core-js/internals/object-get-prototype-of.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var hasOwn=require_has_own_property(),isCallable=require_is_callable(),toObject=require_to_object(),sharedKey=require_shared_key(),CORRECT_PROTOTYPE_GETTER=require_correct_prototype_getter(),IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype;module2.exports=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(O){var object=toObject(O);if(hasOwn(object,IE_PROTO))return object[IE_PROTO];var constructor=object.constructor;return isCallable(constructor)&&object instanceof constructor?constructor.prototype:object instanceof $Object?ObjectPrototype:null}}});var require_define_built_in_accessor=__commonJS({"node_modules/core-js/internals/define-built-in-accessor.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var makeBuiltIn=require_make_built_in(),defineProperty=require_object_define_property();module2.exports=function(target,name,descriptor){return descriptor.get&&makeBuiltIn(descriptor.get,name,{getter:!0}),descriptor.set&&makeBuiltIn(descriptor.set,name,{setter:!0}),defineProperty.f(target,name,descriptor)}}});var require_create_property=__commonJS({"node_modules/core-js/internals/create-property.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var toPropertyKey=require_to_property_key(),definePropertyModule=require_object_define_property(),createPropertyDescriptor=require_create_property_descriptor();module2.exports=function(object,key,value){var propertyKey=toPropertyKey(key);propertyKey in object?definePropertyModule.f(object,propertyKey,createPropertyDescriptor(0,value)):object[propertyKey]=value}}});var require_object_keys=__commonJS({"node_modules/core-js/internals/object-keys.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var internalObjectKeys=require_object_keys_internal(),enumBugKeys=require_enum_bug_keys();module2.exports=Object.keys||function(O){return internalObjectKeys(O,enumBugKeys)}}});var require_object_define_properties=__commonJS({"node_modules/core-js/internals/object-define-properties.js"(exports2){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),V8_PROTOTYPE_DEFINE_BUG=require_v8_prototype_define_bug(),definePropertyModule=require_object_define_property(),anObject=require_an_object(),toIndexedObject=require_to_indexed_object(),objectKeys=require_object_keys();exports2.f=DESCRIPTORS&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(O,Properties){anObject(O);for(var props=toIndexedObject(Properties),keys2=objectKeys(Properties),length=keys2.length,index=0,key;length>index;)definePropertyModule.f(O,key=keys2[index++],props[key]);return O}}});var require_html=__commonJS({"node_modules/core-js/internals/html.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var getBuiltIn=require_get_built_in();module2.exports=getBuiltIn("document","documentElement")}});var require_object_create=__commonJS({"node_modules/core-js/internals/object-create.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var anObject=require_an_object(),definePropertiesModule=require_object_define_properties(),enumBugKeys=require_enum_bug_keys(),hiddenKeys=require_hidden_keys(),html=require_html(),documentCreateElement=require_document_create_element
vendor: 4,766 bytes, line 34
34(),sharedKey=require_shared_key(),GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(content){return LT+SCRIPT+GT+content+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(activeXDocument2){activeXDocument2.write(scriptTag("")),activeXDocument2.close();var temp=activeXDocument2.parentWindow.Object;return activeXDocument2=null,temp},NullProtoObjectViaIFrame=function(){var iframe=documentCreateElement("iframe"),JS="java"+SCRIPT+":",iframeDocument;return iframe.style.display="none",html.appendChild(iframe),iframe.src=String(JS),iframeDocument=iframe.contentWindow.document,iframeDocument.open(),iframeDocument.write(scriptTag("document.F=Object")),iframeDocument.close(),iframeDocument.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch{}NullProtoObject=typeof document<"u"?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var length=enumBugKeys.length;length--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];return NullProtoObject()};hiddenKeys[IE_PROTO]=!0;module2.exports=Object.create||function(O,Properties){var result;return O!==null?(EmptyConstructor[PROTOTYPE]=anObject(O),result=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,result[IE_PROTO]=O):result=NullProtoObject(),Properties===void 0?result:definePropertiesModule.f(result,Properties)}}});var require_iterators_core=__commonJS({"node_modules/core-js/internals/iterators-core.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var fails=require_fails(),isCallable=require_is_callable(),isObject2=require_is_object(),create=require_object_create(),getPrototypeOf=require_object_get_prototype_of(),defineBuiltIn=require_define_built_in(),wellKnownSymbol=require_well_known_symbol(),IS_PURE=require_is_pure(),ITERATOR=wellKnownSymbol("iterator"),BUGGY_SAFARI_ITERATORS=!1,IteratorPrototype,PrototypeOfArrayIteratorPrototype,arrayIterator;[].keys&&(arrayIterator=[].keys(),"next"in arrayIterator?(PrototypeOfArrayIteratorPrototype=getPrototypeOf(getPrototypeOf(arrayIterator)),PrototypeOfArrayIteratorPrototype!==Object.prototype&&(IteratorPrototype=PrototypeOfArrayIteratorPrototype)):BUGGY_SAFARI_ITERATORS=!0);var NEW_ITERATOR_PROTOTYPE=!isObject2(IteratorPrototype)||fails(function(){var test={};return IteratorPrototype[ITERATOR].call(test)!==test});NEW_ITERATOR_PROTOTYPE?IteratorPrototype={}:IS_PURE&&(IteratorPrototype=create(IteratorPrototype));isCallable(IteratorPrototype[ITERATOR])||defineBuiltIn(IteratorPrototype,ITERATOR,function(){return this});module2.exports={IteratorPrototype,BUGGY_SAFARI_ITERATORS}}});var require_esnext_iterator_constructor=__commonJS({"node_modules/core-js/modules/esnext.iterator.constructor.js"(){"use strict";init_define_process_env();init_shim();var $=require_export(),global=require_global(),anInstance=require_an_instance(),anObject=require_an_object(),isCallable=require_is_callable(),getPrototypeOf=require_object_get_prototype_of(),defineBuiltInAccessor=require_define_built_in_accessor(),createProperty=require_create_property(),fails=require_fails(),hasOwn=require_has_own_property(),wellKnownSymbol=require_well_known_symbol(),IteratorPrototype=require_iterators_core().IteratorPrototype,DESCRIPTORS=require_descriptors(),IS_PURE=require_is_pure(),CONSTRUCTOR="constructor",ITERATOR="Iterator",TO_STRING_TAG=wellKnownSymbol("toStringTag"),$TypeError=TypeError,NativeIterator=global[ITERATOR],FORCED=IS_PURE||!isCallable(NativeIterator)||NativeIterator.prototype!==IteratorPrototype||!fails(function(){NativeIterator({})}),IteratorConstructor=function(){if(anInstance(this,IteratorPrototype),getPrototypeOf(this)===IteratorPrototype)throw new $TypeError("Abstract class Iterator not directly constructable")},defineIteratorPrototypeAccessor=function(key,value){DESCRIPTORS?defineBuiltInAccessor(IteratorPrototype,key,{configurable:!0,get:function(){return value},set:function(replacement){if(anObject(this),this===IteratorPrototype)throw new $TypeError("You can't redefine this property");hasOwn(this,key)?this[key]=replacement:createProperty(this,key,replacement)}}):IteratorPrototype[key]=value};hasOwn(IteratorPrototype,TO_STRING_TAG)||defineIteratorPrototypeAccessor(TO_STRING_TAG,ITERATOR);(FORCED||!hasOwn(IteratorPrototype,CONSTRUCTOR)||IteratorPrototype[CONSTRUCTOR]===Object)&&defineIteratorPrototypeAccessor(CONSTRUCTOR,IteratorConstructor);IteratorConstructor.prototype=IteratorPrototype;$({global:!0,constructor:!0,forced:FORCED},{Iterator:IteratorConstructor})}});var require_function_uncurry_this_clause=__commonJS({"node_modules/core-js/internals/function-uncurr
34y-this-clause.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var classofRaw=require_classof_raw(),uncurryThis=require_function_uncurry_this();module2.exports=function(fn){if(classofRaw(fn)==="Function")return uncurryThis(fn)}}});var require_function_bind_context=__commonJS({"node_modules/core-js/internals/function-bind-context.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this_clause(),aCallable=require_a_callable(),NATIVE_BIND=require_function_bind_native(),bind=uncurryThis(uncurryThis.bind);module2.exports=function(fn,that){return aCallable(fn),that===void 0?fn:NATIVE_BIND?bind(fn,that):function(){return fn.apply(that,arguments)}}}});var require_iterators=__commonJS({"node_modules/core-js/internals/iterators.js"(exports2,module2){"use strict";init_define_process_env();init_shim();module2.exports={}}});var require_is_array_iterator_method=__commonJS({"node_modules/core-js/internals/is-array-iterator-method.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var wellKnownSymbol=require_well_known_symbol(),Iterators=require_iterators(),ITERATOR=wellKnownSymbol("iterator"),ArrayPrototype=Array.prototype;module2.exports=function(it){return it!==void 0&&(Iterators.Array===it||ArrayPrototype[ITERATOR]===it)}}});var require_to_string_tag_support=__commonJS({"node_modules/core-js/internals/to-string-tag-support.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var wellKnownSymbol=require_well_known_symbol(),TO_STRING_TAG=wellKnownSymbol("toStringTag"),test={};test[TO_STRING_TAG]="z";module2.exports=String(test)==="[object z]"}});var require_classof=__commonJS({"node_modules/core-js/internals/classof.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var TO_STRING_TAG_SUPPORT=require_to_string_tag_support(),isCallable=require_is_callable(),classofRaw=require_classof_raw(),wellKnownSymbol=require_well_known_symbol(),TO_STRING_TAG=wellKnownSymbol("toStringTag"),$Object=Object,CORRECT_ARGUMENTS=classofRaw(function(){return arguments}())==="Arguments",tryGet=function(it,key){try{return it[key]}catch{}};module2.exports=TO_STRING_TAG_SUPPORT?classofRaw:function(it){var O,tag,result;return it===void 0?"Undefined":it===null?"Null":typeof(tag=tryGet(O=$Object(it),TO_STRING_TAG))=="string"?tag:CORRECT_ARGUMENTS?classofRaw(O):(result=classofRaw(O))==="Object"&&isCallable(O.callee)?"Arguments":result}}});var require_get_iterator_method=__commonJS({"node_modules/core-js/internals/get-iterator-method.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var classof=require_classof(),getMethod=require_get_method(),isNullOrUndefined=require_is_null_or_undefined(),Iterators=require_iterators(),wellKnownSymbol=require_well_known_symbol(),ITERATOR=wellKnownSymbol("iterator");module2.exports=function(it){if(!isNullOrUndefined(it))return getMethod(it,ITERATOR)||getMethod(it,"@@iterator")||Iterators[classof(it)]}}});var require_get_iterator=__commonJS({"node_modules/core-js/internals/get-iterator.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var call=require_function_call(),aCallable=require_a_callable(),anObject=require_an_object(),tryToString=require_try_to_string(),getIteratorMethod=require_get_iterator_method(),$TypeError=TypeError;module2.exports=function(argument,usingIterator){var iteratorMethod=arguments.length<2?getIteratorMethod(argument):usingIterator;if(aCallable(iteratorMethod))return anObject(call(iteratorMethod,argument));throw new $TypeError(tryToString(argument)+" is not iterable")}}});var require_iterator_close=__commonJS({"node_modules/core-js/internals/iterator-close.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var call=require_function_call(),anObject=require_an_object(),getMethod=require_get_method();module2.exports=function(iterator,kind,value){var innerResult,innerError;anObject(iterator);try{if(innerResult=getMethod(iterator,"return"),!innerResult){if(kind==="throw")throw value;return value}innerResult=call(innerResult,iterator)}catch(error){innerError=!0,innerResult=error}if(kind==="throw")throw value;if(innerError)throw innerResult;return anObject(innerResult),value}}});var require_iterate=__commonJS({"node_modules/core-js/internals/iterate.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var bind=require_function_bind_context(),call=require_function_call(),anObject=require_an_object(),tryToString=require_try_to_string(),isArrayIteratorMethod=require_is_array_iterator_method(),lengthOfArrayLike=require_length_of_array_like(),isPrototypeOf=require_object_is_prototype_of(),getIterator=require_get_iterator(),getIteratorMethod=require_get_iterator_method(),iteratorClose=require_iterator_close(),$TypeError=TypeError,Result=function(stopped,result){this.stopped=stopped,this.result=result},ResultPrototype=Result.prototype;module2.exports=function(iterable,unboundFunction,options){var that=options&&options.that,AS_ENTRIES=!!(options&&options.AS_ENTRIES),IS_RECORD=!!(options&&options.IS_RECORD),IS_ITERATOR=!!(options&&options.IS_ITERATOR),INTERRUPTED=!!(options&&options.INTERRUPTED),fn=bind(unboundFunction,that),iterator,iterFn,index,length,result,next,step,stop=function(condition){return iterator&&iteratorClose(iterator,"normal",condition),new Result(!0,condition)},callFn=function(value){return AS_ENTRIES?(anObject(value),INTERRUPTED?fn(value[0],value[1],stop):fn(value[0],value[1])):INTERRUPTED?fn(value,stop):fn(value)};if(IS_RECORD)iterator=iterable.iterator;else if(IS_ITERATOR)iterator=iterable;else{if(iterFn=getIteratorMethod(iterable),!iterFn)throw new $TypeError(tryToString(iterable)+" is not iterable");if(isArrayIteratorMethod(iterFn)){for(index=0,length=lengthOfArrayLike(iterable);length>index;index++)if(result=callFn(iterable[index]),result&&isPrototypeOf(ResultPrototype,result))return result;return new Result(!1)}iterator=getIterator(iterable,iterFn)}for(next=IS_RECORD?iterable.next:iterator.next;!(step=call(next,iterator)).done;){try{result=callFn(step.value)}catch(error){iteratorClose(iterator,"throw",error)}if(typeof result=="object"&&result&&isPrototypeOf(ResultPrototype,result))return result}return new Result(!1)}}});var require_get_iterator_direct=__commonJS({"node_modules/core-js/internals/get-iterator-direct.js"(exports2,module2){"use strict";init_define_process_env();init_shim();module2.exports=function(obj){return{iterator:obj,next:obj.next,done:!1}}}});var require_esnext_iterator_find=__commonJS({"node_modules/core-js/modules/esnext.iterator.find.js"(
34){"use strict";init_define_process_env();init_shim();var $=require_export(),iterate=require_iterate(),aCallable=require_a_callable(),anObject=require_an_object(),getIteratorDirect=require_get_iterator_direct();$({target:"Iterator",proto:!0,real:!0},{find:function(predicate){anObject(this),aCallable(predicate);var record=getIteratorDirect(this),counter=0;return iterate(record,function(value,stop){if(predicate(value,counter++))return stop(value)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})}});var require_esnext_iterator_for_each=__commonJS({"node_modules/core-js/modules/esnext.iterator.for-each.js"(){"use strict";init_define_process_env();init_shim();var $=require_export(),iterate=require_iterate(),aCallable=require_a_callable(),anObject=require_an_object(),getIteratorDirect=require_get_iterator_direct();$({target:"Iterator",proto:!0,real:!0},{forEach:function(fn){anObject(this),aCallable(fn);var record=getIteratorDirect(this),counter=0;iterate(record,function(value){fn(value,counter++)},{IS_RECORD:!0})}})}});var require_define_built_ins=__commonJS({"node_modules/core-js/internals/define-built-ins.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var defineBuiltIn=require_define_built_in();module2.exports=function(target,src,options){for(var key in src)defineBuiltIn(target,key,src[key],options);return target}}});var require_create_iter_result_object=__commonJS({"node_modules/core-js/internals/create-iter-result-object.js"(exports2,module2){"use strict";init_define_process_env();init_shim();module2.exports=function(value,done){return{value,done}}}});var require_iterator_create_proxy=__commonJS({"node_modules/core-js/internals/iterator-create-proxy.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var call=require_function_call(),create=require_object_create(),createNonEnumerableProperty=require_create_non_enumerable_property(),defineBuiltIns=require_define_built_ins(),wellKnownSymbol=require_well_known_symbol(),InternalStateModule=require_internal_state(),getMethod=require_get_method(),IteratorPrototype=require_iterators_core().IteratorPrototype,createIterResultObject=require_create_iter_result_object(),iteratorClose=require_iterator_close(),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ITERATOR_HELPER="IteratorHelper",WRAP_FOR_VALID_ITERATOR="WrapForValidIterator",setInternalState=InternalStateModule.set,createIteratorProxyPrototype=function(IS_ITERATOR){var getInternalState=InternalStateModule.getterFor(IS_ITERATOR?WRAP_FOR_VALID_ITERATOR:ITERATOR_HELPER);return defineBuiltIns(create(IteratorPrototype),{next:function(){var state=getInternalState(this);if(IS_ITERATOR)return state.nextHandler();try{var result=state.done?void 0:state.nextHandler();return createIterResultObject(result,state.done)}catch(error){throw state.done=!0,error}},return:function(){var state=getInternalState(this),iterator=state.iterator;if(state.done=!0,IS_ITERATOR){var returnMethod=getMethod(iterator,"return");return returnMethod?call(returnMethod,iterator):createIterResultObject(void 0,!0)}if(state.inner)try{iteratorClose(state.inner.iterator,"normal")}catch(error){return iteratorClose(iterator,"throw",error)}return iteratorClose(iterator,"normal"),createIterResultObject(void 0,!0)}})},WrapForValidIteratorPrototype=createIteratorProxyPrototype(!0),IteratorHelperPrototype=createIteratorProxyPrototype(!1);createNonEnumerableProperty(IteratorHelperPrototype,TO_STRING_TAG,"Iterator Helper");module2.exports=function(nextHandler,IS_ITERATOR){var IteratorProxy=function(record,state){state?(state.iterator=record.iterator,state.next=record.next):state=record,state.type=IS_ITERATOR?WRAP_FOR_VALID_ITERATOR:ITERATOR_HELPER,state.nextHandler=nextHandler,state.counter=0,state.done=!1,setInternalState(this,state)};return IteratorProxy.prototype=IS_ITERATOR?WrapForValidIteratorPrototype:IteratorHelperPrototype,IteratorProxy}}});var require_call_with_safe_iteration_closing=__commonJS({"node_modules/core-js/internals/call-with-safe-iteration-closing.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var anObject=require_an_object(),iteratorClose=require_iterator_close();module2.exports=function(iterator,fn,value,ENTRIES){try{return ENTRIES?fn(anObject(value)[0],value[1]):fn(value)}catch(error){iteratorClose(iterator,"throw",error)}}}});var require_iterator_map=__commonJS({"node_modules/core-js/internals/iterator-map.js"(exports2,module2){"use strict";init_define_process_env();init_shim();var call=require_function_call(),aCallable=require_a_callable(),anObject=require_an_object(),getIteratorDirect=require_get_iterator_direct(),createIteratorProxy=require_iterator_create_proxy(),callWithSafeIterationClosing=require_call_with_safe_iteration_closing(),IteratorProxy=createIteratorProxy(function(){var iterator=this.iterator,result=anObject(call(this.next,iterator)),done=this.done=!!result.done;if(!done)return callWithSafeIterationClosing(iterator,this.mapper,[result.value,this.counter++],!0)});module2.exports=function(mapper){return anObject(this),aCallable(mapper),new IteratorProxy(getIteratorDirect(this),{mapper})}}});var require_esnext_iterator_map=__commonJS({"node_modules/core-js/modules/esnext.iterator.map.js"(){"use strict";init_define_process_env();init_shim();var $=require_export(),map=require_iterator_map(),IS_PURE=require_is_pure();$({target:"Iterator",proto:!0,real:!0,forced:IS_PURE},{map})}});var require_esnext_iterator_reduce=__commonJS({"node_modules/core-js/modules/esnext.iterator.reduce.js"(){"use strict";init_define_process_env();init_shim();var $=require_export(),iterate=require_iterate(),aCallable=require_a_callable(),anObject=require_an_object(),getIteratorDirect=require_get_iterator_direct(),$TypeError=TypeError;$({target:"Iterator",proto:!0,real:!0},{reduce:function(reducer){anObject(this),aCallable(reducer);var record=getIteratorDirect(this),noInitial=arguments.length<2,accumulator=noInitial?void 0:arguments[1],counter=0;if(iterate(record,function(value){noInitial?(noInitial=!1,accumulator=value):accumulator=reducer(accumulator,value,counter),counter++},{IS_RECORD:!0}),noInitial)throw new $TypeError("Reduce of empty iterator with no initial value");return accumulator}})}});init_define_process_env();init_shim();var import_esnext_iterator_constructor=__toESM(require_esnext_iterator_constructor()),import_esnext_iterator_find=__toESM(require_esnext_iterator_find()),import_esnext_iterator_for_each=__toESM(require_esnext_iterator_for_each()),import_esnext_iterator_map=__toESM(require_esnext_iterator_map()),import_esnext_iterator_reduce=__toESM(require_esnext_iterator_reduce());init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();var freeGlobal=typeof window=="object"&&window&&window.Object===Object&&window,freeGlobal_default=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal_default||freeSelf||Function("return this")(),root_default=root;var Symbol2=root_default.Symbol,Symbol_default=Symbol2;init_define_process_env();init_shim();var objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=void 0;var unmasked=!0}catch{}var result=nativeObjectToString.call(value);return unmasked&&(isOwn?value[symToStringTag]=tag:delete value[symToStringTag]),result}var getRawTag_default=getRawTag;init_define_process_env();init_shim();var objectProto2=Object.prototype,nativeObjectToString2=objectProto2.toString;function objectToString(value){return nativeObjectToString2.call(value)}var objectToString_default=objectToString;
34var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;function baseGetTag(value){return value==null?value===void 0?undefinedTag:nullTag:symToStringTag2&&symToStringTag2 in Object(value)?getRawTag_default(value):objectToString_default(value)}var baseGetTag_default=baseGetTag;init_define_process_env();init_shim();function isObjectLike(value){return value!=null&&typeof value=="object"}var isObjectLike_default=isObjectLike;init_define_process_env();init_shim();var isArray=Array.isArray,isArray_default=isArray;init_define_process_env();init_shim();function isObject(value){var type=typeof value;return value!=null&&(type=="object"||type=="function")}var isObject_default=isObject;init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();var asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(value){if(!isObject_default(value))return!1;var tag=baseGetTag_default(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}var isFunction_default=isFunction;init_define_process_env();init_shim();init_define_process_env();init_shim();var coreJsData=root_default["__core-js_shared__"],coreJsData_default=coreJsData;var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData_default&&coreJsData_default.keys&&coreJsData_default.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:""}();function isMasked(func){return!!maskSrcKey&&maskSrcKey in func}var isMasked_default=isMasked;init_define_process_env();init_shim();var funcProto=Function.prototype,funcToString=funcProto.toString;function toSource(func){if(func!=null){try{return funcToString.call(func)}catch{}try{return func+""}catch{}}return""}var toSource_default=toSource;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto2=Function.prototype,objectProto3=Object.prototype,funcToString2=funcProto2.toString,hasOwnProperty2=objectProto3.hasOwnProperty,reIsNative=RegExp("^"+funcToString2.call(hasOwnProperty2).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(value){if(!isObject_default(value)||isMasked_default(value))return!1;var pattern=isFunction_default(value)?reIsNative:reIsHostCtor;return pattern.test(toSource_default(value))}var baseIsNative_default=baseIsNative;init_define_process_env();init_shim();function getValue(object,key){return object?.[key]}var getValue_default=getValue;function getNative(object,key){var value=getValue_default(object,key);return baseIsNative_default(value)?value:void 0}var getNative_default=getNative;var WeakMap=getNative_default(root_default,"WeakMap"),WeakMap_default=WeakMap;init_define_process_env();init_shim();var MAX_SAFE_INTEGER=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(value,length){var type=typeof value;return length=length??MAX_SAFE_INTEGER,!!length&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length}var isIndex_default=isIndex;init_define_process_env();init_shim();function eq(value,other){return value===other||value!==value&&other!==other}var eq_default=eq;init_define_process_env();init_shim();init_define_process_env();init_shim();var MAX_SAFE_INTEGER2=9007199254740991;function isLength(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER2}var isLength_default=isLength;function isArrayLike(value){return value!=null&&isLength_default(value.length)&&!isFunction_default(value)}var isArrayLike_default=isArrayLike;init_define_process_env();init_shim();var objectProto4=Object.prototype;function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto4;return value===proto}var isPrototype_default=isPrototype;init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();function baseTimes(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}var baseTimes_default=baseTimes;init_define_process_env();init_shim();init_define_process_env();init_shim();var argsTag="[object Arguments]";function baseIsArguments(value){return isObjectLike_default(value)&&baseGetTag_default(value)==argsTag}var baseIsArguments_default=baseIsArguments;var objectProto5=Object.prototype,hasOwnProperty3=objectProto5.hasOwnProperty,propertyIsEnumerable=objectProto5.propertyIsEnumerable,isArguments=baseIsArguments_default(function(){return arguments}())?baseIsArguments_default:function(value){return isObjectLike_default(value)&&hasOwnProperty3.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")},isArguments_default=isArguments;init_define_process_env();init_shim();init_define_process_env();init_shim();function stubFalse(){return!1}var stubFalse_default=stubFalse;var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer3=moduleExports?root_default.Buffer:void 0,nativeIsBuffer=Buffer3?Buffer3.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse_default,isBuffer_default=isBuffer;init_define_process_env();init_shim();init_define_process_env();init_shim();var argsTag2="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag2="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array
34]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag2]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag2]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;function baseIsTypedArray(value){return isObjectLike_default(value)&&isLength_default(value.length)&&!!typedArrayTags[baseGetTag_default(value)]}var baseIsTypedArray_default=baseIsTypedArray;init_define_process_env();init_shim();function baseUnary(func){return function(value){return func(value)}}var baseUnary_default=baseUnary;init_define_process_env();init_shim();var freeExports2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule2=freeExports2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports2=freeModule2&&freeModule2.exports===freeExports2,freeProcess=moduleExports2&&freeGlobal_default.process,nodeUtil=function(){try{var types=freeModule2&&freeModule2.require&&freeModule2.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}(),nodeUtil_default=nodeUtil;var nodeIsTypedArray=nodeUtil_default&&nodeUtil_default.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary_default(nodeIsTypedArray):baseIsTypedArray_default,isTypedArray_default=isTypedArray;var objectProto6=Object.prototype,hasOwnProperty4=objectProto6.hasOwnProperty;function arrayLikeKeys(value,inherited){var isArr=isArray_default(value),isArg=!isArr&&isArguments_default(value),isBuff=!isArr&&!isArg&&isBuffer_default(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray_default(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes_default(value.length,String):[],length=result.length;for(var key in value)(inherited||hasOwnProperty4.call(value,key))&&!(skipIndexes&&(key=="length"||isBuff&&(key=="offset"||key=="parent")||isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||isIndex_default(key,length)))&&result.push(key);return result}var arrayLikeKeys_default=arrayLikeKeys;init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();function overArg(func,transform){return function(arg){return func(transform(arg))}}var overArg_default=overArg;var nativeKeys=overArg_default(Object.keys,Object),nativeKeys_default=nativeKeys;var objectProto7=Object.prototype,hasOwnProperty5=objectProto7.hasOwnProperty;function baseKeys(object){if(!isPrototype_default(object))return nativeKeys_default(object);var result=[];for(var key in Object(object))hasOwnProperty5.call(object,key)&&key!="constructor"&&result.push(key);return result}var baseKeys_default=baseKeys;function keys(object){return isArrayLike_default(object)?arrayLikeKeys_default(object):baseKeys_default(object)}var keys_default=keys;init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();var nativeCreate=getNative_default(Object,"create"),nativeCreate_default=nativeCreate;function hashClear(){this.__data__=nativeCreate_default?nativeCreate_default(null):{},this.size=0}var hashClear_default=hashClear;init_define_process_env();init_shim();function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];return this.size-=result?1:0,result}var hashDelete_default=hashDelete;init_define_process_env();init_shim();var HASH_UNDEFINED="__lodash_hash_undefined__",objectProto8=Object.prototype,hasOwnProperty6=objectProto8.hasOwnProperty;function hashGet(key){var data=this.__data__;if(nativeCreate_default){var result=data[key];return result===HASH_UNDEFINED?void 0:result}return hasOwnProperty6.call(data,key)?data[key]:void 0}var hashGet_default=hashGet;init_define_process_env();init_shim();var objectProto9=Object.prototype,hasOwnProperty7=objectProto9.hasOwnProperty;function hashHas(key){var data=this.__data__;return nativeCreate_default?data[key]!==void 0:hasOwnProperty7.call(data,key)}var hashHas_default=hashHas;init_define_process_env();init_shim();var HASH_UNDEFINED2="__lodash_hash_undefined__";function hashSet(key,value){var data=this.__data__;return this.size+=this.has(key)?0:1,data[key]=nativeCreate_default&&value===void 0?HASH_UNDEFINED2:value,this}var hashSet_default=hashSet;function Hash(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}Hash.prototype.clear=hashClear_default;Hash.prototype.delete=hashDelete_default;Hash.prototype.get=hashGet_default;Hash.prototype.has=hashHas_default;Hash.prototype.set=hashSet_default;var Hash_default=Hash;init_define_process_env();init_shim();init_define_process_env();init_shim();function listCacheClear(){this.__data__=[],this.size=0}var listCacheClear_default=listCacheClear;init_define_process_env();init_shim();init_define_process_env();init_shim();function assocIndexOf(array,key){for(var length=array.length;length--;)if(eq_default(array[length][0],key))return length;return-1}var assocIndexOf_default=assocIndexOf;var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(key){var data=this.__data__,index=assocIndexOf_default(data,key);if(index<0)return!1;var lastIndex=data.length-1;return index==lastIndex?data.pop():splice.call(data,index,1),--this.size,!0}var listCacheDelete_default=listCacheDelete;init_define_process_env();init_shim();function listCacheGet(key){var data=this.__data__,index=assocIndexOf_default(data,key);return index<0?void 0:data[index][1]}var listCacheGet_default=listCacheGet;init_define_process_env();init_shim();function listCacheHas(key){return assocIndexOf_default(this.__data__,key)>-1}var listCacheHas_default=listCacheHas;init_define_process_env();init_shim();function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf_default(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}var listCacheSet_default=listCacheSet;function ListCache(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}ListCache.prototype.clear=listCacheClear_default;ListCache.prototype.delete=listCacheDelete_default;ListCache.prototype.get=listCacheGet_default;ListCache.prototype.has=listCacheHas_default;ListCache.prototype.set=listCacheSet_default;var ListCache_default=ListCache;init_define_process_env();init_shim();var Map=getNative_default(root_default,"Map"),Map_default=Map;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash_default,map:new(Map_default||ListCache_default),string:new Hash_default}}var mapCacheClear_default=mapCacheClear;init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();function isKeyable(value){var type=typeof value;return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null}
34var isKeyable_default=isKeyable;function getMapData(map,key){var data=map.__data__;return isKeyable_default(key)?data[typeof key=="string"?"string":"hash"]:data.map}var getMapData_default=getMapData;function mapCacheDelete(key){var result=getMapData_default(this,key).delete(key);return this.size-=result?1:0,result}var mapCacheDelete_default=mapCacheDelete;init_define_process_env();init_shim();function mapCacheGet(key){return getMapData_default(this,key).get(key)}var mapCacheGet_default=mapCacheGet;init_define_process_env();init_shim();function mapCacheHas(key){return getMapData_default(this,key).has(key)}var mapCacheHas_default=mapCacheHas;init_define_process_env();init_shim();function mapCacheSet(key,value){var data=getMapData_default(this,key),size=data.size;return data.set(key,value),this.size+=data.size==size?0:1,this}var mapCacheSet_default=mapCacheSet;function MapCache(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}MapCache.prototype.clear=mapCacheClear_default;MapCache.prototype.delete=mapCacheDelete_default;MapCache.prototype.get=mapCacheGet_default;MapCache.prototype.has=mapCacheHas_default;MapCache.prototype.set=mapCacheSet_default;var MapCache_default=MapCache;init_define_process_env();init_shim();function arrayPush(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array}var arrayPush_default=arrayPush;init_define_process_env();init_shim();init_define_process_env();init_shim();function stackClear(){this.__data__=new ListCache_default,this.size=0}var stackClear_default=stackClear;init_define_process_env();init_shim();function stackDelete(key){var data=this.__data__,result=data.delete(key);return this.size=data.size,result}var stackDelete_default=stackDelete;init_define_process_env();init_shim();function stackGet(key){return this.__data__.get(key)}var stackGet_default=stackGet;init_define_process_env();init_shim();function stackHas(key){return this.__data__.has(key)}var stackHas_default=stackHas;init_define_process_env();init_shim();var LARGE_ARRAY_SIZE=200;function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache_default){var pairs=data.__data__;if(!Map_default||pairs.length<LARGE_ARRAY_SIZE-1)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache_default(pairs)}return data.set(key,value),this.size=data.size,this}var stackSet_default=stackSet;function Stack(entries){var data=this.__data__=new ListCache_default(entries);this.size=data.size}Stack.prototype.clear=stackClear_default;Stack.prototype.delete=stackDelete_default;Stack.prototype.get=stackGet_default;Stack.prototype.has=stackHas_default;Stack.prototype.set=stackSet_default;var Stack_default=Stack;init_define_process_env();init_shim();init_define_process_env();init_shim();function arrayFilter(array,predicate){for(var index=-1,length=array==null?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result}var arrayFilter_default=arrayFilter;init_define_process_env();init_shim();function stubArray(){return[]}var stubArray_default=stubArray;var objectProto10=Object.prototype,propertyIsEnumerable2=objectProto10.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(object){return object==null?[]:(object=Object(object),arrayFilter_default(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable2.call(object,symbol)}))}:stubArray_default,getSymbols_default=getSymbols;init_define_process_env();init_shim();init_define_process_env();init_shim();function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray_default(object)?result:arrayPush_default(result,symbolsFunc(object))}var baseGetAllKeys_default=baseGetAllKeys;function getAllKeys(object){return baseGetAllKeys_default(object,keys_default,getSymbols_default)}var getAllKeys_default=getAllKeys;init_define_process_env();init_shim();init_define_process_env();init_shim();var DataView=getNative_default(root_default,"DataView"),DataView_default=DataView;init_define_process_env();init_shim();var Promise2=getNative_default(root_default,"Promise"),Promise_default=Promise2;init_define_process_env();init_shim();var Set=getNative_default(root_default,"Set"),Set_default=Set;var mapTag2="[object Map]",objectTag2="[object Object]",promiseTag="[object Promise]",
vendor: 8,293 bytes, line 34
34setTag2="[object Set]",weakMapTag2="[object WeakMap]",dataViewTag2="[object DataView]",dataViewCtorString=toSource_default(DataView_default),mapCtorString=toSource_default(Map_default),promiseCtorString=toSource_default(Promise_default),setCtorString=toSource_default(Set_default),weakMapCtorString=toSource_default(WeakMap_default),getTag=baseGetTag_default;(DataView_default&&getTag(new DataView_default(new ArrayBuffer(1)))!=dataViewTag2||Map_default&&getTag(new Map_default)!=mapTag2||Promise_default&&getTag(Promise_default.resolve())!=promiseTag||Set_default&&getTag(new Set_default)!=setTag2||WeakMap_default&&getTag(new WeakMap_default)!=weakMapTag2)&&(getTag=function(value){var result=baseGetTag_default(value),Ctor=result==objectTag2?value.constructor:void 0,ctorString=Ctor?toSource_default(Ctor):"";if(ctorString)switch(ctorString){case dataViewCtorString:return dataViewTag2;case mapCtorString:return mapTag2;case promiseCtorString:return promiseTag;case setCtorString:return setTag2;case weakMapCtorString:return weakMapTag2}return result});var getTag_default=getTag;init_define_process_env();init_shim();var Uint8Array2=root_default.Uint8Array,Uint8Array_default=Uint8Array2;init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();init_define_process_env();init_shim();var HASH_UNDEFINED3="__lodash_hash_undefined__";function setCacheAdd(value){return this.__data__.set(value,HASH_UNDEFINED3),this}var setCacheAdd_default=setCacheAdd;init_define_process_env();init_shim();function setCacheHas(value){return this.__data__.has(value)}var setCacheHas_default=setCacheHas;function SetCache(values){var index=-1,length=values==null?0:values.length;for(this.__data__=new MapCache_default;++index<length;)this.add(values[index])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd_default;SetCache.prototype.has=setCacheHas_default;var SetCache_default=SetCache;init_define_process_env();init_shim();function arraySome(array,predicate){for(var index=-1,length=array==null?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;return!1}var arraySome_default=arraySome;init_define_process_env();init_shim();function cacheHas(cache,key){return cache.has(key)}var cacheHas_default=cacheHas;var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache_default:void 0;for(stack.set(array,other),stack.set(other,array);++index<arrLength;){var arrValue=array[index],othValue=other[index];if(customizer)var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack);if(compared!==void 0){if(compared)continue;result=!1;break}if(seen){if(!arraySome_default(other,function(othValue2,othIndex){if(!cacheHas_default(seen,othIndex)&&(arrValue===othValue2||equalFunc(arrValue,othValue2,bitmask,customizer,stack)))return seen.push(othIndex)})){result=!1;break}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=!1;break}}return stack.delete(array),stack.delete(other),result}var equalArrays_default=equalArrays;init_define_process_env();init_shim();init_define_process_env();init_shim();function mapToArray(map){var index=-1,result=Array(map.size);return map.forEach(function(value,key){result[++index]=[key,value]}),result}var mapToArray_default=mapToArray;init_define_process_env();init_shim();function setToArray(set){var index=-1,result=Array(set.size);return set.forEach(function(value){result[++index]=value}),result}var setToArray_default=setToArray;var COMPARE_PARTIAL_FLAG2=1,COMPARE_UNORDERED_FLAG2=2,boolTag2="[object Boolean]",dateTag2="[object Date]",errorTag2="[object Error]",mapTag3="[object Map]",numberTag2="[object Number]",regexpTag2="[object RegExp]",setTag3="[object Set]",stringTag2="[object String]",symbolTag="[object Symbol]",arrayBufferTag2="[object ArrayBuffer]",dataViewTag3="[object DataView]",symbolProto=Symbol_default?Symbol_default.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag3:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset)return!1;object=object.buffer,other=other.buffer;case arrayBufferTag2:return!(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array_default(object),new Uint8Array_default(other)));case boolTag2:case dateTag2:case numberTag2:return eq_default(+object,+other);case errorTag2:return object.name==other.name&&object.message==other.message;case regexpTag2:case stringTag2:return object==other+"";case mapTag3:var convert=mapToArray_default;case setTag3:var isPartial=bitmask&COMPARE_PARTIAL_FLAG2;if(convert||(convert=setToArray_default),object.size!=other.size&&!isPartial)return!1;var stacked=stack.get(object);if(stacked)return stacked==other;bitmask|=COMPARE_UNORDERED_FLAG2,stack.set(object,other);var result=equalArrays_default(convert(object),convert(other),bitmask,customizer,equalFunc,stack);return stack.delete(object),result;case symbolTag:if(symbolValueOf)return symbolValueOf.call(object)==symbolValueOf.call(other)}return!1}var equalByTag_default=equalByTag;init_define_process_env();init_shim();var COMPARE_PARTIAL_FLAG3=1,objectProto11=Object.prototype,hasOwnProperty8=objectProto11.hasOwnProperty;function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG3,objProps=getAllKeys_default(object),objLength=objProps.length,othProps=getAllKeys_default(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty8.call(other,key)))return!1}var objStacked=stack.get(object),othStacked=stack.get(other);if(objStacked&&othStacked)return objStacked==other&&othStacked==object;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index<objLength;){key=objProps[index];var objValue=object[key],othValue=other[key];if(customizer)var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);if(!(compared===void 0?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=!1;break}skipCtor||(skipCtor=key=="constructor")}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)&&(result=!1)}return stack.delete(object),stack.delete(other),result}var equalObjects_default=equalObjects;var COMPARE_PARTIAL_FLAG4=1,argsTag3="[object Arguments]",arrayTag2="[object Array]",objectTag3="[object Object]",objectProto12=Object.prototype,hasOwnProperty9=objectProto12.hasOwnProperty;function baseIsEqualDeep(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray_default(object),othIsArr=isArray_default(other),objTag=objIsArr?arrayTag2:getTag_default(object),othTag=othIsArr?arrayTag2:getTag_default(other);objTag=objTag==argsTag3?objectTag3:objTag,othTag=othTag==argsTag3?objectTag3:othTag;var objIsObj=objTag==objectTag3,othIsObj=othTag==objectTag3,isSameTag=objTag==othTag;if(isSameTag&&isBuffer_default(object)){if(!isBuffer_default(other))return!1;objIsArr=!0,objIsObj=!1}if(isSameTag&&!objIsObj)return stack||(stack=new Stack_default),objIsArr||isTypedArray_default(object)?equalArrays_default(object,other,bitmask,customizer,equalFunc,stack):equalByTag_default(object,other,objTag,bitmask,customizer,equalFunc,stack);if(!(bitmask&COMPARE_PARTIAL_FLAG4)){var objIsWrapped=objIsObj&&hasOwnProperty9.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty9.call(other,"__wrapped__");
34if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;return stack||(stack=new Stack_default),equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack)}}return isSameTag?(stack||(stack=new Stack_default),equalObjects_default(object,other,bitmask,customizer,equalFunc,stack)):!1}var baseIsEqualDeep_default=baseIsEqualDeep;function baseIsEqual(value,other,bitmask,customizer,stack){return value===other?!0:value==null||other==null||!isObjectLike_default(value)&&!isObjectLike_default(other)?value!==value&&other!==other:baseIsEqualDeep_default(value,other,bitmask,customizer,baseIsEqual,stack)}var baseIsEqual_default=baseIsEqual;init_define_process_env();init_shim();function isEqual(value,other){return baseIsEqual_default(value,other)}var isEqual_default=isEqual;init_define_process_env();init_shim();var u=window?.u??_u,base_safe_require=window?.safe_require??_safe_require,legacy_keys={"@bubblegroup/db":["./db/runtime/db","./db/db"],"@bubblegroup/db/hydrate":["./db/runtime/hydrate","./db/hydrate"],"@bubblegroup/db/values/db_values":["./db/runtime/values/db_values","./db/values/db_values"],"@bubblegroup/db/values/StaticObject":["./db/runtime/values/StaticObject","./db/values/StaticObject"],"@bubblegroup/evaluation/engine/context":["@bubblegroup/evaluation/context","./lang/evaluation/context"],"@bubblegroup/evaluation/engine/eval_node_state":["@bubblegroup/evaluation/eval_node_state","./lang/evaluation/eval_node_state"],"@bubblegroup/evaluation/engine/node_eval":["@bubblegroup/evaluation/node_eval","./lang/evaluation/node_eval"],"@bubblegroup/evaluation/engine/page_state":["@bubblegroup/evaluation/page_state","./lang/evaluation/page_state"],"@bubblegroup/evaluation/engine/state_keys":["@bubblegroup/evaluation/state_keys","./lang/evaluation/state_keys"]};function safe_require_with_legacy_keys(path){try{return base_safe_require.safe_require(path)}catch(err){for(let legacy_key of legacy_keys[path]??[])try{return base_safe_require.safe_require(legacy_key)}catch{}throw err}}var safe_require={safe_require:safe_require_with_legacy_keys,safe_register:base_safe_require.safe_register};var incremental=safe_require.safe_require("./u/shared/incremental"),external=safe_require.safe_require("./external"),appquery=safe_require.safe_require("./lang/appquery"),plugin_consts=safe_require.safe_require("./constants/plugin"),local_storage=safe_require.safe_require("./constants/local_storage_keys"),{PUBLIC_ONLY}=safe_require.safe_require("./constants/apiconnectorbase"),known_plugins_consts=safe_require.safe_require("./constants/known_plugins"),{WORKOS_AUTH_URL}=safe_require.safe_require("./constants/auth"),logger=safe_require.safe_require("./logger"),Lib=safe_require.safe_require("./lib"),apiconnectorbase=safe_require.safe_require("./apiconnectorbase"),apiconnector_editor,ContextMenu;u.is_edit_mode()&&(apiconnector_editor=safe_require.safe_require("./editor_plugin/apiconnector_editor"),ContextMenu=safe_require.safe_require("./editor/contextmenu"));var API_CONNECTOR_BASE="apiconnector2";function get_path(api_id,call_id,field_name,field_id,key_name){if(api_id==null){logger.error("API connector issue, calling apiconnector2 with an empty call_id");return}let path=API_CONNECTOR_BASE+"."+api_id;return call_id&&(path+=".calls."+call_id),field_name&&(path+="."+field_name,field_id&&(path+="."+field_id,key_name&&(path+="."+key_name))),path}var get_all_apis_editor=u.autorun_cache({fn:()=>{let apis={},object=appquery.get_public_setting(API_CONNECTOR_BASE);for(let id in object)apis[id]=get_api(id);return apis},compare_fn:isEqual_default}),get_all_apis_runmode=function(){return u.autorun_cache(()=>{let apis={},object=appquery.get_public_setting(API_CONNECTOR_BASE);for(let id in object)apis[id]=get_api(id);return apis})("apiconnector2")},get_all_apis=Lib()?.is_edit_mode()?get_all_apis_editor:get_all_apis_runmode,API_CONNECTOR_FIELD_PREFIX="_api_c2_",BASE_SETTING_NAMES=["human","auth","shared_params","shared_headers","token_param_name","add_to_header","header_key","username","password","private_key","private_key_test","iss","scope","generate_token_from_code_uri","cert_file","key_file","token_endpoint","scope","authentication_url","generate_token_from_code_uri","auth_url_params","add_basic_authentication","token_data_type","add_offline","server_redirect","oauth_user_data_call","id_path","email_path"];function get_settings_json_for_api(api_id){let public_settings=read_json_keys_at_path(`settings.client_safe.apiconnector2.${api_id}`,BASE_SETTING_NAMES),private_settings=read_json_keys_at_path(`settings.secure.apiconnector2.${api_id}`,BASE_SETTING_NAMES);return u.deep_copy({},private_settings,public_settings)}function get_api(api_id){let pub=appquery.get_public_setting(get_path(api_id))??{},pvt=appquery.get_private_setting(get_path(api_id))??{},api=u.deep_copy({},pvt,pub);for(let call_id in api.calls){let call=api.calls[call_id];for(let thing of["types","data_container"])call[thing]&&(call[thing]=u.json_parse(call[thing]))}return api}
34function multi_read_json(paths){return paths.forEach(path=>appquery.app().json.pre_cache(path)),paths.map(path=>appquery.app().json.child_by_path(path).raw())}function read_json_keys_at_path(path,keys2){keys2.forEach(key=>appquery.app().json.pre_cache(`${path}.${key}`));let values=keys2.map(key=>appquery.app().json.child_by_path(`${path}.${key}`).raw());return keys2.reduce((obj,key,index)=>(obj[key]=values[index],obj),{})}function get_single_call_raw(api_id,call_id){let[pub,pvt,api_human]=multi_read_json([`settings.client_safe.${get_path(api_id,call_id)}`,`settings.secure.${get_path(api_id,call_id)}`,`settings.client_safe.${get_path(api_id)}.human`]);return pub=pub??{},pvt=pvt??{},{...u.deep_copy({},pub,pvt),types:incremental.incremental_json_parse(pub.types??null),data_container:incremental.incremental_json_parse(pub.types??null),api_id,api_human}}function get_oauth_call_data_raw(api_id){let[oauth_user_data_call,email_path,id_path,human]=multi_read_json([`settings.client_safe.${get_path(api_id)}.oauth_user_data_call`,`settings.client_safe.${get_path(api_id)}.email_path`,`settings.client_safe.${get_path(api_id)}.id_path`,`settings.client_safe.${get_path(api_id)}.human`]);return{human,email_path,id_path,oauth_user_data_call}}var APIConnectorPrivateKey=class extends apiconnectorbase.APIConnectorBasePrivateKey{_get_api(){return get_api(this.params.call_id)}},APIConnectorBasicAuth=class extends apiconnectorbase.APIConnectorBasicAuth{_get_api(){return get_api(this.params.call_id)}},APIConnectorJWT=class extends apiconnectorbase.APIConnectorBaseJWT{_get_api(){return get_api(this.params.call_id)}},APIConnectorSSLProtocol=class extends apiconnectorbase.APIConnectorBaseSSLProtocol{_get_api(){return get_api(this.params.call_id)}},APIConnectorOauth2PWFlow=class extends apiconnectorbase.APIConnectorBaseOauth2PWFlow{service_name(){return API_CONNECTOR_BASE+plugin_consts.PLUGIN_SEPARATOR+this.params.call_id}_get_api(){return get_api(this.params.call_id)}},APIConnectorOauth2Custom=class extends apiconnectorbase.APIConnectorBaseOauth2Custom{service_name(){return API_CONNECTOR_BASE+plugin_consts.PLUGIN_SEPARATOR+this.params.call_id}_get_api(){return get_api(this.params.call_id)}},APIConnectorOauth2=class extends apiconnectorbase.APIConnectorBaseOauth2{service_name(){return API_CONNECTOR_BASE+plugin_consts.PLUGIN_SEPARATOR+this.params.api_id}human_name(){return get_api(this.params.api_id).human}_get_api(){return get_api(this.params.api_id)}get_key(name){return name==="server_redirect"?this.get_property("server_redirect"):super.get_key(name)}login(context,action,oauth_token,cb){return!this.tested()&&Lib().workflow.debugger==null&&cb(new u.OwnerError("Oauth2 API not tested",{display:"API Connector error: the Oauth2 API "+this.human_name()+" is not tested yet. Please run in with the debugger to validate your settings."})),(this.get_property("authentication_url")==null||this.get_property("generate_token_from_code_uri")==null)&&cb(new u.OwnerError("Oauth2 API missing information",{display:"API Connector error: the Oauth2 API "+this.human_name()+" has some missing informations. please check"})),super.login(context,action,oauth_token)}get_oauth_user_data(login_data){try{return super.get_oauth_user_data(login_data)}catch(e){delete e.stack;let inner_message=`${e.message?.replace(this.service().plugin_name+" error:","")??JSON.stringify(e??{})} ${e.display?.()??""}`;throw new u.OwnerError("Oauth2 not configured properly",{display:`${this.service().plugin_name} error: the Oauth2 API ${this.human_name()} is not configured properly - ${inner_message}`})}}},WORKOS_SESSION_LENGTH=60*60*4,WorkOSAuth=class extends APIConnectorOauth2{generate_validity_object(user_info){return{access_token:user_info.access_token,refresh_token:user_info.refresh_token,access_token_expires_in:WORKOS_SESSION_LENGTH}}},cls=class extends apiconnectorbase.BaseAPIConnector{constructor(params){super(),this.params=params,this.plugin_name="API Connector",this.BASE=API_CONNECTOR_BASE,this.key_prefix=API_CONNECTOR_FIELD_PREFIX}get_all_apis(){return get_all_apis()}
34get_single_call_raw(api_id,call_id){return get_single_call_raw(api_id,call_id)}get_oauth_call_data_raw(api_id){return get_oauth_call_data_raw(api_id)}user_calls(){let res=[];for(let api_id of get_api_list())appquery.get_public_setting(`${get_path(api_id)}.auth`)==="oauth2_user"&&res.push(`${api_id}_oauth_user_data_call`);return res}authenticator(id){if(!id)return new external.NoAuth;let api_data=get_settings_json_for_api(id),auth,auth_params;return[null,void 0,"none"].includes(api_data.auth)&&(auth=new external.NoAuth),["private_key_url","private_key_header"].includes(api_data.auth)&&(auth_params=apiconnectorbase.get_private_key_auth_params(api_data),auth_params.call_id=id,auth=new APIConnectorPrivateKey(auth_params)),api_data.auth==="cert_key"&&(auth=new APIConnectorSSLProtocol({call_id:id})),api_data.auth==="basic_auth"&&(auth=new APIConnectorBasicAuth({call_id:id,username:api_data.username,password:api_data.password})),api_data.auth==="oauth2_pw"&&(auth_params=apiconnectorbase.get_oauth2_pw_auth_params(api_data),u.extend(auth_params,{call_id:id,username:api_data.username,password:api_data.password}),auth=new APIConnectorOauth2PWFlow(auth_params)),api_data.auth==="oauth2_custom"&&(auth=new APIConnectorOauth2Custom({call_id:id})),api_data.auth==="oauth2_user"&&(auth_params=apiconnectorbase.get_oauth2_user_auth_params(api_data),u.extend(auth_params,{api_id:id,_id:API_CONNECTOR_BASE+plugin_consts.PLUGIN_SEPARATOR+id}),auth_params.authentication_url?.startsWith(WORKOS_AUTH_URL)?auth=new WorkOSAuth(auth_params):auth=new APIConnectorOauth2(auth_params)),api_data.auth==="jwt"&&(auth_params=apiconnectorbase.get_jwt_auth_params(api_data),auth_params.call_id=id,auth=new APIConnectorJWT(auth_params)),auth._service=this,auth._display="API - "+api_data.human,auth.add_shared_params_and_headers=req=>apiconnectorbase.add_shared_params_and_headers(api_data,req,this.plugin_name,(header_id,header)=>header.value,(param_id,param)=>param.value),auth}},plugin_registry=safe_require.safe_require("./services/shared/plugin_registry"),apiconnector2={cls};typeof window<"u"&&window!==null&&(window.optional_modules??={},window.optional_modules.apiconnector2=apiconnector2);plugin_registry.register_plugin(known_plugins_consts.API_CONNECTOR,apiconnector2);})();
35/*! Bundled license information:
36
37buffer/index.js:
38  (*!
39   * The buffer module from node.js, for the browser.
40   *
41   * @author   Feross Aboukhadijeh <https://feross.org>
42   * @license  MIT
43   *)
44
45lodash-es/lodash.js:
46  (**
47   * @license
48   * Lodash (Custom Build) <https://lodash.com/>
49   * Build: `lodash modularize exports="es" -o ./`
50   * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
51   * Released under MIT license <https://lodash.com/license>
52   * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
53   * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
54   *)
55*/
56
57}
58
59
60window.preloaded['plugin/first_party:apiconnector2'] = true;
61window._bubble_page_load_data.hardcoded_plugins['materialicons'] = true;
62window.__code__ = window.__code__ || {};
63if(!window.__code__['43fcf961fef273a0bb0d8a2f2fe7b3e8e9be71bf091c7fda5a26de690b11ffce']){window.__code__['43fcf961fef273a0bb0d8a2f2fe7b3e8e9be71bf091c7fda5a26de690b11ffce']=1;
64
65"use strict";(()=>{var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var init_define_process_env=__esm({"<define:process.env>"(){}});var require_base64_js=__commonJS({"node_modules/base64-js/index.js"(exports){"use strict";init_define_process_env();init_shim();exports.byteLength=byteLength;exports.toByteArray=toByteArray;exports.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 28,466 bytes, line 65
65+/";for(i=0,len=code.length;i<len;++i)lookup[i]=code[i],revLookup[code.charCodeAt(i)]=i;var i,len;revLookup["-".charCodeAt(0)]=62;revLookup["_".charCodeAt(0)]=63;function getLens(b64){var len2=b64.length;if(len2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var validLen=b64.indexOf("=");validLen===-1&&(validLen=len2);var placeHoldersLen=validLen===len2?0:4-validLen%4;return[validLen,placeHoldersLen]}function byteLength(b64){var lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function toByteArray(b64){var tmp,lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1],arr=new Arr(_byteLength(b64,validLen,placeHoldersLen)),curByte=0,len2=placeHoldersLen>0?validLen-4:validLen,i2;for(i2=0;i2<len2;i2+=4)tmp=revLookup[b64.charCodeAt(i2)]<<18|revLookup[b64.charCodeAt(i2+1)]<<12|revLookup[b64.charCodeAt(i2+2)]<<6|revLookup[b64.charCodeAt(i2+3)],arr[curByte++]=tmp>>16&255,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255;return placeHoldersLen===2&&(tmp=revLookup[b64.charCodeAt(i2)]<<2|revLookup[b64.charCodeAt(i2+1)]>>4,arr[curByte++]=tmp&255),placeHoldersLen===1&&(tmp=revLookup[b64.charCodeAt(i2)]<<10|revLookup[b64.charCodeAt(i2+1)]<<4|revLookup[b64.charCodeAt(i2+2)]>>2,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255),arr}function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[num&63]}function encodeChunk(uint8,start,end){for(var tmp,output=[],i2=start;i2<end;i2+=3)tmp=(uint8[i2]<<16&16711680)+(uint8[i2+1]<<8&65280)+(uint8[i2+2]&255),output.push(tripletToBase64(tmp));return output.join("")}function fromByteArray(uint8){for(var tmp,len2=uint8.length,extraBytes=len2%3,parts=[],maxChunkLength=16383,i2=0,len22=len2-extraBytes;i2<len22;i2+=maxChunkLength)parts.push(encodeChunk(uint8,i2,i2+maxChunkLength>len22?len22:i2+maxChunkLength));return extraBytes===1?(tmp=uint8[len2-1],parts.push(lookup[tmp>>2]+lookup[tmp<<4&63]+"==")):extraBytes===2&&(tmp=(uint8[len2-2]<<8)+uint8[len2-1],parts.push(lookup[tmp>>10]+lookup[tmp>>4&63]+lookup[tmp<<2&63]+"=")),parts.join("")}}});var require_ieee754=__commonJS({"node_modules/ieee754/index.js"(exports){init_define_process_env();init_shim();exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8);if(e===0)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m=m+Math.pow(2,mLen),e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||value===0&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),e+eBias>=1?value+=rt/c:value+=rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e=e+eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8);for(e=e<<mLen|m,eLen+=mLen;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=s*128}}});var require_buffer=__commonJS({"node_modules/node-stdlib-browser/node_modules/buffer/index.js"(exports){"use strict";init_define_process_env();init_shim();var base64=require_base64_js(),ieee754=require_ieee754(),customInspectSymbol=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;exports.Buffer=Buffer3;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;var K_MAX_LENGTH=2147483647;exports.kMaxLength=K_MAX_LENGTH;Buffer3.TYPED_ARRAY_SUPPORT=typedArraySupport();!Buffer3.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function typedArraySupport(){try{var arr=new Uint8Array(1),proto={foo:function(){return 42}};return Object.setPrototypeOf(proto,Uint8Array.prototype),Object.setPrototypeOf(arr,proto),arr.foo()===42}catch{return!1}}Object.defineProperty(Buffer3.prototype,"parent",{enumerable:!0,get:function(){if(Buffer3.isBuffer(this))return this.buffer}});Object.defineProperty(Buffer3.prototype,"offset",{enumerable:!0,get:function(){if(Buffer3.isBuffer(this))return this.byteOffset}});function createBuffer(length){if(length>K_MAX_LENGTH)throw new RangeError('The value "'+length+'" is invalid for option "size"');var buf=new Uint8Array(length);return Object.setPrototypeOf(buf,Buffer3.prototype),buf}function Buffer3(arg,encodingOrOffset,length){if(typeof arg=="number"){if(typeof encodingOrOffset=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(arg)}return from(arg,encodingOrOffset,length)}Buffer3.poolSize=8192;function from(value,encodingOrOffset,length){if(typeof value=="string")return fromString(value,encodingOrOffset);if(ArrayBuffer.isView(value))return fromArrayView(value);if(value==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value);if(isInstance(value,ArrayBuffer)||value&&isInstance(value.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(isInstance(value,SharedArrayBuffer)||value&&isInstance(value.buffer,SharedArrayBuffer)))return fromArrayBuffer(value,encodingOrOffset,length);if(typeof value=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var valueOf=value.valueOf&&value.valueOf();if(valueOf!=null&&valueOf!==value)return Buffer3.from(valueOf,encodingOrOffset,length);var b=fromObject(value);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof value[Symbol.toPrimitive]=="function")return Buffer3.from(value[Symbol.toPrimitive]("string"),encodingOrOffset,length);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value)}Buffer3.from=function(value,encodingOrOffset,length){return from(value,encodingOrOffset,length)};Object.setPrototypeOf(Buffer3.prototype,Uint8Array.prototype);Object.setPrototypeOf(Buffer3,Uint8Array);function assertSize(size){if(typeof size!="number")throw new TypeError('"size" argument must be of type number');if(size<0)throw new RangeError('The value "'+size+'" is invalid for option "size"')}function alloc(size,fill,encoding){return assertSize(size),size<=0?createBuffer(size):fill!==void 0?typeof encoding=="string"?createBuffer(size).fill(fill,encoding):createBuffer(size).fill(fill):createBuffer(size)}Buffer3.alloc=function(size,fill,encoding){return alloc(size,fill,encoding)};function allocUnsafe(size){return assertSize(size),createBuffer(size<0?0:checked(size)|0)}Buffer3.allocUnsafe=function(size){return allocUnsafe(size)};Buffer3.allocUnsafeSlow=function(size){return allocUnsafe(size)};function fromString(string,encoding){if((typeof encoding!="string"||encoding==="")&&(encoding="utf8"),!Buffer3.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding);var length=byteLength(string,encoding)|0,buf=createBuffer(length),actual=buf.write(string,encoding);return actual!==length&&(buf=buf.slice(0,actual)),buf}function fromArrayLike(array){for(var length=array.length<0?0:checked(array.length)|0,buf=createBuffer(length),i=0;i<length;i+=1)buf[i]=array[i]&255;return buf}function fromArrayView(arrayView){if(isInstance(arrayView,Uint8Array)){var copy=new Uint8Array(arrayView);return fromArrayBuffer(copy.buffer,copy.byteOffset,copy.byteLength)}return fromArrayLike(arrayView)}function fromArrayBuffer(array,byteOffset,length){if(byteOffset<0||array.byteLength<byteOffset)throw new RangeError('"offset" is outside of buffer bounds');if(array.byteLength<byteOffset+(length||0))throw new RangeError('"length" is outside of buffer bounds');var buf;return byteOffset===void 0&&length===void 0?buf=new Uint8Array(array):length===void 0?buf=new Uint8Array(array,byteOffset):buf=new Uint8Array(array,byteOffset,length),Object.setPrototypeOf(buf,Buffer3.prototype),buf}function fromObject(obj){if(Buffer3.isBuffer(obj)){var len=checked(obj.length)|0,buf=createBuffer(len);return buf.length===0||obj.copy(buf,0,0,len),buf}if(obj.length!==void 0)return typeof obj.length!="number"||numberIsNaN(obj.length)?createBuffer(0):fromArrayLike(obj);if(obj.type==="Buffer"&&Array.isArray(obj.data))return fromArrayLike(obj.data)}function checked(length){if(length>=K_MAX_LENGTH)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K_MAX_LENGTH.toString(16)+" bytes");return length|0}function SlowBuffer(length){return+length!=length&&(length=0),Buffer3.alloc(+length)}Buffer3.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==Buffer3.prototype};Buffer3.compare=function(a,b){if(isInstance(a,Uint8Array)&&(a=Buffer3.from(a,a.offset,a.byteLength)),isInstance(b,Uint8Array)&&(b=Buffer3.from(b,b.offset,b.byteLength)),!Buffer3.isBuffer(a)||!Buffer3.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i<len;++i)if(a[i]!==b[i]){x=a[i],y=b[i];break}return x<y?-1:y<x?1:0};Buffer3.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Buffer3.concat=function(list,length){if(!Array.isArray(list))throw new TypeError('"list" argument must be an Array of Buffers');if(list.length===0)return Buffer3.alloc(0);var i;if(length===void 0)for(length=0,i=0;i<list.length;++i)length+=list[i].length;var buffer=Buffer3.allocUnsafe(length),pos=0;for(i=0;i<list.length;++i){var buf=list[i];if(isInstance(buf,Uint8Array))pos+buf.length>buffer.length?Buffer3.from(buf).copy(buffer,pos):Uint8Array.prototype.set.call(buffer,buf,pos);else if(Buffer3.isBuffer(buf))buf.copy(buffer,pos);else throw new TypeError('"list" argument must be an Array of Buffers');pos+=buf.length}return buffer};function byteLength(string,encoding){if(Buffer3.isBuffer(string))return string.length;if(ArrayBuffer.isView(string)||isInstance(string,ArrayBuffer))return string.byteLength;if(typeof string!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof string);var len=string.length,mustMatch=arguments.length>2&&arguments[2]===!0;if(!mustMatch&&len===0)return 0;for(var loweredCase=!1;;)switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return len*2;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return mustMatch?-1:utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}Buffer3.byteLength=byteLength;function slowToString(encoding,start,end){var loweredCase=!1;if((start===void 0||start<0)&&(start=0),start>this.length||((end===void 0||end>this.length)&&(end=this.length),end<=0)||(end>>>=0,start>>>=0,end<=start))return"";for(encoding||(encoding="utf8");;)switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"latin1":case"binary":return latin1Slice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}Buffer3.prototype._isBuffer=!0;function swap(b,n,m){var i=b[n];b[n]=b[m],b[m]=i}Buffer3.prototype.swap16=function(){var len=this.length;if(len%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<len;i+=2)swap(this,i,i+1);return this};Buffer3.prototype.swap32=function(){var len=this.length;if(len%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<len;i+=4)swap(this,i,i+3),swap(this,i+1,i+2);return this};Buffer3.prototype.swap64=function(){var len=this.length;if(len%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<len;i+=8)swap(this,i,i+7),swap(this,i+1,i+6),swap(this,i+2,i+5),swap(this,i+3,i+4);return this};Buffer3.prototype.toString=function(){var length=this.length;return length===0?"":arguments.length===0?utf8Slice(this,0,length):slowToString.apply(this,arguments)};Buffer3.prototype.toLocaleString=Buffer3.prototype.toString;Buffer3.prototype.equals=function(b){if(!Buffer3.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:Buffer3.compare(this,b)===0};Buffer3.prototype.inspect=function(){var str="",max=exports.INSPECT_MAX_BYTES;return str=this.toString("hex",0,max).replace(/(.{2})/g,"$1 ").trim(),this.length>max&&(str+=" ... "),"<Buffer "+str+">"};customInspectSymbol&&(Buffer3.prototype[customInspectSymbol]=Buffer3.prototype.inspect);Buffer3.prototype.compare=function(target,start,end,thisStart,thisEnd){if(isInstance(target,Uint8Array)&&(target=Buffer3.from(target,target.offset,target.byteLength)),!Buffer3.isBuffer(target))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof target);if(start===void 0&&(start=0),end===void 0&&(end=target?target.length:0),thisStart===void 0&&(thisStart=0),thisEnd===void 0&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw new RangeError("out of range index");if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;for(var x=thisEnd-thisStart,y=end-start,len=Math.min(x,y),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end),i=0;i<len;++i)if(thisCopy[i]!==targetCopy[i]){x=thisCopy[i],y=targetCopy[i];break}return x<y?-1:y<x?1:0};function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){if(buffer.length===0)return-1;if(typeof byteOffset=="string"?(encoding=byteOffset,byteOffset=0):byteOffset>2147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,numberIsNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1),byteOffset<0&&(byteOffset=buffer.length+byteOffset),byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(byteOffset<0)if(dir)byteOffset=0;else return-1;if(typeof val=="string"&&(val=Buffer3.from(val,encoding)),Buffer3.isBuffer(val))return val.length===0?-1:arrayIndexOf(buffer,val,byteOffset,encoding,dir);if(typeof val=="number")return val=val&255,typeof Uint8Array.prototype.indexOf=="function"?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf(buffer,[val],byteOffset,encoding,dir);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(arr,val,byteOffset,encoding,dir){var indexSize=1,arrLength=arr.length,valLength=val.length;if(encoding!==void 0&&(encoding=String(encoding).toLowerCase(),encoding==="ucs2"||encoding==="ucs-2"||encoding==="utf16le"||encoding==="utf-16le")){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}function read(buf,i2){return indexSize===1?buf[i2]:buf.readUInt16BE(i2*indexSize)}var i;if(dir){var foundIndex=-1;for(i=byteOffset;i<arrLength;i++)if(read(arr,i)===read(val,foundIndex===-1?0:i-foundIndex)){if(foundIndex===-1&&(foundIndex=i),i-foundIndex+1===valLength)return foundIndex*indexSize}else foundIndex!==-1&&(i-=i-foundIndex),foundIndex=-1}else for(byteOffset+valLength>arrLength&&(byteOffset=arrLength-valLength),i=byteOffset;i>=0;i--){for(var found=!0,j=0;j<valLength;j++)if(read(arr,i+j)!==read(val,j)){found=!1;break}if(found)return i}return-1}Buffer3.prototype.includes=function(val,byteOffset,encoding){return this.indexOf(val,byteOffset,encoding)!==-1};Buffer3.prototype.indexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!0)};Buffer3.prototype.lastIndexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!1)};function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;length?(length=Number(length),length>remaining&&(length=remaining)):length=remaining;var strLen=string.length;length>strLen/2&&(length=strLen/2);for(var i=0;i<length;++i){var parsed=parseInt(string.substr(i*2,2),16);if(numberIsNaN(parsed))return i;buf[offset+i]=parsed}return i}function utf8Write(buf,string,offset,length){return blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length)}function asciiWrite(buf,string,offset,length){return blitBuffer(asciiToBytes(string),buf,offset,length)}function base64Write(buf,string,offset,length){return blitBuffer(base64ToBytes(string),buf,offset,length)}function ucs2Write(buf,string,offset,length){return blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length)}Buffer3.prototype.write=function(string,offset,length,encoding){if(offset===void 0)encoding="utf8",length=this.length,offset=0;else if(length===void 0&&typeof offset=="string")encoding=offset,length=this.length,offset=0;else if(isFinite(offset))offset=offset>>>0,isFinite(length)?(length=length>>>0,encoding===void 0&&(encoding="utf8")):(encoding=length,length=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var remaining=this.length-offset;if((length===void 0||length>remaining)&&(length=remaining),string.length>0&&(length<0||offset<0)||offset>this.length)throw new RangeError("Attempt to write outside buffer bounds");encoding||(encoding="utf8");for(var loweredCase=!1;;)switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":case"latin1":case"binary":return asciiWrite(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}};Buffer3.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){return start===0&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);for(var res=[],i=start;i<end;){var firstByte=buf[i],codePoint=null,bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i+1],(secondByte&192)===128&&(tempCodePoint=(firstByte&31)<<6|secondByte&63,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i+1],thirdByte=buf[i+2],(secondByte&192)===128&&(thirdByte&192)===128&&(tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i+1],thirdByte=buf[i+2],fourthByte=buf[i+3],(secondByte&192)===128&&(thirdByte&192)===128&&(fourthByte&192)===128&&(tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}codePoint===null?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|codePoint&1023),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;i<len;)res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(buf[i]&127);return ret}function latin1Slice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(buf[i]);return ret}function hexSlice(buf,start,end){var len=buf.length;(!start||start<0)&&(start=0),(!end||end<0||end>len)&&(end=len);for(var out="",i=start;i<end;++i)out+=hexSliceLookupTable[buf[i]];return out}function utf16leSlice(buf,start,end){for(var bytes=buf.slice(start,end),res="",i=0;i<bytes.length-1;i+=2)res+=String.fromCharCode(bytes[i]+bytes[i+1]*256);return res}Buffer3.prototype.slice=function(start,end){var len=this.length;start=~~start,end=end===void 0?len:~~end,start<0?(start+=len,start<0&&(start=0)):start>len&&(start=len),end<0?(end+=len,end<0&&(end=0)):end>len&&(end=len),end<start&&(end=start);var newBuf=this.subarray(start,end);return Object.setPrototypeOf(newBuf,Buffer3.prototype),newBuf};function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}Buffer3.prototype.readUintLE=Buffer3.prototype.readUIntLE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset],mul=1,i=0;++i<byteLength2&&(mul*=256);)val+=this[offset+i]*mul;return val};Buffer3.prototype.readUintBE=Buffer3.prototype.readUIntBE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset+--byteLength2],mul=1;byteLength2>0&&(mul*=256);)val+=this[offset+--byteLength2]*mul;return val};Buffer3.prototype.readUint8=Buffer3.prototype.readUInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,1,this.length),this[offset]};Buffer3.prototype.readUint16LE=Buffer3.prototype.readUInt16LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,2,this.length),this[offset]|this[offset+1]<<8};Buffer3.prototype.readUint16BE=Buffer3.prototype.readUInt16BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,2,this.length),this[offset]<<8|this[offset+1]};Buffer3.prototype.readUint32LE=Buffer3.prototype.readUInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer3.prototype.readUint32BE=Buffer3.prototype.readUInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer3.prototype.readIntLE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset],mul=1,i=0;++i<byteLength2&&(mul*=256);)val+=this[offset+i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength2)),val};Buffer3.prototype.readIntBE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var i=byteLength2,mul=1,val=this[offset+--i];i>0&&(mul*=256);)val+=this[offset+--i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength2)),val};Buffer3.prototype.readInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,1,this.length),this[offset]&128?(255-this[offset]+1)*-1:this[offset]};Buffer3.prototype.readInt16LE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer3.prototype.readInt16BE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer3.prototype.readInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer3.prototype.readInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer3.prototype.readFloatLE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!0,23,4)};Buffer3.prototype.readFloatBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!1,23,4)};Buffer3.prototype.readDoubleLE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!0,52,8)};Buffer3.prototype.readDoubleBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!1,52,8)};function checkInt(buf,value,offset,ext,max,min){if(!Buffer3.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||value<min)throw new RangeError('"value" argument is out of bounds');if(offset+ext>buf.length)throw new RangeError("Index out of range")}Buffer3.prototype.writeUintLE=Buffer3.prototype.writeUIntLE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,byteLength2=byteLength2>>>0,!noAssert){var maxBytes=Math.pow(2,8*byteLength2)-1;checkInt(this,value,offset,byteLength2,maxBytes,0)}var mul=1,i=0;for(this[offset]=value&255;++i<byteLength2&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength2};Buffer3.prototype.writeUintBE=Buffer3.prototype.writeUIntBE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,byteLength2=byteLength2>>>0,!noAssert){var maxBytes=Math.pow(2,8*byteLength2)-1;checkInt(this,value,offset,byteLength2,maxBytes,0)}var i=byteLength2-1,mul=1;for(this[offset+i]=value&255;--i>=0&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength2};Buffer3.prototype.writeUint8=Buffer3.prototype.writeUInt8=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,1,255,0),this[offset]=value&255,offset+1};Buffer3.prototype.writeUint16LE=Buffer3.prototype.writeUInt16LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,65535,0),this[offset]=value&255,this[offset+1]=value>>>8,offset+2};Buffer3.prototype.writeUint16BE=Buffer3.prototype.writeUInt16BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,65535,0),this[offset]=value>>>8,this[offset+1]=value&255,offset+2};Buffer3.prototype.writeUint32LE=Buffer3.prototype.writeUInt32LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,4294967295,0),this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=value>>>8,this[offset]=value&255,offset+4};Buffer3.prototype.writeUint32BE=Buffer3.prototype.writeUInt32BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,4294967295,0),this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=value&255,offset+4};Buffer3.prototype.writeIntLE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,!noAssert){var limit=Math.pow(2,8*byteLength2-1);checkInt(this,value,offset,byteLength2,limit-1,-limit)}var i=0,mul=1,sub=0;for(this[offset]=value&255;++i<byteLength2&&(mul*=256);
vendor: 3,223 bytes, line 65
65)value<0&&sub===0&&this[offset+i-1]!==0&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength2};Buffer3.prototype.writeIntBE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,!noAssert){var limit=Math.pow(2,8*byteLength2-1);checkInt(this,value,offset,byteLength2,limit-1,-limit)}var i=byteLength2-1,mul=1,sub=0;for(this[offset+i]=value&255;--i>=0&&(mul*=256);)value<0&&sub===0&&this[offset+i+1]!==0&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength2};Buffer3.prototype.writeInt8=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,1,127,-128),value<0&&(value=255+value+1),this[offset]=value&255,offset+1};Buffer3.prototype.writeInt16LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,32767,-32768),this[offset]=value&255,this[offset+1]=value>>>8,offset+2};Buffer3.prototype.writeInt16BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,32767,-32768),this[offset]=value>>>8,this[offset+1]=value&255,offset+2};Buffer3.prototype.writeInt32LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),this[offset]=value&255,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24,offset+4};Buffer3.prototype.writeInt32BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),value<0&&(value=4294967295+value+1),this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=value&255,offset+4};function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return value=+value,offset=offset>>>0,noAssert||checkIEEE754(buf,value,offset,4,34028234663852886e22,-34028234663852886e22),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}Buffer3.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)};Buffer3.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)};function writeDouble(buf,value,offset,littleEndian,noAssert){return value=+value,offset=offset>>>0,noAssert||checkIEEE754(buf,value,offset,8,17976931348623157e292,-17976931348623157e292),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}Buffer3.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)};Buffer3.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)};Buffer3.prototype.copy=function(target,targetStart,start,end){if(!Buffer3.isBuffer(target))throw new TypeError("argument should be a Buffer");if(start||(start=0),!end&&end!==0&&(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&end<start&&(end=start),end===start||target.length===0||this.length===0)return 0;
vendor: 5,180 bytes, line 65
65if(targetStart<0)throw new RangeError("targetStart out of bounds");if(start<0||start>=this.length)throw new RangeError("Index out of range");if(end<0)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStart<end-start&&(end=target.length-targetStart+start);var len=end-start;return this===target&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(targetStart,start,end):Uint8Array.prototype.set.call(target,this.subarray(start,end),targetStart),len};Buffer3.prototype.fill=function(val,start,end,encoding){if(typeof val=="string"){if(typeof start=="string"?(encoding=start,start=0,end=this.length):typeof end=="string"&&(encoding=end,end=this.length),encoding!==void 0&&typeof encoding!="string")throw new TypeError("encoding must be a string");if(typeof encoding=="string"&&!Buffer3.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding);if(val.length===1){var code=val.charCodeAt(0);(encoding==="utf8"&&code<128||encoding==="latin1")&&(val=code)}}else typeof val=="number"?val=val&255:typeof val=="boolean"&&(val=Number(val));if(start<0||this.length<start||this.length<end)throw new RangeError("Out of range index");if(end<=start)return this;start=start>>>0,end=end===void 0?this.length:end>>>0,val||(val=0);var i;if(typeof val=="number")for(i=start;i<end;++i)this[i]=val;else{var bytes=Buffer3.isBuffer(val)?val:Buffer3.from(val,encoding),len=bytes.length;if(len===0)throw new TypeError('The value "'+val+'" is invalid for argument "value"');for(i=0;i<end-start;++i)this[i+start]=bytes[i%len]}return this};var INVALID_BASE64_RE=/[^+/0-9A-Za-z-_]/g;function base64clean(str){if(str=str.split("=")[0],str=str.trim().replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str=str+"=";return str}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;i<length;++i){if(codePoint=string.charCodeAt(i),codePoint>55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}else if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else throw new Error("Invalid code point")}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i<str.length;++i)byteArray.push(str.charCodeAt(i)&255);return byteArray}function utf16leToBytes(str,units){for(var c,hi,lo,byteArray=[],i=0;i<str.length&&!((units-=2)<0);++i)c=str.charCodeAt(i),hi=c>>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;i<length&&!(i+offset>=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}function isInstance(obj,type){return obj instanceof type||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type.name}function numberIsNaN(obj){return obj!==obj}var hexSliceLookupTable=function(){for(var alphabet="0123456789abcdef",table=new Array(256),i=0;i<16;++i)for(var i16=i*16,j=0;j<16;++j)table[i16+j]=alphabet[i]+alphabet[j];return table}()}});var require_browser=__commonJS({"node_modules/process/browser.js"(exports,module){init_define_process_env();init_shim();var process2=module.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch{try{return cachedSetTimeout.call(null,fun,0)}catch{return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch{try{return cachedClearTimeout.call(null,marker)}catch{return cachedClearTimeout.call(this,marker)}}}
65var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}process2.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(fun,array){this.fun=fun,this.array=array}Item.prototype.run=function(){this.fun.apply(null,this.array)};process2.title="browser";process2.browser=!0;process2.env={};process2.argv=[];process2.version="";process2.versions={};function noop(){}process2.on=noop;process2.addListener=noop;process2.once=noop;process2.off=noop;process2.removeListener=noop;process2.removeAllListeners=noop;process2.emit=noop;process2.prependListener=noop;process2.prependOnceListener=noop;process2.listeners=function(name){return[]};process2.binding=function(name){throw new Error("process.binding is not supported")};process2.cwd=function(){return"/"};process2.chdir=function(dir){throw new Error("process.chdir is not supported")};process2.umask=function(){return 0}}});var import_buffer,import_process,_globalThis,init_shim=__esm({"node_modules/node-stdlib-browser/helpers/esbuild/shim.js"(){import_buffer=__toESM(require_buffer()),import_process=__toESM(require_browser()),_globalThis=function(Object2){function get(){var _global3=this||self;return delete Object2.prototype.__magic__,_global3}if(typeof globalThis=="object")return globalThis;if(this)return get();Object2.defineProperty(Object2.prototype,"__magic__",{configurable:!0,get});var _global2=__magic__;return _global2}(Object)}});function safe_require_with_legacy_keys(path){try{return base_safe_require.safe_require(path)}catch(err){for(let legacy_key of legacy_keys[path]??[])try{return base_safe_require.safe_require(legacy_key)}catch{}throw err}}var u,base_safe_require,legacy_keys,safe_require,init_window_register=__esm({"lib-browser/window_register.js"(){"use strict";init_define_process_env();init_shim();u=window?.u??_u,base_safe_require=window?.safe_require??_safe_require,legacy_keys={"@bubblegroup/db":["./db/runtime/db","./db/db"],"@bubblegroup/db/hydrate":["./db/runtime/hydrate","./db/hydrate"],"@bubblegroup/db/values/db_values":["./db/runtime/values/db_values","./db/values/db_values"],"@bubblegroup/db/values/StaticObject":["./db/runtime/values/StaticObject","./db/values/StaticObject"],"@bubblegroup/evaluation/engine/context":["@bubblegroup/evaluation/context","./lang/evaluation/context"],"@bubblegroup/evaluation/engine/eval_node_state":["@bubblegroup/evaluation/eval_node_state","./lang/evaluation/eval_node_state"],"@bubblegroup/evaluation/engine/node_eval":["@bubblegroup/evaluation/node_eval","./lang/evaluation/node_eval"],"@bubblegroup/evaluation/engine/page_state":["@bubblegroup/evaluation/page_state","./lang/evaluation/page_state"],"@bubblegroup/evaluation/engine/state_keys":["@bubblegroup/evaluation/state_keys","./lang/evaluation/state_keys"]};safe_require={safe_require:safe_require_with_legacy_keys,safe_register:base_safe_require.safe_register}}});var materialicons_Materialicon_exports={};__export(materialicons_Materialicon_exports,{additional_data:()=>additional_data,initialize:()=>initialize,property_applications:()=>property_applications_internal});function initialize(instance){return services.log_plugin_element_init({name:this.plugin_name,plugin:PLUGIN_FILE}),instance.wait_for_visible_lite(()=>{let canvas=instance.get_canvas();return property_applications.patch_user_agent_styles(canvas),canvas.addClass("inner-element bubble-element material-icons"),element_eval.on_property_change(instance,"icon",icon=>{icon.includes(".outline")?(canvas.removeClass("material-icons"),canvas.addClass("material-icons-outline")):(canvas.removeClass("material-icons-outline"),canvas.addClass("material-icons")),canvas.text(icon.replace(".outline",""))}),element_eval.on_property_change(instance,"icon_color",icon_color=>canvas.css("color",icon_color)),icons_legacy.calculate_font_size_for_fontawesome(instance)})}var services,property_applications,icons_legacy,element_eval,PLUGIN_FILE,property_applications_internal,additional_data,init_materialicons_Materialicon=__esm({"lib-browser/optional/services/legacy/responsive_v0/materialicons_Materialicon.js"(){"use strict";init_define_process_env();init_shim();init_window_register();services=safe_require.safe_require("./services"),property_applications=safe_require.safe_require("./core/property_applications"),icons_legacy=safe_require.safe_require("./core/core_elements/legacy/responsive_v0/shared/icons"),element_eval=safe_require.safe_require("./lang/evaluation/element_eval"),PLUGIN_FILE="materialicons",property_applications_internal=[new property_applications.MinWidth];additional_data={notify_width(instance,width){return instance.state("notify_width",width)}}}});init_define_process_env();init_shim();init_window_register();var element_eval2=safe_require.safe_require("./lang/evaluation/element_eval"),external=safe_require.safe_require("./external"),services2=safe_require.safe_require("./services"),Lib=safe_require.safe_require("./lib"),appquery=safe_require.safe_require("./lang/appquery"),property_applications2=safe_require.safe_require("./core/property_applications"),element_workflows=safe_require.safe_require("./core/core_elements/core_elements_utilities/element_workflows"),icons=safe_require.safe_require("./core/core_elements/shared/icons"),{MATERIAL_ICONS}
65=safe_require.safe_require("./constants/plugin"),element_modifications=safe_require.safe_require("./core/core_elements/legacy/responsive_v0/element_modifications");element_modifications.set_legacy_element_modifications("materialicons-Materialicon",(init_materialicons_Materialicon(),__toCommonJS(materialicons_Materialicon_exports)));var core_elements_fields,shared_field_metadata,goToElementEvent;u.is_edit_mode()&&!u.is_plugin_edit_mode()&&({goToElementEvent}=safe_require.safe_require("./editor/workflow_tab/logic/events"));u.uses_field_metadata()&&(core_elements_fields=safe_require.safe_require("./core/core_elements_fields"),core_elements_fields=core_elements_fields.default??core_elements_fields,shared_field_metadata=safe_require.safe_require("./core/shared_field_metadata"));var PLUGIN_FILE2="materialicons";function plugin_version(){return Lib()?appquery.get_public_setting("materialicons_installed_version")??0:1}function uses_css_responsive(){return Lib()?plugin_version()>=1||appquery.get_public_setting("materialicons_css_responsive")===!0:!0}var cls=class extends external.Service{constructor(){super(),this.authenticator=new external.NoAuth,this.elements=this._get_initial_elements()}_get_initial_elements(){return{Materialicon:{display:"Material Icon",category:"visual elements",icon:"ion-social-google",condition(root){return!root?.is_mobile?.()},defaults:{font_alignment:"center",background_style:"none",border_style:"none",border_roundness:4,border_width:2,border_color:"#6B6B6B",boxshadow_style:"none",width:80,height:80},field_names:u.extend({icon:{default:"insert_emoticon"},icon_color:{default:"#373737",in_style:!0}},element_workflows.start_workflow_field_names),property_applications:[new property_applications2.Dimensions,new property_applications2.FontShadow,new property_applications2.Border,new property_applications2.BoxShadow,new property_applications2.Background,new property_applications2.ToolTip,new property_applications2.ResponsiveElement],get uses_css_responsive(){return uses_css_responsive()},get_html(instance){return"<button></button>"},get_min_width(element){return 0},transition_properties:{icon_color:"color"},change_cursor_style_if_clickable:!0,initialize(instance){return services2.log_plugin_element_init({name:this.plugin_name,plugin:PLUGIN_FILE2}),instance.wait_for_visible_lite(()=>{let canvas=instance.get_canvas();property_applications2.patch_user_agent_styles(canvas),$(document).ready(()=>{instance.autorun(()=>{canvas.empty();let icon=element_eval2.evaluate_property(instance,"icon"),icon_name=icon;icon?.includes(".outline")?(icon_name=icon.replace(".outline",""),canvas.append(icons.get_svg_canvas("material-icons-outline",icon_name,icons.ICON_SIZE/2,-icons.ICON_SIZE/2,"start"))):canvas.append(icons.get_svg_canvas("material-icons",icon_name,icons.ICON_SIZE/2,-icons.ICON_SIZE/2,"start")),element_eval2.evaluate_property(instance,"button_disabled")&&canvas.attr("tabindex","-1")})}),element_eval2.on_property_change(instance,"icon_color",icon_color=>canvas.css("color",icon_color))})},is_input:!1,contains_group_data:!1,events:["ButtonClicked","ElementPressed"],add_an_invisible_div_on_the_top:!1,css_files:["css/optional/material-icons.css"]}}}keys(){return plugin_version()>=1?{}:{css_responsive:{caption:"Use new responsive properties for this plugin's elements",type:"client_safe",editor:"Checkbox"}}}},materialicons={cls};typeof window<"u"&&window!==null&&(window.optional_modules??={},window.optional_modules.materialicons=materialicons);var plugin_registry=safe_require.safe_require("./services/shared/plugin_registry");plugin_registry.register_plugin("materialicons",materialicons);})();
66/*! Bundled license information:
67
68buffer/index.js:
69  (*!
70   * The buffer module from node.js, for the browser.
71   *
72   * @author   Feross Aboukhadijeh <https://feross.org>
73   * @license  MIT
74   *)
75*/
76
77}
78
79
80window.preloaded['plugin/first_party:materialicons'] = true;
81window._bubble_page_load_data.hardcoded_plugins['multifileupload'] = true;
82window.__code__ = window.__code__ || {};
83if(!window.__code__['946675add0b934d84d31a8c398e047446b33321809270ab528391d56eb666415']){window.__code__['946675add0b934d84d31a8c398e047446b33321809270ab528391d56eb666415']=1;
84
85"use strict";(()=>{var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exp
vendor: 5,823 bytes, line 85
85orts:{}}).exports,mod),mod.exports};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));var init_define_process_env=__esm({"<define:process.env>"(){}});var require_base64_js=__commonJS({"node_modules/base64-js/index.js"(exports){"use strict";init_define_process_env();init_shim();exports.byteLength=byteLength;exports.toByteArray=toByteArray;exports.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(i=0,len=code.length;i<len;++i)lookup[i]=code[i],revLookup[code.charCodeAt(i)]=i;var i,len;revLookup["-".charCodeAt(0)]=62;revLookup["_".charCodeAt(0)]=63;function getLens(b64){var len2=b64.length;if(len2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var validLen=b64.indexOf("=");validLen===-1&&(validLen=len2);var placeHoldersLen=validLen===len2?0:4-validLen%4;return[validLen,placeHoldersLen]}function byteLength(b64){var lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function toByteArray(b64){var tmp,lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1],arr=new Arr(_byteLength(b64,validLen,placeHoldersLen)),curByte=0,len2=placeHoldersLen>0?validLen-4:validLen,i2;for(i2=0;i2<len2;i2+=4)tmp=revLookup[b64.charCodeAt(i2)]<<18|revLookup[b64.charCodeAt(i2+1)]<<12|revLookup[b64.charCodeAt(i2+2)]<<6|revLookup[b64.charCodeAt(i2+3)],arr[curByte++]=tmp>>16&255,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255;return placeHoldersLen===2&&(tmp=revLookup[b64.charCodeAt(i2)]<<2|revLookup[b64.charCodeAt(i2+1)]>>4,arr[curByte++]=tmp&255),placeHoldersLen===1&&(tmp=revLookup[b64.charCodeAt(i2)]<<10|revLookup[b64.charCodeAt(i2+1)]<<4|revLookup[b64.charCodeAt(i2+2)]>>2,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255),arr}function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[num&63]}function encodeChunk(uint8,start,end){for(var tmp,output=[],i2=start;i2<end;i2+=3)tmp=(uint8[i2]<<16&16711680)+(uint8[i2+1]<<8&65280)+(uint8[i2+2]&255),output.push(tripletToBase64(tmp));return output.join("")}function fromByteArray(uint8){for(var tmp,len2=uint8.length,extraBytes=len2%3,parts=[],maxChunkLength=16383,i2=0,len22=len2-extraBytes;i2<len22;i2+=maxChunkLength)parts.push(encodeChunk(uint8,i2,i2+maxChunkLength>len22?len22:i2+maxChunkLength));return extraBytes===1?(tmp=uint8[len2-1],parts.push(lookup[tmp>>2]+lookup[tmp<<4&63]+"==")):extraBytes===2&&(tmp=(uint8[len2-2]<<8)+uint8[len2-1],parts.push(lookup[tmp>>10]+lookup[tmp>>4&63]+lookup[tmp<<2&63]+"=")),parts.join("")}}});var require_ieee754=__commonJS({"node_modules/ieee754/index.js"(exports){init_define_process_env();init_shim();exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8);if(e===0)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m=m+Math.pow(2,mLen),e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||value===0&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),e+eBias>=1?value+=rt/c:value+=rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e=e+eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8);for(e=e<<mLen|m,eLen+=mLen;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=s*128}}});var require_buffer=__commonJS({"node_modules/node-stdlib-browser/node_modules/buffer/index.js"(exports){"use strict";init_define_process_env();init_shim();var base64=require_base64_js(),ieee754=require_ieee754(),customInspectSymbol=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;exports.Buffer=Buffer3;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;var K_MAX_LENGTH=2147483647;exports.kMaxLength=K_MAX_LENGTH;Buffer3.TYPED_ARRAY_SUPPORT=typedArraySupport();!Buffer3.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function typedArraySupport(){try{var arr=new Uint8Array(1),proto={foo:function(){return 42}};return Object.setPrototypeOf(proto,Uint8Array.prototype),Object.setPrototypeOf(arr,proto),arr.foo()===42}catch{return!1}}Object.defineProperty(Buffer3.prototype,"parent",{enumerable:!0,get:function(){if(Buffer3.isBuffer(this))return this.buffer}});Object.defineProperty(Buffer3.prototype,"offset",{enumerable:!0,get:function(){if(Buffer3.isBuffer(this))return this.byteOffset}});function createBuffer(length){if(length>
vendor: 23,595 bytes, line 85
85K_MAX_LENGTH)throw new RangeError('The value "'+length+'" is invalid for option "size"');var buf=new Uint8Array(length);return Object.setPrototypeOf(buf,Buffer3.prototype),buf}function Buffer3(arg,encodingOrOffset,length){if(typeof arg=="number"){if(typeof encodingOrOffset=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(arg)}return from(arg,encodingOrOffset,length)}Buffer3.poolSize=8192;function from(value,encodingOrOffset,length){if(typeof value=="string")return fromString(value,encodingOrOffset);if(ArrayBuffer.isView(value))return fromArrayView(value);if(value==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value);if(isInstance(value,ArrayBuffer)||value&&isInstance(value.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(isInstance(value,SharedArrayBuffer)||value&&isInstance(value.buffer,SharedArrayBuffer)))return fromArrayBuffer(value,encodingOrOffset,length);if(typeof value=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var valueOf=value.valueOf&&value.valueOf();if(valueOf!=null&&valueOf!==value)return Buffer3.from(valueOf,encodingOrOffset,length);var b=fromObject(value);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof value[Symbol.toPrimitive]=="function")return Buffer3.from(value[Symbol.toPrimitive]("string"),encodingOrOffset,length);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value)}Buffer3.from=function(value,encodingOrOffset,length){return from(value,encodingOrOffset,length)};Object.setPrototypeOf(Buffer3.prototype,Uint8Array.prototype);Object.setPrototypeOf(Buffer3,Uint8Array);function assertSize(size){if(typeof size!="number")throw new TypeError('"size" argument must be of type number');if(size<0)throw new RangeError('The value "'+size+'" is invalid for option "size"')}function alloc(size,fill,encoding){return assertSize(size),size<=0?createBuffer(size):fill!==void 0?typeof encoding=="string"?createBuffer(size).fill(fill,encoding):createBuffer(size).fill(fill):createBuffer(size)}Buffer3.alloc=function(size,fill,encoding){return alloc(size,fill,encoding)};function allocUnsafe(size){return assertSize(size),createBuffer(size<0?0:checked(size)|0)}Buffer3.allocUnsafe=function(size){return allocUnsafe(size)};Buffer3.allocUnsafeSlow=function(size){return allocUnsafe(size)};function fromString(string,encoding){if((typeof encoding!="string"||encoding==="")&&(encoding="utf8"),!Buffer3.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding);var length=byteLength(string,encoding)|0,buf=createBuffer(length),actual=buf.write(string,encoding);return actual!==length&&(buf=buf.slice(0,actual)),buf}function fromArrayLike(array){for(var length=array.length<0?0:checked(array.length)|0,buf=createBuffer(length),i=0;i<length;i+=1)buf[i]=array[i]&255;return buf}function fromArrayView(arrayView){if(isInstance(arrayView,Uint8Array)){var copy=new Uint8Array(arrayView);return fromArrayBuffer(copy.buffer,copy.byteOffset,copy.byteLength)}return fromArrayLike(arrayView)}function fromArrayBuffer(array,byteOffset,length){if(byteOffset<0||array.byteLength<byteOffset)throw new RangeError('"offset" is outside of buffer bounds');if(array.byteLength<byteOffset+(length||0))throw new RangeError('"length" is outside of buffer bounds');var buf;return byteOffset===void 0&&length===void 0?buf=new Uint8Array(array):length===void 0?buf=new Uint8Array(array,byteOffset):buf=new Uint8Array(array,byteOffset,length),Object.setPrototypeOf(buf,Buffer3.prototype),buf}function fromObject(obj){if(Buffer3.isBuffer(obj)){var len=checked(obj.length)|0,buf=createBuffer(len);return buf.length===0||obj.copy(buf,0,0,len),buf}if(obj.length!==void 0)return typeof obj.length!="number"||numberIsNaN(obj.length)?createBuffer(0):fromArrayLike(obj);if(obj.type==="Buffer"&&Array.isArray(obj.data))return fromArrayLike(obj.data)}function checked(length){if(length>=K_MAX_LENGTH)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K_MAX_LENGTH.toString(16)+" bytes");return length|0}function SlowBuffer(length){return+length!=length&&(length=0),Buffer3.alloc(+length)}Buffer3.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==Buffer3.prototype};Buffer3.compare=function(a,b){if(isInstance(a,Uint8Array)&&(a=Buffer3.from(a,a.offset,a.byteLength)),isInstance(b,Uint8Array)&&(b=Buffer3.from(b,b.offset,b.byteLength)),!Buffer3.isBuffer(a)||!Buffer3.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i<len;++i)if(a[i]!==b[i]){x=a[i],y=b[i];break}return x<y?-1:y<x?1:0};Buffer3.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Buffer3.concat=function(list,length){if(!Array.isArray(list))throw new TypeError('"list" argument must be an Array of Buffers');if(list.length===0)return Buffer3.alloc(0);var i;if(length===void 0)for(length=0,i=0;i<list.length;++i)length+=list[i].length;var buffer=Buffer3.allocUnsafe(length),pos=0;for(i=0;i<list.length;++i){var buf=list[i];if(isInstance(buf,Uint8Array))pos+buf.length>buffer.length?Buffer3.from(buf).copy(buffer,pos):Uint8Array.prototype.set.call(buffer,buf,pos);else if(Buffer3.isBuffer(buf))buf.copy(buffer,pos);else throw new TypeError('"list" argument must be an Array of Buffers');pos+=buf.length}return buffer};function byteLength(string,encoding){if(Buffer3.isBuffer(string))return string.length;if(ArrayBuffer.isView(string)||isInstance(string,ArrayBuffer))return string.byteLength;if(typeof string!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof string);var len=string.length,mustMatch=arguments.length>2&&arguments[2]===!0;if(!mustMatch&&len===0)return 0;for(var loweredCase=!1;;)switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return len*2;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return mustMatch?-1:utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}Buffer3.byteLength=byteLength;function slowToString(encoding,start,end){var loweredCase=!1;if((start===void 0||start<0)&&(start=0),start>this.length||((end===void 0||end>this.length)&&(end=this.length),end<=0)||(end>>>=0,start>>>=0,end<=start))return"";for(encoding||(encoding="utf8");;)switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"latin1":case"binary":return latin1Slice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}Buffer3.prototype._isBuffer=!0;function swap(b,n,m){var i=b[n];b[n]=b[m],b[m]=i}Buffer3.prototype.swap16=function(){var len=this.length;if(len%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<len;i+=2)swap(this,i,i+1);return this};Buffer3.prototype.swap32=function(){var len=this.length;if(len%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<len;i+=4)swap(this,i,i+3),swap(this,i+1,i+2);return this};Buffer3.prototype.swap64=function(){var len=this.length;if(len%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<len;i+=8)swap(this,i,i+7),swap(this,i+1,i+6),swap(this,i+2,i+5),swap(this,i+3,i+4);return this};Buffer3.prototype.toString=function(){var length=this.length;return length===0?"":arguments.length===0?utf8Slice(this,0,length):slowToString.apply(this,arguments)};Buffer3.prototype.toLocaleString=Buffer3.prototype.toString;Buffer3.prototype.equals=function(b){if(!Buffer3.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:Buffer3.compare(this,b)===0};Buffer3.prototype.inspect=function(){var str="",max=exports.INSPECT_MAX_BYTES;return str=this.toString("hex",0,max).replace(/(.{2})/g,"$1 ").trim(),this.length>max&&(str+=" ... "),"<Buffer "+str+">"};customInspectSymbol&&(Buffer3.prototype[customInspectSymbol]=Buffer3.prototype.inspect);Buffer3.prototype.compare=function(target,start,end,thisStart,thisEnd){if(isInstance(target,Uint8Array)&&(target=Buffer3.from(target,target.offset,target.byteLength)),!Buffer3.isBuffer(target))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof target);if(start===void 0&&(start=0),end===void 0&&(end=target?target.length:0),thisStart===void 0&&(thisStart=0),thisEnd===void 0&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw new RangeError("out of range index");if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;for(var x=thisEnd-thisStart,y=end-start,len=Math.min(x,y),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end),i=0;i<len;++i)if(thisCopy[i]!==targetCopy[i]){x=thisCopy[i],y=targetCopy[i];break}return x<y?-1:y<x?1:0};function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){if(buffer.length===0)return-1;if(typeof byteOffset=="string"?(encoding=byteOffset,byteOffset=0):byteOffset>2147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,numberIsNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1),byteOffset<0&&(byteOffset=buffer.length+byteOffset),byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(byteOffset<0)if(dir)byteOffset=0;else return-1;if(typeof val=="string"&&(val=Buffer3.from(val,encoding)),Buffer3.isBuffer(val))return val.length===0?-1:arrayIndexOf(buffer,val,byteOffset,encoding,dir);if(typeof val=="number")return val=val&255,typeof Uint8Array.prototype.indexOf=="function"?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf(buffer,[val],byteOffset,encoding,dir);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(arr,val,byteOffset,encoding,dir){var indexSize=1,arrLength=arr.length,valLength=val.length;if(encoding!==void 0&&(encoding=String(encoding).toLowerCase(),encoding==="ucs2"||encoding==="ucs-2"||encoding==="utf16le"||encoding==="utf-16le")){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}function read(buf,i2){return indexSize===1?buf[i2]:buf.readUInt16BE(i2*indexSize)}var i;if(dir){var foundIndex=-1;for(i=byteOffset;i<arrLength;i++)if(read(arr,i)===read(val,foundIndex===-1?0:i-foundIndex)){if(foundIndex===-1&&(foundIndex=i),i-foundIndex+1===valLength)return foundIndex*indexSize}else foundIndex!==-1&&(i-=i-foundIndex),foundIndex=-1}else for(byteOffset+valLength>arrLength&&(byteOffset=arrLength-valLength),i=byteOffset;i>=0;i--){for(var found=!0,j=0;j<valLength;j++)if(read(arr,i+j)!==read(val,j)){found=!1;break}if(found)return i}return-1}Buffer3.prototype.includes=function(val,byteOffset,encoding){return this.indexOf(val,byteOffset,encoding)!==-1};Buffer3.prototype.indexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!0)};Buffer3.prototype.lastIndexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!1)};function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;length?(length=Number(length),length>remaining&&(length=remaining)):length=remaining;var strLen=string.length;length>strLen/2&&(length=strLen/2);for(var i=0;i<length;++i){var parsed=parseInt(string.substr(i*2,2),16);if(numberIsNaN(parsed))return i;buf[offset+i]=parsed}return i}function utf8Write(buf,string,offset,length){return blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length)}function asciiWrite(buf,string,offset,length){return blitBuffer(asciiToBytes(string),buf,offset,length)}function base64Write(buf,string,offset,length){return blitBuffer(base64ToBytes(string),buf,offset,length)}function ucs2Write(buf,string,offset,length){return blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length)}Buffer3.prototype.write=function(string,offset,length,encoding){if(offset===void 0)encoding="utf8",length=this.length,offset=0;else if(length===void 0&&typeof offset=="string")encoding=offset,length=this.length,offset=0;else if(isFinite(offset))offset=offset>>>0,isFinite(length)?(length=length>>>0,encoding===void 0&&(encoding="utf8")):(encoding=length,length=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var remaining=this.length-offset;if((length===void 0||length>remaining)&&(length=remaining),string.length>0&&(length<0||offset<0)||offset>this.length)throw new RangeError("Attempt to write outside buffer bounds");encoding||(encoding="utf8");for(var loweredCase=!1;;)switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":case"latin1":case"binary":return asciiWrite(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}};Buffer3.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){return start===0&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);for(var res=[],i=start;i<end;){var firstByte=buf[i],codePoint=null,bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i+1],(secondByte&192)===128&&(tempCodePoint=(firstByte&31)<<6|secondByte&63,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i+1],thirdByte=buf[i+2],(secondByte&192)===128&&(thirdByte&192)===128&&(tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i+1],thirdByte=buf[i+2],fourthByte=buf[i+3],(secondByte&192)===128&&(thirdByte&192)===128&&(fourthByte&192)===128&&(tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}codePoint===null?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|codePoint&1023),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;i<len;)res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(buf[i]&127);return ret}function latin1Slice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(buf[i]);return ret}function hexSlice(buf,start,end){var len=buf.length;(!start||start<0)&&(start=0),(!end||end<0||end>len)&&(end=len);for(var out="",i=start;i<end;++i)out+=hexSliceLookupTable[buf[i]];return out}function utf16leSlice(buf,start,end){for(var bytes=buf.slice(start,end),res="",i=0;i<bytes.length-1;i+=2)res+=String.fromCharCode(bytes[i]+bytes[i+1]*256);return res}Buffer3.prototype.slice=function(start,end){var len=this.length;start=~~start,end=end===void 0?len:~~end,start<0?(start+=len,start<0&&(start=0)):start>len&&(start=len),end<0?(end+=len,end<0&&(end=0)):end>len&&(end=len),end<start&&(end=start);var newBuf=this.subarray(start,end);return Object.setPrototypeOf(newBuf,Buffer3.prototype),newBuf};function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}Buffer3.prototype.readUintLE=Buffer3.prototype.readUIntLE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset],mul=1,i=0;++i<byteLength2&&(mul*=256);)val+=this[offset+i]*mul;return val};Buffer3.prototype.readUintBE=Buffer3.prototype.readUIntBE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset+--byteLength2],mul=1;byteLength2>0&&(mul*=256);)val+=this[offset+--byteLength2]*mul;return val};Buffer3.prototype.readUint8=Buffer3.prototype.readUInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,1,this.length),this[offset]};Buffer3.prototype.readUint16LE=Buffer3.prototype.readUInt16LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,2,this.length),this[offset]|this[offset+1]<<8};Buffer3.prototype.readUint16BE=Buffer3.prototype.readUInt16BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,2,this.length),this[offset]<<8|this[offset+1]};Buffer3.prototype.readUint32LE=Buffer3.prototype.readUInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer3.prototype.readUint32BE=Buffer3.prototype.readUInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer3.prototype.readIntLE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset],mul=1,i=0;++i<byteLength2&&(mul*=256);)val+=this[offset+i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength2)),val};Buffer3.prototype.readIntBE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var i=byteLength2,mul=1,val=this[offset+--i];i>0&&(mul*=256);)val+=this[offset+--i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength2)),val};Buffer3.prototype.readInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,1,this.length),this[offset]&128?(255-this[offset]+1)*-1:this[offset]};Buffer3.prototype.readInt16LE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer3.prototype.readInt16BE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer3.prototype.readInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer3.prototype.readInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer3.prototype.readFloatLE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!0,23,4)};Buffer3.prototype.readFloatBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!1,23,4)};Buffer3.prototype.readDoubleLE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!0,52,8)};Buffer3.prototype.readDoubleBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!1,52,8)};function checkInt(buf,value,offset,ext,max,min){if(!Buffer3.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||value<min)throw new RangeError('"value" argument is out of bounds');if(offset+ext>buf.length)throw new RangeError("Index out of range")}Buffer3.prototype.writeUintLE=Buffer3.prototype.writeUIntLE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,byteLength2=byteLength2>>>0,!noAssert){var maxBytes=Math.pow(2,8*byteLength2)-1;checkInt(this,value,offset,byteLength2,maxBytes,0)}var mul=1,i=0;for(this[offset]=value&255;++i<byteLength2&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength2};Buffer3.prototype.writeUintBE=Buffer3.prototype.writeUIntBE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,byteLength2=byteLength2>>>0,!noAssert){var maxBytes=Math.pow(2,8*byteLength2)-1;checkInt(this,value,offset,byteLength2,maxBytes,0)}var i=byteLength2-1,mul=1;for(this[offset+i]=value&255;--i>=0&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength2};Buffer3.prototype.writeUint8=Buffer3.prototype.writeUInt8=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,1,255,0),this[offset]=value&255,offset+1};Buffer3.prototype.writeUint16LE=Buffer3.prototype.writeUInt16LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,65535,0),this[offset]=value&255,this[offset+1]=value>>>8,offset+2};Buffer3.prototype.writeUint16BE=Buffer3.prototype.writeUInt16BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,65535,0),this[offset]=value>>>8,this[offset+1]=value&255,offset+2};Buffer3.prototype.writeUint32LE=Buffer3.prototype.writeUInt32LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,4294967295,0),this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=value>>>8,this[offset]=value&255,offset+4};Buffer3.prototype.writeUint32BE=Buffer3.prototype.writeUInt32BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,4294967295,0),this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=value&255,offset+4};Buffer3.prototype.writeIntLE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,!noAssert){var limit=Math.pow(2,8*byteLength2-1);checkInt(this,value,offset,byteLength2,limit-1,-limit)}var i=0,mul=1,sub=0;for(this[offset]=value&255;++i<byteLength2&&(mul*=256);
vendor: 3,223 bytes, line 85
85)value<0&&sub===0&&this[offset+i-1]!==0&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength2};Buffer3.prototype.writeIntBE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,!noAssert){var limit=Math.pow(2,8*byteLength2-1);checkInt(this,value,offset,byteLength2,limit-1,-limit)}var i=byteLength2-1,mul=1,sub=0;for(this[offset+i]=value&255;--i>=0&&(mul*=256);)value<0&&sub===0&&this[offset+i+1]!==0&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength2};Buffer3.prototype.writeInt8=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,1,127,-128),value<0&&(value=255+value+1),this[offset]=value&255,offset+1};Buffer3.prototype.writeInt16LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,32767,-32768),this[offset]=value&255,this[offset+1]=value>>>8,offset+2};Buffer3.prototype.writeInt16BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,32767,-32768),this[offset]=value>>>8,this[offset+1]=value&255,offset+2};Buffer3.prototype.writeInt32LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),this[offset]=value&255,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24,offset+4};Buffer3.prototype.writeInt32BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),value<0&&(value=4294967295+value+1),this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=value&255,offset+4};function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return value=+value,offset=offset>>>0,noAssert||checkIEEE754(buf,value,offset,4,34028234663852886e22,-34028234663852886e22),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}Buffer3.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)};Buffer3.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)};function writeDouble(buf,value,offset,littleEndian,noAssert){return value=+value,offset=offset>>>0,noAssert||checkIEEE754(buf,value,offset,8,17976931348623157e292,-17976931348623157e292),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}Buffer3.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)};Buffer3.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)};Buffer3.prototype.copy=function(target,targetStart,start,end){if(!Buffer3.isBuffer(target))throw new TypeError("argument should be a Buffer");if(start||(start=0),!end&&end!==0&&(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&end<start&&(end=start),end===start||target.length===0||this.length===0)return 0;
vendor: 5,180 bytes, line 85
85if(targetStart<0)throw new RangeError("targetStart out of bounds");if(start<0||start>=this.length)throw new RangeError("Index out of range");if(end<0)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStart<end-start&&(end=target.length-targetStart+start);var len=end-start;return this===target&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(targetStart,start,end):Uint8Array.prototype.set.call(target,this.subarray(start,end),targetStart),len};Buffer3.prototype.fill=function(val,start,end,encoding){if(typeof val=="string"){if(typeof start=="string"?(encoding=start,start=0,end=this.length):typeof end=="string"&&(encoding=end,end=this.length),encoding!==void 0&&typeof encoding!="string")throw new TypeError("encoding must be a string");if(typeof encoding=="string"&&!Buffer3.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding);if(val.length===1){var code=val.charCodeAt(0);(encoding==="utf8"&&code<128||encoding==="latin1")&&(val=code)}}else typeof val=="number"?val=val&255:typeof val=="boolean"&&(val=Number(val));if(start<0||this.length<start||this.length<end)throw new RangeError("Out of range index");if(end<=start)return this;start=start>>>0,end=end===void 0?this.length:end>>>0,val||(val=0);var i;if(typeof val=="number")for(i=start;i<end;++i)this[i]=val;else{var bytes=Buffer3.isBuffer(val)?val:Buffer3.from(val,encoding),len=bytes.length;if(len===0)throw new TypeError('The value "'+val+'" is invalid for argument "value"');for(i=0;i<end-start;++i)this[i+start]=bytes[i%len]}return this};var INVALID_BASE64_RE=/[^+/0-9A-Za-z-_]/g;function base64clean(str){if(str=str.split("=")[0],str=str.trim().replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str=str+"=";return str}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;i<length;++i){if(codePoint=string.charCodeAt(i),codePoint>55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}else if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else throw new Error("Invalid code point")}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i<str.length;++i)byteArray.push(str.charCodeAt(i)&255);return byteArray}function utf16leToBytes(str,units){for(var c,hi,lo,byteArray=[],i=0;i<str.length&&!((units-=2)<0);++i)c=str.charCodeAt(i),hi=c>>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;i<length&&!(i+offset>=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}function isInstance(obj,type){return obj instanceof type||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type.name}function numberIsNaN(obj){return obj!==obj}var hexSliceLookupTable=function(){for(var alphabet="0123456789abcdef",table=new Array(256),i=0;i<16;++i)for(var i16=i*16,j=0;j<16;++j)table[i16+j]=alphabet[i]+alphabet[j];return table}()}});var require_browser=__commonJS({"node_modules/process/browser.js"(exports,module){init_define_process_env();init_shim();var process2=module.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch{try{return cachedSetTimeout.call(null,fun,0)}catch{return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch{try{return cachedClearTimeout.call(null,marker)}catch{return cachedClearTimeout.call(this,marker)}}}
85var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}process2.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(fun,array){this.fun=fun,this.array=array}Item.prototype.run=function(){this.fun.apply(null,this.array)};process2.title="browser";process2.browser=!0;process2.env={};process2.argv=[];process2.version="";process2.versions={};function noop(){}process2.on=noop;process2.addListener=noop;process2.once=noop;process2.off=noop;process2.removeListener=noop;process2.removeAllListeners=noop;process2.emit=noop;process2.prependListener=noop;process2.prependOnceListener=noop;process2.listeners=function(name){return[]};process2.binding=function(name){throw new Error("process.binding is not supported")};process2.cwd=function(){return"/"};process2.chdir=function(dir){throw new Error("process.chdir is not supported")};process2.umask=function(){return 0}}});var import_buffer,import_process,_globalThis,init_shim=__esm({"node_modules/node-stdlib-browser/helpers/esbuild/shim.js"(){import_buffer=__toESM(require_buffer()),import_process=__toESM(require_browser()),_globalThis=function(Object2){function get(){var _global3=this||self;return delete Object2.prototype.__magic__,_global3}if(typeof globalThis=="object")return globalThis;if(this)return get();Object2.defineProperty(Object2.prototype,"__magic__",{configurable:!0,get});var _global2=__magic__;return _global2}(Object)}});var require_global=__commonJS({"node_modules/core-js/internals/global.js"(exports,module){"use strict";init_define_process_env();init_shim();var check=function(it){return it&&it.Math===Math&&it};module.exports=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof window=="object"&&window)||check(typeof exports=="object"&&exports)||function(){return this}()||Function("return this")()}});var require_fails=__commonJS({"node_modules/core-js/internals/fails.js"(exports,module){"use strict";init_define_process_env();init_shim();module.exports=function(exec){try{return!!exec()}catch{return!0}}}});var require_descriptors=__commonJS({"node_modules/core-js/internals/descriptors.js"(exports,module){"use strict";init_define_process_env();init_shim();var fails=require_fails();module.exports=!fails(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}});var require_function_bind_native=__commonJS({"node_modules/core-js/internals/function-bind-native.js"(exports,module){"use strict";init_define_process_env();init_shim();var fails=require_fails();module.exports=!fails(function(){var test=(function(){}).bind();return typeof test!="function"||test.hasOwnProperty("prototype")})}});var require_function_call=__commonJS({"node_modules/core-js/internals/function-call.js"(exports,module){"use strict";init_define_process_env();init_shim();var NATIVE_BIND=require_function_bind_native(),call=Function.prototype.call;module.exports=NATIVE_BIND?call.bind(call):function(){return call.apply(call,arguments)}}});var require_object_property_is_enumerable=__commonJS({"node_modules/core-js/internals/object-property-is-enumerable.js"(exports){"use strict";init_define_process_env();init_shim();var $propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor&&!$propertyIsEnumerable.call({1:2},1);exports.f=NASHORN_BUG?function(V){var descriptor=getOwnPropertyDescriptor(this,V);return!!descriptor&&descriptor.enumerable}:$propertyIsEnumerable}});var require_create_property_descriptor=__commonJS({"node_modules/core-js/internals/create-property-descriptor.js"(exports,module){"use strict";init_define_process_env();init_shim();module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value}}}});var require_function_uncurry_this=__commonJS({"node_modules/core-js/internals/function-uncurr
85y-this.js"(exports,module){"use strict";init_define_process_env();init_shim();var NATIVE_BIND=require_function_bind_native(),FunctionPrototype=Function.prototype,call=FunctionPrototype.call,uncurryThisWithBind=NATIVE_BIND&&FunctionPrototype.bind.bind(call,call);module.exports=NATIVE_BIND?uncurryThisWithBind:function(fn){return function(){return call.apply(fn,arguments)}}}});var require_classof_raw=__commonJS({"node_modules/core-js/internals/classof-raw.js"(exports,module){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),toString=uncurryThis({}.toString),stringSlice=uncurryThis("".slice);module.exports=function(it){return stringSlice(toString(it),8,-1)}}});var require_indexed_object=__commonJS({"node_modules/core-js/internals/indexed-object.js"(exports,module){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),fails=require_fails(),classof=require_classof_raw(),$Object=Object,split=uncurryThis("".split);module.exports=fails(function(){return!$Object("z").propertyIsEnumerable(0)})?function(it){return classof(it)==="String"?split(it,""):$Object(it)}
85:$Object}});var require_is_null_or_undefined=__commonJS({"node_modules/core-js/internals/is-null-or-undefined.js"(exports,module){"use strict";init_define_process_env();init_shim();module.exports=function(it){return it==null}}});var require_require_object_coercible=__commonJS({"node_modules/core-js/internals/require-object-coercible.js"(exports,module){"use strict";init_define_process_env();init_shim();var isNullOrUndefined=require_is_null_or_undefined(),$TypeError=TypeError;module.exports=function(it){if(isNullOrUndefined(it))throw new $TypeError("Can't call method on "+it);return it}}});var require_to_indexed_object=__commonJS({"node_modules/core-js/internals/to-indexed-object.js"(exports,module){"use strict";init_define_process_env();init_shim();var IndexedObject=require_indexed_object(),requireObjectCoercible=require_require_object_coercible();module.exports=function(it){return IndexedObject(requireObjectCoercible(it))}}});var require_is_callable=__commonJS({"node_modules/core-js/internals/is-callable.js"(exports,module){"use strict";init_define_process_env();init_shim();var documentAll=typeof document=="object"&&document.all;module.exports=typeof documentAll>"u"&&documentAll!==void 0?function(argument){return typeof argument=="function"||argument===documentAll}:function(argument){return typeof argument=="function"}}});var require_is_object=__commonJS({"node_modules/core-js/internals/is-object.js"(exports,module){"use strict";init_define_process_env();init_shim();var isCallable=require_is_callable();module.exports=function(it){return typeof it=="object"?it!==null:isCallable(it)}}});var require_get_built_in=__commonJS({"node_modules/core-js/internals/get-built-in.js"(exports,module){"use strict";init_define_process_env();init_shim();var global=require_global(),isCallable=require_is_callable(),aFunction=function(argument){return isCallable(argument)?argument:void 0};module.exports=function(namespace,method){return arguments.length<2?aFunction(global[namespace]):global[namespace]&&global[namespace][method]}}});var require_object_is_prototype_of=__commonJS({"node_modules/core-js/internals/object-is-prototype-of.js"(exports,module){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this();module.exports=uncurryThis({}.isPrototypeOf)}});var require_engine_user_agent=__commonJS({"node_modules/core-js/internals/engine-user-agent.js"(exports,module){"use strict";init_define_process_env();init_shim();module.exports=typeof navigator<"u"&&String(navigator.userAgent)||""}});var require_engine_v8_version=__commonJS({"node_modules/core-js/internals/engine-v8-version.js"(exports,module){"use strict";init_define_process_env();init_shim();var global=require_global(),userAgent=require_engine_user_agent(),process2=global.process,Deno=global.Deno,versions=process2&&process2.versions||Deno&&Deno.version,v8=versions&&versions.v8,match,version;v8&&(match=v8.split("."),version=match[0]>0&&match[0]<4?1:+(match[0]+match[1]));!version&&userAgent&&(match=userAgent.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=userAgent.match(/Chrome\/(\d+)/),match&&(version=+match[1])));module.exports=version}});var require_symbol_constructor_detection=__commonJS({"node_modules/core-js/internals/symbol-constructor-detection.js"(exports,module){"use strict";init_define_process_env();init_shim();var V8_VERSION=require_engine_v8_version(),fails=require_fails(),global=require_global(),$String=global.String;module.exports=!!Object.getOwnPropertySymbols&&!fails(function(){var symbol=Symbol("symbol detection");return!$String(symbol)||!(Object(symbol)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41})}});var require_use_symbol_as_uid=__commonJS({"node_modules/core-js/internals/use-symbol-as-uid.js"(exports,module){"use strict";init_define_process_env();init_shim();var NATIVE_SYMBOL=require_symbol_constructor_detection();module.exports=NATIVE_SYMBOL&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}});var require_is_symbol=__commonJS({"node_modules/core-js/internals/is-symbol.js"(exports,module){"use strict";init_define_process_env();init_shim();var getBuiltIn=require_get_built_in(),isCallable=require_is_callable(),isPrototypeOf=require_object_is_prototype_of(),USE_SYMBOL_AS_UID=require_use_symbol_as_uid(),$Object=Object;module.exports=USE_SYMBOL_AS_UID?function(it){return typeof it=="symbol"}:function(it){var $Symbol=getBuiltIn("Symbol");return isCallable($Symbol)&&isPrototypeOf($Symbol.prototype,$Object(it))}}});var require_try_to_string=__commonJS({"node_modules/core-js/internals/try-to-string.js"(exports,module){"use strict";init_define_process_env();init_shim();var $String=String;module.exports=function(argument){try{return $String(argument)}catch{return"Object"}}}});var require_a_callable=__commonJS({"node_modules/core-js/internals/a-callable.js"(exports,module){"use strict";init_define_process_env();init_shim();var isCallable=require_is_callable(),tryToString=require_try_to_string(),$TypeError=TypeError;module.exports=function(argument){if(isCallable(argument))return argument;throw new $TypeError(tryToString(argument)+" is not a function")}}});var require_get_method=__commonJS({"node_modules/core-js/internals/get-method.js"(exports,module){"use strict";init_define_process_env();init_shim();var aCallable=require_a_callable(),isNullOrUndefined=require_is_null_or_undefined();module.exports=function(V,P){var func=V[P];return isNullOrUndefined(func)?void 0:aCallable(func)}}});var require_ordinary_to_primitive=__commonJS({"node_modules/core-js/internals/ordinary-to-primitive.js"(exports,module){"use strict";init_define_process_env();init_shim();var call=require_function_call(),isCallable=require_is_callable(),isObject=require_is_object(),$TypeError=TypeError;module.exports=function(input,pref){var fn,val;if(pref==="string"&&isCallable(fn=input.toString)&&!isObject(val=call(fn,input))||isCallable(fn=input.valueOf)&&!isObject(val=call(fn,input))||pref!=="string"&&isCallable(fn=input.toString)&&!isObject(val=call(fn,input)))return val;throw new $TypeError("Can't convert object to primitive value")}}});var require_is_pure=__commonJS({"node_modules/core-js/internals/is-pure.js"(exports,module){"use strict";init_define_process_env();init_shim();module.exports=!1}});var require_define_global_property=__commonJS({"node_modules/core-js/internals/define-global-property.js"(exports,module){"use strict";init_define_process_env();init_shim();var global=require_global(),defineProperty=Object.defineProperty;module.exports=function(key,value){try{defineProperty(global,key,{value,configurable:!0,writable:!0})}catch{global[key]=value}return value}}});var require_shared_store=__commonJS({"node_modules/core-js/internals/shared-store.js"(exports,module){"use strict";init_define_process_env();init_shim();var global=require_global(),defineGlobalProperty=require_define_global_property(),SHARED="__core-js_shared__",store=global[SHARED]||defineGlobalProperty(S
85HARED,{});module.exports=store}});var require_shared=__commonJS({"node_modules/core-js/internals/shared.js"(exports,module){"use strict";init_define_process_env();init_shim();var IS_PURE=require_is_pure(),store=require_shared_store();(module.exports=function(key,value){return store[key]||(store[key]=value!==void 0?value:{})})("versions",[]).push({version:"3.35.1",mode:IS_PURE?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})}});var require_to_object=__commonJS({"node_modules/core-js/internals/to-object.js"(exports,module){"use strict";init_define_process_env();init_shim();var requireObjectCoercible=require_require_object_coercible(),$Object=Object;module.exports=function(argument){return $Object(requireObjectCoercible(argument))}}});var require_has_own_property=__commonJS({"node_modules/core-js/internals/has-own-property.js"(exports,module){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),toObject=require_to_object(),hasOwnProperty=uncurryThis({}.hasOwnProperty);module.exports=Object.hasOwn||function(it,key){return hasOwnProperty(toObject(it),key)}}});var require_uid=__commonJS({"node_modules/core-js/internals/uid.js"(exports,module){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),id=0,postfix=Math.random(),toString=uncurryThis(1 .toString);module.exports=function(key){return"Symbol("+(key===void 0?"":key)+")_"+toString(++id+postfix,36)}}});var require_well_known_symbol=__commonJS({"node_modules/core-js/internals/well-known-symbol.js"(exports,module){"use strict";init_define_process_env();init_shim();var global=require_global(),shared=require_shared(),hasOwn=require_has_own_property(),uid=require_uid(),NATIVE_SYMBOL=require_symbol_constructor_detection(),USE_SYMBOL_AS_UID=require_use_symbol_as_uid(),Symbol2=global.Symbol,WellKnownSymbolsStore=shared("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol2.for||Symbol2:Symbol2&&Symbol2.withoutSetter||uid;module.exports=function(name){return hasOwn(WellKnownSymbolsStore,name)||(WellKnownSymbolsStore[name]=NATIVE_SYMBOL&&hasOwn(Symbol2,name)?Symbol2[name]:createWellKnownSymbol("Symbol."+name)),WellKnownSymbolsStore[name]}}});var require_to_primitive=__commonJS({"node_modules/core-js/internals/to-primitive.js"(exports,module){"use strict";init_define_process_env();init_shim();var call=require_function_call(),isObject=require_is_object(),isSymbol
85=require_is_symbol(),getMethod=require_get_method(),ordinaryToPrimitive=require_ordinary_to_primitive(),wellKnownSymbol=require_well_known_symbol(),$TypeError=TypeError,TO_PRIMITIVE=wellKnownSymbol("toPrimitive");module.exports=function(input,pref){if(!isObject(input)||isSymbol(input))return input;var exoticToPrim=getMethod(input,TO_PRIMITIVE),result;if(exoticToPrim){if(pref===void 0&&(pref="default"),result=call(exoticToPrim,input,pref),!isObject(result)||isSymbol(result))return result;throw new $TypeError("Can't convert object to primitive value")}return pref===void 0&&(pref="number"),ordinaryToPrimitive(input,pref)}}});var require_to_property_key=__commonJS({"node_modules/core-js/internals/to-property-key.js"(exports,module){"use strict";init_define_process_env();init_shim();var toPrimitive=require_to_primitive(),isSymbol=require_is_symbol();module.exports=function(argument){var key=toPrimitive(argument,"string");return isSymbol(key)?key:key+""}}});var require_document_create_element=__commonJS({"node_modules/core-js/internals/document-create-element.js"(exports,module){"use strict";init_define_process_env();init_shim();var global=require_global(),isObject=require_is_object(),document2=global.document,EXISTS=isObject(document2)&&isObject(document2.createElement);module.exports=function(it){return EXISTS?document2.createElement(it):{}}}});var require_ie8_dom_define=__commonJS({"node_modules/core-js/internals/ie8-dom-define.js"(exports,module){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),fails=require_fails(),createElement=require_document_create_element();module.exports=!DESCRIPTORS&&!fails(function(){return Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a!==7})}});var require_object_get_own_property_descriptor=__commonJS({"node_modules/core-js/internals/object-get-own-property-descriptor.js"(exports){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),call=require_function_call(),propertyIsEnumerableModule=require_object_property_is_enumerable(),createPropertyDescriptor=require_create_property_descriptor(),toIndexedObject=require_to_indexed_object(),toPropertyKey=require_to_property_key(),hasOwn=require_has_own_property(),IE8_DOM_DEFINE=require_ie8_dom_define(),$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;exports.f=DESCRIPTORS?$getOwnPropertyDescriptor:function(O,P){if(O=toIndexedObject(O),P=toPropertyKey(P),IE8_DOM_DEFINE)try{return $getOwnPropertyDescriptor(O,P)}catch{}if(hasOwn(O,P))return createPropertyDescriptor(!call(propertyIsEnumerableModule.f,O,P),O[P])}}});var require_v8_prototype_define_bug=__commonJS({"node_modules/core-js/internals/v8-prototype-define-bug.js"(exports,module){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),fails=require_fails();module.exports=DESCRIPTORS&&fails(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}});var require_an_object=__commonJS({"node_modules/core-js/internals/an-object.js"(exports,module){"use strict";init_define_process_env();init_shim();var isObject=require_is_object(),$String=String,$TypeError=TypeError;module.exports=function(argument){if(isObject(argument))return argument;throw new $TypeError($String(argument)+" is not an object")}}});var require_object_define_property=__commonJS({"node_modules/core-js/internals/object-define-property.js"(exports){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),IE8_DOM_DEFINE=require_ie8_dom_define(),V8_PROTOTYPE_DEFINE_BUG=require_v8_prototype_define_bug(),anObject=require_an_object(),toPropertyKey=require_to_property_key(),$TypeError=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE="configurable",WRITABLE="writable";exports.f=DESCRIPTORS?V8_PROTOTYPE_DEFINE_BUG?function(O,P,Attributes){if(anObject(O),P=toPropertyKey(P),anObject(Attributes),typeof O=="function"&&P==="prototype"&&"value"in Attributes&&WRITABLE in Attributes&&!Attributes[WRITABLE]){var current=$getOwnPropertyDescriptor(O,P);current&&current[WRITABLE]&&(O[P]=Attributes.value,Attributes={configurable:CONFIGURABLE in Attributes?Attributes[CONFIGURABLE]:current[CONFIGURABLE],enumerable:ENUMERABLE in Attributes?Attributes[ENUMERABLE]:current[ENUMERABLE],writable:!1})}return $defineProperty(O,P,Attributes)}
85:$defineProperty:function(O,P,Attributes){if(anObject(O),P=toPropertyKey(P),anObject(Attributes),IE8_DOM_DEFINE)try{return $defineProperty(O,P,Attributes)}catch{}if("get"in Attributes||"set"in Attributes)throw new $TypeError("Accessors not supported");return"value"in Attributes&&(O[P]=Attributes.value),O}}});var require_create_non_enumerable_property=__commonJS({"node_modules/core-js/internals/create-non-enumerable-property.js"(exports,module){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),definePropertyModule=require_object_define_property(),createPropertyDescriptor=require_create_property_descriptor();module.exports=DESCRIPTORS?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){return object[key]=value,object}}});var require_function_name=__commonJS({"node_modules/core-js/internals/function-name.js"(exports,module){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),hasOwn=require_has_own_property(),FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn(FunctionPrototype,"name"),PROPER=EXISTS&&(function(){}).name==="something",CONFIGURABLE=EXISTS&&(!DESCRIPTORS||DESCRIPTORS&&getDescriptor(FunctionPrototype,"name").configurable);module.exports={EXISTS,PROPER,CONFIGURABLE}}});
85var require_inspect_source=__commonJS({"node_modules/core-js/internals/inspect-source.js"(exports,module){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),isCallable=require_is_callable(),store=require_shared_store(),functionToString=uncurryThis(Function.toString);isCallable(store.inspectSource)||(store.inspectSource=function(it){return functionToString(it)});module.exports=store.inspectSource}});var require_weak_map_basic_detection=__commonJS({"node_modules/core-js/internals/weak-map-basic-detection.js"(exports,module){"use strict";init_define_process_env();init_shim();var global=require_global(),isCallable=require_is_callable(),WeakMap=global.WeakMap;module.exports=isCallable(WeakMap)&&/native code/.test(String(WeakMap))}});var require_shared_key=__commonJS({"node_modules/core-js/internals/shared-key.js"(exports,module){"use strict";init_define_process_env();init_shim();var shared=require_shared(),uid=require_uid(),keys=shared("keys");module.exports=function(key){return keys[key]||(keys[key]=uid(key))}}});var require_hidden_keys=__commonJS({"node_modules/core-js/internals/hidden-keys.js"(exports,module){"use strict";init_define_process_env();init_shim();module.exports={}}});var require_internal_state=__commonJS({"node_modules/core-js/internals/internal-state.js"(exports,module){"use strict";init_define_process_env();init_shim();var NATIVE_WEAK_MAP=require_weak_map_basic_detection(),global=require_global(),isObject=require_is_object(),createNonEnumerableProperty=require_create_non_enumerable_property(),hasOwn=require_has_own_property(),shared=require_shared_store(),sharedKey=require_shared_key(),hiddenKeys=require_hidden_keys(),OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError2=global.TypeError,WeakMap=global.WeakMap,set,get,has,enforce=function(it){return has(it)?get(it):set(it,{})},getterFor=function(TYPE){return function(it){var state;if(!isObject(it)||(state=get(it)).type!==TYPE)throw new TypeError2("Incompatible receiver, "+TYPE+" required");return state}};NATIVE_WEAK_MAP||shared.state?(store=shared.state||(shared.state=new WeakMap),store.get=store.get,store.has=store.has,store.set=store.set,set=function(it,metadata){if(store.has(it))throw new TypeError2(OBJECT_ALREADY_INITIALIZED);return metadata.facade=it,store.set(it,metadata),metadata},get=function(it){return store.get(it)||{}},has=function(it){return store.has(it)}):(STATE=sharedKey("state"),hiddenKeys[STATE]=!0,set=function(it,metadata){if(hasOwn(it,STATE))throw new TypeError2(OBJECT_ALREADY_INITIALIZED);return metadata.facade=it,createNonEnumerableProperty(it,STATE,metadata),metadata},get=function(it){return hasOwn(it,STATE)?it[STATE]:{}},has=function(it){return hasOwn(it,STATE)});var store,STATE;module.exports={set,get,has,enforce,getterFor}}});var require_make_built_in=__commonJS({"node_modules/core-js/internals/make-built-in.js"(exports,module){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),fails=require_fails(),isCallable=require_is_callable(),hasOwn=require_has_own_property(),DESCRIPTORS=require_descriptors(),CONFIGURABLE_FUNCTION_NAME=require_function_name().CONFIGURABLE,inspectSource=require_inspect_source(),InternalStateModule=require_internal_state(),enforceInternalState=InternalStateModule.enforce,getInternalState=InternalStateModule.get,$String=String,defineProperty=Object.defineProperty,stringSlice=uncurryThis("".slice),replace=uncurryThis("".replace),join=uncurr
85yThis([].join),CONFIGURABLE_LENGTH=DESCRIPTORS&&!fails(function(){return defineProperty(function(){},"length",{value:8}).length!==8}),TEMPLATE=String(String).split("String"),makeBuiltIn=module.exports=function(value,name,options){stringSlice($String(name),0,7)==="Symbol("&&(name="["+replace($String(name),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),options&&options.getter&&(name="get "+name),options&&options.setter&&(name="set "+name),(!hasOwn(value,"name")||CONFIGURABLE_FUNCTION_NAME&&value.name!==name)&&(DESCRIPTORS?defineProperty(value,"name",{value:name,configurable:!0}):value.name=name),CONFIGURABLE_LENGTH&&options&&hasOwn(options,"arity")&&value.length!==options.arity&&defineProperty(value,"length",{value:options.arity});try{options&&hasOwn(options,"constructor")&&options.constructor?DESCRIPTORS&&defineProperty(value,"prototype",{writable:!1}):value.prototype&&(value.prototype=void 0)}catch{}var state=enforceInternalState(value);return hasOwn(state,"source")||(state.source=join(TEMPLATE,typeof name=="string"?name:"")),value};Function.prototype.toString=makeBuiltIn(function(){return isCallable(this)&&getInternalState(this).source||inspectSource(this)},"toString")}});var require_define_built_in=__commonJS({"node_modules/core-js/internals/define-built-in.js"(exports,module){"use strict";init_define_process_env();init_shim();var isCallable=require_is_callable(),definePropertyModule=require_object_define_property(),makeBuiltIn=require_make_built_in(),defineGlobalProperty=require_define_global_property();module.exports=function(O,key,value,options){options||(options={});var simple=options.enumerable,name=options.name!==void 0?options.name:key;if(isCallable(value)&&makeBuiltIn(value,name,options),options.global)simple?O[key]=value:defineGlobalProperty(key,value);else{try{options.unsafe?O[key]&&(simple=!0):delete O[key]}catch{}simple?O[key]=value:definePropertyModule.f(O,key,{value,enumerable:!1,configurable:!options.nonConfigurable,writable:!options.nonWritable})}return O}}});var require_math_trunc=__commonJS({"node_modules/core-js/internals/math-trunc.js"(exports,module){"use strict";init_define_process_env();init_shim();var ceil=Math.ceil,floor=Math.floor;module.exports=Math.trunc||function(x){var n=+x;return(n>0?floor:ceil)(n)}}});var require_to_integer_or_infinity=__commonJS({"node_modules/core-js/internals/to-integer-or-infinity.js"(exports,module){"use strict";init_define_process_env();init_shim();var trunc=require_math_trunc();module.exports=function(argument){var number=+argument;return number!==number||number===0?0:trunc(number)}}});var require_to_absolute_index=__commonJS({"node_modules/core-js/internals/to-absolute-index.js"(exports,module){"use strict";init_define_process_env();init_shim();var toIntegerOrInfinity=require_to_integer_or_infinity(),max=Math.max,min=Math.min;module.exports=function(index,length){var integer=toIntegerOrInfinity(index);return integer<0?max(integer+length,0):min(integer,length)}}});var require_to_length=__commonJS({"node_modules/core-js/internals/to-length.js"(exports,module){"use strict";init_define_process_env();init_shim();var toIntegerOrInfinity=require_to_integer_or_infinity(),min=Math.min;module.exports=function(argument){var len=toIntegerOrInfinity(argument);return len>0?min(len,9007199254740991):0}}});var require_length_of_array_like=__commonJS({"node_modules/core-js/internals/length-of-array-like.js"(exports,module){"use strict";init_define_process_env();init_shim();var toLength=require_to_length();module.exports=function(obj){return toLength(obj.length)}}});var require_array_includes=__commonJS({"node_modules/core-js/internals/array-includes.js"(exports,module){"use strict";init_define_process_env();init_shim();var toIndexedObject=require_to_indexed_object(),toAbsoluteIndex=require_to_absolute_index(),lengthOfArrayLike=require_length_of_array_like(),createMethod=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIndexedObject($this),length=lengthOfArrayLike(O),index=toAbsoluteIndex(fromIndex,length),value;if(IS_INCLUDES&&el!==el){for(;length>index;)if(value=O[index++],value!==value)return!0}else for(;length>index;index++)if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0;return!IS_INCLUDES&&-1}};module.exports={includes:createMethod(!0),indexOf:createMethod(!1)}}});var require_object_keys_internal=__commonJS({"node_modules/core-js/internals/object-keys-internal.js"(exports,module){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this(),hasOwn=require_has_own_property(),toIndexedObject=require_to_indexed_object(),indexOf=require_array_includes().indexOf,hiddenKeys=require_hidden_keys(),push=uncurryThis([].push);module.exports=function(object,names){var O=toIndexedObject(object),i=0,result=[],key;for(key in O)!hasOwn(hiddenKeys,key)&&hasOwn(O,key)&&push(result,key);for(;names.length>i;)hasOwn(O,key=names[i++])&&(~indexOf(result,key)||push(result,key));return result}}});var require_enum_bug_keys=__commonJS({"node_modules/core-js/internals/enum-bug-keys.js"(exports,module){"use strict";init_define_process_env();init_shim();module.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
85ing","toString","valueOf"]}});var require_object_get_own_property_names=__commonJS({"node_modules/core-js/internals/object-get-own-property-names.js"(exports){"use strict";init_define_process_env();init_shim();var internalObjectKeys=require_object_keys_internal(),enumBugKeys=require_enum_bug_keys(),hiddenKeys=enumBugKeys.concat("length","prototype");exports.f=Object.getOwnPropertyNames||function(O){return internalObjectKeys(O,hiddenKeys)}}});var require_object_get_own_property_symbols=__commonJS({"node_modules/core-js/internals/object-get-own-property-symbols.js"(exports){"use strict";init_define_process_env();init_shim();exports.f=Object.getOwnPropertySymbols}});var require_own_keys=__commonJS({"node_modules/core-js/internals/own-keys.js"(exports,module){"use strict";init_define_process_env();init_shim();var getBuiltIn=require_get_built_in(),uncurryThis=require_function_uncurry_this(),getOwnPropertyNamesModule=require_object_get_own_property_names(),getOwnPropertySymbolsModule=require_object_get_own_property_symbols(),anObject=require_an_object(),concat=uncurryThis([].concat);module.exports=getBuiltIn("Reflect","ownKeys")||function(it){var keys=getOwnPropertyNamesModule.f(anObject(it)),getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?concat(keys,getOwnPropertySymbols(it)):keys}}});var require_copy_constructor_properties=__commonJS({"node_modules/core-js/internals/copy-constructor-properties.js"(exports,module){"use strict";init_define_process_env();init_shim();var hasOwn=require_has_own_property(),ownKeys=require_own_keys(),getOwnPropertyDescriptorModule=require_object_get_own_property_descriptor(),definePropertyModule=require_object_define_property();module.exports=function(target,source,exceptions){for(var keys=ownKeys(source),defineProperty=definePropertyModule.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,i=0;i<keys.length;i++){var key=keys[i];!hasOwn(target,key)&&!(exceptions&&hasOwn(exceptions,key))&&defineProperty(target,key,getOwnPropertyDescriptor(source,key))}}}});var require_is_forced=__commonJS({"node_modules/core-js/internals/is-forced.js"(exports,module){"use strict";init_define_process_env();init_shim();var fails=require_fails(),isCallable=require_is_callable(),replacement=/#|\.prototype\./,isForced=function(feature,detection){var value=data[normalize(feature)];return value===POLYFILL?!0:value===NATIVE?!1:isCallable(detection)?fails(detection):!!detection},normalize=isForced.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()},data=isForced.data={},NATIVE=isForced.NATIVE="N",POLYFILL=isForced.POLYFILL="P";module.exports=isForced}});var require_export=__commonJS({"node_modules/core-js/internals/export.js"(exports,module){"use strict";init_define_process_env();init_shim();var global=require_global(),getOwnPropertyDescriptor=require_object_get_own_property_descriptor().f,createNonEnumerableProperty=require_create_non_enumerable_property(),defineBuiltIn=require_define_built_in(),defineGlobalProperty=require_define_global_property(),copyConstructorProperties=require_copy_constructor_properties(),isForced=require_is_forced();module.exports=function(options,source){var TARGET=options.target,GLOBAL=options.global,STATIC=options.stat,FORCED,target,key,targetProperty,sourceProperty,descriptor;if(GLOBAL?target=global:STATIC?target=global[TARGET]||defineGlobalProperty(TARGET,{}):target=global[TARGET]&&global[TARGET].prototype,target)for(key in source){if(sourceProperty=source[key],options.dontCallGetSet?(descriptor=getOwnPropertyDescriptor(target,key),targetProperty=descriptor&&descriptor.value):targetProperty=target[key],FORCED=isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced),!FORCED&&targetProperty!==void 0){if(typeof sourceProperty==typeof targetProperty)continue;copyConstructorProperties(sourceProperty,targetProperty)}(options.sham||targetProperty&&targetProperty.sham)&&createNonEnumerableProperty(sourceProperty,"sham",!0),defineBuiltIn(target,key,sourceProperty,options)}}}});var require_an_instance=__commonJS({"node_modules/core-js/internals/an-instance.js"(exports,module){"use strict";init_define_process_env();init_shim();var isPrototypeOf=require_object_is_prototype_of(),$TypeError=TypeError;module.exports=function(it,Prototype){if(isPrototypeOf(Prototype,it))return it;throw new $TypeError("Incorrect invocation")}}});var require_correct_prototype_getter=__commonJS({"node_modules/core-js/internals/correct-prototype-getter.js"(exports,module){"use strict";init_define_process_env();init_shim();var fails=require_fails();module.exports=!fails(function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})}});var require_object_get_prototype_of=__commonJS({"node_modules/core-js/internals/object-get-prototype-of.js"(exports,module){"use strict";init_define_process_env();init_shim();var hasOwn=require_has_own_property(),isCallable=require_is_callable(),toObject=require_to_object(),sharedKey=require_shared_key(),CORRECT_PROTOTYPE_GETTER=require_correct_prototype_getter(),IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype;module.exports=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(O){var object=toObject(O);if(hasOwn(object,IE_PROTO))return object[IE_PROTO];var constructor=object.constructor;return isCallable(constructor)&&object instanceof constructor?constructor.prototype:object instanceof $Object?ObjectPrototype:null}}});var require_define_built_in_accessor=__commonJS({"node_modules/core-js/internals/define-built-in-accessor.js"(exports,module){"use strict";init_define_process_env();init_shim();var makeBuiltIn=require_make_built_in(),defineProperty=require_object_define_property();module.exports=function(target,name,descriptor){return descriptor.get&&makeBuiltIn(descriptor.get,name,{getter:!0}),descriptor.set&&makeBuiltIn(descriptor.set,name,{setter:!0}),defineProperty.f(target,name,descriptor)}}});var require_create_property=__commonJS({"node_modules/core-js/internals/create-property.js"(exports,module){"use strict";init_define_process_env();init_shim();var toPropertyKey=require_to_property_key(),definePropertyModule=require_object_define_property(),createPropertyDescriptor=require_create_property_descriptor();module.exports=function(object,key,value){var propertyKey=toPropertyKey(key);propertyKey in object?definePropertyModule.f(object,propertyKey,createPropertyDescriptor(0,value)):object[propertyKey]=value}}});var require_object_keys=__commonJS({"node_modules/core-js/internals/object-keys.js"(exports,module){"use strict";init_define_process_env();init_shim();var internalObjectKeys=require_object_keys_internal(),enumBugKeys=require_enum_bug_keys();module.exports=Object.keys||function(O){return internalObjectKeys(O,enumBugKeys)}}});var require_object_define_properties=__commonJS({"node_modules/core-js/internals/object-define-properties.js"(exports){"use strict";init_define_process_env();init_shim();var DESCRIPTORS=require_descriptors(),V8_PROTOTYPE_DEFINE_BUG=require_v8_prototype_define_bug(),definePropertyModule=require_object_define_property(),anObject=require_an_object(),toIndexedObject=require_to_indexed_object(),objectKeys=require_object_keys();exports.f=DESCRIPTORS&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(O,Properties){anObject(O);for(var props=toIndexedObject(Properties),keys=objectKeys(Properties),length=keys.length,index=0,key;length>index;)definePropertyModule.f(O,key=keys[index++],props[key]);return O}}});var require_html=__commonJS({"node_modules/core-js/internals/html.js"(exports,module){"use strict";init_define_process_env();init_shim();var getBuiltIn=require_get_built_in();module.exports=getBuiltIn("document","documentElement")}});var require_object_create=__commonJS({"node_modules/core-js/internals/object-create.js"(exports,module){"use strict";init_define_process_env();init_shim();var anObject=require_an_object(),definePropertiesModule=require_object_define_properties(),enumBugKeys=require_enum_bug_keys(),hiddenKeys=require_hidden_keys(),html=require_html(),documentCreateElement=require_document_create_element
vendor: 4,762 bytes, line 85
85(),sharedKey=require_shared_key(),GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(content){return LT+SCRIPT+GT+content+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(activeXDocument2){activeXDocument2.write(scriptTag("")),activeXDocument2.close();var temp=activeXDocument2.parentWindow.Object;return activeXDocument2=null,temp},NullProtoObjectViaIFrame=function(){var iframe=documentCreateElement("iframe"),JS="java"+SCRIPT+":",iframeDocument;return iframe.style.display="none",html.appendChild(iframe),iframe.src=String(JS),iframeDocument=iframe.contentWindow.document,iframeDocument.open(),iframeDocument.write(scriptTag("document.F=Object")),iframeDocument.close(),iframeDocument.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch{}NullProtoObject=typeof document<"u"?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var length=enumBugKeys.length;length--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];return NullProtoObject()};hiddenKeys[IE_PROTO]=!0;module.exports=Object.create||function(O,Properties){var result;return O!==null?(EmptyConstructor[PROTOTYPE]=anObject(O),result=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,result[IE_PROTO]=O):result=NullProtoObject(),Properties===void 0?result:definePropertiesModule.f(result,Properties)}}});var require_iterators_core=__commonJS({"node_modules/core-js/internals/iterators-core.js"(exports,module){"use strict";init_define_process_env();init_shim();var fails=require_fails(),isCallable=require_is_callable(),isObject=require_is_object(),create=require_object_create(),getPrototypeOf=require_object_get_prototype_of(),defineBuiltIn=require_define_built_in(),wellKnownSymbol=require_well_known_symbol(),IS_PURE=require_is_pure(),ITERATOR=wellKnownSymbol("iterator"),BUGGY_SAFARI_ITERATORS=!1,IteratorPrototype,PrototypeOfArrayIteratorPrototype,arrayIterator;[].keys&&(arrayIterator=[].keys(),"next"in arrayIterator?(PrototypeOfArrayIteratorPrototype=getPrototypeOf(getPrototypeOf(arrayIterator)),PrototypeOfArrayIteratorPrototype!==Object.prototype&&(IteratorPrototype=PrototypeOfArrayIteratorPrototype)):BUGGY_SAFARI_ITERATORS=!0);var NEW_ITERATOR_PROTOTYPE=!isObject(IteratorPrototype)||fails(function(){var test={};return IteratorPrototype[ITERATOR].call(test)!==test});NEW_ITERATOR_PROTOTYPE?IteratorPrototype={}:IS_PURE&&(IteratorPrototype=create(IteratorPrototype));isCallable(IteratorPrototype[ITERATOR])||defineBuiltIn(IteratorPrototype,ITERATOR,function(){return this});module.exports={IteratorPrototype,BUGGY_SAFARI_ITERATORS}}});var require_esnext_iterator_constructor=__commonJS({"node_modules/core-js/modules/esnext.iterator.constructor.js"(){"use strict";init_define_process_env();init_shim();var $2=require_export(),global=require_global(),anInstance=require_an_instance(),anObject=require_an_object(),isCallable=require_is_callable(),getPrototypeOf=require_object_get_prototype_of(),defineBuiltInAccessor=require_define_built_in_accessor(),createProperty=require_create_property(),fails=require_fails(),hasOwn=require_has_own_property(),wellKnownSymbol=require_well_known_symbol(),IteratorPrototype=require_iterators_core().IteratorPrototype,DESCRIPTORS=require_descriptors(),IS_PURE=require_is_pure(),CONSTRUCTOR="constructor",ITERATOR="Iterator",TO_STRING_TAG=wellKnownSymbol("toStringTag"),$TypeError=TypeError,NativeIterator=global[ITERATOR],FORCED=IS_PURE||!isCallable(NativeIterator)||NativeIterator.prototype!==IteratorPrototype||!fails(function(){NativeIterator({})}),IteratorConstructor=function(){if(anInstance(this,IteratorPrototype),getPrototypeOf(this)===IteratorPrototype)throw new $TypeError("Abstract class Iterator not directly constructable")},defineIteratorPrototypeAccessor=function(key,value){DESCRIPTORS?defineBuiltInAccessor(IteratorPrototype,key,{configurable:!0,get:function(){return value},set:function(replacement){if(anObject(this),this===IteratorPrototype)throw new $TypeError("You can't redefine this property");hasOwn(this,key)?this[key]=replacement:createProperty(this,key,replacement)}}):IteratorPrototype[key]=value};hasOwn(IteratorPrototype,TO_STRING_TAG)||defineIteratorPrototypeAccessor(TO_STRING_TAG,ITERATOR);(FORCED||!hasOwn(IteratorPrototype,CONSTRUCTOR)||IteratorPrototype[CONSTRUCTOR]===Object)&&defineIteratorPrototypeAccessor(CONSTRUCTOR,IteratorConstructor);IteratorConstructor.prototype=IteratorPrototype;$2({global:!0,constructor:!0,forced:FORCED},{Iterator:IteratorConstructor})}});var require_function_uncurry_this_clause=__commonJS({"node_modules/core-js/internals/function-uncurr
85y-this-clause.js"(exports,module){"use strict";init_define_process_env();init_shim();var classofRaw=require_classof_raw(),uncurryThis=require_function_uncurry_this();module.exports=function(fn){if(classofRaw(fn)==="Function")return uncurryThis(fn)}}});var require_function_bind_context=__commonJS({"node_modules/core-js/internals/function-bind-context.js"(exports,module){"use strict";init_define_process_env();init_shim();var uncurryThis=require_function_uncurry_this_clause(),aCallable=require_a_callable(),NATIVE_BIND=require_function_bind_native(),bind=uncurryThis(uncurryThis.bind);module.exports=function(fn,that){return aCallable(fn),that===void 0?fn:NATIVE_BIND?bind(fn,that):function(){return fn.apply(that,arguments)}}}});var require_iterators=__commonJS({"node_modules/core-js/internals/iterators.js"(exports,module){"use strict";init_define_process_env();init_shim();module.exports={}}});var require_is_array_iterator_method=__commonJS({"node_modules/core-js/internals/is-array-iterator-method.js"(exports,module){"use strict";init_define_process_env();init_shim();var wellKnownSymbol=require_well_known_symbol(),Iterators=require_iterators(),ITERATOR=wellKnownSymbol("iterator"),ArrayPrototype=Array.prototype;module.exports=function(it){return it!==void 0&&(Iterators.Array===it||ArrayPrototype[ITERATOR]===it)}}});var require_to_string_tag_support=__commonJS({"node_modules/core-js/internals/to-string-tag-support.js"(exports,module){"use strict";init_define_process_env();init_shim();var wellKnownSymbol=require_well_known_symbol(),TO_STRING_TAG=wellKnownSymbol("toStringTag"),test={};test[TO_STRING_TAG]="z";module.exports=String(test)==="[object z]"}});var require_classof=__commonJS({"node_modules/core-js/internals/classof.js"(exports,module){"use strict";init_define_process_env();init_shim();var TO_STRING_TAG_SUPPORT=require_to_string_tag_support(),isCallable=require_is_callable(),classofRaw=require_classof_raw(),wellKnownSymbol=require_well_known_symbol(),TO_STRING_TAG=wellKnownSymbol("toStringTag"),$Object=Object,CORRECT_ARGUMENTS=classofRaw(function(){return arguments}())==="Arguments",tryGet=function(it,key){try{return it[key]}catch{}};module.exports=TO_STRING_TAG_SUPPORT?classofRaw:function(it){var O,tag,result;return it===void 0?"Undefined":it===null?"Null":typeof(tag=tryGet(O=$Object(it),TO_STRING_TAG))=="string"?tag:CORRECT_ARGUMENTS?classofRaw(O):(result=classofRaw(O))==="Object"&&isCallable(O.callee)?"Arguments":result}}});var require_get_iterator_method=__commonJS({"node_modules/core-js/internals/get-iterator-method.js"(exports,module){"use strict";init_define_process_env();init_shim();var classof=require_classof(),getMethod=require_get_method(),isNullOrUndefined=require_is_null_or_undefined(),Iterators=require_iterators(),wellKnownSymbol=require_well_known_symbol(),ITERATOR=wellKnownSymbol("iterator");module.exports=function(it){if(!isNullOrUndefined(it))return getMethod(it,ITERATOR)||getMethod(it,"@@iterator")||Iterators[classof(it)]}}});var require_get_iterator=__commonJS({"node_modules/core-js/internals/get-iterator.js"(exports,module){"use strict";init_define_process_env();init_shim();var call=require_function_call(),aCallable=require_a_callable(),anObject=require_an_object(),tryToString=require_try_to_string(),getIteratorMethod=require_get_iterator_method(),$TypeError=TypeError;module.exports=function(argument,usingIterator){var iteratorMethod=arguments.length<2?getIteratorMethod(argument):usingIterator;if(aCallable(iteratorMethod))return anObject(call(iteratorMethod,argument));throw new $TypeError(tryToString(argument)+" is not iterable")}}});var require_iterator_close=__commonJS({"node_modules/core-js/internals/iterator-close.js"(exports,module){"use strict";init_define_process_env();init_shim();var call=require_function_call(),anObject=require_an_object(),getMethod=require_get_method();module.exports=function(iterator,kind,value){var innerResult,innerError;anObject(iterator);try{if(innerResult=getMethod(iterator,"return"),!innerResult){if(kind==="throw")throw value;return value}innerResult=call(innerResult,iterator)}catch(error){innerError=!0,innerResult=error}if(kind==="throw")throw value;if(innerError)throw innerResult;return anObject(innerResult),value}}});var require_iterate=__commonJS({"node_modules/core-js/internals/iterate.js"(exports,module){"use strict";init_define_process_env();init_shim();var bind=require_function_bind_context(),call=require_function_call(),anObject=require_an_object(),tryToString=require_try_to_string(),isArrayIteratorMethod=require_is_array_iterator_method(),lengthOfArrayLike=require_length_of_array_like(),isPrototypeOf=require_object_is_prototype_of(),getIterator=require_get_iterator(),getIteratorMethod=require_get_iterator_method(),iteratorClose=require_iterator_close(),$TypeError=TypeError,Result=function(stopped,result){this.stopped=stopped,this.result=result},ResultPrototype=Result.prototype;module.exports=function(iterable,unboundFunction,options){var that=options&&options.that,AS_ENTRIES=!!(options&&options.AS_ENTRIES),IS_RECORD=!!(options&&options.IS_RECORD),IS_ITERATOR=!!(options&&options.IS_ITERATOR),INTERRUPTED=!!(options&&options.INTERRUPTED),fn=bind(unboundFunction,that),iterator,iterFn,index,length,result,next,step,stop=function(condition){return iterator&&iteratorClose(iterator,"normal",condition),new Result(!0,condition)},callFn=function(value){return AS_ENTRIES?(anObject(value),INTERRUPTED?fn(value[0],value[1],stop):fn(value[0],value[1])):INTERRUPTED?fn(value,stop):fn(value)};if(IS_RECORD)iterator=iterable.iterator;else if(IS_ITERATOR)iterator=iterable;else{if(iterFn=getIteratorMethod(iterable),!iterFn)throw new $TypeError(tryToString(iterable)+" is not iterable");if(isArrayIteratorMethod(iterFn)){for(index=0,length=lengthOfArrayLike(iterable);length>index;index++)if(result=callFn(iterable[index]),result&&isPrototypeOf(ResultPrototype,result))return result;return new Result(!1)}iterator=getIterator(iterable,iterFn)}for(next=IS_RECORD?iterable.next:iterator.next;!(step=call(next,iterator)).done;){try{result=callFn(step.value)}catch(error){iteratorClose(iterator,"throw",error)}if(typeof result=="object"&&result&&isPrototypeOf(ResultPrototype,result))return result}return new Result(!1)}}});var require_get_iterator_direct=__commonJS({"node_modules/core-js/internals/get-iterator-direct.js"(exports,module){"use strict";init_define_process_env();init_shim();module.exports=function(obj){return{iterator:obj,next:obj.next,done:!1}}}});var require_esnext_iterator_find=__commonJS({"node_modules/core-js/modules/esnext.iterator.find.js"(
85){"use strict";init_define_process_env();init_shim();var $2=require_export(),iterate=require_iterate(),aCallable=require_a_callable(),anObject=require_an_object(),getIteratorDirect=require_get_iterator_direct();$2({target:"Iterator",proto:!0,real:!0},{find:function(predicate){anObject(this),aCallable(predicate);var record=getIteratorDirect(this),counter=0;return iterate(record,function(value,stop){if(predicate(value,counter++))return stop(value)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})}});init_define_process_env();init_shim();var import_esnext_iterator_constructor=__toESM(require_esnext_iterator_constructor()),import_esnext_iterator_find=__toESM(require_esnext_iterator_find());init_define_process_env();init_shim();var u=window?.u??_u,base_safe_require=window?.safe_require??_safe_require,legacy_keys={"@bubblegroup/db":["./db/runtime/db","./db/db"],"@bubblegroup/db/hydrate":["./db/runtime/hydrate","./db/hydrate"],"@bubblegroup/db/values/db_values":["./db/runtime/values/db_values","./db/values/db_values"],"@bubblegroup/db/values/StaticObject":["./db/runtime/values/StaticObject","./db/values/StaticObject"],"@bubblegroup/evaluation/engine/context":["@bubblegroup/evaluation/context","./lang/evaluation/context"],"@bubblegroup/evaluation/engine/eval_node_state":["@bubblegroup/evaluation/eval_node_state","./lang/evaluation/eval_node_state"],"@bubblegroup/evaluation/engine/node_eval":["@bubblegroup/evaluation/node_eval","./lang/evaluation/node_eval"],"@bubblegroup/evaluation/engine/page_state":["@bubblegroup/evaluation/page_state","./lang/evaluation/page_state"],"@bubblegroup/evaluation/engine/state_keys":["@bubblegroup/evaluation/state_keys","./lang/evaluation/state_keys"]};function safe_require_with_legacy_keys(path){try{return base_safe_require.safe_require(path)}catch(err){for(let legacy_key of legacy_keys[path]??[])try{return base_safe_require.safe_require(legacy_key)}catch{}throw err}}var safe_require={safe_require:safe_require_with_legacy_keys,safe_register:base_safe_require.safe_register};var btype_ids=safe_require.safe_require("./lang/btype_ids"),external=safe_require.safe_require("./external"),services=safe_require.safe_require("./services"),Lib=safe_require.safe_require("./lib"),inputs=safe_require.safe_require("./core/core_elements/shared/inputs"),sliderinputs=safe_require.safe_require("./core/core_elements/shared/sliderinputs"),pictureinputs=safe_require.safe_require("./core/core_elements/shared/pictureinputs"),property_applications=safe_require.safe_require("./core/property_applications"),webfonts=safe_require.safe_require("./webfonts"),core_events=safe_require.safe_require("./core/core_events"),logger=safe_require.safe_require("./logger"),workflow_consts=safe_require.safe_require("./constants/workflow"),appquery=safe_require.safe_require("./lang/appquery"),element_modifications=safe_require.safe_require("./core/core_elements/legacy/responsive_v0/element_modifications"),element_eval=safe_require.safe_require("./lang/evaluation/element_eval"),element_props=safe_require.safe_require("./lang/evaluation/element_props"),shared_field_metadata;u.uses_field_metadata()&&(shared_field_metadata=safe_require.safe_require("./core/shared_field_metadata"));element_modifications.set_legacy_element_modifications("multifileupload-MultiFileInput");var core_elements_fields=null,PLUGIN_FILE="multifileupload";function file_upload_destination(element){return Lib().is_edit_mode()?(core_elements_fields??=safe_require.safe_require("./core/core_elements_fields"),core_elements_fields.file_upload_destination(element,"MultiFileContent")):[]}function file_upload_destination_metadata_mode(element){return Lib().is_edit_mode()?(core_elements_fields??=safe_require.safe_require("./core/core_elements_fields"),core_elements_fields.file_upload_destination_metadata(element,"MultiFileContent")):{}}var _dropzone_loaded=!1;function load_dropzone(){if(_dropzone_loaded)return;_dropzone_loaded=!0;let Dropzone=safe_require.safe_require("./optional/dropzone");Dropzone.autoDiscover=!1}function plugin_version(){return Lib()?appquery.get_public_setting("multifileupload_installed_ver
85sion")??0:1}function uses_css_responsive(){return Lib()?plugin_version()>=1||appquery.get_public_setting("multifileupload_css_responsive")===!0:!0}var cls=class extends external.Service{constructor(){super(),this.authenticator=new external.NoAuth,this.elements=this._get_initial_elements()}_get_initial_elements(){return{MultiFileInput:{display:"Multi-File Uploader",category:"input forms",icon:"ion-upload",condition(root){return!root?.is_mobile?.()},field_names:u.extend({mandatory:{no_states:!0},message:{default:"Drop files here to upload (or click)"},initial:{},max_files:{no_states:!0},private:{no_states:!0},attach_to:{},service:{no_states:!0},destination:{}},inputs.get_disabled_field_name),primary_field(){},_fields(element){return[{name:"message",caption:"Message to display",editor:"ShortText",pretty:{section:"MultiFileContent"}},{name:"mandatory",caption:"This input is mandatory",editor:"Checkbox",pretty:{short_caption:!1,section:"MultiFileContent"}},{name:"initial",caption:"Initial files to display",editor:"Basic",btype:btype_ids.list_type("file"),optional:!0,pretty:{section:"MultiFileContent"}},{name:"max_files",caption:"Maximum number of files",optional:!0,editor:"Dropdown",numerical_step:1,set:Lib().sets.get_set("Integer")([1,2,5,10,20]),pretty:{section:"MultiFileContent"}},{name:"disabled",caption:"This input is disabled",editor:"Checkbox",pretty:{short_caption:!1,section:"MultiFileContent"}}].concat(file_upload_destination(element))},mandatory_sections(){return["MultiFileContent"]},get_field_metadata(element){return{message:{caption:"Message to display",btype_id:"text"},mandatory:{caption:"This input is mandatory",btype_id:"boolean"},initial:{caption:"Initial files to display",btype_id:btype_ids.list_type("file"),optional:!0},max_files:{caption:"Maximum number of files",btype_id:"text",validate:e=>[1,2,5,10,20].includes(e.get_static_property("max_files")),optional:!0},disabled:{caption:"This input is disabled",btype_id:"boolean"},...file_upload_destination_metadata_mode(element),...new property_applications.Dimensions().get_property_metadata(element),...new property_applications.Background().get_property_metadata(element),...new property_applications.Border().get_property_metadata(element),...new property_applications.BoxShadow().get_property_metadata(element),...new property_applications.Font(".dz-message").get_property_metadata(element),...new property_applications.FontSpacing(".dz-message").get_property_metadata(element),...new property_applications.PaddingText(".dz-message").get_property_metadata(element),...new property_applications.ResponsiveElement().get_property_metadata(element),...new property_applications.MinWidth().get_property_metadata(element),...new property_applications.UniqueID().get_property_metadata(element),...shared_field_metadata.get_is_visible_property()}},property_applications:[new property_applications.Dimensions,new property_applications.Background,new property_applications.Border,new property_applications.BoxShadow,new property_applications.Font(".dz-message"),new property_applications.FontSpacing(".dz-message"),new property_applications.PaddingText(".dz-message"),new property_applications.ResponsiveElement],get uses_css_responsive(){return uses_css_responsive()},get_html(instance){return"<div></div>"},get_min_width(){return 0},initialize(instance){services.log_plugin_element_init({name:this.plugin_name,plugin:PLUGIN_FILE}),sliderinputs.show_message_for_ios_8_upload_bug();let canvas=instance.get_canvas(),inner=u.div("dropzone needsclick",canvas);instance.autorun(()=>{let w=element_eval.evaluate_property(instance,"width"),h=element_eval.evaluate_property(instance,"height");inner.css({width:w,height:h-2})});let my_files=[],current=()=>Lib().db_instance().static_list("file",my_files),get_font_data=()=>({font_face:element_props.get_font_face(instance),font_size:element_eval.evaluate_property(instance,"font_size"),bold:element_eval.evaluate_property(instance,"bold"),italic:element_eval.evaluate_property(instance,"italic"),underline:element_eval.evaluate_property(instance,"underline"),font_alignment:element_eval.evaluate_property(instance,"font_alignment"),font_color:element_eval.evaluate_property(instance,"font_color"),disabled:element_eval.evaluate_property(instance,"disabled")});function apply_font_to_file_divs(data){let font_data=webfonts.get_quoted_face_and_variant(data.font_face);inner.find("*").css({"font-family":font_data.font_family,"font-size":data.font_size,"font-weight":data.bold?"bold":font_data.variant&&font_data.variant!=="regular"?font_data.variant:"normal","text-decoration":data.underline?"underline":"none","font-style":data.italic?"italic":"normal","text-align":data.font_al
85ignment}),inner.find(".dz-filename").css({color:data.font_color})}let get_additional_data=cb=>u.run_once(30,()=>pictureinputs.process_upload_security(instance),(err,data)=>err?cb(err):!data.public&&!data.attach_to?cb(new u.UserError("PRIVATE_FILE")):cb(null,data)),style_files_once=()=>{u.run_once(30,()=>get_font_data(),(err,data)=>{if(err){logger.log(err);return}apply_font_to_file_divs(data),data.disabled??=!1,inner.find(".dz-remove").toggle(!data.disabled)})};load_dropzone();let file_mapping={},current_uploads=0,my_params={};function upload_finished(){current_uploads--,current_uploads<=0&&(current_uploads=0,instance.state("upload_in_progress",!1),instance.message("user_submit",current())),instance.setTimeout(()=>{inner.find(".dz-remove").text(Lib().get_text("multifileupload","REMOVE_FILE"))},5)}inner.dropzone({url:Lib().location.get_server_base()+"fileupload",paramName:"contents",maxFilesize:50,addRemoveLinks:!0,maxFiles:instance.get_static_property("max_files"),params:my_params,accept(file,done){return get_additional_data((err,data)=>{if(err){let msg=logger.human_friendly(err);return alert(msg),done(msg)}else return u.extend(my_params,data),done()})},init(){let urls_to_files={};this.on("sending",()=>{style_files_once(),current_uploads++,instance.state("upload_in_progress",!0),inner.find(".dz-remove").text(Lib().get_text("multifileupload","CANCEL_UPLOAD"))}),this.on("error",(file,err)=>{String(err?.message).indexOf("Error parsing request body: request entity too large")!==-1?err=new u.UserError("FILE_TOO_LARGE"):err!=="Upload canceled."&&(err=new u.UserError(null,err.message??err,{original:err}),core_events.handle_uncaught_error({original_error:err,caught_from:workflow_consts.ERROR_SOURCES.ELEMENT,cb(err2){err2&&window.alert(logger.human_friendly(err2)),upload_finished()}}))}),this.on("canceled",files=>{upload_finished()}),this.on("maxfilesexceeded",file=>{current_uploads++}),this.on("success",(file,server_response)=>{my_files.push(server_response),file._id=u.UUID(),file_mapping[file._id]=server_response,urls_to_files[server_response]=file,upload_finished(),$(file.previewElement).find(".dz-filename span").wrap('<a href="'+server_response+'" target="_blank"></a>'),style_files_once()});let auto_remove=!1;this.on("removedfile",file=>{let link=file_mapping[file._id];u.array_remove(my_files,link),auto_remove||instance.message("user_submit",current())}),instance.run_mode()&&(u.autorun(()=>{if(instance.state("has_been_changed"))return;auto_remove=!0;let to_remove=Array.from(my_files);for(let url of to_remove){let file=urls_to_files[url];this.removeFile(file)}auto_remove=!1;let initial=element_eval.evaluate_property(instance,"initial")?.all?.()??[];for(let url of initial){let pieces=url.split("/"),fake_file={type:"text",name:pieces[pieces.length-1],status:"success",size:Math.random()};urls_to_files[url]=fake_file,my_files.push(url),fake_file._id=u.UUID(),file_mapping[fake_file._id]=url,this.emit("addedfile",fake_file),$(fake_file.previewElement).find(".dz-filename span").wrap('<a href="'+url+'" target="_blank"></a>')}style_files_once()}),element_eval.on_property_change(instance,"disabled",disabled=>{disabled?(this.disable(),inner.find(".dz-remove").hide()):(this.enable(),inner.find(".dz-remove").show())}),instance.autorun(()=>{apply_font_to_file_divs(get_font_data())}))}}),inner.find(".dz-message").addClass("needsclick"),instance.autorun(()=>{inner.find(".dz-message").text(element_eval.evaluate_property(instance,"message"))})},get_starting_content(instance){return element_eval.evaluate_property(instance,"initial")?.make_static()??Lib().db_instance().static_list("file",[])},get_state_value(element,name){if(name==="value")return btype_ids.list_type("file")},content_validated(val,instance){return!(instance.state("upload_in_progress")||instance.get_static_property("mandatory")&&!val?.length())},change_cursor_style_if_clickable:!1,add_an_invisible_div_on_the_top:!0,is_input:!0,contains_group_data:!1,jquery_plugins(){return["jquery_plugins/dropzone"]},css_files:["css/optional/dropzone.css"]}}}keys(){return plugin_version()>=1?{}:{css_responsive:{caption:"Use new responsive properties for this plugin's elements",type:"client_safe",editor:"Checkbox"}}}},multifileupload={cls};typeof window<"u"&&window!==null&&(window.optional_modules??={},window.optional_modules.multifileupload=multifileupload);var plugin_registry=safe_require.safe_require("./services/shared/plugin_registry");plugin_registry.register_plugin("multifileupload",multifileupload);})();
86/*! Bundled license information:
87
88buffer/index.js:
89  (*!
90   * The buffer module from node.js, for the browser.
91   *
92   * @author   Feross Aboukhadijeh <https://feross.org>
93   * @license  MIT
94   *)
95*/
96
97}
98
99
100window.preloaded['plugin/first_party:multifileupload'] = true;
101window._bubble_page_load_data.hardcoded_plugins['apple'] = true;
102window.__code__ = window.__code__ || {};
103if(!window.__code__['ddc8ef3b5f9f97173a25ed9bbab113a122f1d51f220e9b6eeba43c320f7c1b33']){window.__code__['ddc8ef3b5f9f97173a25ed9bbab113a122f1d51f220e9b6eeba43c320f7c1b33']=1;
104
105"use strict";(()=>{var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exp
vendor: 5,823 bytes, line 105
105orts:{}}).exports,mod),mod.exports};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));var init_define_process_env=__esm({"<define:process.env>"(){}});var require_base64_js=__commonJS({"node_modules/base64-js/index.js"(exports){"use strict";init_define_process_env();init_shim();exports.byteLength=byteLength;exports.toByteArray=toByteArray;exports.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(i=0,len=code.length;i<len;++i)lookup[i]=code[i],revLookup[code.charCodeAt(i)]=i;var i,len;revLookup["-".charCodeAt(0)]=62;revLookup["_".charCodeAt(0)]=63;function getLens(b64){var len2=b64.length;if(len2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var validLen=b64.indexOf("=");validLen===-1&&(validLen=len2);var placeHoldersLen=validLen===len2?0:4-validLen%4;return[validLen,placeHoldersLen]}function byteLength(b64){var lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function toByteArray(b64){var tmp,lens=getLens(b64),validLen=lens[0],placeHoldersLen=lens[1],arr=new Arr(_byteLength(b64,validLen,placeHoldersLen)),curByte=0,len2=placeHoldersLen>0?validLen-4:validLen,i2;for(i2=0;i2<len2;i2+=4)tmp=revLookup[b64.charCodeAt(i2)]<<18|revLookup[b64.charCodeAt(i2+1)]<<12|revLookup[b64.charCodeAt(i2+2)]<<6|revLookup[b64.charCodeAt(i2+3)],arr[curByte++]=tmp>>16&255,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255;return placeHoldersLen===2&&(tmp=revLookup[b64.charCodeAt(i2)]<<2|revLookup[b64.charCodeAt(i2+1)]>>4,arr[curByte++]=tmp&255),placeHoldersLen===1&&(tmp=revLookup[b64.charCodeAt(i2)]<<10|revLookup[b64.charCodeAt(i2+1)]<<4|revLookup[b64.charCodeAt(i2+2)]>>2,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255),arr}function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[num&63]}function encodeChunk(uint8,start,end){for(var tmp,output=[],i2=start;i2<end;i2+=3)tmp=(uint8[i2]<<16&16711680)+(uint8[i2+1]<<8&65280)+(uint8[i2+2]&255),output.push(tripletToBase64(tmp));return output.join("")}function fromByteArray(uint8){for(var tmp,len2=uint8.length,extraBytes=len2%3,parts=[],maxChunkLength=16383,i2=0,len22=len2-extraBytes;i2<len22;i2+=maxChunkLength)parts.push(encodeChunk(uint8,i2,i2+maxChunkLength>len22?len22:i2+maxChunkLength));return extraBytes===1?(tmp=uint8[len2-1],parts.push(lookup[tmp>>2]+lookup[tmp<<4&63]+"==")):extraBytes===2&&(tmp=(uint8[len2-2]<<8)+uint8[len2-1],parts.push(lookup[tmp>>10]+lookup[tmp>>4&63]+lookup[tmp<<2&63]+"=")),parts.join("")}}});var require_ieee754=__commonJS({"node_modules/ieee754/index.js"(exports){init_define_process_env();init_shim();exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8);if(e===0)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m=m+Math.pow(2,mLen),e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||value===0&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),e+eBias>=1?value+=rt/c:value+=rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e=e+eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8);for(e=e<<mLen|m,eLen+=mLen;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=s*128}}});var require_buffer=__commonJS({"node_modules/node-stdlib-browser/node_modules/buffer/index.js"(exports){"use strict";init_define_process_env();init_shim();var base64=require_base64_js(),ieee754=require_ieee754(),customInspectSymbol=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;exports.Buffer=Buffer3;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;var K_MAX_LENGTH=2147483647;exports.kMaxLength=K_MAX_LENGTH;Buffer3.TYPED_ARRAY_SUPPORT=typedArraySupport();!Buffer3.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function typedArraySupport(){try{var arr=new Uint8Array(1),proto={foo:function(){return 42}};return Object.setPrototypeOf(proto,Uint8Array.prototype),Object.setPrototypeOf(arr,proto),arr.foo()===42}catch{return!1}}Object.defineProperty(Buffer3.prototype,"parent",{enumerable:!0,get:function(){if(Buffer3.isBuffer(this))return this.buffer}});Object.defineProperty(Buffer3.prototype,"offset",{enumerable:!0,get:function(){if(Buffer3.isBuffer(this))return this.byteOffset}});function createBuffer(length){if(length>
vendor: 23,595 bytes, line 105
105K_MAX_LENGTH)throw new RangeError('The value "'+length+'" is invalid for option "size"');var buf=new Uint8Array(length);return Object.setPrototypeOf(buf,Buffer3.prototype),buf}function Buffer3(arg,encodingOrOffset,length){if(typeof arg=="number"){if(typeof encodingOrOffset=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(arg)}return from(arg,encodingOrOffset,length)}Buffer3.poolSize=8192;function from(value,encodingOrOffset,length){if(typeof value=="string")return fromString(value,encodingOrOffset);if(ArrayBuffer.isView(value))return fromArrayView(value);if(value==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value);if(isInstance(value,ArrayBuffer)||value&&isInstance(value.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(isInstance(value,SharedArrayBuffer)||value&&isInstance(value.buffer,SharedArrayBuffer)))return fromArrayBuffer(value,encodingOrOffset,length);if(typeof value=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var valueOf=value.valueOf&&value.valueOf();if(valueOf!=null&&valueOf!==value)return Buffer3.from(valueOf,encodingOrOffset,length);var b=fromObject(value);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof value[Symbol.toPrimitive]=="function")return Buffer3.from(value[Symbol.toPrimitive]("string"),encodingOrOffset,length);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value)}Buffer3.from=function(value,encodingOrOffset,length){return from(value,encodingOrOffset,length)};Object.setPrototypeOf(Buffer3.prototype,Uint8Array.prototype);Object.setPrototypeOf(Buffer3,Uint8Array);function assertSize(size){if(typeof size!="number")throw new TypeError('"size" argument must be of type number');if(size<0)throw new RangeError('The value "'+size+'" is invalid for option "size"')}function alloc(size,fill,encoding){return assertSize(size),size<=0?createBuffer(size):fill!==void 0?typeof encoding=="string"?createBuffer(size).fill(fill,encoding):createBuffer(size).fill(fill):createBuffer(size)}Buffer3.alloc=function(size,fill,encoding){return alloc(size,fill,encoding)};function allocUnsafe(size){return assertSize(size),createBuffer(size<0?0:checked(size)|0)}Buffer3.allocUnsafe=function(size){return allocUnsafe(size)};Buffer3.allocUnsafeSlow=function(size){return allocUnsafe(size)};function fromString(string,encoding){if((typeof encoding!="string"||encoding==="")&&(encoding="utf8"),!Buffer3.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding);var length=byteLength(string,encoding)|0,buf=createBuffer(length),actual=buf.write(string,encoding);return actual!==length&&(buf=buf.slice(0,actual)),buf}function fromArrayLike(array){for(var length=array.length<0?0:checked(array.length)|0,buf=createBuffer(length),i=0;i<length;i+=1)buf[i]=array[i]&255;return buf}function fromArrayView(arrayView){if(isInstance(arrayView,Uint8Array)){var copy=new Uint8Array(arrayView);return fromArrayBuffer(copy.buffer,copy.byteOffset,copy.byteLength)}return fromArrayLike(arrayView)}function fromArrayBuffer(array,byteOffset,length){if(byteOffset<0||array.byteLength<byteOffset)throw new RangeError('"offset" is outside of buffer bounds');if(array.byteLength<byteOffset+(length||0))throw new RangeError('"length" is outside of buffer bounds');var buf;return byteOffset===void 0&&length===void 0?buf=new Uint8Array(array):length===void 0?buf=new Uint8Array(array,byteOffset):buf=new Uint8Array(array,byteOffset,length),Object.setPrototypeOf(buf,Buffer3.prototype),buf}function fromObject(obj){if(Buffer3.isBuffer(obj)){var len=checked(obj.length)|0,buf=createBuffer(len);return buf.length===0||obj.copy(buf,0,0,len),buf}if(obj.length!==void 0)return typeof obj.length!="number"||numberIsNaN(obj.length)?createBuffer(0):fromArrayLike(obj);if(obj.type==="Buffer"&&Array.isArray(obj.data))return fromArrayLike(obj.data)}function checked(length){if(length>=K_MAX_LENGTH)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K_MAX_LENGTH.toString(16)+" bytes");return length|0}function SlowBuffer(length){return+length!=length&&(length=0),Buffer3.alloc(+length)}Buffer3.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==Buffer3.prototype};Buffer3.compare=function(a,b){if(isInstance(a,Uint8Array)&&(a=Buffer3.from(a,a.offset,a.byteLength)),isInstance(b,Uint8Array)&&(b=Buffer3.from(b,b.offset,b.byteLength)),!Buffer3.isBuffer(a)||!Buffer3.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i<len;++i)if(a[i]!==b[i]){x=a[i],y=b[i];break}return x<y?-1:y<x?1:0};Buffer3.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Buffer3.concat=function(list,length){if(!Array.isArray(list))throw new TypeError('"list" argument must be an Array of Buffers');if(list.length===0)return Buffer3.alloc(0);var i;if(length===void 0)for(length=0,i=0;i<list.length;++i)length+=list[i].length;var buffer=Buffer3.allocUnsafe(length),pos=0;for(i=0;i<list.length;++i){var buf=list[i];if(isInstance(buf,Uint8Array))pos+buf.length>buffer.length?Buffer3.from(buf).copy(buffer,pos):Uint8Array.prototype.set.call(buffer,buf,pos);else if(Buffer3.isBuffer(buf))buf.copy(buffer,pos);else throw new TypeError('"list" argument must be an Array of Buffers');pos+=buf.length}return buffer};function byteLength(string,encoding){if(Buffer3.isBuffer(string))return string.length;if(ArrayBuffer.isView(string)||isInstance(string,ArrayBuffer))return string.byteLength;if(typeof string!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof string);var len=string.length,mustMatch=arguments.length>2&&arguments[2]===!0;if(!mustMatch&&len===0)return 0;for(var loweredCase=!1;;)switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return len*2;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return mustMatch?-1:utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}Buffer3.byteLength=byteLength;function slowToString(encoding,start,end){var loweredCase=!1;if((start===void 0||start<0)&&(start=0),start>this.length||((end===void 0||end>this.length)&&(end=this.length),end<=0)||(end>>>=0,start>>>=0,end<=start))return"";for(encoding||(encoding="utf8");;)switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"latin1":case"binary":return latin1Slice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}Buffer3.prototype._isBuffer=!0;function swap(b,n,m){var i=b[n];b[n]=b[m],b[m]=i}Buffer3.prototype.swap16=function(){var len=this.length;if(len%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<len;i+=2)swap(this,i,i+1);return this};Buffer3.prototype.swap32=function(){var len=this.length;if(len%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<len;i+=4)swap(this,i,i+3),swap(this,i+1,i+2);return this};Buffer3.prototype.swap64=function(){var len=this.length;if(len%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<len;i+=8)swap(this,i,i+7),swap(this,i+1,i+6),swap(this,i+2,i+5),swap(this,i+3,i+4);return this};Buffer3.prototype.toString=function(){var length=this.length;return length===0?"":arguments.length===0?utf8Slice(this,0,length):slowToString.apply(this,arguments)};Buffer3.prototype.toLocaleString=Buffer3.prototype.toString;Buffer3.prototype.equals=function(b){if(!Buffer3.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:Buffer3.compare(this,b)===0};Buffer3.prototype.inspect=function(){var str="",max=exports.INSPECT_MAX_BYTES;return str=this.toString("hex",0,max).replace(/(.{2})/g,"$1 ").trim(),this.length>max&&(str+=" ... "),"<Buffer "+str+">"};customInspectSymbol&&(Buffer3.prototype[customInspectSymbol]=Buffer3.prototype.inspect);Buffer3.prototype.compare=function(target,start,end,thisStart,thisEnd){if(isInstance(target,Uint8Array)&&(target=Buffer3.from(target,target.offset,target.byteLength)),!Buffer3.isBuffer(target))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof target);if(start===void 0&&(start=0),end===void 0&&(end=target?target.length:0),thisStart===void 0&&(thisStart=0),thisEnd===void 0&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw new RangeError("out of range index");if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;for(var x=thisEnd-thisStart,y=end-start,len=Math.min(x,y),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end),i=0;i<len;++i)if(thisCopy[i]!==targetCopy[i]){x=thisCopy[i],y=targetCopy[i];break}return x<y?-1:y<x?1:0};function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){if(buffer.length===0)return-1;if(typeof byteOffset=="string"?(encoding=byteOffset,byteOffset=0):byteOffset>2147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,numberIsNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1),byteOffset<0&&(byteOffset=buffer.length+byteOffset),byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(byteOffset<0)if(dir)byteOffset=0;else return-1;if(typeof val=="string"&&(val=Buffer3.from(val,encoding)),Buffer3.isBuffer(val))return val.length===0?-1:arrayIndexOf(buffer,val,byteOffset,encoding,dir);if(typeof val=="number")return val=val&255,typeof Uint8Array.prototype.indexOf=="function"?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf(buffer,[val],byteOffset,encoding,dir);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(arr,val,byteOffset,encoding,dir){var indexSize=1,arrLength=arr.length,valLength=val.length;if(encoding!==void 0&&(encoding=String(encoding).toLowerCase(),encoding==="ucs2"||encoding==="ucs-2"||encoding==="utf16le"||encoding==="utf-16le")){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}function read(buf,i2){return indexSize===1?buf[i2]:buf.readUInt16BE(i2*indexSize)}var i;if(dir){var foundIndex=-1;for(i=byteOffset;i<arrLength;i++)if(read(arr,i)===read(val,foundIndex===-1?0:i-foundIndex)){if(foundIndex===-1&&(foundIndex=i),i-foundIndex+1===valLength)return foundIndex*indexSize}else foundIndex!==-1&&(i-=i-foundIndex),foundIndex=-1}else for(byteOffset+valLength>arrLength&&(byteOffset=arrLength-valLength),i=byteOffset;i>=0;i--){for(var found=!0,j=0;j<valLength;j++)if(read(arr,i+j)!==read(val,j)){found=!1;break}if(found)return i}return-1}Buffer3.prototype.includes=function(val,byteOffset,encoding){return this.indexOf(val,byteOffset,encoding)!==-1};Buffer3.prototype.indexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!0)};Buffer3.prototype.lastIndexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!1)};function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;length?(length=Number(length),length>remaining&&(length=remaining)):length=remaining;var strLen=string.length;length>strLen/2&&(length=strLen/2);for(var i=0;i<length;++i){var parsed=parseInt(string.substr(i*2,2),16);if(numberIsNaN(parsed))return i;buf[offset+i]=parsed}return i}function utf8Write(buf,string,offset,length){return blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length)}function asciiWrite(buf,string,offset,length){return blitBuffer(asciiToBytes(string),buf,offset,length)}function base64Write(buf,string,offset,length){return blitBuffer(base64ToBytes(string),buf,offset,length)}function ucs2Write(buf,string,offset,length){return blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length)}Buffer3.prototype.write=function(string,offset,length,encoding){if(offset===void 0)encoding="utf8",length=this.length,offset=0;else if(length===void 0&&typeof offset=="string")encoding=offset,length=this.length,offset=0;else if(isFinite(offset))offset=offset>>>0,isFinite(length)?(length=length>>>0,encoding===void 0&&(encoding="utf8")):(encoding=length,length=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var remaining=this.length-offset;if((length===void 0||length>remaining)&&(length=remaining),string.length>0&&(length<0||offset<0)||offset>this.length)throw new RangeError("Attempt to write outside buffer bounds");encoding||(encoding="utf8");for(var loweredCase=!1;;)switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":case"latin1":case"binary":return asciiWrite(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}};Buffer3.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){return start===0&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);for(var res=[],i=start;i<end;){var firstByte=buf[i],codePoint=null,bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i+1],(secondByte&192)===128&&(tempCodePoint=(firstByte&31)<<6|secondByte&63,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i+1],thirdByte=buf[i+2],(secondByte&192)===128&&(thirdByte&192)===128&&(tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i+1],thirdByte=buf[i+2],fourthByte=buf[i+3],(secondByte&192)===128&&(thirdByte&192)===128&&(fourthByte&192)===128&&(tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}codePoint===null?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|codePoint&1023),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;i<len;)res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(buf[i]&127);return ret}function latin1Slice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(buf[i]);return ret}function hexSlice(buf,start,end){var len=buf.length;(!start||start<0)&&(start=0),(!end||end<0||end>len)&&(end=len);for(var out="",i=start;i<end;++i)out+=hexSliceLookupTable[buf[i]];return out}function utf16leSlice(buf,start,end){for(var bytes=buf.slice(start,end),res="",i=0;i<bytes.length-1;i+=2)res+=String.fromCharCode(bytes[i]+bytes[i+1]*256);return res}Buffer3.prototype.slice=function(start,end){var len=this.length;start=~~start,end=end===void 0?len:~~end,start<0?(start+=len,start<0&&(start=0)):start>len&&(start=len),end<0?(end+=len,end<0&&(end=0)):end>len&&(end=len),end<start&&(end=start);var newBuf=this.subarray(start,end);return Object.setPrototypeOf(newBuf,Buffer3.prototype),newBuf};function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}Buffer3.prototype.readUintLE=Buffer3.prototype.readUIntLE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset],mul=1,i=0;++i<byteLength2&&(mul*=256);)val+=this[offset+i]*mul;return val};Buffer3.prototype.readUintBE=Buffer3.prototype.readUIntBE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset+--byteLength2],mul=1;byteLength2>0&&(mul*=256);)val+=this[offset+--byteLength2]*mul;return val};Buffer3.prototype.readUint8=Buffer3.prototype.readUInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,1,this.length),this[offset]};Buffer3.prototype.readUint16LE=Buffer3.prototype.readUInt16LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,2,this.length),this[offset]|this[offset+1]<<8};Buffer3.prototype.readUint16BE=Buffer3.prototype.readUInt16BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,2,this.length),this[offset]<<8|this[offset+1]};Buffer3.prototype.readUint32LE=Buffer3.prototype.readUInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer3.prototype.readUint32BE=Buffer3.prototype.readUInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer3.prototype.readIntLE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var val=this[offset],mul=1,i=0;++i<byteLength2&&(mul*=256);)val+=this[offset+i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength2)),val};Buffer3.prototype.readIntBE=function(offset,byteLength2,noAssert){offset=offset>>>0,byteLength2=byteLength2>>>0,noAssert||checkOffset(offset,byteLength2,this.length);for(var i=byteLength2,mul=1,val=this[offset+--i];i>0&&(mul*=256);)val+=this[offset+--i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength2)),val};Buffer3.prototype.readInt8=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,1,this.length),this[offset]&128?(255-this[offset]+1)*-1:this[offset]};Buffer3.prototype.readInt16LE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer3.prototype.readInt16BE=function(offset,noAssert){offset=offset>>>0,noAssert||checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer3.prototype.readInt32LE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer3.prototype.readInt32BE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer3.prototype.readFloatLE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!0,23,4)};Buffer3.prototype.readFloatBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!1,23,4)};Buffer3.prototype.readDoubleLE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!0,52,8)};Buffer3.prototype.readDoubleBE=function(offset,noAssert){return offset=offset>>>0,noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!1,52,8)};function checkInt(buf,value,offset,ext,max,min){if(!Buffer3.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||value<min)throw new RangeError('"value" argument is out of bounds');if(offset+ext>buf.length)throw new RangeError("Index out of range")}Buffer3.prototype.writeUintLE=Buffer3.prototype.writeUIntLE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,byteLength2=byteLength2>>>0,!noAssert){var maxBytes=Math.pow(2,8*byteLength2)-1;checkInt(this,value,offset,byteLength2,maxBytes,0)}var mul=1,i=0;for(this[offset]=value&255;++i<byteLength2&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength2};Buffer3.prototype.writeUintBE=Buffer3.prototype.writeUIntBE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,byteLength2=byteLength2>>>0,!noAssert){var maxBytes=Math.pow(2,8*byteLength2)-1;checkInt(this,value,offset,byteLength2,maxBytes,0)}var i=byteLength2-1,mul=1;for(this[offset+i]=value&255;--i>=0&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength2};Buffer3.prototype.writeUint8=Buffer3.prototype.writeUInt8=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,1,255,0),this[offset]=value&255,offset+1};Buffer3.prototype.writeUint16LE=Buffer3.prototype.writeUInt16LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,65535,0),this[offset]=value&255,this[offset+1]=value>>>8,offset+2};Buffer3.prototype.writeUint16BE=Buffer3.prototype.writeUInt16BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,65535,0),this[offset]=value>>>8,this[offset+1]=value&255,offset+2};Buffer3.prototype.writeUint32LE=Buffer3.prototype.writeUInt32LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,4294967295,0),this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=value>>>8,this[offset]=value&255,offset+4};Buffer3.prototype.writeUint32BE=Buffer3.prototype.writeUInt32BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,4294967295,0),this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=value&255,offset+4};Buffer3.prototype.writeIntLE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,!noAssert){var limit=Math.pow(2,8*byteLength2-1);checkInt(this,value,offset,byteLength2,limit-1,-limit)}var i=0,mul=1,sub=0;for(this[offset]=value&255;++i<byteLength2&&(mul*=256);
vendor: 3,223 bytes, line 105
105)value<0&&sub===0&&this[offset+i-1]!==0&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength2};Buffer3.prototype.writeIntBE=function(value,offset,byteLength2,noAssert){if(value=+value,offset=offset>>>0,!noAssert){var limit=Math.pow(2,8*byteLength2-1);checkInt(this,value,offset,byteLength2,limit-1,-limit)}var i=byteLength2-1,mul=1,sub=0;for(this[offset+i]=value&255;--i>=0&&(mul*=256);)value<0&&sub===0&&this[offset+i+1]!==0&&(sub=1),this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength2};Buffer3.prototype.writeInt8=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,1,127,-128),value<0&&(value=255+value+1),this[offset]=value&255,offset+1};Buffer3.prototype.writeInt16LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,32767,-32768),this[offset]=value&255,this[offset+1]=value>>>8,offset+2};Buffer3.prototype.writeInt16BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,2,32767,-32768),this[offset]=value>>>8,this[offset+1]=value&255,offset+2};Buffer3.prototype.writeInt32LE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),this[offset]=value&255,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24,offset+4};Buffer3.prototype.writeInt32BE=function(value,offset,noAssert){return value=+value,offset=offset>>>0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),value<0&&(value=4294967295+value+1),this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=value&255,offset+4};function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return value=+value,offset=offset>>>0,noAssert||checkIEEE754(buf,value,offset,4,34028234663852886e22,-34028234663852886e22),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}Buffer3.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)};Buffer3.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)};function writeDouble(buf,value,offset,littleEndian,noAssert){return value=+value,offset=offset>>>0,noAssert||checkIEEE754(buf,value,offset,8,17976931348623157e292,-17976931348623157e292),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}Buffer3.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)};Buffer3.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)};Buffer3.prototype.copy=function(target,targetStart,start,end){if(!Buffer3.isBuffer(target))throw new TypeError("argument should be a Buffer");if(start||(start=0),!end&&end!==0&&(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&end<start&&(end=start),end===start||target.length===0||this.length===0)return 0;
vendor: 5,180 bytes, line 105
105if(targetStart<0)throw new RangeError("targetStart out of bounds");if(start<0||start>=this.length)throw new RangeError("Index out of range");if(end<0)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStart<end-start&&(end=target.length-targetStart+start);var len=end-start;return this===target&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(targetStart,start,end):Uint8Array.prototype.set.call(target,this.subarray(start,end),targetStart),len};Buffer3.prototype.fill=function(val,start,end,encoding){if(typeof val=="string"){if(typeof start=="string"?(encoding=start,start=0,end=this.length):typeof end=="string"&&(encoding=end,end=this.length),encoding!==void 0&&typeof encoding!="string")throw new TypeError("encoding must be a string");if(typeof encoding=="string"&&!Buffer3.isEncoding(encoding))throw new TypeError("Unknown encoding: "+encoding);if(val.length===1){var code=val.charCodeAt(0);(encoding==="utf8"&&code<128||encoding==="latin1")&&(val=code)}}else typeof val=="number"?val=val&255:typeof val=="boolean"&&(val=Number(val));if(start<0||this.length<start||this.length<end)throw new RangeError("Out of range index");if(end<=start)return this;start=start>>>0,end=end===void 0?this.length:end>>>0,val||(val=0);var i;if(typeof val=="number")for(i=start;i<end;++i)this[i]=val;else{var bytes=Buffer3.isBuffer(val)?val:Buffer3.from(val,encoding),len=bytes.length;if(len===0)throw new TypeError('The value "'+val+'" is invalid for argument "value"');for(i=0;i<end-start;++i)this[i+start]=bytes[i%len]}return this};var INVALID_BASE64_RE=/[^+/0-9A-Za-z-_]/g;function base64clean(str){if(str=str.split("=")[0],str=str.trim().replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str=str+"=";return str}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;i<length;++i){if(codePoint=string.charCodeAt(i),codePoint>55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}else if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else throw new Error("Invalid code point")}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i<str.length;++i)byteArray.push(str.charCodeAt(i)&255);return byteArray}function utf16leToBytes(str,units){for(var c,hi,lo,byteArray=[],i=0;i<str.length&&!((units-=2)<0);++i)c=str.charCodeAt(i),hi=c>>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;i<length&&!(i+offset>=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}function isInstance(obj,type){return obj instanceof type||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type.name}function numberIsNaN(obj){return obj!==obj}var hexSliceLookupTable=function(){for(var alphabet="0123456789abcdef",table=new Array(256),i=0;i<16;++i)for(var i16=i*16,j=0;j<16;++j)table[i16+j]=alphabet[i]+alphabet[j];return table}()}});var require_browser=__commonJS({"node_modules/process/browser.js"(exports,module){init_define_process_env();init_shim();var process2=module.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch{try{return cachedSetTimeout.call(null,fun,0)}catch{return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch{try{return cachedClearTimeout.call(null,marker)}catch{return cachedClearTimeout.call(this,marker)}}}
105var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}process2.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(fun,array){this.fun=fun,this.array=array}Item.prototype.run=function(){this.fun.apply(null,this.array)};process2.title="browser";process2.browser=!0;process2.env={};process2.argv=[];process2.version="";process2.versions={};function noop(){}process2.on=noop;process2.addListener=noop;process2.once=noop;process2.off=noop;process2.removeListener=noop;process2.removeAllListeners=noop;process2.emit=noop;process2.prependListener=noop;process2.prependOnceListener=noop;process2.listeners=function(name){return[]};process2.binding=function(name){throw new Error("process.binding is not supported")};process2.cwd=function(){return"/"};process2.chdir=function(dir){throw new Error("process.chdir is not supported")};process2.umask=function(){return 0}}});var import_buffer,import_process,_globalThis,init_shim=__esm({"node_modules/node-stdlib-browser/helpers/esbuild/shim.js"(){import_buffer=__toESM(require_buffer()),import_process=__toESM(require_browser()),_globalThis=function(Object2){function get(){var _global3=this||self;return delete Object2.prototype.__magic__,_global3}if(typeof globalThis=="object")return globalThis;if(this)return get();Object2.defineProperty(Object2.prototype,"__magic__",{configurable:!0,get});var _global2=__magic__;return _global2}(Object)}});init_define_process_env();init_shim();init_define_process_env();init_shim();var u=window?.u??_u,base_safe_require=window?.safe_require??_safe_require,legacy_keys={"@bubblegroup/db":["./db/runtime/db","./db/db"],"@bubblegroup/db/hydrate":["./db/runtime/hydrate","./db/hydrate"],"@bubblegroup/db/values/db_values":["./db/runtime/values/db_values","./db/values/db_values"],"@bubblegroup/db/values/StaticObject":["./db/runtime/values/StaticObject","./db/values/StaticObject"],"@bubblegroup/evaluation/engine/context":["@bubblegroup/evaluation/context","./lang/evaluation/context"],"@bubblegroup/evaluation/engine/eval_node_state":["@bubblegroup/evaluation/eval_node_state","./lang/evaluation/eval_node_state"],"@bubblegroup/evaluation/engine/node_eval":["@bubblegroup/evaluation/node_eval","./lang/evaluation/node_eval"],"@bubblegroup/evaluation/engine/page_state":["@bubblegroup/evaluation/page_state","./lang/evaluation/page_state"],"@bubblegroup/evaluation/engine/state_keys":["@bubblegroup/evaluation/state_keys","./lang/evaluation/state_keys"]};function safe_require_with_legacy_keys(path){try{return base_safe_require.safe_require(path)}catch(err){for(let legacy_key of legacy_keys[path]??[])try{return base_safe_require.safe_require(legacy_key)}catch{}throw err}}var safe_require={safe_require:safe_require_with_legacy_keys,safe_register:base_safe_require.safe_register};var external=safe_require.safe_require("./external"),appquery=safe_require.safe_require("./lang/appquery"),AUTH_URL="https://appleid.apple.com/auth/authorize",AppleAuthenticator=class extends external.Oauth2{native_login(native_bridge,authentication_url,api_data,options){return typeof native_bridge?.appleNativeLogin!="function"?Promise.resolve(null):native_bridge.appleNativeLogin(authentication_url,api_data,options)}get_oauth_user_data(login_data){}get_public_key(){return appquery.get_private_setting("mobile.apple.service_id")}get_secret_key(){return null}use_server_side_redirect(){return!0}get_data_for_login(data){let login_data=super.get_data_for_login(data);return data?.user!=null&&(login_data.user=data.user),login_data}
105is_still_valid(){return!0}generate_validity_object(){return{}}},cls=class extends external.Service{constructor(){super(),this.authenticator=new AppleAuthenticator({scope:"name email",response_mode:"form_post",authentication_url:AUTH_URL})}get oauth_providers(){return["apple"]}display(){return"Apple"}},apple={cls};typeof window<"u"&&window!==null&&(window.optional_modules??={},window.optional_modules.apple=apple);var plugin_registry=safe_require.safe_require("./services/shared/plugin_registry");plugin_registry.register_plugin("apple",apple);})();
106/*! Bundled license information:
107
108buffer/index.js:
109  (*!
110   * The buffer module from node.js, for the browser.
111   *
112   * @author   Feross Aboukhadijeh <https://feross.org>
113   * @license  MIT
114   *)
115*/
116
117}
118
119
120window.preloaded['plugin/first_party:apple'] = true;
121window.plugins = window.plugins || {};
122window._bubble_page_load_data.plugins_size = window._bubble_page_load_data.plugins_size || {};
123window.plugins["1488796042609x768734193128308700"] = {"human":"Toolbox","dependencies":{"use_jquery":true,"plugin_api_version":"4"},"plugin_elements":{"AAC":{"display":"List of Numbers","property_applications":{"resizable":true},"add_is_visible":true,"fields":{"AAE":{"caption":"Start number","name":"number_start","editor":"DynamicValue","value":"number","rank":2},"AAF":{"caption":"Length of list","name":"list_length","editor":"DynamicValue","value":"number","is_list":false,"rank":3},"AAG":{"caption":"Increment","name":"increment","editor":"DynamicValue","value":"number","rank":4},"ABS":{"caption":"List of Numbers.","name":"doctitle","rank":0,"editor":"Label"},"ABT":{"caption":"Docs at toolboxdocs.netlify.app","name":"doclink","rank":1,"editor":"Label"}},"states":{"AAD":{"caption":"list","name":"list","value":"number","is_list":true,"initialization_code":{"fn":"function(properties,context){}"}}},"code":{"initialize":{"fn":"function(instance,context){}"},"update":{"fn":"function(instance,properties,context){properties.number_start,properties.list_length,properties.increment;var result=[];if(null!==properties.number_start&&null!==properties.list_length&&null!==properties.increment)for(var mynumber=properties.number_start,i=0;i<properties.list_length;i++)result.push(mynumber),mynumber+=properties.increment;instance.publishState(\"list\",result)}"},"preview":{"fn":"function(instance, properties) {\n  var div = document.createElement(\"div\");\n  div.style.overflow = \"hidden\";\n  div.style.width = \"100%\";\n  div.style.height = \"100%\";\n  div.style[\"font-style\"] = \"italic\";\n  div.style[\"text-wrap\"] = \"nowrap\";\n  div.style[\"font-size\"] = \"\" + Math.floor(properties.bubble.height() * 0.75) + \"px\";\n  div.textContent = \"1 2 3 ...\";\n  instance.canvas.append(div);\n}"}},"platform_type":"web"},"AAI":{"display":"Expression","property_applications":{"resizable":true},"add_is_visible":true,"fields":{"AAJ":{"caption":"Expression","name":"expression","editor":"DynamicValue","value":"text","rank":2,"optional":true},"AAL":{"caption":"Result type","name":"result_type","editor":"custom_type","rank":3},"AAM":{"caption":"Result is a list","name":"result_is_list","editor":"Checkbox","default_val":false,"rank":4},"ABU":{"caption":"Expression. Evaluates with javascript.","name":"doctitle","rank":0,"editor":"Label"},"ABV":{"caption":"Docs at toolboxdocs.netlify.app","name":"doclink","rank":1,"editor":"Label"}},"states":{"AAN":{"caption":"value","name":"value","value":"custom_data_AAL","initialization_code":{"fn":"function(properties,context){}"}},"AAO":{"caption":"value list","name":"value_list","value":"custom_data_AAL","is_list":true,"initialization_code":{"fn":"function(properties,context){}"}}},"code":{"initialize":{"fn":"function(instance,context){}"},"update":{"fn":"function(instance,properties,context){var result;properties.expression,properties.result_type,properties.result_is_list,result=null!=properties.expression?eval(properties.expression):null,properties.result_is_list?instance.publishState(\"value_list\",result):instance.publishState(\"value\",result)}","add_debugger":false},"preview":{"fn":"function(instance, properties) {\n  var div = document.createElement(\"div\");\n  div.style.overflow = \"hidden\";\n  div.style.width = \"100%\";\n  div.style.height = \"100%\";\n  div.style[\"font-style\"] = \"italic\";\n  div.style[\"text-wrap\"] = \"nowrap\";\n  div.style[\"font-size\"] = \"\" + Math.floor(properties.bubble.height() * 0.75
123) + \"px\";\n  div.textContent = \"Expression\";\n  instance.canvas.append(div);\n}"}},"platform_type":"web"},"AAP":{"display":"Javascript to Bubble","property_applications":{"resizable":true},"add_is_visible":true,"fields":{"AAQ":{"caption":"bubble_fn_suffix","name":"fn_name_suffix","editor":"DynamicValue","value":"text","rank":2},"AAR":{"caption":"Trigger event","name":"trigger_event","editor":"Checkbox","default_val":false,"rank":3},"AAS":{"caption":"Publish value","name":"publish_value","editor":"Checkbox","default_val":false,"rank":4},"AAT":{"caption":"Value type","name":"value_type","editor":"custom_type","optional":true,"rank":8},"AAU":{"caption":"Value is a list","name":"value_is_list","editor":"Checkbox","default_val":false,"rank":9},"ABN":{"caption":"Queue","name":"queue","rank":5,"editor":"Checkbox","default_val":false},"ABW":{"caption":"Javascript to Bubble. Brings a value and event to Bubble.","name":"doctitle","rank":0,"editor":"Label"},"ABX":{"caption":"Docs at toolboxdocs.netlify.app","name":"doclink","rank":1,"editor":"Label"},"ABx":{"caption":"------------ Outputs -------------","name":"docoutputs","rank":6,"editor":"Label"},"ABy":{"caption":"Multiple Outputs","name":"multipleoutputs","rank":7,"editor":"Checkbox","default_val":false},"ABz":{"caption":"output1 type","name":"output1type","rank":10,"editor":"custom_type","optional":true},"ACA":{"caption":"output2 type","name":"output2type","rank":11,"editor":"custom_type","optional":true},"ACC":{"caption":"output3 type","name":"output3type","rank":12,"editor":"custom_type","optional":true},"ACD":{"caption":"output4 type","name":"output4type","rank":13,"editor":"custom_type","optional":true},"ACE":{"caption":"outputlist1 type","name":"outputlist1type","rank":14,"editor":"custom_type","optional":true},"ACF":{"caption":"outputlist2 type","name":"outputlist2type","rank":15,"editor":"custom_type","optional":true},"ACG":{"caption":"outputlist3 type","name":"outputlist3type","rank":16,"editor":"custom_type","optional":true},"ACH":{"caption":"outputlist4 type","name":"outputlist4type","rank":17,"editor":"custom_type","optional":true}},"states":{"AAV":{"caption":"value","name":"value","value":"custom_data_AAT","initialization_code":{"fn":"function(properties,context){}"}},"AAW":{"caption":"value list","name":"value_list","value":"custom_data_AAT","is_list":true,"initialization_code":{"fn":"function(properties,context){}"}},"ACI":{"caption":"output1","name":"output1","value":"custom_data_ABz","initialization_code":{"fn":"function(properties,context){}"}},"ACJ":{"caption":"output2","name":"output2","value":"custom_data_ACA","initialization_code":{"fn":"function(properties,context){}"}},"ACK":{"caption":"output3","name":"output3","value":"custom_data_ACC","initialization_code":{"fn":"function(properties,context){}"}},"ACL":{"caption":"output4","name":"output4","value":"custom_data_ACD","initialization_code":{"fn":"function(properties,context){}"}},"ACM":{"caption":"outputlist1","name":"outputlist1","value":"custom_data_ACE","initialization_code":{"fn":"function(properties,context){}"},"is_list":true},"ACN":{"caption":"outputlist2","name":"outputlist2","value":"custom_data_ACF","initialization_code":{"fn":"function(properties,context){}"},"is_list":true},"ACO":{"caption":"outputlist3","name":"outputlist3","value":"custom_data_ACG","initialization_code":{"fn":"function(properties,context){}"},"is_list":true},"ACP":{"caption":"outputlist4","name":"outputlist4","value":"custom_data_ACH","initialization_code":{"fn":"function(properties,context){}"},"is_list":true}},"events":{"AAX":{"caption":"event","name":"event"}},"actions":{"ABL":{"caption":"Dequeue","code":{"fn":"function(instance,properties,context){instance.data.fn_dequeue()}"}},"ABM":{"caption":"ClearQueue","code":{"fn":"function(instance,properties,context){instance.data.fn_clearqueue()}"}}},"code":{"initialize":{"fn":"function(instance,context){}"},"update":{"fn":"function(instance,properties,context){var fnNameSuffix=properties.fn_name_suffix,trigger_event=properties.trigger_event,publish_value=properties.publish_value,value_is_list=properties.value_is_list,queueActive=properties.queue,multipleoutputs=properties.multipleoutputs,fnName;(instance.data.queue=[],instance.data.fn_clearvalues=function(){publish_value&&(instance.publishState(\"value_list\",[]),instance.publishState(\"value\",null),instance.publishState(\"output1\",null),instance.publishState(\"output2\",null),instance.publishState(\"output3\",null),instance.publishState(\"output4\",null),instance.publishState(\"outputlist1\",[]),instance.publishState(\"outputlist2\",[]),instance.publishState(\"outputlist3\",[]),instance.publishState(\"outputlist4\",[]))},instance.data.fn_publish=function(value){publish_value&&(multipleoutputs?(instance.publishState(\"value\",value?.value),instance.publishState(\"value_list\",value?.value_list),instance.publishState(\"output1\",value?.output1),instance.publishState(\"output2\",value?.output2),instance.publishState(\"output3\",value?.output3),instance.publishState(\"output4\",value?.output4),instance.publishState(\"outputlist1\",value?.outputlist1),instance.publishState(\"outputlist2\",value?.outputlist2),instance.publishState(\"outputlist3\",value?.outputlist3),instance.publishState(\"outputlist4\",value?.outputlist4)):value_is_list?instance.publishState(\"value_list\",value):instance.publishState(\"value\",value))},fnNameSuffix)&&(window[\"bubble_fn_\"+fnNameSuffix]=function(value){queueActive&&0!=instance.data.queue.length||publish_value&&instance.data.fn_publish(value),queueActive&&(publish_value?instance.data.queue.push(value):instance.data.queue.push(null)),trigger_event&&instance.data.queue.length<2&&instance.triggerEvent(\"event\")});instance.data.fn_dequeue=function(){if(instance.data.queue.shift(),queueActive&&instance.data.queue.length>0){if(publish_value){var value=instance.data.queue[0];instance.data.fn_publish(value)}trigger_event&&instance.triggerEvent(\"event\")}queueActive&&0==instance.data.queue.length&&publish_value&&instance.data.fn_clearvalues()},instance.data.fn_clearqueue=function(){instance.data.queue=[],queueActive&&instance.data.fn_clearvalues()}}"},"preview":{"fn":"function(instance, properties) {\n  var div = document.createElement(\"div\");\n  div.style.overflow = \"hidden\";\n  div.style.width = \"100%\";\n  div.style.height = \"100%\";\n  div.style[\"font-style\"] = \"italic\";\n  div.style[\"text-wrap\"] = \"nowrap\";\n  div.style[\"font-size\"] = \"\" + Math.floor(properties.bubble.height() * 0.75
123) + \"px\";\n  div.textContent = \"JS2Bubble\";\n  instance.canvas.append(div);\n}"}},"platform_type":"web"},"AAY":{"display":"List Item Expression","property_applications":{"resizable":true},"add_is_visible":true,"fields":{"AAZ":{"caption":"Source item type","name":"sourcetype","editor":"custom_type","rank":2},"AAa":{"caption":"Data source (list)","name":"sourcelist","editor":"DynamicValue","optional":true,"value":"custom_data_AAZ","is_list":true,"rank":3},"AAb":{"caption":"Item expression","name":"itemexpression","editor":"DynamicValue","value":"text","default_val":"","rank":5,"optional":true},"AAc":{"caption":"Result type","name":"resultlisttype","editor":"custom_type","rank":6},"AAl":{"caption":"Lookup values with value() or field(\"field_name\") or field(\"other_data_type\", \"field_name\"). Alternatively, use chained functions item() and lookup() ...  item().lookup(\"Product\").lookup(\"Name\")","name":"infoexpression","rank":4,"editor":"Label"},"ABY":{"caption":"List Item Expression. Evaluates for each list item to make a new list.","name":"doctitle","rank":0,"editor":"Label"},"ABZ":{"caption":"Docs at toolboxdocs.netlify.app","name":"doclink","rank":1,"editor":"Label"}},"states":{"AAd":{"caption":"list","name":"resultlist","value":"custom_data_AAc","is_list":true,"initialization_code":{"fn":"function(properties,context){}"}}},"actions":{"AAe":{"caption":"Set data source","code":{"fn":"function(instance,properties,context){var _objvars={result:[],len:0};if(properties.sourcelist&&properties.sourcelist.length&&(_objvars.len=properties.sourcelist.length()),_objvars.len>0)for(_objvars.i=0;_objvars.i<_objvars.len;_objvars.i++)if(_objvars.listRetrieved=properties.sourcelist.get(_objvars.i,1),instance.data.item=_objvars.listRetrieved[0],void 0!==typeof instance.data.item)try{_objvars.result.push(window.toolboxEval({value:instance.data.value,field:instance.data.field,item:instance.data.createItem,lookup:instance.data.lookup,expression:instance.data.itemexpression}))}catch(err){throw\"not ready\"!==err.message&&console.error(err),err}instance.publishState(\"resultlist\",_objvars.result)}"},"fields":{"AAf":{"caption":"Data source (list)","name":"sourcelist","editor":"DynamicValue","value":"custom_data_element_AAZ","is_list":true,"optional":true,"rank":0}}}},"code":{"initialize":{"fn":"function(instance,context){instance.data.value=function(){return void 0===typeof instance.data.item||null==instance.data.item||instance.data.item.listProperties?null:instance.data.item},instance.data.field=function(){if(instance.data.item&&instance.data.item.listProperties){for(var myfield=instance.data.item,fieldType=instance.data.sourcetype,i=0;i<arguments.length;i++){var codeField=arguments[i],fieldUserType=fieldType.replace(\"custom.\",\"\");app.user_types[fieldUserType];var kfs=app.user_types[fieldUserType][\"%f3\"];if(Object.keys(kfs).forEach((function(kf){kfs[kf][\"%d\"]==codeField&&(codeField=kf,fieldType=kfs[kf][\"%v\"])})),null===myfield)break;myfield=myfield.get(codeField)}return myfield}return null},instance.data.createItem=function(pBubbleItem,pFieldType){return{fieldType:pFieldType||instance.data.sourcetype,bubbleItem:pBubbleItem||instance.data.item,lookup:function(codeField){return instance.data.lookup(this,codeField)}}},instance.data.lookup=function(specialItem,codeField){if(\"object\"!=typeof specialItem||!(\"fieldType\"in specialItem)||!(\"bubbleItem\"in specialItem))return console.error(\"List Item Expression - lookup() cannot retrieve from a non-item.\"),null;var thisItem=specialItem.bubbleItem,fieldType=specialItem.fieldType;if(\"object\"!=typeof thisItem||!(\"listProperties\"in thisItem)||!(\"get\"in thisItem))return console.error(\"List Item Expression - lookup() cannot retrieve from a non-item.\"),null;var fieldUserType=fieldType.replace(\"custom.\",\"\");app.user_types[fieldUserType];var kfs=app.user_types[fieldUserType][\"%f3\"],newfieldType=null;Object.keys(kfs).forEach((function(kf){kfs[kf][\"%d\"]==codeField&&(codeField=kf,newfieldType=kfs[kf][\"%v\"])}));var result=thisItem.get(codeField),newItem;if(result&&\"object\"==typeof result&&\"length\"in result&&\"get\"in result){newresult=[],newfieldType=newfieldType.replace(\"list.\",\"\");for(var ilookup=0;ilookup<result.length();ilookup++){var newobject=result.get(ilookup,1)[0];if(\"object\"==typeof newobject&&\"listProperties\"in newobject&&\"get\"in newobject){var newItem=instance.data.createItem(newobject,newfieldType);newresult.push(newItem)}else newresult.push(newobject)}return newresult}return result&&\"object\"==typeof result&&\"listProperties\"in result&&\"get\"in result?newItem=instance.data.createItem(result,newfieldType):result}}"},"update":{"fn":"function(instance,properties,context){var _objvars={};if(instance.data.sourcetype=properties.sourcetype,instance.data.itemexpression=properties.itemexpression,_objvars.result=[],_objvars.len=0,properties.sourcelist&&properties.sourcelist.length&&(_objvars.len=properties.sourcelist.length()),_objvars.len>0)for(_objvars.i=0;_objvars.i<_objvars.len;_objvars.i++)if(_objvars.listRetrieved=properties.sourcelist.get(_objvars.i,1),instance.data.item=_objvars.listRetrieved[0],void 0!==typeof instance.data.item)try{_objvars.result.push(window.toolboxEval({value:instance.data.value,field:instance.data.field,item:instance.data.createItem,lookup:instance.data.lookup,expression:instance.data.itemexpression}))}catch(err){throw\"not ready\"!==err.message&&console.error(err),err}instance.publishState(\"resultlist\",_objvars.result)}"},"preview":{"fn":"function(instance, properties) {\n  var div = document.createElement(\"div\");\n  div.style.overflow = \"hidden\";\n  div.style.width = \"100%\";\n  div.style.height = \"100%\";\n  div.style[\"font-style\"] = \"italic\";\n  div.style[\"text-wrap\"] = \"nowrap\";\n  div.style[\"font-size\"] = \"\" + Math.floor(properties.bubble.height() * 0.75
123) + \"px\";\n  div.textContent = \"List Item Expression\";\n  instance.canvas.append(div);\n}"}},"platform_type":"web"}},"plugin_actions":{"AAg":{"display":"Run javascript","type":"client_side","fields":{"AAh":{"caption":"Script","name":"script","editor":"DynamicValue","value":"text","rank":2},"AAi":{"caption":"Asynchronous","name":"async","editor":"Checkbox","default_val":true,"rank":3},"ABB":{"caption":"param1","name":"param1","rank":4,"editor":"DynamicValue","value":"_any_thing","optional":true},"ABC":{"caption":"param2","name":"param2","rank":5,"editor":"DynamicValue","value":"_any_thing","optional":true},"ABD":{"caption":"param3","name":"param3","rank":6,"editor":"DynamicValue","value":"_any_thing","optional":true},"ABE":{"caption":"param4","name":"param4","rank":7,"editor":"DynamicValue","value":"_any_thing","optional":true},"ABF":{"caption":"param5","name":"param5","rank":8,"editor":"DynamicValue","value":"_any_thing","optional":true},"ABG":{"caption":"paramlist1","name":"paramlist1","rank":9,"editor":"DynamicValue","value":"_any_thing","is_list":true,"optional":true},"ABH":{"caption":"paramlist2","name":"paramlist2","rank":10,"editor":"DynamicValue","value":"_any_thing","is_list":true,"optional":true},"ABI":{"caption":"paramlist3","name":"paramlist3","rank":11,"editor":"DynamicValue","value":"_any_thing","is_list":true,"optional":true},"ABJ":{"caption":"paramlist4","name":"paramlist4","rank":12,"editor":"DynamicValue","value":"_any_thing","is_list":true,"optional":true},"ABK":{"caption":"paramlist5","name":"paramlist5","rank":13,"editor":"DynamicValue","value":"_any_thing","is_list":true,"optional":true},"ABQ":{"caption":"Run Javascript.","name":"doctitle","rank":0,"editor":"Label"},"ABR":{"caption":"Docs at toolboxdocs.netlify.app","name":"doclink","rank":1,"editor":"Label"}},"code":{"client":{"fn":"function(properties,context){var script=properties.script,async=properties.async,_p1=properties.param1,_p2=properties.param2,_p3=properties.param3,_p4=properties.param4,_p5=properties.param5,_pl1=properties.paramlist1,_pl2=properties.paramlist2,_pl3=properties.paramlist3,_pl4=properties.paramlist4,_pl5=properties.paramlist5;eval(\"var properties = arguments[0]; context = arguments[1];\"),async?setTimeout((function(){eval(script)}),1):eval(script)}"}}},"AAn":{"display":"Server script","type":"server_side","return_value":{"AAz":{"caption":"result","name":"result","rank":0,"value":"custom_data_AAp"},"ABA":{"caption":"result list","name":"resultlist","rank":1,"is_list":true,"value":"custom_data_AAp"},"ABg":{"caption":"output1","name":"output1","rank":2,"value":"custom_data_ABf"},"ABp":{"caption":"output2","name":"output2","rank":3,"value":"custom_data_ABh"},"ABq":{"caption":"output3","name":"output3","rank":4,"value":"custom_data_ABi"},"ABr":{"caption":"output4","name":"output4","rank":5,"value":"custom_data_ABj"},"ABs":{"caption":"outputlist1","name":"outputlist1","rank":6,"value":"custom_data_ABk","is_list":true},"ABt":{"caption":"outputlist2","name":"outputlist2","rank":7,"value":"custom_data_ABm","is_list":true},"ABu":{"caption":"outputlist3","name":"outputlist3","rank":8,"value":"custom_data_ABn","is_list":true},"ABv":{"caption":"outputlist4","name":"outputlist4","rank":9,"value":"custom_data_ABo","is_list":true}},"fields":{"AAo":{"caption":"Node script","name":"script","rank":2,"editor":"DynamicValue","value":"text","optional":true},"AAp":{"caption":"Return type","name":"returntype","rank":16,"editor":"custom_type","optional":true},"AAq":{"caption":"Returns a list","name":"returnslist","rank":17,"editor":"Checkbox","default_val":false},"AAr":{"caption":"Data","name":"data","rank":7,"editor":"DynamicValue","value":"text","optional":true},"AAs":{"caption":"Keys and values","name":"keyvalues","rank":8,"editor":"key_value_list","value":"text"},"AAt":{"caption":"Thing 1","name":"thing1","rank":9,"editor":"DynamicValue","value":"_any_thing","optional":true},"AAu":{"caption":"Thing 2","name":"thing2","rank":10,"editor":"DynamicValue","value":"_any_thing","optional":true},"AAv":{"caption":"Thing 3","name":"thing3","rank":11,"editor":"DynamicValue","optional":true,"value":"_any_thing"},"AAw":{"caption":"Thing list 1","name":"thinglist1","rank":12,"optional":true,"editor":"DynamicValue","is_list":true,"value":"_any_thing"},"AAx":{"caption":"Thing list 2","name":"thinglist2","rank":13,"editor":"DynamicValue","is_list":true,"optional":true,"value":"_any_thing"},"AAy":{"caption":"Thing list 3","name":"thinglist3","rank":14,"editor":"DynamicValue","optional":true,"is_list":true,"value":"_any_thing"},"ABO":{"caption":"Server Script. Runs a Node.js AWS Lambda instance.","name":"doctitle","rank":0,"editor":"Label"},"ABP":{"caption":"Docs at toolboxdocs.netlify.app","name":"doclink","rank":1,"editor":"Label"},"ABa":{"caption":"Script is async function","name":"scriptasfn","rank":3,"editor":"Checkbox","default_val":false},"ABb":{"caption":"Ignore errors","name":"ignore_error","rank":4,"editor":"Checkbox","default_val":false},"ABc":{"caption":"Multiple Outputs","name":"multipleoutputs","rank":18,"editor":"Checkbox","default_val":false},"ABd":{"caption":"------------ Inputs ------------","name":"docin
123puts","rank":6,"editor":"Label"},"ABe":{"caption":"------------ Outputs -------------","name":"docoutputs","rank":15,"editor":"Label"},"ABf":{"caption":"output1 type","name":"output1type","rank":19,"editor":"custom_type","optional":true},"ABh":{"caption":"output2 type","name":"output2type","rank":20,"editor":"custom_type","optional":true},"ABi":{"caption":"output3 type","name":"output3type","rank":21,"editor":"custom_type","optional":true},"ABj":{"caption":"output4 type","name":"output4type","rank":22,"editor":"custom_type","optional":true},"ABk":{"caption":"outputlist1 type","name":"outputlist1type","rank":23,"editor":"custom_type","optional":true},"ABm":{"caption":"outputlist2 type","name":"outputlist2type","rank":24,"editor":"custom_type","optional":true},"ABn":{"caption":"outputlist3 type","name":"outputlist3type","rank":25,"editor":"custom_type","optional":true},"ABo":{"caption":"outputlist4 type","name":"outputlist4type","rank":26,"editor":"custom_type","optional":true},"ABw":{"caption":"Log errors","name":"log_error","rank":5,"editor":"Checkbox","default_val":false}}}}};
124window._bubble_page_load_data.plugins_size['1488796042609x768734193128308700'] = 22168;
125window.preloaded['plugin/third_party:1488796042609x768734193128308700:2.1.3'] = true;
126window.plugins["1515787032525x876315403042684900"] = {"human":"AirAlert","dependencies":{"use_jquery":true},"shared_keys":{"ACS":{"caption":"BgColor - Success","type":"client_safe"},"ACT":{"caption":"BgColor - Info","type":"client_safe"},"ACU":{"caption":"BgColor - Warning","type":"client_safe"},"ACV":{"caption":"BgColor - Error","type":"client_safe"},"ACW":{"caption":"TextColor - Success","type":"client_safe"},"ACX":{"caption":"TextColor - Info","type":"client_safe"},"ACY":{"caption":"TextColor - Warning","type":"client_safe"},"ACZ":{"caption":"TextColor - Error","type":"client_safe"},"ACa":{"caption":"Default Duration","type":"client_safe"}},"plugin_actions":{"ABu":{"display":"AirAlert - Custom","type":"client_side","fields":{"ABv":{"caption":"Heading","name":"heading","editor":"DynamicValue","rank":1,"value":"text","default_val":"Title"},"ABw":{"caption":"Message","name":"text","editor":"DynamicValue","rank":2,"value":"text","default_val":"Content goes here..."},"ABx":{"caption":"Show close button","name":"closeButton","editor":"Checkbox","rank":5,"default_val":true},"ABy":{"caption":"Position on page","name":"position","editor":"Dropdown","rank":6,"default_val":"Top Right"},"ABz":{"caption":"Hide after (ms)","name":"hideAfter","editor":"DynamicValue","rank":7,"value":"number","default_val":5000},"ACC":{"caption":"Display progress bar","name":"progressBar","editor":"Checkbox","rank":11,"default_val":false},"ACL":{"caption":"Icon to display","name":"icon","editor":"Dropdown","rank":3,"default_val":"None"},"ACM":{"caption":"Animation","name":"animation","editor":"Dropdown","rank":4,"default_val":"Plain"},"ACN":{"caption":"Max notifications at once","name":"maxNumber","editor":"StaticNumber","rank":12,"value":"number","default_val":5},"ACO":{"caption":"Progress bar color","name":"progressBarColor","editor":"DynamicValue","rank":10,"value":"text","default_val":"#9EC600"},"ACP":{"caption":"Text alignment","name":"textAlign","editor":"Dropdown","rank":13,"default_val":"Left"},"ACQ":{"caption":"Background color","name":"bgColor","editor":"DynamicValue","rank":8,"value":"text","default_val":"#FF1356"},"ACR":{"caption":"Text color","name":"textColor","editor":"DynamicValue","rank":9,"value":"text","default_val":"#FFFFFF"},"ACg":{"caption":"The Heading and Message fields will also accept valid HTML styling","name":"heading_and_message_also_accept_html_styling","editor":"Label","rank":0},"ACj":{"caption":"XSS Protection","name":"xss_protection","rank":14,"editor":"DynamicValue","value":"boolean","default_val":true}},"code":{"client":{"fn":"function(properties, context) {\n  \n  var positionMapping = {\n    \"Top Right\":\"top-right\",\n    \"Bottom Right\":\"bottom-right\",\n    \"Bottom Left\":\"bottom-left\",\n    \"Top Left\":\"top-left\",\n    \"Top Center\":\"top-center\",\n    \"Bottom Center\":\"bottom-center\"\n    };\n  var animationMapping = {\n    \"Fade\":\"fade\",\n    \"Slide\":\"slide\",\n    \"Plain\":\"plain\",\n  };\n  var iconMapping = {\n    \"Warning\":\"warning\",\n    \"Success\":\"success\",\n    \"Error\":\"error\",\n    \"Information\":\"info\"\n  };\n  var textAlignMapping = {\n    \"Left\":\"left\",\n    \"Center\":\"center\",\n    \"Right\":\"right\",\n  };\n  var settings = {};\n    \n  /*if (properties.xss_protection &&  typeof filterXSS === \"undefined\")\n      $.getScript(\"https://d2tf8y1b8kxrzw.cloudfront.net/serve_files/xss/xss.min.js\").then(() =>
126 {\n          showAlert();\n      });\n  else*/\n    showAlert();\n    \n    function showAlert() {\n  \n        if (properties.xss_protection) {\n          addToSettings('heading',filterXSS(properties.heading));\n          addToSettings('text',filterXSS(properties.text));\n        }\n        else \n          addToSettings('heading',properties.heading);\n          addToSettings('text',properties.text);\n      addToSettings('icon',iconMapping[properties.icon]);\n      addToSettings('showHideTransition',animationMapping[properties.animation]);\n      addToSettings('allowToastClose',properties.closeButton);\n      addToSettings('position',positionMapping[properties.position]);\n      addToSettings('hideAfter',properties.hideAfter);\n      addToSettings('stack',properties.maxNumber);\n      addToSettings('loader',properties.progressBar);\n      addToSettings('loaderBg',properties.progressBarColor);\n      addToSettings('textAlign',textAlignMapping[properties.textAlign]);\n      addToSettings('bgColor',properties.bgColor);\n      addToSettings('textColor',properties.textColor);\n\n\n      $(document).ready($.toast(settings));\n        \n    }\n  \n  function addToSettings(keyname,value) {\n    if ((value!==undefined)&&(value!==null)) settings[keyname] = value;\n  }\n  \n}"}}},"ACb":{"display":"AirAlert - Standard","type":"client_side","fields":{"ACc":{"caption":"Notification type","name":"type","editor":"Dropdown","rank":3,"default_val":"Success"},"ACd":{"caption":"Heading","name":"heading","editor":"DynamicValue","rank":1,"value":"text","default_val":"Title"},"ACe":{"caption":"Message","name":"text","editor":"DynamicValue","rank":2,"value":"text","default_val":"Content goes here..."},"ACh":{"caption":"The Heading and Message fields will also accept valid HTML styling","name":"heading_and_message_also_accept_html_styling","editor":"Label","rank":0},"ACi":{"caption":"XSS Protection","name":"xss_protection","rank":5,"editor":"DynamicValue","value":"boolean","default_val":true},"ACk":{"caption":"Position on page","name":"position","rank":4,"editor":"Dropdown","default_val":"Top Right"}},"code":{"client":{"fn":"function(properties, context) {\n  \n  //console.log(properties.type);\n  var genericDefaults = {\n    showHideTransition: 'plain',\n    allowToastClose: true,\n    position: 'top-right',\n    stack: 5,\n    loader: false,\n    textAlign: 'left'\n  }\n  \n  var themeDefaults = {\n    Success: {\n      bgColor: context.keys['BgColor - Success'] || '#E7FBEF',\n      textColor: context.keys['TextColor - Success'] || '#38ab69',\n      hideAfter: Number(context.keys['Default Duration']) || 5000\n    },\n    Information: {\n      bgColor: context.keys['BgColor - Info'] || '#ebeced' ,\n      textColor: context.keys['TextColor - Info'] || '#333333',\n      hideAfter: Number(context.keys['Default Duration']) || 5000\n    },\n    Warning: {\n      bgColor: context.keys['BgColor - Warning'] || '#FEF6E6',\n      textColor: context.keys['TextColor - Warning'] || '#e89320',\n      hideAfter: Number(context.keys['Default Duration']) || 5000\n    },\n    Error: {\n      bgColor: context.keys['BgColor - Error'] || '#FBECEC',\n      textColor: context.keys['TextColor - Error'] || '#E9403F',\n      hideAfter: Number(context.keys['Default Duration']) || 5000\n    }\n  }\n  \n  //console.log(themeDefaults[properties.type]);\n  \n  var positionMapping = {\n    \"Top Right\":\"top-right\",\n    \"Bottom Right\":\"bottom-right\",\n    \"Bottom Left\":\"bottom-left\",\n    \"Top Left\":\"top-left\",\n    \"Top Center\":\"top-center\",\n    \"Bottom Center\":\"bottom-center\"\n    };\n  var animationMapping = {\n    \"Fade\":\"fade\",\n    \"Slide\":\"slide\",\n    \"Plain\":\"plain\",\n  };\n  var iconMapping = {\n    \"Warning\":\"warning\",\n    \"Success\":\"success\",\n    \"Error\":\"error\",\n    \"Information\":\"info\"\n  };\n  var textAlignMapping = {\n    \"Left\":\"left\",\n    \"Center\":\"center\",\n    \"Right\":\"right\",\n  };\n  \n  var settings = $.extend({},genericDefaults,themeDefaults[properties.type]);\n    \n  /*if (properties.xss_protection && typeof filterXSS === \"undefined\")\n      $.getScript(\"https://d2tf8y1b8kxrzw.cloudfront.net/serve_files/xss/xss.min.js\").then(() =>
126 {\n          showAlert();\n      });\n  else*/\n    showAlert();\n  \n  function showAlert() {\n      \n      // Set the position of the alert\n      addToSettings('position',positionMapping[properties.position]);\n      \n      //console.log(settings);\n      if ((properties.heading!==undefined)&&(properties.heading!==null)) {\n          if (properties.xss_protection)\n            addToSettings('heading',\"<div style='padding: 6px 6px 0px';><style>h2{ font-family: 'Inter', sans-serif; !important };</style><b><h2 style='font-size:16px'>\" + filterXSS(properties.heading) + \"</h2></b></div>\");\n          else\n            addToSettings('heading',\"<div style='padding: 6px 6px 0px';><style>h2{ font-family: 'Inter', sans-serif; !important };</style><b><h2 style='font-size:16px'>\" + properties.heading + \"</h2></b></div>\");\n      }\n      if ((properties.text!==undefined)&&(properties.text!==null)) {\n          if (properties.xss_protection)\n            addToSettings('text',\"<div style='padding: 0px 6px 6px';><style>p{ font-family: 'Inter', sans-serif; font-weight: 500; line-height:20px}</style><p style='font-size:14px';>\" + filterXSS(properties.text) + \"</p></div>\");\n          else\n            addToSettings('text',\"<div style='padding: 0px 6px 6px';><style>p{ font-family: 'Inter', sans-serif; font-weight: 500; line-height:20px}</style><p style='font-size:14px';>\" + properties.text + \"</p></div>\");\n      }\n    //  addToSettings('icon',iconMapping[properties.type]);\n\n      $(document).ready($.toast(settings));\n      \n  }\n  \n  function addToSettings(keyname,value) {\n    if ((value!==undefined)&&(value!==null)) settings[keyname] = value;\n  }\n  \n}"}}},"ACf":{"display":"AirAlert - Clear all","type":"client_side","code":{"client":{"fn":"function(properties, context) {\n\n\n  //Load any data \n  $.toast().reset('all');\n\n\n\n  //Do the operation\n\n\n\n}"}}}}};
127window._bubble_page_load_data.plugins_size['1515787032525x876315403042684900'] = 9548;
128window.preloaded['plugin/third_party:1515787032525x876315403042684900:2.1.0'] = true;
129window.plugins["1560987821766x453407966633394200"] = {"human":"Missing plugin","dependencies":{"use_jquery":true},"plugin_elements":{"AAC":{"display":"Scrollbar","property_applications":{"resizable":true},"add_is_visible":true,"fields":{"AAD":{"caption":"Element ID","name":"id","rank":0,"editor":"DynamicValue","value":"text","optional":false},"AAE":{"caption":"Scrollbar width (px)","name":"width","rank":1,"editor":"DynamicValue","value":"text","default_val":"5"},"AAF":{"caption":"Background Color","name":"bgcolor","rank":2,"editor":"Color","value":"text","optional":false,"default_val":"rgba(230, 230, 230, 1)"},"AAG":{"caption":"Track Radius (px)","name":"trackradius","rank":3,"editor":"DynamicValue","value":"text","default_val":"10"},"AAH":{"caption":"Handle Hover Color","name":"handlehoverbg","rank":6,"editor":"Color","value":"text","default_val":"rgba(199, 199, 199, 1)"},"AAI":{"caption":"Handle Color","name":"handlecolor","rank":4,"editor":"Color","value":"text","optional":false,"default_val":"rgba(109, 160, 219, 1)"},"AAJ":{"caption":"Handle Radius (px)","name":"handleradius","rank":5,"editor":"DynamicValue","value":"text","default_val":"10"}},"code":{"preview":{"fn":""},"initialize":{"fn":"function(instance, context) {\n\n\n\n}"},"update":{"fn":"function(b,a,c){b='<style id=\"scrollbar\">\\n/* width */\\n#'+a.id+\"::-webkit-scrollbar {\\n    width: \"+a.width+\"px;\\n}\\n\\n/* Track */\\n#\"+a.id+\"::-webkit-scrollbar-track {\\n    background: \"+a.bgcolor+\";\\n    box-shadow: inset 0 0 5px #e6e6e6; \\n    border-radius: \"+a.trackradius+\"px;\\n}\\n \\n/* Handle */\\n#\"+a.id+\"::-webkit-scrollbar-thumb {\\n    background: \"+a.handlecolor+\";\\n    border-radius: \"+a.handleradius+\"px;\\n}\\n\\n/* Handle on hover */\\n#\"+a.id+\"::-webkit-scrollbar-thumb:hover {\\n    background: \"+\na.handlehoverbg+\";\\n}\\n</style>\";$(\"head\").append(b)};"},"reset":{"fn":"function(instance, context) {\n\n\n\n}"}},"platform_type":"web"}}};
130window._bubble_page_load_data.plugins_size['1560987821766x453407966633394200'] = 1916;
131window.preloaded['plugin/third_party:1560987821766x453407966633394200:1.0.0'] = true;
132window.plugins["1562697922620x934462587697889300"] = {"human":"Leafy Maps","dependencies":{"use_jquery":true,"plugin_api_version":"4"},"plugin_api":{"auth":"none","calls":{"ABo":{"body_type":"json","get_headers":true,"initialized":true,"method":"get","name":"Get route","publish_as":"data","ret_value":"api.1562697922620x934462587697889300.plugin_api.ABo","should_reinitialize":false,"types":"{\"plugin_api.ABo\":{\"caption\":\"Get route\",\"fields\":{\"_p_body.trip.language\":{\"ret_btype\":\"text\",\"caption\":\"body trip language\",\"sample_value\":\"\",\"path\":[\"body\",\"trip\",\"language\"],\"ret_value\":\"text\"},\"_p_body.trip.status\":{\"ret_btype\":\"text\",\"caption\":\"body trip status\",\"sample_value\":\"\",\"path\":[\"body\",\"trip\",\"status\"],\"ret_value\":\"text\"},\"_p_body.trip.units\":{\"ret_btype\":\"text\",\"caption\":\"body trip units\",\"sample_value\":\"\",\"path\":[\"body\",\"trip\",\"units\"],\"ret_value\":\"text\"}
132,\"_p_body.trip.status_message\":{\"ret_btype\":\"text\",\"caption\":\"body trip status_message\",\"sample_value\":\"\",\"path\":[\"body\",\"trip\",\"status_message\"],\"ret_value\":\"text\"},\"_p_body.trip.legs\":{\"ret_btype\":\"list.api.1562697922620x934462587697889300.plugin_api.ABo.body.trip.legs\",\"caption\":\"body trip legs\",\"path\":[\"body\",\"trip\",\"legs\"],\"ret_value\":\"list.api.1562697922620x934462587697889300.plugin_api.ABo.body.trip.legs\"},\"_p_body.trip.summary.max_lon\":{\"ret_btype\":\"text\",\"caption\":\"body trip summary max_lon\",\"sample_value\":\"\",\"path\":[\"body\",\"trip\",\"summary\",\"max_lon\"],\"ret_value\":\"text\"},\"_p_body.trip.summary.max_lat\":{\"ret_btype\":\"text\",\"caption\":\"body trip summary max_lat\",\"sample_value\":\"\",\"path\":[\"body\",\"trip\",\"summary\",\"max_lat\"],\"ret_value\":\"text\"},\"_p_body.trip.summary.time\":{\"ret_btype\":\"text\",\"caption\":\"body trip summary time\",\"sample_value\":\"\",\"path\":[\"body\",\"trip\",\"summary\",\"time\"],\"ret_value\":\"text\"},\"_p_body.trip.summary.length\":{\"ret_btype\":\"text\",\"caption\":\"body trip summary length\",\"sample_value\":\"\",\"path\":[\"body\",\"trip\",\"summary\",\"length\"],\"ret_value\":\"text\"},\"_p_body.trip.summary.min_lat\":{\"ret_btype\":\"text\",\"caption\":\"body trip summary min_lat\",\"sample_value\":\"\",\"path\":[\"body\",\"trip\",\"summary\",\"min_lat\"],\"ret_value\":\"text\"},\"_p_body.trip.summary.min_lon\":{\"ret_btype\":\"text\",\"caption\":\"body trip summary min_lon\",\"sample_value\":\"\",\"path\":[\"body\",\"trip\",\"summary\",\"min_lon\"],\"ret_value\":\"text\"},\"_p_body.trip.locations\":{\"ret_btype\":\"list.api.1562697922620x934462587697889300.plugin_api.ABo.body.trip.locations\",\"caption\":\"body trip locations\",\"path\":[\"body\",\"trip\",\"locations\"],\"ret_value\":\"list.api.1562697922620x934462587697889300.plugin_api.ABo.body.trip.locations\"}}},\"plugin_api.ABo.body.trip.legs\":{\"caption\":\"Get route body trip leg\",\"fields\":{\"_p_shape\":{\"ret_btype\":\"text\",\"caption\":\"shape\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_summary.max_lon\":{\"ret_btype\":\"text\",\"caption\":\"summary max_lon\",\"sample_value\":\"\",\"path\":[\"summary\",\"max_lon\"],\"ret_value\":\"text\"},\"_p_summary.max_lat\":{\"ret_btype\":\"text\",\"caption\":\"summary max_lat\",\"sample_value\":\"\",\"path\":[\"summary\",\"max_lat\"],\"ret_value\":\"text\"},\"_p_summary.time\":{\"ret_btype\":\"text\",\"caption\":\"summary time\",\"sample_value\":\"\",\"path\":[\"summary\",\"time\"],\"ret_value\":\"text\"},\"_p_summary.length\":{\"ret_btype\":\"text\",\"caption\":\"summary length\",\"sample_value\":\"\",\"path\":[\"summary\",\"length\"],\"ret_value\":\"text\"},\"_p_summary.min_lat\":{\"ret_btype\":\"text\",\"caption\":\"summary min_lat\",\"sample_value\":\"\",\"path\":[\"summary\",\"min_lat\"],\"ret_value\":\"text\"},\"_p_summary.min_lon\":{\"ret_btype\":\"text\",\"caption\":\"summary min_lon\",\"sample_value\":\"\",\"path\":[\"summary\",\"min_lon\"],\"ret_value\":\"text\"},\"_p_maneuvers\":{\"ret_btype\":\"list.api.1562697922620x934462587697889300.plugin_api.ABo.maneuvers\",\"caption\":\"maneuvers\",\"ret_value\":\"list.api.1562697922620x934462587697889300.plugin_api.ABo.maneuvers\"}}},\"plugin_api.ABo.maneuvers\":{\"caption\":\"Get route maneuver\",\"fields\":{\"_p_travel_mode\":{\"ret_btype\":\"text\",\"caption\":\"travel_mode\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_begin_shape_index\":{\"ret_btype\":\"text\",\"caption\":\"begin_shape_index\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_length\":{\"ret_btype\":\"text\",\"caption\":\"length\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_time\":{\"ret_btype\":\"date\",\"caption\":\"time\",\"sample_value\":\"\",\"ret_value\":\"date\"},\"_p_type\":{\"ret_btype\":\"text\",\"caption\":\"type\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_end_shape_index\":{\"ret_btype\":\"text\",\"caption\":\"end_shape_index\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_instruction\":{\"ret_btype\":\"text\",\"caption\":\"instruction\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_verbal_pre_transition_instruction\":{\"ret_btype\":\"text\",\"caption\":\"verbal_pre_transition_instruction\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_travel_type\":{\"ret_btype\":\"text\",\"caption\":\"travel_type\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_street_names\":{\"ret_btype\":\"text\",\"caption\":\"street_names\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_verbal_multi_cue\":{\"ret_btype\":\"text\",\"caption\":\"verbal_multi_cue\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_verbal_transition_alert_instruction\":{\"ret_btype\":\"text\",\"caption\":\"verbal_transition_alert_instruction\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_verbal_post_transition_instruction\":{\"ret_btype\":\"text\",\"caption\":\"verbal_post_transition_instruction\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_roundabout_exit_count\":{\"ret_btype\":\"text\",\"caption\":\"roundabout_exit_count\",\"sample_value\":\"\",\"ret_value\":\"text\"}}},\"plugin_api.ABo.body.trip.locations\":{\"caption\":\"Get route body trip location\",\"fields\":{\"_p_original_index\":{\"ret_btype\":\"text\",\"caption\":\"original_index\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_lon\":{\"ret_btype\":\"text\",\"caption\":\"lon\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_lat\":{\"ret_btype\":\"text\",\"caption\":\"lat\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_type\":{\"ret_btype\":\"text\",\"caption\":\"type\",\"sample_value\":\"\",\"ret_value\":\"text\"},\"_p_side_of_street\":{\"ret_btype\":\"text\",\"caption\":\"side_of_street\",\"sample_value\":\"\",\"ret_value\":\"text\"}}}}","url":"https://route.stadiamaps.com/route?json=[JSON]&api_key=[key]","url_params":{"ABt":{"doc":"Get this from the \"Create Stadia route request\" workfow action, in the state 'Leafy Map X's Stadia route request body\".","key":"JSON","private":true,"value":"{\"locations\":[{\"lat\":44.795067008186464,\"lon\":20.450711572458427,\"type\":\"break\"},{\"lat\":45.260417950236665,\"lon\":19.823526366684796,\"type\":\"break\"}],\"costing\":\"auto\",\"directions_options\":{\"units\":\"kilometers\"}}"},"ABu":{"doc":"Your Stadia API key. Grab from their main dashboard.","key":"key","private":true,"visibility":"secret"}}}},"human":"Get route from Stadia","token_param_name":"api_key"},"shared_keys":{"AAp":{"caption":"Mapbox access token","type":"client_safe"},"ACU":{"caption":"Openweathermap API key","type":"client_safe"},"AEn":{"caption":"Here access token","type":"client_safe"},"AJl":{"caption":"Maptiler access token","type":"client_safe"},"AKV":{"caption":"Here API access key","type":"secure"}
132,"AKW":{"caption":"Here API secret key","type":"secure"},"ANq":{"caption":"ESRI key","type":"secure"}},"plugin_elements":{"AAC":{"display":"Leafy map","property_applications":{"Border":true,"BoxShadow":true,"MinWidth":true,"resizable":true},"add_is_visible":true,"states":{"ACP":{"caption":"Stadia route request body","initialization_code":{"fn":"function(properties,context){}"},"name":"stadia_route_request_body","value":"text"},"ACf":{"caption":"Is the point contained in the rectangle?","initialization_code":{"fn":"function(properties,context){}"},"name":"point_is_contained","value":"boolean"},"ACr":{"caption":"User's latitude","initialization_code":{"fn":"function(properties,context){}"},"name":"user_latitude","value":"number"},"ACs":{"caption":"User's longitude","initialization_code":{"fn":"function(properties,context){}"},"name":"user_longitude","value":"number"},"ACt":{"caption":"Boundary northeast lat","initialization_code":{"fn":"function(properties,context){}"},"name":"user_bounds_northeast_latitude","value":"number"},"ACu":{"caption":"Boundary northeast lng","initialization_code":{"fn":"function(properties,context){}"},"name":"user_bounds_northeast_longitude","value":"number"},"ACv":{"caption":"Boundary southwest lat","initialization_code":{"fn":"function(properties,context){}"},"name":"user_bounds_southwest_latitude","value":"number"},"ACw":{"caption":"Boundary southwest lng","initialization_code":{"fn":"function(properties,context){}"},"name":"user_bounds_southwest_longitude","value":"number"},"ACx":{"caption":"Accuracy","initialization_code":{"fn":"function(properties,context){}"},"name":"accuracy","value":"number"},"ACy":{"caption":"Altitude","initialization_code":{"fn":"function(properties,context){}"},"name":"altitude","value":"number"},"ACz":{"caption":"Altitude accuracy","initialization_code":{"fn":"function(properties,context){}"},"name":"altitude_accuracy","value":"number"},"ADA":{"caption":"Heading","initialization_code":{"fn":"function(properties,context){}"},"name":"heading","value":"number"},"ADB":{"caption":"Speed","initialization_code":{"fn":"function(properties,context){}"},"name":"speed","value":"number"},"ADC":{"caption":"Timestamp","initialization_code":{"fn":"function(properties,context){}"},"name":"timestamp","value":"number"},"ADJ":{"caption":"Map center latitude","initialization_code":{"fn":"function(properties,context){}"},"name":"map_center_latitude","value":"number"},"ADK":{"caption":"Map center longitude","initialization_code":{"fn":"function(properties,context){}"},"name":"map_center_longitude","value":"number"},"ADL":{"caption":"Marker clicked id","initialization_code":{"fn":"function(properties,context){}"},"name":"marker_clicked_id","value":"text"},"ADR":{"caption":"Calculated distance","initialization_code":{"fn":"function(properties,context){}"},"name":"calculated_distance","value":"number"},"ADY":{"caption":"Speed (km/h)","initialization_code":{"fn":"function(properties,context){}"},"name":"speed_kph","value":"number"},"ADZ":{"caption":"Speed (mi/h)","initialization_code":{"fn":"function(properties,context){}"},"name":"speed_mph","value":"number"},"ADa":{"caption":"Is being tracked","initialization_code":{"fn":"function(properties,context){}"},"name":"is_being_tracked","value":"boolean"},"ADd":{"caption":"Polygons list","initialization_code":{"fn":"function(properties,context){}"},"is_list":false,"name":"polygons_list","value":"text"},"AEg":{"caption":"Marker clicked index","initialization_code":{"fn":"function(properties,context){}"},"name":"marker_clicked_index","value":"number"},"AGL":{"caption":"HERE suggestion","initialization_code":{"fn":"function(properties,context){}"},"is_list":true,"name":"here_suggestion_state","value":"text"},"AGM":{"caption":"HERE route latitude","initialization_code":{"fn":"function(properties,context){}"},"is_list":true,"name":"here_route_latitude","value":"number"},"AGN":{"caption":"HERE route longitude","initialization_code":{"fn":"function(properties,context){}"},"is_list":true,"name":"here_route_longitude","value":"number"},"AGO":{"caption":"HERE route origin address","initialization_code":{"fn":"function(properties,context){}"},"name":"here_route_origin_address","value":"text"},"AGP":{"caption":"HERE route destination address","initialization_code":{"fn":"function(properties,context){}"},"name":"here_route_destination_address","value":"text"},"AGQ":{"caption":"HERE route marker addresses","initialization_code":{"fn":"function(properties,context){}"},"is_list":true,"name":"here_route_marker_addresses","value":"text"}
132,"AGR":{"caption":"HERE route name","initialization_code":{"fn":"function(properties,context){}"},"name":"here_route_name","value":"text"},"AGS":{"caption":"HERE route distance","initialization_code":{"fn":"function(properties,context){}"},"name":"here_route_distance","value":"number"},"AGT":{"caption":"HERE route traffic time","initialization_code":{"fn":"function(properties,context){}"},"name":"here_route_traffic_time","value":"number"},"AGW":{"caption":"HERE route base time","initialization_code":{"fn":"function(properties,context){}"},"name":"here_route_base_time","value":"number"},"AGX":{"caption":"HERE route travel time","initialization_code":{"fn":"function(properties,context){}"},"name":"here_route_travel_time","value":"number"},"AGY":{"caption":"Here route restrictions","initialization_code":{"fn":"function(properties,context){}"},"is_list":true,"name":"here_route_restrictions","value":"text"},"AGa":{"caption":"HERE route color","initialization_code":{"fn":"function(properties,context){}"},"name":"here_route_color","value":"text"},"AGb":{"caption":"HERE route base color","initialization_code":{"fn":"function(properties,context){}"},"name":"here_route_base_color","value":"text"},"AGc":{"caption":"HERE route base latitude","initialization_code":{"fn":"function(properties,context){}"},"is_list":true,"name":"here_route_base_latitude","value":"number"},"AGd":{"caption":"HERE route base longitude","initialization_code":{"fn":"function(properties,context){}"},"is_list":true,"name":"here_route_base_longitude","value":"number"},"AGe":{"caption":"HERE route distance limit","initialization_code":{"fn":"function(properties,context){}"},"name":"here_route_distance_limit","value":"number"},"AHT":{"caption":"Marker hovered id","initialization_code":{"fn":"function(properties,context){}"},"name":"marker_hovered_id","value":"text"},"AHV":{"caption":"Marker hovered index","initialization_code":{"fn":"function(properties,context){}"},"name":"marker_hovered_index","value":"number"},"AHd":{"caption":"Marker unhovered id","initialization_code":{"fn":"function(properties,context){}"},"name":"marker_unhovered_id","value":"text"},"AHe":{"caption":"Marker unhovered index ","initialization_code":{"fn":"function(properties,context){}"},"name":"marker_unhovered_index","value":"number"},"AIx":{"caption":"Is the point contained in the polygon?","initialization_code":{"fn":"function(properties,context){}"},"name":"point_is_contained_polygon","value":"boolean"},"AJE":{"caption":"Clicked map coordinates Latitude","initialization_code":{"fn":"function(properties,context){}"},"name":"click_map_coordinates_latitude","value":"number"},"AJF":{"caption":"Clicked map coordinates longitude","initialization_code":{"fn":"function(properties,context){}"},"name":"click_map_coordinates_longitude","value":"number"},"AJY":{"caption":"Geocoded longitude from Mapbox","initialization_code":{"fn":"function(properties,context){}"},"name":"geocoded_longitude_mapbox","value":"number"},"AJZ":{"caption":"Geocoded latitude from Mapbox","initialization_code":{"fn":"function(properties,context){}"},"name":"geocoded_latitude_mapbox","value":"number"},"AJb":{"caption":"Geocoded full name from Mapbox","initialization_code":{"fn":"function(properties,context){}"},"name":"geocoded_full_name_mapbox","value":"text"},"AJc":{"caption":"Geocoded short name from Mapbox","initialization_code":{"fn":"function(properties,context){}"},"name":"geocoded_short_name_mapbox","value":"text"},"AJe":{"caption":"Which zone is the point contained in?","initialization_code":{"fn":"function(properties,context){}"},"is_list":false,"name":"which_zone_is_the_point_contained_in","value":"text"},"AKD":{"caption":"Is point inside circle radius","initialization_code":{"fn":"function(properties,context){}"},"name":"point_inside_circle","value":"boolean"},"ALF":{"caption":"Data from popup","name":"data_from_popup","value":"text","initialization_code":{"fn":"function(properties,context){}"}},"ALN":{"caption":"Cluster clicked marker IDs","name":"cluster_clicked_marker_ids","value":"text","initialization_code":{"fn":"function(properties,context){}"},"is_list":true},"ANx":{"caption":"Draw geometry clicked name","name":"geometry_clicked_name","value":"text","initialization_code":{"fn":"function(properties,context){}"}}},"events":{"ACo":{"caption":"Location found","name":"location_found"},"ADD":{"caption":"Location error","name":"location_error"},"ADQ":{"caption":"Marker clicked","name":"marker_clicked"},"AGH":{"caption":"HERE suggestion is published","name":"here_suggestion"},"AGI":{"caption":"HERE route was exported","name":"route_exported"},"AGJ":{"caption":"HERE route summary was published","name":"route_selected"},"AGK":{"caption":"HERE route limit was exceeded","name":"route_limit_exceeded"},"AGl":{"caption":"No route was found","name":"no_route_was_found"},"AHU":{"caption":"Marker hovered","name":"marker_hovered"},"AHf":{"caption":"Map clicked","name":"map_clicked"},"AHi":{"caption":"Marker unhovered","name":"marker_unhovered"},"AIy":{"caption":"Point location is inside area","name":"user_location_is_inside_area"},"AIz":{"caption":"Point location is outside area","name":"user_location_is_outside_area"},"AJa":{"caption":"Coordinates from address attained from Mapbox","name":"coordinates_from_address_attained_from_mapbox"},"AJv":{"caption":"Map center attained","name":"map_center_attained"},"AKE":{"caption":"Point inside circle radius checked","name":"point_inside_circle_radius_checked"},"ALG":{"caption":"Popup sent data to host page","name":"popup_sent_data_to_host_page"},"ALO":{"caption":"Cluster clicked","name":"cluster_clicked"}},"actions":{"AAI":{"caption":"Add marker on","fields":{"AAL":{"caption":"Latitude","editor":"DynamicValue","name":"latitude","rank":0,"value":"number"},"AAM":{"caption":"Longitude","editor":"DynamicValue","name":"longitude","rank":1,"value":"number"},"AAe":{"caption":"Popup text","editor":"DynamicValue","is_list":false,"name":"popup_text","optional":true,"rank":3,"value":"text"},"AAg":{"caption":"Use custom icon?","default_val":false,"editor":"Checkbox","name":"use_custom_icon","rank":5},"AAh":{"caption":"Custom icon","editor":"DynamicValue","name":"custom_icon_url","optional":true,"rank":6,"value":"image"},"ABK":{"caption":"Marker style","default_val":"Blue","editor":"Dropdown","name":"marker_style","rank":4},"ABN":{"caption":"Show popup on click?","default_val":false,"editor":"Checkbox","name":"popup_on_click","rank":2},"ACb":{"caption":"Unique name","editor":"DynamicValue","name":"marker_name","rank":7,"value":"text"},"AOC":{"caption":"Marker Width","name":"marker_width","rank":8,"editor":"DynamicValue","value":"number","default_val":64},"AOD":{"caption":"Marker Height","name":"marker_height","rank":9,"editor":"DynamicValue","value":"number","default_val":64}},"code":{"fn":"function(instance,properties,context){function _0x45d1(_0x1099ab,_0x3136b2){const _0x11a6ba=_0x11a6();return(_0x45d1=function(_0x45d11f,_0x5bd745){let _0x37cdad;return _0x11a6ba[_0x45d11f-=487]})(_0x1099ab,_0x3136b2)}function run(_0x5b1262,_0x19e55f,_0x643dc7){const _0x37b152=_0x45d1,_0x2c4936=_0x57aa4f=>{const _0x1e162b=_0x45d1;return\"Blue\"===_0x57aa4f?_0x1e162b(513):_0x57aa4f===_0x1e162b(496)?_0x1e162b(527):\"Green\"===_0x57aa4f?_0x1e162b(525):_0x57aa4f===_0x1e162b(491)?_0x1e162b(487):_0x57aa4f===_0x1e162b(515)?\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567070967095x108965806592226770/brown_marker.png\":\"White\"===_0x57aa4f?_0x1e162b(490):_0x57aa4f===_0x1e162b(523)?_0x1e162b(535):void 0};if(_0x19e55f[_0x37b152(505)]&&_0x19e55f[_0x37b152(519)]){let _0x33af05=L.icon({iconUrl:\"https:\"+_0x19e55f[_0x37b152(520)],iconSize:[_0x19e55f.marker_width,_0x19e55f[_0x37b152(502)]],shadowSize:[50,64],iconAnchor:[_0x19e55f[_0x37b152(510)]/2,_0x19e55f[_0x37b152(502)]],shadowAnchor:[4,62],popupAnchor:[0,-_0x19e55f[_0x37b152(502)]]});_0x5b1262[_0x37b152(509)][\"\"+_0x19e55f[_0x37b152(533)]]=L.marker([_0x19e55f[_0x37b152(506)],_0x19e55f[_0x37b152(498)]],{icon:_0x33af05}
132).on(_0x37b152(536),_0x305567).on(_0x37b152(493),_0x3f6119).on(\"mouseout\",_0x33bd30)[_0x37b152(494)](_0x5b1262[_0x37b152(509)][_0x37b152(534)]).bindPopup(_0x19e55f[_0x37b152(489)])}else if(_0x19e55f.popup_on_click&&!_0x19e55f[_0x37b152(519)]){let _0x2dba7f=L[_0x37b152(497)]({iconUrl:\"https:\"+_0x2c4936(_0x19e55f.marker_style),shadowUrl:_0x37b152(507),iconSize:[25,40],shadowSize:[41,41],iconAnchor:[12,39],shadowAnchor:[13,40],popupAnchor:[0,-30]});_0x5b1262[_0x37b152(509)][\"\"+_0x19e55f[_0x37b152(533)]]=L[_0x37b152(531)]([_0x19e55f[_0x37b152(506)],_0x19e55f.longitude],{icon:_0x2dba7f}).on(_0x37b152(536),_0x305567).on(_0x37b152(493),_0x3f6119).on(\"mouseout\",_0x33bd30)[_0x37b152(494)](_0x5b1262[_0x37b152(509)][_0x37b152(534)])[_0x37b152(532)](_0x19e55f[_0x37b152(489)])}else if(!_0x19e55f.popup_on_click&&_0x19e55f[_0x37b152(519)]){let _0x370380=L[_0x37b152(497)]({iconUrl:\"https:\"+_0x19e55f[_0x37b152(520)],iconSize:[_0x19e55f[_0x37b152(510)],_0x19e55f.marker_height],shadowSize:[50,64],iconAnchor:[_0x19e55f[_0x37b152(510)]/2,_0x19e55f[_0x37b152(502)]],shadowAnchor:[4,62],popupAnchor:[0,-_0x19e55f[_0x37b152(502)]]});_0x5b1262.data[\"\"+_0x19e55f[_0x37b152(533)]]=L.marker([_0x19e55f[_0x37b152(506)],_0x19e55f[_0x37b152(498)]],{icon:_0x370380}).on(\"click\",_0x305567).on(\"mouseover\",_0x3f6119).on(_0x37b152(514),_0x33bd30)[_0x37b152(494)](_0x5b1262[_0x37b152(509)][_0x37b152(534)])}else if(!_0x19e55f[_0x37b152(505)]&&!_0x19e55f[_0x37b152(519)]){let _0x4013fd=L[_0x37b152(497)]({iconUrl:_0x37b152(524)+_0x2c4936(_0x19e55f[_0x37b152(530)]),shadowUrl:\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567070947779x803166556575223700/marker-shadow.png\",iconSize:[25,40],shadowSize:[41,41],iconAnchor:[12,39],shadowAnchor:[13,40],popupAnchor:[0,-30]});_0x5b1262.data[\"\"+_0x19e55f.marker_name]=L[_0x37b152(531)]([_0x19e55f[_0x37b152(506)],_0x19e55f[_0x37b152(498)]],{icon:_0x4013fd}).on(_0x37b152(536),_0x305567).on(_0x37b152(493),_0x3f6119).on(_0x37b152(514),_0x33bd30)[_0x37b152(494)](_0x5b1262[_0x37b152(509)][_0x37b152(534)])}function _0x305567(){const _0x3d4733=_0x37b152;_0x19e55f[_0x3d4733(533)]&&(_0x5b1262[_0x3d4733(528)](_0x3d4733(516),_0x19e55f[_0x3d4733(533)]),_0x5b1262[_0x3d4733(501)](_0x3d4733(508)))}function _0x3f6119(){const _0x2e51d2=_0x37b152;_0x5b1262.publishState(\"marker_hovered_id\",_0x19e55f[_0x2e51d2(533)]),_0x5b1262[_0x2e51d2(501)](_0x2e51d2(499))}function _0x33bd30(){const _0x2dca04=_0x37b152;_0x5b1262[_0x2dca04(528)](_0x2dca04(522),_0x19e55f[_0x2dca04(533)]),_0x5b1262[_0x2dca04(501)](_0x2dca04(529))}}function _0x11a6(){const _0x214ace=[\"marker_hovered\",\"194GlCDca\",\"triggerEvent\",\"marker_height\",\"6sWJEWh\",\"587640GVbgHg\",\"popup_on_click\",\"latitude\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567070947779x803166556575223700/marker-shadow.png\",\"marker_clicked\",\"data\",\"marker_width\",\"9310609fqHpQH\",\"90sPwFge\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567071044715x223496852841002400/blue_marker.png\",\"mouseout\",\"Brown\",\"marker_clicked_id\",\"3MpZQgZ\",\"12sMGMCA\",\"use_custom_icon\",\"custom_icon_url\",\"593076lWMjgK\",\"marker_unhovered_id\",\"Black\",\"https:\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567070997768x135506561932380300/green_marker.png\",\"1879HGWNqp\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567070983762x973056674738514600/yellow_marker.png\",\"publishState\",\"marker_unhovered\",\"marker_style\",\"marker\",\"bindPopup\",\"marker_name\",\"mymap\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567071031375x378002786517539900/black_marker.png\",\"click\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567071016539x633328751974089360/red_marker.png\",\"1837801oUzmOt\",\"popup_text\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567071057099x762384812835195500/white_marker.png\",\"Red\",\"5395168QKvWfQ\",\"mouseover\",\"addTo\",\"847395BJvMCe\",\"Yellow\",\"icon\",\"longitude\"];return(_0x11a6=function(){return _0x214ace})()}!function(_0xdda2b7,_0x26f74c){const _0x500ef3=_0x45d1,_0x387976=_0xdda2b7();for(;;)try{const _0xbb5cd0=undefined;if(509579===-parseInt(_0x500ef3(526))/1*(parseInt(_0x500ef3(500))/2)+parseInt(_0x500ef3(517))/3*(-parseInt(_0x500ef3(521))/4)+parseInt(_0x500ef3(495))/5+parseInt(_0x500ef3(503))/6*(-parseInt(_0x500ef3(488))/7)+parseInt(_0x500ef3(492))/8+-parseInt(_0x500ef3(512))/9*(parseInt(_0x500ef3(504))/10)+-parseInt(_0x500ef3(511))/11*(-parseInt(_0x500ef3(518))/12))break;_0x387976.push(_0x387976.shift())}catch(_0x58e163){_0x387976.push(_0x387976.shift())}}(_0x11a6,509579),run(instance,properties,context)}"}},"AAJ":{"caption":"Show map on","fields":{"AAK":{"caption":"Mapbox tile","editor":"Dropdown","name":"mapbox_tile","optional":true,"rank":7},"AAN":{"caption":"Initial view","editor":"Label","name":"initial_view","rank":2},"AAO":{"caption":"Initial view latitude","editor":"DynamicValue","name":"initial_view_latitude","rank":3,"value":"number"},"AAP":{"caption":"Initial view longitude","editor":"DynamicValue","name":"initial_view_longitude","rank":4,"value":"number"},"AAQ":{"caption":"Zoom level","editor":"DynamicValue","name":"zoom_level","rank":5,"value":"number"},"AAj":{"caption":"Tile provider","editor":"Dropdown","name":"tile_provider","rank":1},"AAv":{"caption":"Stadia tile","editor":"Dropdown","name":"stadia_tile","optional":true,"rank":10,"value":"text"},"ABZ":{"caption":"Unique map name","editor":"DynamicValue","name":"unique_map_name","rank":0,"value":"text"},"ADl":{"caption":"Enable drawing","default_val":true,"editor":"DynamicValue","name":"enable_drawing","rank":24,"value":"boolean"},"AEm":{"caption":"HERE tile","editor":"Dropdown","name":"here_tile","optional":true,"rank":12},"AGm":{"caption":"HERE tooltip style","editor":"Label","name":"here_tooltip","rank":13},"AGn":{"caption":"HERE Font color","default_val":"rgba(17, 59, 122, 1)","editor":"Color","name":"tp_color","rank":14}
132,"AGo":{"caption":"HERE Background color","default_val":"rgba(230, 230, 230, 1)","editor":"Color","name":"tp_bg","rank":15},"AGp":{"caption":"HERE Border color","default_val":"rgba(230, 230, 230, 0.75)","editor":"Color","name":"border_color","rank":16},"AGq":{"caption":"HERE Border radius","editor":"DynamicValue","name":"border_radius","optional":true,"rank":17,"value":"number"},"AHS":{"caption":"Mouse wheel zoom","default_val":true,"editor":"DynamicValue","name":"mouse_wheel_zoom","rank":22,"value":"boolean"},"AJD":{"caption":"Mouse button for click event","default_val":"right","editor":"Dropdown","name":"mouse_button","optional":true,"rank":23},"AJj":{"caption":"General options","editor":"Label","name":"general_options","rank":21},"AJm":{"caption":"MapTiler tile","editor":"DynamicValue","name":"maptiler_tile","optional":true,"rank":19,"value":"text"},"AJn":{"caption":"Display MapTiler logo","default_val":false,"editor":"DynamicValue","name":"display_maptiler_logo","optional":true,"rank":20,"value":"boolean"},"AKd":{"caption":"Mapbox custom ID","name":"mapbox_custom_id","rank":8,"editor":"DynamicValue","value":"text","optional":true},"AKe":{"caption":"Mapbox section","name":"mapbox","rank":6,"editor":"Label"},"AKf":{"caption":"Stadia section","name":"stadia_section","rank":9,"editor":"Label"},"AKg":{"caption":"HERE section","name":"here_section","rank":11,"editor":"Label"},"AKh":{"caption":"MapTiler section","name":"maptiler_section","rank":18,"editor":"Label"}},"code":{"fn":"function(instance,properties,context){function _0x4bac(_0x133801,_0x272f6a){const _0x13f4b1=_0x13f4();return(_0x4bac=function(_0x4bac61,_0x13ed71){let _0x357072;return _0x13f4b1[_0x4bac61-=291]})(_0x133801,_0x272f6a)}function _0x13f4(){const _0xecc392=[\"pop\",\"6480650SnHilu\",\"weights_per_axle_tandem\",\"longitude_field\",\"searchParams\",\"longitude\",\"class\",\"retrieveAddressFromCoordinates\",\"color_field\",\"GET\",\"getNames\",\"changeRoute\",\"append\",\"targetRoute\",\"showRouteSummary\",\"lang\",\"div\",\"no_route_was_found\",\"--div\",\"2731676aZkEFL\",\"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}@2x?access_token={accessToken}\",\"default\",\"filterCountry\",\"routes\",\"then\",\"unique_map_name\",\"text\",\"addTo\",\"::after {\\n          border-color: transparent;\\n        }\\n      \",\"addEventListener\",\"toString\",\"keys\",\"https://router.hereapi.com/v8/routes\",\"scrollWheelZoom\",\"splice\",\"indexOf\",\"triggerEvent\",\"--input\",\"clearRoutes\",\"extractCoordinates\",\"polyline,summary,actions,instructions\",\"forEach\",\"userAgent\",\"canvas\",'<a href=\"https://www.maptiler.com\" style=\"position:absolute; left:10px; bottom:10px; z-index:999;\">\\n            <img src=\"https://api.maptiler.com/resources/logo.svg\" alt=\"MapTiler logo\">\\n            </a>',\"now\",\"Could not geocode the address\",\"markerInstance\",\"Latitude\",\"removeClosestMarker\",\"here_route_latitude\",\"duration\",\"updateRoute\",\"here_route_base_longitude\",\"leafy--color--label\",\"truck_type\",\"tunnelCategory\",\"_northEast\",\"mode\",\"items\",\"Response\",\"DomUtil\",\"routed\",\"pow\",\"all\",\"addMarkerOnClick\",\"user_bounds_northeast_longitude\",\"here_route_longitude\",\"#808080\",\"Mapbox access token\",\"contextmenu\",\"4510920upRLpL\",\"Invalid or missing table source\",\"isMapboxGl\",\"leafy--select--country\",\"Maptiler access token\",\"destination_address\",\"deleteMarker\",\"here_route_travel_time\",\"getElementById\",\"--inner--div\",\"innerHTML\",\"restrictions\",\"Tractor\",\"use_address_instead\",\"timestamp\",\"longitude_list\",\"leafy--country--option\",\"empty\",\"data\",\"json\",\"here_route_base_time\",\"country\",\"Custom from studio\",\"value\",\"replace\",\"head\",\"label\",\"Not enough valid coordinates to create a route\",\"here_suggestion\",\"\\n        .\",\"here_tile\",\"address\",\"fitBounds\",\"mouse_button\",\"route_name\",\"user_bounds_southwest_latitude\",\"Route color\",\"altitude\",\"stadia_tile\",\"here_route_origin_address\",\"addRoute\",\"35474kkRxzs\",\"Result\",\"view\",\"https://revgeocode.search.hereapi.com/v1/revgeocode?\",\"mapbox_custom_id\",\"539871FJSTKq\",\"distance_limit\",\"polyline\",\"here_suggestion_state\",\"/{z}/{x}/{y}/512/png8?apiKey=\",\"panTo\",\"Error:\",\"baseColor\",\"user_bounds_southwest_longitude\",\"deltaRoute\",\"leafy--checkbox\",\"Route_\",\"error\",\"location_found\",\"Error in geocoding:\",\"Origin\",\"distance_limit_field\",\"height\",\"disable\",\"exportRoute\",\"lat\",\"Destination\",\"map\",\"https://geocode.search.hereapi.com/v1/geocode\",\"px;\\n          border: 1px solid \",\"Route range (in KM)\",\"329bmIqbc\",\"speed\",\"here_route_restrictions\",\"axleCount\",\"https://revgeocode.search.hereapi.com/v1/revgeocode\",\"user_longitude\",\"getCodes\",\"marker\",\";\\n        }\\n        .\",\"routeInfo\",\"push\",\"mapbox/\",\"accuracy\",\"base_route_color\",\"baseParams\",\"style\",\"route_selected\",\"hideRoute\",\"heading\",\"via\",\"Unexpected response format:\",\"click_map_coordinates_latitude\",\"1920680xvherq\",\"mapboxGL\",\"weightPerAxle\",\"response\",\"displayPosition\",\"target\",\"name\",\"weightPerAxleGroup\",\"toLowerCase\",\"latlng\",\"split\",\"Here access token\",\"summary\",\"instance\",\"4ZUByWI\",\"leafy--\",\"appendChild\",\"function\",\"zoom_level\",\"latitude_field\",\"getElementsByTagName\",\"route_exported\",\"setView\",\"addWfRouteMarker\",\"origin_address\",\"getBounds\",\"slice\",\"location\",\"altitude_accuracy\",\"transport_mode\",\"base\",\"invali
132d route name\",\"create\",\"parentElement\",\"actions\",\"toUpperCase\",\"vehicle\",\"color\",\"showRoute\",\"tile_provider\",\"number\",\"publishThisRoute\",\"leafy--route--\",\"tunnel_category\",\"platform\",\"route_restriction_field\",\"shift\",\"weights_per_axle_single\",\"MapTiler\",\"markerReference\",\"updateBaseRoute\",\"sort\",\"custom_style\",\"enable_drawing\",\"location_error\",\"leafy--color--input\",\"routeList\",\"lng\",\"leafy--address--results--div\",\"leafy--address--select--div\",\"Here\",\"9NrBpDt\",\"DisplayPosition\",'&copy; <a href=\"https://www.mapbox.com/\">Mapbox</a>',\"latitude\",\"width\",\"bounds\",\"getHereGeocodeFromTwoParams\",\"shipped_hazardous_goods\",\"limit\",\"show_all_routes\",\"type\",\"getHereGeocode\",\"params\",\"decodePolyline\",\"/style.json?key=\",\"loadRoutesFromTable\",\"here\",\"removeMarkerByIndex\",\"getNameFromCode\",\"catch\",\"StraightTruck\",\"route_color\",\"DRAW_TOGGLE\",\"distance\",\"weight_per_axle\",\"disabled\",\"right\",\"name_field\",\"locationerror\",\"axle_count\",\"apiKey\",\"&ppi=320\",\"latitude_list\",\";\\n          background-color: \",\"sections\",\"initialized\",\"101940Dwewom\",\"createElement\",\"here_route_distance_limit\",\"trim\",\"click\",\"mymap\",\" {\\n          color: \",\"routingMachine\",\"placeholder\",\"markers\",\"removeMarkerOnClick\",\"zoom_to_route\",\"concat\",\"publishState\",\"removeFrom\",\"https://autocomplete.search.hereapi.com/v1/autocomplete\",\"::before {\\n          border-color: transparent;\\n        }\\n  \\n        .\",\"car\",\"_southWest\",\"state\",\"user_bounds_northeast_latitude\",\"mapbox_tile\",\"baseInstance\",\"countryCode\",\"setAttribute\",\"length\",\"Error retrieving address:\",\"Error in reverse geocoding:\",\"tileLayer\",\"map_clicked\",\"Mapbox\",\"there is no route with the name\",\"leafy--address--inner--div leafy--\",\"warn\",\"baseDuration\",\"insertAdjacentElement\",\"here_route_base_latitude\",\"position\",\"showOnly\",\"bindTooltip\",\"click_map_coordinates_longitude\",\"https://api.maptiler.com/maps/\",\"input\",\"get\",\"tool\",\"here_route_marker_addresses\",\"trailerCount\",\"user_latitude\",\"setMaxBounds\",\"View\",\"firstChild\",\"actual\",\"option\",\"use_coordinates\",\"leafy--limit--input\"];return(_0x13f4=function(){return _0xecc392})()}function run(_0x740a36,_0x424cca,_0x1d721f){const _0x14e978=_0x4bac,_0x11986c=undefined,_0xb46afb=new RegExp(/Macintosh/).test(navigator[_0x14e978(605)]);_0x740a36[_0x14e978(335)][_0x14e978(494)]=!1;let _0x2c31c5=[];_0x740a36[_0x14e978(335)].SAVED_POLYLINE=[],_0x740a36[_0x14e978(335)][_0x14e978(319)]=!1;const _0x136ef3=_0x424cca[_0x14e978(588)];_0x740a36[_0x14e978(606)][_0x14e978(334)](),_0x740a36[_0x14e978(606)].attr(\"id\",_0x136ef3);const{tp_color:_0x27bde8,tp_bg:_0x47c769,border_color:_0x40be2a,border_radius:_0x820561}=_0x424cca;_0x740a36[_0x14e978(335)][_0x14e978(463)]&&[...document[_0x14e978(431)](_0x14e978(404))][_0x14e978(604)]((_0x5dd706=>_0x5dd706.innerHTML===_0x740a36.data[_0x14e978(463)]?_0x5dd706.remove:null)),_0x740a36.data[_0x14e978(463)]=document[_0x14e978(509)](_0x14e978(404));const _0x25df59=_0x136ef3+_0x14e978(552);_0x740a36[_0x14e978(335)][_0x14e978(463)][_0x14e978(327)]=_0x14e978(346)+_0x25df59+_0x14e978(514)+_0x27bde8+_0x14e978(505)+_0x47c769+\";\\n          border-radius: \"+_0x820561+_0x14e978(387)+_0x40be2a+_0x14e978(397)+_0x25df59+_0x14e978(524)+_0x25df59+_0x14e978(591),document[_0x14e978(342)][_0x14e978(543)](\"beforeend\",_
1320x740a36[_0x14e978(335)][_0x14e978(463)]);let _0x12c746=L.map(_0x136ef3)[_0x14e978(433)]([_0x424cca.initial_view_latitude,_0x424cca.initial_view_longitude],_0x424cca[_0x14e978(429)]);_0x12c746.setMinZoom(1.5),_0x740a36[_0x14e978(335)][_0x14e978(513)]=_0x12c746;let _0x7c8c23=[[-90,-180],[90,180]];if(_0x12c746[_0x14e978(556)](_0x7c8c23),_0x424cca.tile_provider===_0x14e978(538)&&(_0x424cca[_0x14e978(529)]!==_0x14e978(339)?L[_0x14e978(536)](\"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}@2x?access_token={accessToken}\",{attribution:'&copy; <a href=\"https://www.mapbox.com/\">Mapbox</a>',tileSize:512,maxZoom:20,zoomOffset:-1,id:_0x14e978(400)+_0x424cca[_0x14e978(529)],accessToken:_0x1d721f[_0x14e978(594)][_0x14e978(315)]})[_0x14e978(590)](_0x740a36[_0x14e978(335)][_0x14e978(513)]):L[_0x14e978(536)](_0x14e978(583),{attribution:_0x14e978(474),tileSize:512,maxZoom:20,zoomOffset:-1,id:_0x424cca[_0x14e978(362)],accessToken:_0x1d721f[_0x14e978(594)][_0x14e978(315)]})[_0x14e978(590)](_0x740a36[_0x14e978(335)][_0x14e978(513)])),\"Stadia\"===_0x424cca[_0x14e978(450)]){const _0x4db8f1=_0x52659a=>_0x52659a[_0x14e978(419)]()[_0x14e978(341)](/ /g,\"_\");L.tileLayer(\"https://tiles.stadiamaps.com/tiles/{op}/{z}/{x}/{y}{r}.png\",{maxZoom:20,op:_0x4db8f1(_0x424cca[_0x14e978(355)]),attribution:'&copy; <a href=\"https://stadiamaps.com/\">Stadia Maps</a>'})[_0x14e978(590)](_0x740a36[_0x14e978(335)][_0x14e978(513)])}if(_0x424cca.tile_provider===_0x14e978(471)){const _0x68f866=_0x424cca[_0x14e978(347)][_0x14e978(341)](/ /g,\".\");L[_0x14e978(536)](\"https://2.base.maps.ls.hereapi.com/maptile/2.1/maptile/newest/\"+_0x68f866+_0x14e978(367)+_0x1d721f[_0x14e978(594)][\"Here access token\"]+_0x14e978(503),{attribution:'&copy; <a href=\"https://developer.here.com/documentation/map-tile/dev_guide/topics/resource-base-maptile.html\">Here maps</a>'})[_0x14e978(590)](_0x740a36[_0x14e978(335)][_0x14e978(513)])}if(_0x424cca[_0x14e978(450)]===_0x14e978(459)){let _0x684215=_0x424cca.maptiler_tile[_0x14e978(419)]()[_0x14e978(511)]();if(L[_0x14e978(412)]({attribution:'<a href=\"https://www.maptiler.com/copyright/\" target=\"_blank\">&copy; MapTiler</a> <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">&copy; OpenStreetMap contributors</a>',style:_0x14e978(549)+_0x684215+_0x14e978(486)+_0x1d721f[_0x14e978(594)][_0x14e978(321)]})[_0x14e978(590)](_0x740a36[_0x14e978(335)][_0x14e978(513)]),!0===_0x424cca.display_maptiler_logo){let _0xc9d08a=document.createElement(_0x14e978(579)),_0x4005b0;_0xc9d08a[_0x14e978(327)]=_0x14e978(607),document[_0x14e978(325)](_0x136ef3)[_0x14e978(427)](_0xc9d08a)}_0x740a36[_0x14e978(335)][_0x14e978(319)]=!0}const _0x577ca1=_0x174ffa=>{const _0xe6aac=_0x14e978;_0x740a36[_0xe6aac(521)](_0xe6aac(555),_0x174ffa.latlng[_0xe6aac(383)]),_0x740a36.publishState(_0xe6aac(394),_0x174ffa.latlng.lng),_0x740a36[_0xe6aac(521)](_0xe6aac(528),_0x174ffa.bounds[_0xe6aac(303)][_0xe6aac(383)]),_0x740a36[_0xe6aac(521)](_0xe6aac(312),_0x174ffa[_0xe6aac(477)][_0xe6aac(303)].lng),_0x740a36[_0xe6aac(521)](_0xe6aac(352),_0x174ffa.bounds[_0xe6aac(526)][_0xe6aac(383)]),_0x740a36.publishState(_0xe6aac(371),_0x174ffa[_0xe6aac(477)][_0xe6aac(526)].lng),_0x740a36[_0xe6aac(521)](_0xe6aac(401),_0x174ffa.accuracy),_0x740a36[_0xe6aac(521)](_0xe6aac(354),_0x174ffa.altitude),_0x740a36[_0xe6aac(521)](_0xe6aac(439),_0x174ffa.altitudeAccuracy),_0x740a36.publishState(_0xe6aac(407),_0x174ffa[_0xe6aac(407)]),_0x740a36[_0xe6aac(521)](_0xe6aac(390),_0x174ffa.speed),_0x740a36[_0xe6aac(521)](_0xe6aac(331),_0x174ffa[_0xe6aac(331)]),_0x740a36[_0xe6aac(599)](_0xe6aac(376))},_0x1d2876=_0x5bbcb2=>{const _0x5d7580=_0x14e978;_0x740a36.triggerEvent(_0x5d7580(465))};_0x740a36.data.mymap.on(\"locationfound\",_0x577ca1),_0x740a36.data[_0x14e978(513)].on(_0x14e978(500),_0x1d2876),_0x424cca[_0x14e978(464)]?setDrawingControls(_0x740a36,_0x740a36[_0x14e978(335)][_0x14e978(513)],_0x740a36[_0x14e978(335)][_0x14e978(404)]):_0x740a36[_0x14e978(335)][_0x14e978(304)]=_0x14e978(584);const _0x4ebf00=_0x1d519f=>{const _0x248e89=_0x14e978;let _0x3dde00=null;return _0x1d519f[_0x248e89(414)]&&(_0x3dde00={..._0x1d519f[_0x248e89(414)][_0x248e89(360)][0].result[0][_0x248e89(438)][_0x248e89(415)]}),_0x1d519f[_0x248e89(305)]&&(_0x3dde00={latitude:_0x1d519f[_0x248e89(305)][0][_0x248e89(545)][_0x248e89(383)],longitude:_0x1d519f[_0x248e89(305)][0].position[_0x248e89(468)]}),_0x3dde00},_0x4ab1d9=_0xe3c718=>{const _0x1ef987=_0x14e978,_0x2b5c9d=L[_0x1ef987(307)].create(_0x1ef987(579),_0x1ef987(426)+_0xe3c718.class+_0x1ef987(326)),_0x2f2d91=L[_0x1ef987(307)][_0x1ef987(443)](\"input\",_0x1ef987(426)+_0xe3c718.class+_0x1ef987(600));if(_0xe3c718[_0x1ef987(569)]===_0x1ef987(348)){_0x2f2d91[_0x1ef987(532)](\"placeholder\",_0xe3
132c718[_0x1ef987(516)]),_0x2f2d91[_0x1ef987(532)](_0x1ef987(482),_0xe3c718[_0x1ef987(482)]),_0x2f2d91[_0x1ef987(592)](\"input\",_0xe3c718.onChangeHandler),_0x2b5c9d[_0x1ef987(427)](_0x2f2d91);const _0x47f3ce=L[_0x1ef987(307)].create(_0x1ef987(579),_0x1ef987(469));_0x2b5c9d.appendChild(_0x47f3ce)}return _0x2b5c9d},_0x5d0d53=()=>{const _0x50c116=_0x14e978,_0x456ae7=L[_0x50c116(307)][_0x50c116(443)](_0x50c116(579),\"leafy--route--properties\"),_0x50d821=L[_0x50c116(307)].create(_0x50c116(550),_0x50c116(562));return _0x50d821[_0x50c116(532)](_0x50c116(482),_0x50c116(451)),_0x50d821[_0x50c116(532)](_0x50c116(516),_0x50c116(388)),_0x456ae7[_0x50c116(427)](_0x50d821),_0x456ae7},_0x43313a=()=>{const _0x53c37a=_0x14e978,_0x257273=L.DomUtil[_0x53c37a(443)](\"div\",\"leafy--address--inner--div leafy--color--div\"),_0x36c8bc=L[_0x53c37a(307)][_0x53c37a(443)](_0x53c37a(550),_0x53c37a(466)),_0xc153f8=L[_0x53c37a(307)][_0x53c37a(443)](\"p\",_0x53c37a(300));return _0xc153f8[_0x53c37a(327)]=_0x53c37a(353),_0x36c8bc[_0x53c37a(532)](_0x53c37a(482),_0x53c37a(448)),_0x36c8bc[_0x53c37a(532)](_0x53c37a(340),\"#55AAFF\"),_0x257273[_0x53c37a(427)](_0xc153f8),_0x257273[_0x53c37a(427)](_0x36c8bc),_0x257273},_0x2f1234=()=>{const _0x5ea453=_0x14e978,_0x3a325d=L[_0x5ea453(307)].create(_0x5ea453(579),_0x5ea453(470)),_0x4f0c15=L[_0x5ea453(307)][_0x5ea453(443)](\"select\",_0x5ea453(320));_0x4f0c15[_0x5ea453(532)](\"value\",\"\");const _0x58cbc2=_0x405bb7=>{const _0x2f6afa=_0x5ea453;if(3===_0x405bb7[_0x2f6afa(416)][_0x2f6afa(340)][_0x2f6afa(533)]){_0x740a36[_0x2f6afa(335)][_0x2f6afa(527)][_0x2f6afa(531)]=_0x405bb7[_0x2f6afa(416)][_0x2f6afa(340)];const _0x14f082=countryProvider[_0x2f6afa(490)](_0x405bb7.target[_0x2f6afa(340)]);_0x740a36[_0x2f6afa(335)][_0x2f6afa(527)][_0x2f6afa(338)]=_0x14f082,_0x740a36.data.routingMachine.getHereGeocode({country:_0x14f082},(_0x49a20b=>{const _0x20c125=_0x2f6afa;if(_0x49a20b[_0x20c125(306)].View){const{Latitude:_0x45ef45,Longitude:_0x2db7dc}=_0x49a20b[_0x20c125(306)][_0x20c125(557)][0][_0x20c125(359)][0].Location[_0x20c125(473)];_0x740a36[_0x20c125(335)][_0x20c125(385)][_0x20c125(368)]([_0x45ef45,_0x2db7dc])}}))}};_0x4f0c15[_0x5ea453(592)](\"input\",_0x58cbc2);const[_0x36e120,_0x2d967e]=[countryProvider[_0x5ea453(573)](),countryProvider[_0x5ea453(395)]()];_0x36e120.forEach(((_0x1b880d,_0x2bce31)=>{const _0x26670f=_0x5ea453,_0x672e8e=L[_0x26670f(307)][_0x26670f(443)](_0x26670f(560),_0x26670f(333));_0x672e8e[_0x26670f(327)]=_0x1b880d,_0x672e8e[_0x26670f(532)](_0x26670f(340),_0x2d967e[_0x2bce31]),_0x4f0c15[_0x26670f(427)](_0x672e8e)})),_0x4f0c15[_0x5ea453(532)](\"disabled\",!0),_0x3a325d[_0x5ea453(427)](_0x4f0c15);const _0x50e21e=L[_0x5ea453(307)].create(_0x5ea453(550),_0x5ea453(373));_0x50e21e.setAttribute(_0x5ea453(482),\"checkbox\");const _0x24a4e9=_0xde351d=>{const _0x4e3443=_0x5ea453;_0x740a36[_0x4e3443(335)][_0x4e3443(527)][_0x4e3443(585)]=!_0x740a36[_0x4e3443(335)][_0x4e3443(527)][_0x4e3443(585)],_0xde351d[_0x4e3443(416)][_0x4e3443(444)][_0x4e3443(558)
132].disabled=!_0xde351d[_0x4e3443(416)][_0x4e3443(444)][_0x4e3443(558)][_0x4e3443(497)]};return _0x50e21e.addEventListener(\"click\",_0x24a4e9),_0x3a325d.appendChild(_0x50e21e),_0x3a325d},_0x4d760e=_0x30aefa=>{const _0xc18c0f=_0x14e978,_0x5d7f79=L.DomUtil.create(\"div\",_0xc18c0f(540)+_0x30aefa[_0xc18c0f(569)]+_0xc18c0f(581)),_0x471e3d=L[_0xc18c0f(307)][_0xc18c0f(443)](\"p\",_0xc18c0f(426)+_0x30aefa[_0xc18c0f(569)]+\"--label\");_0x471e3d.innerHTML=_0x30aefa[_0xc18c0f(343)],_0x5d7f79[_0xc18c0f(427)](_0x471e3d);const _0x2c6a24=L.DomUtil[_0xc18c0f(443)](_0xc18c0f(550),_0xc18c0f(453)+_0x30aefa[_0xc18c0f(569)]);return _0x2c6a24[_0xc18c0f(532)](_0xc18c0f(482),_0x30aefa[_0xc18c0f(482)]),_0x5d7f79[_0xc18c0f(427)](_0x2c6a24),_0x5d7f79};class _0x27b691{constructor(){const _0x40d9d4=_0x14e978;this[_0x40d9d4(467)]=[],this.routeInfo=[],this[_0x40d9d4(460)]=[],this.changeRoute=!1,this[_0x40d9d4(594)]={apiKey:_0x1d721f[_0x40d9d4(594)][_0x40d9d4(422)]},this[_0x40d9d4(576)]=\"\",this[_0x40d9d4(323)]=!1,_0x740a36[_0x40d9d4(335)][_0x40d9d4(385)].on(_0x40d9d4(512),(_0x561fbf=>{const _0x556520=_0x40d9d4;this[_0x556520(574)]&&(this[_0x556520(298)](_0x561fbf[_0x556520(420)]),this[_0x556520(574)]=!1),this[_0x556520(323)]&&(this[_0x556520(295)](_0x561fbf[_0x556520(420)]),this[_0x556520(323)]=!1)}))}[_0x14e978(295)](_0xeb3cce){const _0x1bf6a2=_0x14e978;this[_0x1bf6a2(398)][_0x1bf6a2(604)]((_0x313fd3=>{const _0x1ac2d7=_0x1bf6a2;if(_0x313fd3.name===this[_0x1ac2d7(576)]){let _0x422df3=-1,_0x288c7c=9999999999999;const _0x1f9295=_0x313fd3.baseParams[_0x1ac2d7(385)]((_0x14816a=>_0x14816a.latitude)),_0x4c120f=_0x313fd3[_0x1ac2d7(403)].map((_0x336b30=>_0x336b30.longitude));let _0x27f1ac=3!==_0x313fd3.params.length;_0x313fd3[_0x1ac2d7(484)][_0x1ac2d7(604)](((_0x3ef547,_0x560428)=>{const _0x5c0a6b=_0x1ac2d7,_0x5782ad=-1===_0x1f9295[_0x5c0a6b(598)](_0x3ef547[_0x5c0a6b(475)])||-1===_0x4c120f[_0x5c0a6b(598)](_0x3ef547[_0x5c0a6b(568)]);if(0!==_0x560428&&_0x560428!==_0x313fd3[_0x5c0a6b(484)][_0x5c0a6b(533)]-1&&_0x5782ad){const _0x40f310=Math[_0x5c0a6b(309)](Math[_0x5c0a6b(309)](_0x3ef547[_0x5c0a6b(475)]-_0xeb3cce[_0x5c0a6b(383)],2)+Math[_0x5c0a6b(309)](_0x3ef547[_0x5c0a6b(568)]-_0xeb3cce[_0x5c0a6b(468)],2),.5);_0x40f310<_0x288c7c&&(_0x288c7c=_0x40f310,_0x422df3=_0x560428)}})),-1!==_0x422df3&&(_0x313fd3[_0x1ac2d7(484)][_0x1ac2d7(597)](_0x422df3,1),_0x57fadc(_0x313fd3[_0x1ac2d7(484)],_0x313fd3,_0x313fd3,!0,!0,_0x27f1ac))}}))}[_0x14e978(483)](_0xe4315b,_0x2c5cd5){const _0xa972f6=_0x14e978,_0x68ecfc=new URL(_0xa972f6(386));_0x68ecfc.search=new URLSearchParams({apiKey:_0x1d721f[_0xa972f6(594)][_0xa972f6(422)],..._0xe4315b})[_0xa972f6(593)](),fetch(_0x68ecfc).then((_0x985d9=>_0x985d9[_0xa972f6(336)]()))[_0xa972f6(587)]((_0x496083=>_0x2c5cd5(_0x496083))).catch((_0x18209e=>{const _0x46ddee=_0xa972f6;console[_0x46ddee(375)](_0x46ddee(377),_0x18209e)}))}[_0x14e978(478)](_0xf0c41f,_0x6bd71c,_0x4d9f4d){const _0x3d97f2=_0x14e978,_0x164fb1=[];this[_0x3d97f2(483)](_0xf0c41f,(_0x431b0d=>{const _0x1e438f=_0x3d97f2,_0x5d83e4=_0x4ebf00(_0x431b0d);_0x5d83e4&&(_0x164fb1.push(_0x5d83e4),this[_0x1e438f(483)](_0x6bd71c,(_0x3605d3=>{const _0x3fb2fe=_0x1e438f,_0x13eb47=_0x4ebf00(_0x3605d3);_0x13eb47&&(_0x164fb1[_0x3fb2fe(399)](_0x13eb47),_0x57fadc(_0x164fb1,_0x4d9f4d))})))}))}addMarkerOnClick(_0x33e1c6){const _0x10dbd7=_0x14e978;this[_0x10dbd7(576)]=_0x33e1c6,this[_0x10dbd7(574)]=!0}[_0x14e978(518)](_0x255f2b){const _0x195ca3=_0x14e978;this[_0x195ca3(576)]=_0x255f2b,this[_0x195ca3(323)]=!0}[_0x14e978(357)](_0x1c42c8,_0x22d4a7,_0x3960c3,_0x1ba357,_0x585f83,_0x23d28c=!0){const _0x2f7d01=_0x14e978;let _0x51e51a=-1;if(this[_0x2f7d01(398)].forEach(((_0x359764,_0x1c5cf8)=>{const _0x39f0c1=_0x2f7d01;_0x359764[_0x39f0c1(417)]===_0x22d4a7[_0x39f0c1(417)]&&(_0x51e51a=_0x1c5cf8)})),-1===_0x51e51a){const _0x3f2f5c=_0x3960c3[_0x2f7d01(385)]((_0x5ae81f=>{const _0xbf26bc=_0x2f7d01,_0xdb0d4e=undefined;return L[_0xbf26bc(396)]([_0x5ae81f[_0xbf26bc(475)],_0x5ae81f.longitude])})),_0x3e9b43=L[_0x2f7d01(365)](_0x1c42c8,{color:_0x22d4a7.color});_0x585f83&&(_0x3e9b43[_0x2f7d01(590)](_0x740a36.data[_0x2f7d01(385)]),_0x3f2f5c[_0x2f7d01(604)](((_0x53bd9d,_0x498ec8)=>{const _0x2e7807=_0x2f7d01;0!==_0x498ec8&&_0x498ec8!==_0x3f2f5c[_0x2e7807(533)]-1||_0x53bd9d[_0x2e7807(547)](_0x2e7807(0===_0x498ec8?378:384),{permanent:!0,className:_0x25df59,offset:[0,0]}),_0x53bd9d[_0x2e7807(590)](_0x740a36[_0x2e7807(335)][_0x2e7807(385)])}))),this.routeInfo[_0x2f7d01(399)]({name:_0x22d4a7[_0x2f7d01(417)],pol
132yline:_0x1c42c8,color:_0x22d4a7[_0x2f7d01(448)],baseColor:_0x22d4a7.baseColor,params:_0x3960c3,baseParams:_0x3960c3,baseInstance:L[_0x2f7d01(365)](_0x1c42c8,{color:_0x22d4a7[_0x2f7d01(370)],weight:10,opacity:.8}),instance:_0x3e9b43,markerInstance:_0x3f2f5c,deltaRoute:1e3*_0x22d4a7.deltaRoute,base:_0x1ba357,actual:_0x1ba357,restrictions:_0x22d4a7[_0x2f7d01(328)]}),this[_0x2f7d01(460)][_0x2f7d01(399)](_0x3f2f5c),this.routeList.push(_0x3e9b43),_0x740a36.data[_0x2f7d01(385)].fitBounds(_0x3e9b43[_0x2f7d01(436)]())}else{this[_0x2f7d01(398)][_0x51e51a][_0x2f7d01(530)][_0x2f7d01(522)](_0x740a36[_0x2f7d01(335)][_0x2f7d01(385)]);let _0x528fbc=!0;this[_0x2f7d01(398)][_0x51e51a].baseParams.forEach(((_0x965f56,_0x76ce7d)=>{const _0x2d7fb7=_0x2f7d01,_0x5a888b=_0x3960c3[_0x76ce7d];(void 0===_0x5a888b||_0x965f56[_0x2d7fb7(475)]!==_0x5a888b.latitude||_0x965f56[_0x2d7fb7(568)]!==_0x5a888b[_0x2d7fb7(568)])&&(_0x528fbc=!1)})),_0x23d28c&&!_0x528fbc&&this[_0x2f7d01(398)][_0x51e51a][_0x2f7d01(530)][_0x2f7d01(590)](_0x740a36.data[_0x2f7d01(385)]),this[_0x2f7d01(398)][_0x51e51a].instance[_0x2f7d01(522)](_0x740a36[_0x2f7d01(335)][_0x2f7d01(385)]),this.routeInfo[_0x51e51a][_0x2f7d01(293)][_0x2f7d01(604)]((_0x428b52=>_0x428b52[_0x2f7d01(522)](_0x740a36[_0x2f7d01(335)].map)));const _0x55c43f=[];_0x3960c3[_0x2f7d01(604)](((_0x195e8b,_0x4e3a3c)=>{const _0x251b87=_0x2f7d01,_0x332319=L.marker([_0x195e8b[_0x251b87(475)],_0x195e8b.longitude]);(0===_0x4e3a3c||_0x4e3a3c===_0x3960c3[_0x251b87(533)]-1)&&_0x332319[_0x251b87(547)](0===_0x4e3a3c?\"Origin\":\"Destination\",{permanent:!0,className:_0x25df59,offset:[0,0]}),_0x332319[_0x251b87(590)](_0x740a36[_0x251b87(335)][_0x251b87(385)]),_0x55c43f[_0x251b87(399)](_0x332319)}));const _0xdf54da=L[_0x2f7d01(365)](_0x1c42c8,{color:_0x22d4a7[_0x2f7d01(448)]}).addTo(_0x740a36[_0x2f7d01(335)][_0x2f7d01(385)]);this[_0x2f7d01(398)][_0x51e51a]={...this[_0x2f7d01(398)][_0x51e51a],polyline:_0x1c42c8,color:_0x22d4a7[_0x2f7d01(448)],params:_0x3960c3,instance:_0xdf54da,markerInstance:_0x55c43f,actual:_0x1ba357};try{_0x740a36[_0x2f7d01(335)].map.fitBounds(_0xdf54da[_0x2f7d01(436)]())}catch(_0xc807de){console.error(\"Error fitting bounds:\",_0xc807de)}}_0x740a36[_0x2f7d01(335)][_0x2f7d01(308)]=[...this[_0x2f7d01(398)]]}[_0x14e978(298)](_0x335fde,_0x3e8112=!1){const _0x2c6dfc=_0x14e978;let _0x551228=-1;if(this[_0x2c6dfc(398)].forEach(((_0x286b55,_0x3999ab)=>{const _0x599e7a=_0x2c6dfc;_0x286b55[_0x599e7a(417)]===this[_0x599e7a(576)]&&(_0x551228=_0x3999ab)})),-1!==_0x551228&&!_0x3e8112){const _0x23ef54=this.routeInfo[_0x551228],_0x55a6e4=new URLSearchParams({apiKey:_0x1d721f[_0x2c6dfc(594)][_0x2c6dfc(422)],at:_0x335fde[_0x2c6dfc(383)]+\",\"+_0x335fde[_0x2c6dfc(468)],lang:\"en\"});fetch(_0x2c6dfc(361)+_0x55a6e4).then((_0x62115d=>_0x62115d[_0x2c6dfc(336)]())).then((_0x1a6a89=>{const _0x350585=_0x2c6dfc;let _0x476009;if(!(_0x1a6a89[_0x350585(305)]&&_0x1a6a89[_0x350585(305)][0]&&_0x1a6a89.items[0][_0x350585(545)]))return console[_0x350585(375)](_0x350585(409),_0x1a6a89),void _0x740a36[_0x350585(599)](_0x350585(580));_0x476009={Latitude:_0x1a6a89.items[0].position[_0x350585(383)],Longitude:_0x1a6a89[_0x350585(305)][0][_0x350585(545)][_0x350585(468)]};const _0x2d766e=this[_0x350585(398)][_0x551228];let _0x2203bc=[];if(this[_0x350585(467)]=this.routeList[_0x350585(597)](_0x551228,1),2===_0x2d766e[_0x350585(484)][_0x350585(533)])_0x2203bc=[..._0x2d766e[_0x350585(484)]],_0x2203bc[_0x350585(597)](1,0,{latitude:_0x476009.Latitude,longitude:_0x476009.Longitude});else{const _0x53f342=[..._0x2d766e.params],[_0x2571fa,_0x574d9c]=[_0x53f342[_0x350585(457)](),_0x53f342[_0x350585(563)]()];_0x53f342[_0x350585(399)]({latitude:_0x476009[_0x350585(294)],longitude:_0x476009.Longitude});let _0x5450aa=[];_0x53f342[_0x350585(604)]((_0x408ea6=>{const _0x35527f=_0x350585,_0x40b93f=Math.pow(Math[_0x35527f(309)](_0x408ea6[_0x35527f(475)]-_0x2571fa[_0x35527f(475)],2)+Math[_0x35527f(309)](_0x408ea6[_0x35527f(568)]-_0x2571fa[_0x35527f(568)],2),.5);_0x5450aa[_0x35527f(399)]({data:_0x408ea6,distance:_0x40b93f})})),_0x5450aa[_0x350585(462)](((_0xfe41c1,_0x58edef)=>_0xfe41c1.distance>_0x58edef[_0x350585(495)]?1:-1));const _0x5734b7=[];_0x5734b7[_0x350585(399)](_0x2571fa),_0x5450aa[_0x350585(604)]((_0x165016=>_0x5734b7[_0x350585(399)](_0x165016[_0x350585(335)]))),_0x5734b7[_0x350585(399)](_0x574d9c);const _0x1c0b17=undefined,_0x40572b=undefined;
132_0x2203bc=[...new Set([..._0x5734b7[_0x350585(385)]((_0x3c3044=>_0x3c3044[_0x350585(568)]+\",\"+_0x3c3044[_0x350585(475)]))])][_0x350585(385)]((_0x27b1be=>{const _0x26df83=_0x350585,[_0x217d30,_0x73888]=[..._0x27b1be[_0x26df83(421)](\",\")];return{latitude:parseFloat(_0x73888),longitude:parseFloat(_0x217d30)}}))}_0x57fadc(_0x2203bc,{..._0x2d766e},_0x23ef54,!0)}))[_0x2c6dfc(491)]((_0x2d46a5=>{const _0x8e4c12=_0x2c6dfc;console[_0x8e4c12(375)](_0x8e4c12(535),_0x2d46a5),_0x740a36.triggerEvent(_0x8e4c12(580))}))}}[_0x14e978(449)](_0x2738bd){const _0x2b7ab3=_0x14e978;this[_0x2b7ab3(398)][_0x2b7ab3(604)]((_0x536b2a=>{const _0xf76708=_0x2b7ab3;_0x536b2a[_0xf76708(417)]===_0x2738bd[_0xf76708(351)]&&(_0x536b2a.instance[_0xf76708(590)](_0x740a36[_0xf76708(335)][_0xf76708(385)]),_0x536b2a[_0xf76708(293)][_0xf76708(604)]((_0xf51fb2=>_0xf51fb2[_0xf76708(590)](_0x740a36[_0xf76708(335)][_0xf76708(385)]))),_0x2738bd[_0xf76708(519)]&&_0x740a36[_0xf76708(335)].map[_0xf76708(349)](_0x536b2a[_0xf76708(424)].getBounds()))}))}[_0x14e978(406)](_0xdd99c8){const _0x487002=_0x14e978;this[_0x487002(398)][_0x487002(604)]((_0x5a4b57=>{const _0x1a72e2=_0x487002;_0x5a4b57[_0x1a72e2(417)]===_0xdd99c8[_0x1a72e2(351)]&&(_0x5a4b57.instance[_0x1a72e2(522)](_0x740a36[_0x1a72e2(335)][_0x1a72e2(385)]),_0x5a4b57.markerInstance[_0x1a72e2(604)]((_0x156ceb=>_0x156ceb[_0x1a72e2(522)](_0x740a36[_0x1a72e2(335)][_0x1a72e2(385)]))))}))}[_0x14e978(546)](_0x6f47c){const _0x2acc10=_0x14e978;this[_0x2acc10(398)][_0x2acc10(604)]((_0x569921=>{const _0xf16fef=_0x2acc10;_0x569921[_0xf16fef(417)]!==_0x6f47c[_0xf16fef(351)]?(_0x569921.instance[_0xf16fef(522)](_0x740a36[_0xf16fef(335)][_0xf16fef(385)]),_0x569921[_0xf16fef(293)][_0xf16fef(604)]((_0x3054d1=>_0x3054d1.removeFrom(_0x740a36[_0xf16fef(335)][_0xf16fef(385)])))):(_0x569921[_0xf16fef(424)].addTo(_0x740a36[_0xf16fef(335)][_0xf16fef(385)]),_0x569921[_0xf16fef(293)][_0xf16fef(604)]((_0x5e1099=>_0x5e1099[_0xf16fef(590)](_0x740a36[_0xf16fef(335)].map))),_0x740a36[_0xf16fef(335)].map[_0xf16fef(349)](_0x569921[_0xf16fef(424)][_0xf16fef(436)]()))})),this[_0x2acc10(577)](_0x6f47c)}[_0x14e978(452)](_0x1bd8fc,_0x334853){const _0x540fff=_0x14e978,_0x1330a8=_0x1bd8fc[_0x540fff(484)].map((_0x21815a=>_0x21815a[_0x540fff(475)])),_0x410e1a=_0x1bd8fc[_0x540fff(484)][_0x540fff(385)]((_0x2da6a7=>_0x2da6a7[_0x540fff(568)])),_0x13dc39=_0x1bd8fc[_0x540fff(403)][_0x540fff(385)]((_0x23cb7e=>_0x23cb7e[_0x540fff(475)])),_0x491a8c=_0x1bd8fc.baseParams[_0x540fff(385)]((_0xbd58de=>_0xbd58de.longitude));_0x740a36[_0x540fff(521)](_0x540fff(296),_0x1330a8),_0x740a36[_0x540fff(521)](_0x540fff(313),_0x410e1a),_0x740a36.publishState(_0x540fff(544),_0x13dc39),_0x740a36[_0x540fff(521)](_0x540fff(299),_0x491a8c);const _0x57d0a0={lat:_0x1330a8[0],lng:_0x410e1a[0]},_0x2dbd48={lat:_0x1330a8[_0x1330a8.length-1],lng:_0x410e1a[_0x410e1a[_0x540fff(533)]-1]};_0x740a36.publishState(\"here_route_name\",_0x1bd8fc[_0x540fff(417)]),_0x740a36[_0x540fff(521)](\"here_route_distance\",_0x1bd8fc[_0x540fff(559)][_0x540fff(533)]),_0x740a36[_0x540fff(521)](_0x540fff(324),_0x1bd8fc[_0x540fff(559)][_0x540fff(297)]),_0x740a36[_0x540fff(521)](_0x540fff(337),_0x1bd8fc[_0x540fff(559)].baseDuration),_0x740a36[_0x540fff(521)](\"here_route_traffic_time\",_0x1bd8fc[_0x540fff(559)][_0x540fff(297)]-_0x1bd8fc[_0x540fff(559)].baseDuration),_0x740a36[_0x540fff(521)](_0x540fff(510),99999999e3===_0x1bd8fc[_0x540fff(372)]?0:_0x1bd8fc[_0x540fff(372)]/1e3),_0x740a36.publishState(\"here_route_base_color\",_0x1bd8fc[_0x540fff(370)]),_0x740a36[_0x540fff(521)](\"here_route_color\",_0x1bd8fc[_0x540fff(448)]);const _0x5aa9c7=[];for(let _0x40ffe8 in _0x1bd8fc[_0x540fff(328)])_0x5aa9c7[_0x540fff(399)](_0x40ffe8[_0x540fff(341)](/([A-Z])/g,\" $1\")[_0x540fff(419)]()+\": \"+_0x1bd8fc[_0x540fff(328)][_0x40ffe8]);_0x740a36.publishState(_0x540fff(391),_0x5aa9c7),this[_0x540fff(570)](_0x57d0a0,(_0x187be0=>{const _0x730e0e=_0x540fff;_0x740a36.publishState(_0x730e0e(356),_0x187be0),this[_0x730e0e(570)](_0x2dbd48,(_0x3cbb68=>{const _0xd49c16=_0x730e0e;_0x740a36[_0xd49c16(521)](\"here_route_destination_address\",_0x3cbb68);const _0x4aad3b=_0x1330a8[_0xd49c16(437)](1,-1)[_0xd49c16(385)](((_0x2ab23b,_0x1174aa)=>new Promise((_0x306bec=>{const _0x59f270=undefined;this[_0x4bac(570)]({lat:_0x2ab23b,lng:_0x410e1a[_0x1174aa+1]},_0x306bec)}))));Promise[_0xd49c16(310)](_0x4aad3b)[_0xd49c16(587)]((_0x10338a=>{const _0x22545a=_0xd49c16;_0x740a36[_0x22545a(521)](_0x22545a(553),_0x10338a),_0x740a36[_0x22545a(599)](_0x334853)}))}))}))}[_0x14e978(489)](_0x393287){const _0x27e74c=_0x14e978;
132this[_0x27e74c(398)].forEach((_0x5787bd=>{const _0x2cbff6=_0x27e74c;_0x5787bd.name===_0x393287[_0x2cbff6(351)]&&_0x5787bd[_0x2cbff6(484)][_0x2cbff6(533)]>2&&_0x393287.marker<_0x5787bd[_0x2cbff6(484)][_0x2cbff6(533)]-1&&(_0x5787bd[_0x2cbff6(484)][_0x2cbff6(597)](_0x393287[_0x2cbff6(396)],1),_0x57fadc(_0x5787bd[_0x2cbff6(484)],_0x5787bd,_0x5787bd,!0))}))}exportRoute(_0x2818bf){this.routeInfo.forEach((_0x536ee4=>{const _0x50c9bb=_0x4bac;_0x536ee4[_0x50c9bb(417)]===_0x2818bf[_0x50c9bb(351)]&&this[_0x50c9bb(452)](_0x536ee4,_0x50c9bb(432))}))}[_0x14e978(570)](_0x16d6f1,_0x249020){const _0x578a6a=_0x14e978,_0x3b7605=new URL(_0x578a6a(393));_0x3b7605.searchParams[_0x578a6a(575)](\"apiKey\",_0x1d721f[_0x578a6a(594)][_0x578a6a(422)]),_0x3b7605[_0x578a6a(567)].append(\"at\",_0x16d6f1[_0x578a6a(383)]+\",\"+_0x16d6f1[_0x578a6a(468)]),_0x3b7605[_0x578a6a(567)][_0x578a6a(575)](\"lang\",\"en\"),fetch(_0x3b7605)[_0x578a6a(587)]((_0x3ebd23=>_0x3ebd23[_0x578a6a(336)]()))[_0x578a6a(587)]((_0xa7a9dd=>{const _0x1afa77=_0x578a6a;let _0x3d4afe=null;_0xa7a9dd[_0x1afa77(305)]&&_0xa7a9dd.items[_0x1afa77(533)]>0&&(_0x3d4afe=_0xa7a9dd[_0x1afa77(305)][0][_0x1afa77(348)][_0x1afa77(343)]),_0x249020(_0x3d4afe)}))[_0x578a6a(491)]((_0x54c65f=>{const _0x66bdfd=_0x578a6a;console.error(_0x66bdfd(534),_0x54c65f),_0x249020(null)}))}[_0x14e978(577)](_0x12d33f){const _0x4e7c98=_0x14e978;this[_0x4e7c98(398)][_0x4e7c98(604)]((_0x60a072=>{const _0x500096=_0x4e7c98;_0x60a072[_0x500096(417)]===_0x12d33f.route_name&&this.publishThisRoute(_0x60a072,_0x500096(405))}))}addWfRouteMarker(_0x24c846){const _0x2a6491=_0x14e978;this[_0x2a6491(576)]=_0x24c846[_0x2a6491(351)],this[_0x2a6491(574)]=!1,_0x24c846[_0x2a6491(330)]&&_0x24c846[_0x2a6491(348)]?this[_0x2a6491(483)]({q:_0x24c846[_0x2a6491(348)]},(_0x448167=>{const _0x538da4=_0x2a6491;let _0xf06c02=this[_0x538da4(602)](_0x448167);_0xf06c02?this.updateRoute({lat:_0xf06c02[_0x538da4(475)],lng:_0xf06c02[_0x538da4(568)]}):(console[_0x538da4(375)](_0x538da4(292)),_0x740a36.triggerEvent(_0x538da4(580)))})):null!=_0x24c846[_0x2a6491(475)]&&null!=_0x24c846[_0x2a6491(568)]?this[_0x2a6491(298)]({lat:_0x24c846[_0x2a6491(475)],lng:_0x24c846[_0x2a6491(568)]}):(console[_0x2a6491(375)](\"Invalid input: neither valid coordinates nor valid address provided\"),_0x740a36[_0x2a6491(599)](\"no_route_was_found\"))}[_0x14e978(602)](_0x414b79){const _0x138ec7=_0x14e978;return _0x414b79.items&&_0x414b79[_0x138ec7(305)][_0x138ec7(533)]>0?{latitude:_0x414b79[_0x138ec7(305)][0][_0x138ec7(545)][_0x138ec7(383)],longitude:_0x414b79.items[0][_0x138ec7(545)][_0x138ec7(468)]}:null}[_0x14e978(487)](_0x37e2f7={}){const _0x5f320f=_0x14e978,_0x110eb1=_0x37e2f7.table_source;_0x110eb1&&typeof _0x110eb1[_0x5f320f(551)]===_0x5f320f(428)&&\"function\"==typeof _0x110eb1[_0x5f320f(533)]?_0x110eb1.get(0,_0x110eb1[_0x5f320f(533)]())[_0x5f320f(604)]((_0x7debbc=>{const _0x5bd0b3=_0x5f320f,_0x5bbae7=[];if(_0x37e2f7.latitude_field&&_0x37e2f7[_0x5bd0b3(566)]){const _0x72ad8b=_0x7debbc.get(_0x37e2f7[_0x5bd0b3(430)]),_0xa2cc76=_0x7debbc[_0x5bd0b3(551)](_0x37e2f7[_0x5bd0b3(566)]);_0x72ad8b&&_0xa2cc76&&typeof _0x72ad8b[_0x5bd0b3(551)]===_0x5bd0b3(428)&&typeof _0xa2cc76[_0x5bd0b3(551)]===_0x5bd0b3(428)&&(_0x72ad8b[_0x5bd0b3(551)](0,_0x72ad8b[_0x5bd0b3(533)]())[_0x5bd0b3(604)]((_0x5498d7=>_0x5bbae7.push({latitude:_0x5498d7}))),_0xa2cc76[_0x5bd0b3(551)](0,_0xa2cc76[_0x5bd0b3(533)]())[_0x5bd0b3(604)](((_0x3e9e07,_0x4b49ac)=>{_0x5bbae7[_0x4b49ac]&&(_0x5bbae7[_0x4b49ac].longitude=_0x3e9e07)})))}const _0x4681e6={};if(_0x37e2f7[_0x5bd0b3(456)]){const _0x56de49=_0x7debbc[_0x5bd0b3(551)](_0x37e2f7[_0x5bd0b3(456)]);_0x56de49&&typeof _0x56de49[_0x5bd0b3(551)]===_0x5bd0b3(428)&&_0x56de49[_0x5bd0b3(551)](0,_0x56de49[_0x5bd0b3(533)]())[_0x5bd0b3(604)]((_0x203176=>{const _0x7fd948=_0x5bd0b3,[_0x29bcd3,_0x2ea263]=_0x203176[_0x7fd948(421)](\":\");if(_0x29bcd3&&_0x2ea263){const _0x3fe175=_0x29bcd3[_0x7fd948(341)](/( [a-z])/g,((_0x254556,_0x4142a3)=>_0x4142a3[_0x7fd948(446)]()[_0x7fd948(511)]()));_0x4681e6[_0x3fe175]=_0x2ea263[_0x7fd948(511)]()}}))}const _0x429b4a={name:_0x37e2f7[_0x5bd0b3(499)]?_0x7debbc[_0x5bd0b3(551)](_0x37e2f7[_0x5bd0b3(499)]):_0x5bd0b3(374)+Date[_0x5bd0b3(291)](),color:_0x37e2f7[_0x5bd0b3(571)]?_0x7debbc[_0x5bd0b3(551)](_0x37e2f7[_0x5bd0b3(571)]):\"#000000\",baseColor:_0x37e2f7.base_color_field?_0x7debbc[_0x5bd0b3(551)](_0x37e2f7.base_color_field):_0
132x5bd0b3(314),deltaRoute:_0x37e2f7[_0x5bd0b3(379)]?_0x7debbc.get(_0x37e2f7.distance_limit_field):1/0,restrictions:Object.keys(_0x4681e6)[_0x5bd0b3(533)]>0?_0x4681e6:void 0};_0x5bbae7[_0x5bd0b3(533)]>=2?_0x57fadc(_0x5bbae7,_0x429b4a,{},!1,_0x37e2f7[_0x5bd0b3(481)]||!1):console[_0x5bd0b3(541)](_0x5bd0b3(344))})):console.error(_0x5f320f(318))}[_0x14e978(461)](_0x64b409){const _0xc5b2c9=_0x14e978;this[_0xc5b2c9(398)].forEach(((_0x3591cd,_0x4f1555)=>{const _0x275db4=_0xc5b2c9;if(_0x3591cd.name===_0x64b409[_0x275db4(351)]){const _0x425b26={..._0x3591cd};_0x425b26[_0x275db4(424)]=L[_0x275db4(365)](_0x3591cd[_0x275db4(365)],{color:_0x3591cd[_0x275db4(448)]})[_0x275db4(590)](_0x740a36.data[_0x275db4(385)]),_0x425b26[_0x275db4(530)]=L[_0x275db4(365)](_0x3591cd[_0x275db4(365)],{color:_0x3591cd[_0x275db4(370)],weight:10,opacity:.8}),_0x425b26[_0x275db4(441)]=_0x3591cd.actual,_0x425b26[_0x275db4(403)]=_0x3591cd[_0x275db4(484)],_0x3591cd.instance[_0x275db4(522)](_0x740a36[_0x275db4(335)][_0x275db4(385)]),_0x3591cd[_0x275db4(530)].removeFrom(_0x740a36[_0x275db4(335)].map),this[_0x275db4(398)][_0x4f1555]=_0x425b26}}))}[_0x14e978(601)](){const _0x4d05df=_0x14e978;this[_0x4d05df(398)].forEach((_0x5918b1=>{const _0x2c5a50=_0x4d05df;_0x5918b1[_0x2c5a50(424)][_0x2c5a50(522)](_0x740a36.data.map),_0x5918b1[_0x2c5a50(293)][_0x2c5a50(604)]((_0x3bee02=>_0x3bee02.removeFrom(_0x740a36.data[_0x2c5a50(385)])))})),this[_0x4d05df(467)]=[],this[_0x4d05df(398)]=[],this[_0x4d05df(460)]=[]}}_0x740a36[_0x14e978(335)][_0x14e978(527)]={country:[0,0],countryCode:\"\",state:\"\",city:\"\",label:\"\",ruckControl:!1,addresses:[],filterCountry:!1},_0x740a36[_0x14e978(335)][_0x14e978(455)]=null,_0x740a36[_0x14e978(335)][_0x14e978(488)]={platform:null,router:null,geoservice:null,routeInitialized:!1},_0x740a36[_0x14e978(335)][_0x14e978(517)]=[];const _0x57fadc=(_0x3b3b9e,_0x208b4a,_0x501a74,_0x477a7d=!1,_0x5d46a9=!0,_0x49e667=!0)=>{const _0x41748c=_0x14e978,_0x3e4e69=_0x41748c(595),_0x10a180=new URLSearchParams({apiKey:_0x1d721f.keys[\"Here access token\"],transportMode:_0x208b4a[_0x41748c(440)]||_0x41748c(525),return:_0x41748c(603),..._0x208b4a[_0x41748c(328)]});_0x10a180[_0x41748c(575)](\"origin\",_0x3b3b9e[0][_0x41748c(475)]+\",\"+_0x3b3b9e[0].longitude);for(let _0x4027f3=1;_0x4027f3<_0x3b3b9e.length-1;_0x4027f3++)_0x10a180.append(_0x41748c(408),_0x3b3b9e[_0x4027f3][_0x41748c(475)]+\",\"+_0x3b3b9e[_0x4027f3][_0x41748c(568)]);_0x10a180[_0x41748c(575)](\"destination\",_0x3b3b9e[_0x3b3b9e[_0x41748c(533)]-1][_0x41748c(475)]+\",\"+_0x3b3b9e[_0x3b3b9e[_0x41748c(533)]-1][_0x41748c(568)]),fetch(_0x3e4e69+\"?\"+_0x10a180,{method:_0x41748c(572)})[_0x41748c(587)]((_0x9c0fb3=>_0x9c0fb3[_0x41748c(336)]()))[_0x41748c(587)]((_0xbba462=>{const _0x1c046e=_0x41748c;if(_0xbba462[_0x1c046e(586)]&&_0xbba462[_0x1c046e(586)][_0x1c046e(533)]>0){const _0x7d2fee=_0xbba462[_0x1c046e(586)][0];let _0xc74978=[],_0x18d843={length:0,duration:0,baseDuration:0};
132if(_0x7d2fee[_0x1c046e(506)].forEach((_0x2ce2e0=>{const _0x701ce5=_0x1c046e,_0x5527db=_0x4125c8(_0x2ce2e0[_0x701ce5(365)])[_0x701ce5(365)];_0xc74978=_0xc74978[_0x701ce5(520)](_0x5527db),_0x18d843[_0x701ce5(533)]+=_0x2ce2e0[_0x701ce5(423)][_0x701ce5(533)],_0x18d843[_0x701ce5(297)]+=_0x2ce2e0.summary.duration,_0x18d843[_0x701ce5(542)]+=_0x2ce2e0.summary[_0x701ce5(542)]})),_0x477a7d){const _0x20c5ec=_0x18d843[_0x1c046e(533)]-_0x501a74[_0x1c046e(441)][_0x1c046e(533)];_0x501a74.deltaRoute?_0x20c5ec<_0x501a74[_0x1c046e(372)]?_0x740a36[_0x1c046e(335)].routingMachine[_0x1c046e(357)](_0xc74978,_0x208b4a,_0x3b3b9e,_0x18d843,_0x5d46a9,_0x49e667):_0x740a36[_0x1c046e(599)](\"route_limit_exceeded\"):_0x740a36.data[_0x1c046e(515)][_0x1c046e(357)](_0xc74978,_0x208b4a,_0x3b3b9e,_0x18d843,_0x5d46a9,_0x49e667)}else _0x740a36.data[_0x1c046e(515)][_0x1c046e(357)](_0xc74978,_0x208b4a,_0x3b3b9e,_0x18d843,_0x5d46a9)}else console.error(\"No routes found in API response\"),_0x740a36.triggerEvent(_0x1c046e(580))})).catch((_0x40c278=>{const _0x25ac79=undefined;console[_0x41748c(375)](\"Error in HERE API call:\",_0x40c278),_0x740a36.triggerEvent(\"no_route_was_found\")}))};function _0x4125c8(_0x2a5be5){const _0x58b9b9=undefined;return PolylineDecoder[_0x14e978(485)](_0x2a5be5)}_0x740a36[_0x14e978(335)][_0x14e978(385)]=null,_0x740a36[_0x14e978(335)][_0x14e978(507)]=!1,_0x740a36[_0x14e978(335)][_0x14e978(445)]={loadMap:()=>{const _0xfa74cc=_0x14e978;_0x740a36[_0xfa74cc(335)][_0xfa74cc(385)]=_0x740a36.data.mymap,_0x740a36.data[_0xfa74cc(515)]=new _0x27b691},getHereRoute:_0x2118ed=>{const _0x41e769=_0x14e978,_0x302947={color:_0x2118ed[_0x41e769(493)],baseColor:_0x2118ed[_0x41e769(402)],name:_0x2118ed[_0x41e769(351)],transport_mode:_0x2118ed[_0x41e769(440)],deltaRoute:_0x2118ed[_0x41e769(364)]?_0x2118ed.distance_limit:99999999,restrictions:{},vehicle:{}};if(_0x2118ed[_0x41e769(501)]&&(_0x302947.vehicle[_0x41e769(392)]=_0x2118ed[_0x41e769(501)]),_0x2118ed[_0x41e769(496)]&&(_0x302947.vehicle[_0x41e769(413)]=_0x2118ed[_0x41e769(496)]),_0x2118ed[_0x41e769(554)]&&(_0x302947.vehicle.trailerForbidden=_0x2118ed.trailers_count),_0x2118ed[_0x41e769(479)]&&(_0x302947[_0x41e769(447)].shippedHazardousGoods=_0x2118ed[_0x41e769(479)][_0x41e769(341)](/ ([a-z])/g,\"$1\".toUpperCase())),_0x2118ed[_0x41e769(454)]&&(_0x302947[_0x41e769(447)][_0x41e769(302)]=_0x2118ed.tunnel_category),_0x2118ed[_0x41e769(301)]){const _0x5e0fbf=_0x2118ed[_0x41e769(301)].replace(/ ([a-z])/g,\"$1\"[_0x41e769(446)]());_0x302947[_0x41e769(447)].type=_0x5e0fbf===_0x41e769(492)?\"StraightTruck\":_0x41e769(329)}if(_0x2118ed[_0x41e769(476)]&&(_0x302947[_0x41e769(447)][_0x41e769(476)]=_0x2118ed.width),_0x2118ed[_0x41e769(380)]&&(_0x302947[_0x41e769(447)][_0x41e769(380)]=_0x2118ed[_0x41e769(380)]),(_0x2118ed[_0x41e769(458)]||_0x2118ed.weights_per_axle_tandem)&&(_0x302947[_0x41e769(447)][_0x41e769(418)]={single:_0x2118ed[_0x41e769(458)],tandem:_0x2118ed[_0x41e769(565)]}),_0x2118ed[_0x41e769(561)]){const _0x11de10=[];_0x2118ed[_0x41e769(504)][_0x41e769(551)](0,_0x2118ed[_0x41e769(504)].length())[_0x41e769(604)]((_0x4166a4=>{const _0x32a9e5=undefined;_0x11de10[_0x41e769(399)]({latitude:_0x4166a4})})),_0x2118ed[_0x41e769(332)][_0x41e769(551)](0,_0x2118ed.longitude_list.length())[_0x41e769(604)](((_0x5bde63,_0x4ba51f)=>{const _0x518e88=_0x41e769;_0x11de10[_0x4ba51f][_0x518e88(568)]=_0x5bde63})),_0x57fadc(_0x11de10,_0x302947)}else _0x740a36[_0x41e769(335)][_0x41e769(515)][_0x41e769(478)]({q:_0x2118ed[_0x41e769(435)]},{q:_0x2118ed[_0x41e769(322)]},_0x302947)},getManualRoute:_0x5f2f5c=>{},addMarkerClick:_0x55d132=>{const _0x35a8cc=_0x14e978,{route_name:_0x39ba3e}=_0x55d132,_0x3eddc0=_0x39ba3e||\"\"+Date[_0x35a8cc(291)]();_0x740a36[_0x35a8cc(335)].routingMachine[_0x35a8cc(311)](_0x3eddc0)},zoomToMap:_0x1f572d=>{const _0xc3a66a=_0x14e978;let _0x3fa886=null;_0x740a36[_0xc3a66a(335)].routingMachine.routeInfo[_0xc3a66a(604)]((_0x3c0326=>{const _0x514811=_0xc3a66a;_0x3c0326[_0x514811(417)]===_0x1f572d[_0x514811(351)]&&(_0x3fa886=_0x3c0326[_0x514811(424)])})),_0x3fa886?_0x740a36[_0xc3a66a(335)].map[_0xc3a66a(349)](_0x3fa886[_0xc3a66a(436)]()):alert(_0xc3a66a(442))},editRoute:_0x1f7248=>{const _0x4bb32b=_0x14e978;let _0x4852c1=-1;if(_0x740a36[_0x4bb32b(335)][_0x4bb32b(515)][_0x4bb32b(398)][_0x4bb32b(604)](((_0x3f5ffa,_0x215cfd)=>{const _0x4fb836=_0x4bb32b;
132_0x3f5ffa[_0x4fb836(417)]===_0x1f7248[_0x4fb836(351)]&&(_0x4852c1=_0x215cfd)})),_0x4852c1>-1){const _0x17e898=_0x740a36[_0x4bb32b(335)][_0x4bb32b(515)][_0x4bb32b(398)][_0x4852c1];_0x17e898[_0x4bb32b(424)][_0x4bb32b(522)](_0x740a36[_0x4bb32b(335)][_0x4bb32b(385)]);const _0x22971d=L[_0x4bb32b(365)](_0x17e898[_0x4bb32b(365)],{color:_0x1f7248.color})[_0x4bb32b(590)](_0x740a36[_0x4bb32b(335)][_0x4bb32b(385)]);_0x740a36[_0x4bb32b(335)].routingMachine[_0x4bb32b(398)][_0x4852c1]={..._0x740a36[_0x4bb32b(335)][_0x4bb32b(515)][_0x4bb32b(398)][_0x4852c1],color:_0x1f7248.color,deltaRoute:_0x1f7248[_0x4bb32b(364)],instance:_0x22971d}}else alert(_0x4bb32b(539)+_0x1f7248.route_name)},getAutocompleteSuggestion:_0x11ad2f=>{const _0x41209b=_0x14e978,_0x465893=new URL(_0x41209b(523));_0x465893.searchParams[_0x41209b(575)](_0x41209b(502),_0x1d721f[_0x41209b(594)][_0x41209b(422)]),_0x465893[_0x41209b(567)][_0x41209b(575)](\"q\",_0x11ad2f[_0x41209b(589)]),_0x465893[_0x41209b(567)][_0x41209b(575)](_0x41209b(480),\"8\"),_0x465893[_0x41209b(567)][_0x41209b(575)](_0x41209b(578),\"en\"),fetch(_0x465893)[_0x41209b(587)]((_0x143a7d=>_0x143a7d.json()))[_0x41209b(587)]((_0x2a1eb5=>{const _0x5855b7=_0x41209b;if(_0x2a1eb5[_0x5855b7(305)]&&_0x2a1eb5[_0x5855b7(305)][_0x5855b7(533)]>0){const _0x3a65db=undefined,_0x42593c=_0x2a1eb5[_0x5855b7(305)][_0x5855b7(385)]((_0x58848b=>_0x58848b[_0x5855b7(348)][_0x5855b7(343)][_0x5855b7(341)](/,/g,\" -\")));_0x740a36[_0x5855b7(521)](_0x5855b7(366),_0x42593c),_0x740a36.triggerEvent(_0x5855b7(345))}else _0x740a36[_0x5855b7(521)](_0x5855b7(366),[\"\"]),_0x740a36.triggerEvent(_0x5855b7(345))}))[_0x41209b(491)]((_0x463058=>{const _0x266092=_0x41209b;console[_0x266092(375)](_0x266092(369),_0x463058),alert(\"An error occurred while fetching suggestions\")}))},showRoute:_0x214cb3=>{const _0x3597d6=_0x14e978;_0x740a36.data[_0x3597d6(515)].showRoute(_0x214cb3)},hideRoute:_0x109875=>{const _0x391fd0=_0x14e978;_0x740a36[_0x391fd0(335)][_0x391fd0(515)].hideRoute(_0x109875)},showOnly:_0x77e6b9=>{const _0x4f437a=_0x14e978;_0x740a36.data[_0x4f437a(515)].showOnly(_0x77e6b9)},exportRoute:_0x4e07c2=>{const _0x165eb4=_0x14e978;_0x740a36[_0x165eb4(335)].routingMachine[_0x165eb4(382)](_0x4e07c2)},addWfRouteMarker:_0x26c142=>{const _0x52483f=_0x14e978;_0x740a36[_0x52483f(335)].routingMachine[_0x52483f(434)](_0x26c142)},loadRoutesFromTable:_0x15406f=>{const _0x2f7eef=_0x14e978;_0x740a36[_0x2f7eef(335)].routingMachine[_0x2f7eef(487)](_0x15406f)},removeMarkerByIndex:_0x3d9c49=>{const _0x509572=_0x14e978;_0x740a36[_0x509572(335)][_0x509572(515)][_0x509572(489)](_0x3d9c49)},removeMarkerOnClick:_0x2dc303=>{const _0x4c8f88=_0x14e978;_0x740a36[_0x4c8f88(335)][_0x4c8f88(515)][_0x4c8f88(518)](_0x2dc303[_0x4c8f88(351)])},showRouteSummary:_0x18fb11=>{const _0x4bf7dc=_0x14e978;_0x740a36[_0x4bf7dc(335)][_0x4bf7dc(515)].showRouteSummary(_0x18fb11)},updateBaseRoute:_0xe53612=>{const _0x4a8ad5=_0x14e978;_0x740a36[_0x4a8ad5(335)][_0x4a8ad5(515)][_0x4a8ad5(461)](_0xe53612)}},_0x740a36.data[_0x14e978(445)].loadMap(),!_0x424cca.mouse_wheel_zoom&&_0x740a36.data[_0x14e978(513)][_0x14e978(596)][_0x14e978(381)](),_0x424cca[_0x14e978(350)]===_0x14e978(498)&&_0x740a36[_0x14e978(335)][_0x14e978(513)].on(_0x14e978(316),(_0x50263d=>{const _0x48cfd0=_0x14e978;\"default\"===_0x740a36[_0x48cfd0(335)][_0x48cfd0(304)]&&(_0x740a36[_0x48cfd0(521)](_0x48cfd0(410),_0x50263d[_0x48cfd0(420)][_0x48cfd0(383)]),_0x740a36[_0x48cfd0(521)](_0x48cfd0(548),_0x50263d.latlng[_0x48cfd0(468)]),_0x740a36[_0x48cfd0(599)](_0x48cfd0(537)))})),\"left\"===_0x424cca[_0x14e978(350)]&&_0x740a36[_0x14e978(335)].mymap.on(_0x14e978(512),(_0x7badb0=>{const _0x10aa49=_0x14e978;_0x740a36.data[_0x10aa49(304)]===_0x10aa49(584)&&(_0x740a36[_0x10aa49(521)](_0x10aa49(410),_0x7badb0[_0x10aa49(420)][_0x10aa49(383)]),_0x740a36[_0x10aa49(521)](_0x10aa49(548),_0x7badb0[_0x10aa49(420)][_0x10aa49(468)]),_0x740a36[_0x10aa49(599)](_0x10aa49(537)))}))}!function(_0x2f5293,_0x465eaf){const _0x1d9d96=_0x4bac,_0x426d38=_0x2f5293();for(;;)try{const _0x5094a0=undefined;if(402750===parseInt(_0x1d9d96(358))/1*(-parseInt(_0x1d9d96(425))/2)+-parseInt(_0x1d9d96(363))/3+parseInt(_0x1d9d96(582))/4+parseInt(_0x1d9d96(411))/5+-parseInt(_0x1d9d96(508))/6*(-parseInt(_0x1d9d96(389))/7)+parseInt(_0x1d9d96(317))/8*(-parseInt(_0x1d9d96(472))/9)+-parseInt(_0x1d9d96(564))/10)break;_0x426d38.push(_0x426d38.shift())}catch(_0x3e3ef3){_0x426d38.push(_0x426d38.shift())}}(_0x13f4,402750),run(instance,properties,context)}"}},"AAR":{"caption":"Remove map from","code":{"fn":"function(instance,properties,context){function _0x1cb6(_0x17644a,_0x1ae671){var _0x48b993=_0x48b9();return(_0x1cb6=function(_0x1cb609,_0x31c036){var _0x301540;return _0x48b993[_0x1cb609-=265]})(_0x17644a,_0x1ae671)}function _0x48b9(){var _0x2d3812=[\"291qaFvKW\",\"remove\",\"507461VJNjTV\",\"4200340VAvjNy\",\"30UOnYVk\",\"194180blTWqk\",\"9ZtfvVI\",\"mymap\",\"1516764ELgKXk\",\"575815EjXAHG\",\"2770056CiQtBP\",\"9114aoVTNs\"];return(_0x48b9=function(){return _0x2d3812})()}function run(_0x15f55b,_0x533b43,_0x2f31f4){var _0x589572=_0x1cb6;_0x15f55b.data[_0x589572(271)][_0x589572(265)]()}!function(_0x24663c,_0x296272){for(var _0x3ad9f4=_0x1cb6,_0x595f5b=_0x24663c();;)try{var _0x4cc6b6;if(352083===parseInt(_0x3ad9f4(266))/1+parseInt(_0x3ad9f4(275))/2*(parseInt(_0x3ad9f4(276))/3)+-parseInt(_0x3ad9f4(272))/4+parseInt(_0x3ad9f4(273))/5*(parseInt(_0x3ad9f4(268))/6)+-parseInt(_0x3ad9f4(269))/7+-parseInt(_0x3ad9f4(274))/8+parseInt(_0x3ad9f4(270))/9*(-parseInt(_0x3ad9f4(267))/10))break;_0x595f5b.push(_0x595f5b.shift())}catch(_0x3fb99a){_0x595f5b.push(_0x595f5b.shift())}}(_0x48b9,352083),run(instance,properties,context)}"}},"AAS":{"caption":"Draw line on","fields":{"AAw":{"caption":"List of latitudes","editor":"DynamicValue","is_list":true,"name":"list_of_latitudes","optional":true,"rank":1,"value":"number"},"AAx":{"caption":"List of longitudes","editor":"DynamicValue","is_list":true,"name":"list_of_longitudes","optional":true,"rank":2,"value":"number"},"AAy":{"caption":"Line color","default_val":"rgba(235, 153, 0, 1)","editor":"Color","name":"stroke_color","rank":6},"AAz":{"caption":"Zoom map to this line?","default_val":false,"editor":"Checkbox","name":"zoom_map_to_this_line","rank":3},"ABA":{"caption":"Unique line name","editor":"DynamicValue","name":"polyline_name","rank":0,"value":"text"},"ABv":{"caption":"Use encoded shape?","default_val":false,"editor":"Checkbox","name":"use_encoded_shape_polyline","optional":true,"rank":4,"value":"text"},"ABw":{"caption":"Encoded shape","editor":"DynamicValue","name":"encoded_shape","optional":true,"rank":5,"value":"text"},"ABx":{"caption":"Weight","default_val":3,"editor":"DynamicValue","name":"stroke_weight","rank":7,"value":"number"},"ABy":{"caption":"Opacity","default_val":1,"editor":"DynamicValue","name":"stroke_opacity","rank":8,"value":"number"},"ABz":{"caption":"Line cap","default_val":"round","editor":"Dropdown","name":"line_cap","rank":9},"ACA":{"caption":"Line join","default_val":"round","editor":"Dropdown","name":"line_join","rank":10}},"code":{"fn":"function(instance,properties,context){function _0xe290(_0xd75bb0,_0x19cc33){const _0x193e05=_0x193e();return(_0xe290=function(_0xe2903b,_0x2378e8){let _0x21d524;return _0x193e05[_0xe2903b-=394]})(_0xd75bb0,_0x19cc33)}function run(_0x57ffcd,_0x441192,_0x1f2fbb){const _0x419f17=_0xe290,_0x3898bb=function(_0x29b48e,_0x45005a){const _0x40cc5c=_0xe290;for(var _0x53d84f=0,_0x362f0c=0,_0x3c396f=0,_0x310376=[],_0x1d0563=0,_0x5a5869=0,_0x3a5e90=null,_0x5dbe1e,_0xd67d76,_0x2d75ac=Math.pow(10,_0x45005a||6);_0x53d84f<_0x29b48e[_0x40cc5c(416)];){_0x3a5e90=null,_0x1d0563=0,_0x5a5869=0;do{_0x5a5869|=(31&(_0x3a5e90=_0x29b48e.charCodeAt(_0x53d84f++)-63))<<_0x1d0563,_0x1d0563+=5}while(_0x3a5e90>=32);_0x5dbe1e=1&_0x5a5869?~(_0x5a5869>>1):_0x5a5869>>1,_0x1d0563=_0x5a5869=0;do{_0x5a5869|=(31&(_0x3a5e90=_0x29b48e[_0x40cc5c(409)](_0x53d84f++)-63))<<_0x1d0563,_0x1d0563+=5}while(_0x3a5e90>=32);_0x362f0c+=_0x5dbe1e,_0x3c396f+=_0xd67d76=1&_0x5a5869?~(_0x5a5869>>1):_0x5a5869>>1,_0x310376[_0x40cc5c(404)]([_0x362f0c/_0x2d75ac,_0x3c396f/_0x2d75ac])}return _0x310376};let _0x3370d9=[],_0x1e2389=(_0x260bee,_0x1f6975,_0xe7fbae)=>{const _0x46dba8=undefined;let _0x5a6ba7;return _0x260bee[_0xe290(405)](_0x1f6975,_0xe7fbae)},_0x1c9c8d=(_0x36609a,_0x5fb617)=>{let _0x3e76c3;return _0x1e2389(_0x36609a,0,_0x5fb617)};if(_0x441192[_0x419f17(406)])_0x3370d9=_0x3898bb(_0x441192.encoded_shape,6);else if(!_0x441192[_0x419f17(406)]){let _0x4460cc=_0x1c9c8d(_0x441192[_0x419f17(417)],_0x441192.list_of_latitudes.length()),_0x2d7d8b=_0x1c9c8d(_0x441192[_0x419f17(424)
132],_0x441192[_0x419f17(424)][_0x419f17(416)]());const _0x10b65f=(_0x2e94f4,_0x1987ac,_0x413be8)=>{const _0x3d0ab9=undefined;_0x3370d9[_0x419f17(404)]([_0x4460cc[_0x1987ac],_0x2d7d8b[_0x1987ac]])};_0x4460cc[_0x419f17(419)](_0x10b65f)}let _0x475098={color:_0x441192[_0x419f17(397)],weight:_0x441192[_0x419f17(402)],opacity:_0x441192[_0x419f17(403)],lineCap:_0x441192[_0x419f17(407)],lineJoin:_0x441192[_0x419f17(395)]};_0x57ffcd[_0x419f17(412)][\"\"+_0x441192[_0x419f17(425)]]=L[_0x419f17(398)](_0x3370d9,_0x475098)[_0x419f17(421)](_0x57ffcd.data[_0x419f17(427)]),_0x57ffcd[_0x419f17(412)][\"\"+_0x441192.polyline_name].on(_0x419f17(394),(function(){const _0x2b0d3d=_0x419f17;_0x57ffcd.publishState(_0x2b0d3d(414),_0x441192[_0x2b0d3d(425)])})),_0x441192[_0x419f17(399)]&&_0x57ffcd[_0x419f17(412)][_0x419f17(427)][_0x419f17(413)](_0x57ffcd.data[\"\"+_0x441192.polyline_name][_0x419f17(422)]())}function _0x193e(){const _0x14539c=[\"3373IvdMXC\",\"160764QYQeib\",\"stroke_weight\",\"stroke_opacity\",\"push\",\"get\",\"use_encoded_shape_polyline\",\"line_cap\",\"9011988MBKtVy\",\"charCodeAt\",\"2486foKBhS\",\"12fAdPwk\",\"data\",\"fitBounds\",\"geometry_clicked_name\",\"5ZfDelX\",\"length\",\"list_of_latitudes\",\"342440Lqmctt\",\"forEach\",\"1349736UkeenO\",\"addTo\",\"getBounds\",\"21ukDvRx\",\"list_of_longitudes\",\"polyline_name\",\"821412HvCzEt\",\"mymap\",\"538OroEbm\",\"click\",\"line_join\",\"10409130Lapelh\",\"stroke_color\",\"polyline\",\"zoom_map_to_this_line\"];return(_0x193e=function(){return _0x14539c})()}!function(_0xc4ba9c,_0x2d8731){const _0x4a00ed=_0xe290,_0x1534d5=_0xc4ba9c();for(;;)try{const _0x21921b=undefined;if(917855===parseInt(_0x4a00ed(400))/1*(parseInt(_0x4a00ed(428))/2)+parseInt(_0x4a00ed(426))/3*(-parseInt(_0x4a00ed(411))/4)+-parseInt(_0x4a00ed(415))/5*(parseInt(_0x4a00ed(396))/6)+-parseInt(_0x4a00ed(423))/7*(-parseInt(_0x4a00ed(420))/8)+-parseInt(_0x4a00ed(408))/9+parseInt(_0x4a00ed(418))/10+parseInt(_0x4a00ed(410))/11*(parseInt(_0x4a00ed(401))/12))break;_0x1534d5.push(_0x1534d5.shift())}catch(_0x1bda53){_0x1534d5.push(_0x1534d5.shift())}}(_0x193e,917855),run(instance,properties,context)}"}},"ABB":{"caption":"Zoom to line in","fields":{"ABC":{"caption":"Name of element","editor":"DynamicValue","name":"zoomed_element_name","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x3f89(){var _0x58c3a3=[\"zoomed_element_name\",\"564147jgGvGw\",\"638976nhMuvV\",\"2489095mgvVLV\",\"getBounds\",\"3655VqcKaj\",\"data\",\"fitBounds\",\"13385YjtYxw\",\"122584ijuRMD\",\"284ADfBwA\",\"6ZOFeJf\",\"329832aCsONz\"];return(_0x3f89=function(){return _0x58c3a3})()}function _0x5ee2(_0x5ef0d5,_0x60e43f){var _0x3f8954=_0x3f89();return(_0x5ee2=function(_0x5ee2ba,_0x1b8a86){var _0x91f2e5;return _0x3f8954[_0x5ee2ba-=399]})(_0x5ef0d5,_0x60e43f)}function run(_0x48d495,_0x266dc0,_0x4fb0ec){var _0x1fa5e0=_0x5ee2;_0x48d495[_0x1fa5e0(400)].mymap[_0x1fa5e0(401)](_0x48d495.data[\"\"+_0x266dc0[_0x1fa5e0(407)]][_0x1fa5e0(411)]())}!function(_0x4abd9d,_0x2657f6){for(var _0x4086b6=_0x5ee2,_0x38d442=_0x4abd9d();;)try{var _0x342a46;if(183841===parseInt(_0x4086b6(402))/1*(parseInt(_0x4086b6(405))/2)+-parseInt(_0x4086b6(406))/3+parseInt(_0x4086b6(404))/4*(parseInt(_0x4086b6(399))/5)+-parseInt(_0x4086b6(409))/6+parseInt(_0x4086b6(410))/7+parseInt(_0x4086b6(403))/8+-parseInt(_0x4086b6(408))/9)break;_0x38d442.push(_0x38d442.shift())}catch(_0x239c2d){_0x38d442.push(_0x38d442.shift())}}(_0x3f89,183841),run(instance,properties,context)}"}},"ABR":{"caption":"Set zoom on","fields":{"ABS":{"caption":"Desired zoom level","editor":"DynamicValue","name":"new_zoom","rank":0,"value":"number"}},"code":{"fn":"function(instance,properties,context){function _0x2a37(_0x44b9f8,_0x613f0e){var _0x1da6a5=_0x1da6();return(_0x2a37=function(_0x2a3759,_0x323495){var _0x227296;return _0x1da6a5[_0x2a3759-=349]})(_0x44b9f8,_0x613f0e)}function run(_0x7c29b9,_0x3b0961,_0x49ea36){var _0x57bfc8=_0x2a37;_0x7c29b9[_0x57bfc8(358)].mymap.setZoom(_0x3b0961[_0x57bfc8(349)])}function _0x1da6(){var _0x4e4d40=[\"10YNCMXu\",\"272302kNBAjM\",\"1107136kOpxfX\",\"536562TJPxKl\",\"1536051AHCahd\",\"425240ZnpoHR\",\"8426718cNgKQx\",\"data\",\"30QIAwmr\",\"134520HJmSWy\",\"new_zoom\",\"77ejywxp\"];return(_0x1da6=function(){return _0x4e4d40})()}!function(_0x3207df,_0x5cee6e){for(var _0x3456c6=_0x2a37,_0x140533=_0x3207df();;)try{var _0x2fed58;if(304400===parseInt(_0x3456c6(352))/1+-parseInt(_0x3456c6(360))/2+-parseInt(_0x3456c6(355))/3+-parseInt(_0x3456c6(353))/4+parseInt(_0x3456c6(359))/5*(parseInt(_0x3456c6(354))/6)+-parseInt(_0x3456c6(350))/7*(parseInt(_0x3456c6(356))/8)+parseInt(_0x3456c6(357))/9*(parseInt(_0x3456c6(351))/10))break;_0x140533.push(_0x140533.shift())}catch(_0x34d83f){_0x140533.push(_0x140533.shift())}}(_0x1da6,304400),run(instance,properties,context)}"}},"ABT":{"caption":"Pan to in","fields":{"ABU":{"caption":"Latitude","editor":"DynamicValue","name":"latitude","rank":1,"value":"number"},"ABV":{"caption":"Longitude","editor":"DynamicValue","name":"longitude","rank":2,"value":"number"}
132,"ABW":{"caption":"Pans the view to a specific point.","editor":"Label","name":"pans_the_view_to_a_specific_point.","rank":0}},"code":{"fn":"function(instance,properties,context){function _0x6269(_0x195e3a,_0x572a6c){var _0x346c25=_0x346c();return(_0x6269=function(_0x62690a,_0x5229c2){var _0x47552d;return _0x346c25[_0x62690a-=331]})(_0x195e3a,_0x572a6c)}function run(_0x28f4f0,_0x25014f,_0xc9df3d){var _0xd1106b=_0x6269;_0x28f4f0[_0xd1106b(334)][_0xd1106b(337)][_0xd1106b(335)]([_0x25014f.latitude,_0x25014f[_0xd1106b(336)]])}function _0x346c(){var _0x578b00=[\"data\",\"panTo\",\"longitude\",\"mymap\",\"3220704OvgRyE\",\"4604046bkAhHs\",\"1401549FmicuQ\",\"4lNQNrC\",\"56445kCcjJk\",\"4345551sXEJFu\",\"342630kxnmkT\",\"1986198XgXfki\"];return(_0x346c=function(){return _0x578b00})()}!function(_0x588809,_0x519027){for(var _0x26beac=_0x6269,_0x198bba=_0x588809();;)try{var _0x203fe6;if(684359===parseInt(_0x26beac(332))/1+-parseInt(_0x26beac(333))/2+-parseInt(_0x26beac(340))/3*(parseInt(_0x26beac(341))/4)+parseInt(_0x26beac(342))/5+parseInt(_0x26beac(339))/6+parseInt(_0x26beac(331))/7+parseInt(_0x26beac(338))/8)break;_0x198bba.push(_0x198bba.shift())}catch(_0x50f253){_0x198bba.push(_0x198bba.shift())}}(_0x346c,684359),run(instance,properties,context)}"}},"ABa":{"caption":"Draw polygon on","fields":{"ABb":{"caption":"List of latitudes","editor":"DynamicValue","is_list":true,"name":"list_of_latitudes","rank":1,"value":"number"},"ABc":{"caption":"List of longitudes","editor":"DynamicValue","is_list":true,"name":"list_of_longitudes","rank":2,"value":"number"},"ABd":{"caption":"Draw stroke","default_val":true,"editor":"Checkbox","name":"draw_stroke","rank":3},"ABe":{"caption":"Stroke color","default_val":"rgba(10, 4, 77, 1)","editor":"Color","name":"stroke_color","rank":4},"ABf":{"caption":"Stroke weight","default_val":3,"editor":"DynamicValue","name":"stroke_weight","rank":5,"value":"number"},"ABg":{"caption":"Stroke opacity","default_val":1,"editor":"DynamicValue","name":"stroke_opacity","rank":6,"value":"number"},"ABi":{"caption":"Fill color","default_val":"rgba(0, 159, 191, 1)","editor":"Color","name":"fill_color","rank":8},"ABj":{"caption":"Fill opacity","default_val":0.2,"editor":"DynamicValue","name":"fill_opacity","rank":9,"value":"number"},"ABk":{"caption":"Polygon name","editor":"DynamicValue","name":"polygon_name","rank":0,"value":"text"},"ABl":{"caption":"Zoom map to this upon creation?","default_val":true,"editor":"Checkbox","name":"zoom_map_to_this_polygon","rank":12},"ABm":{"caption":"Polygon fill","default_val":true,"editor":"Checkbox","name":"polygon_fill","rank":7},"ACB":{"caption":"Line cap","default_val":"round","editor":"Dropdown","name":"line_cap","rank":10},"ACC":{"caption":"Line join","default_val":"round","editor":"Dropdown","name":"line_join","rank":11}},"code":{"fn":"function(instance,properties,context){function _0x1a28(){const _0x35f90a=[\"line_cap\",\"715PShBMZ\",\"16372mRuljX\",\"fitBounds\",\"list_of_longitudes\",\"233667QMMHbd\",\"2107231OBuCrV\",\"208rYlbxx\",\"6809QqfVnI\",\"line_join\",\"length\",\"174827ZOiAjB\",\"list_of_latitudes\",\"forEach\",\"publishState\",\"stroke_opacity\",\"stroke_weight\",\"polygon_fill\",\"2847kEIHZN\",\"addTo\",\"18jFBOte\",\"data\",\"polygon\",\"polygon_name\",\"247rdAXiE\",\"getBounds\",\"draw_stroke\",\"fill_color\",\"zoom_map_to_this_polygon\",\"geometry_clicked_name\",\"get\",\"mymap\",\"fill_opacity\",\"6730QoKMJT\",\"223032ZyFkoR\",\"660AoJkcC\",\"click\",\"push\"];return(_0x1a28=function(){return _0x35f90a})()}function _0x5301(_0x1c327,_0xc5a3ba){const _0x1a289e=_0x1a28();return(_0x5301=function(_0x5301cd,_0x2e5a92){let _0xa824d0;return _0x1a289e[_0x5301cd-=284]})(_0x1c327,_0xc5a3ba)}function run(_0x23c249,_0x384a55,_0x267189){const _0x1113df=_0x5301;let _0x5bbd6f=[],_0x3a1521=(_0x56dea0,_0x2aae7c,_0x4a27d9)=>{const _0x32f3f3=undefined;let _0x5054c3;return _0x56dea0[_0x5301(306)](_0x2aae7c,_0x4a27d9)},_0x3ff7b9=(_0x1337bc,_0x40b938)=>{let _0x4eaea5;return _0x3a1521(_0x1337bc,0,_0x40b938)},_0x93e004=_0x3ff7b9(_0x384a55[_0x1113df(288)],_0x384a55.list_of_latitudes[_0x1113df(286)]()),_0x388bcc=_0x3ff7b9(_0x384a55[_0x1113df(318)],_0x384a55[_0x1113df(318)][_0x1113df(286)]());const _0x120877=(_0x58012d,_0x5cb932,_0x2455e3)=>{const _0x4ddf78=undefined;
132_0x5bbd6f[_0x1113df(313)]([_0x93e004[_0x5cb932],_0x388bcc[_0x5cb932]])};_0x93e004[_0x1113df(289)](_0x120877);let _0x503f5c={stroke:_0x384a55[_0x1113df(302)],color:_0x384a55.stroke_color,weight:_0x384a55[_0x1113df(292)],opacity:_0x384a55[_0x1113df(291)],lineCap:_0x384a55[_0x1113df(314)],lineJoin:_0x384a55[_0x1113df(285)],fill:_0x384a55[_0x1113df(293)],fillColor:_0x384a55[_0x1113df(303)],fillOpacity:_0x384a55[_0x1113df(308)]},_0x353a8b=L[_0x1113df(298)](_0x5bbd6f,_0x503f5c);_0x23c249[_0x1113df(297)][\"\"+_0x384a55[_0x1113df(299)]]=_0x353a8b[_0x1113df(295)](_0x23c249[_0x1113df(297)][_0x1113df(307)]),_0x353a8b.on(_0x1113df(312),(function(){const _0x4210fd=_0x1113df;_0x23c249[_0x4210fd(290)](_0x4210fd(305),_0x384a55[_0x4210fd(299)])})),_0x384a55[_0x1113df(304)]&&_0x23c249[_0x1113df(297)][_0x1113df(307)][_0x1113df(317)](_0x23c249[_0x1113df(297)][\"\"+_0x384a55[_0x1113df(299)]][_0x1113df(301)]())}!function(_0x4fd3f8,_0x44346f){const _0x2b1c4b=_0x5301,_0x5bbed6=_0x4fd3f8();for(;;)try{const _0x3316e9=undefined;if(711114===parseInt(_0x2b1c4b(287))/1+-parseInt(_0x2b1c4b(311))/2*(-parseInt(_0x2b1c4b(294))/3)+parseInt(_0x2b1c4b(316))/4*(-parseInt(_0x2b1c4b(315))/5)+parseInt(_0x2b1c4b(296))/6*(parseInt(_0x2b1c4b(320))/7)+parseInt(_0x2b1c4b(321))/8*(parseInt(_0x2b1c4b(319))/9)+-parseInt(_0x2b1c4b(309))/10*(parseInt(_0x2b1c4b(284))/11)+parseInt(_0x2b1c4b(310))/12*(-parseInt(_0x2b1c4b(300))/13))break;_0x5bbed6.push(_0x5bbed6.shift())}catch(_0x2d5b43){_0x5bbed6.push(_0x5bbed6.shift())}}(_0x1a28,711114),run(instance,properties,context)}"}},"ACJ":{"caption":"Create stadia route request","fields":{"ACK":{"caption":"List of latitudes","editor":"DynamicValue","is_list":true,"name":"list_of_latitudes","optional":false,"rank":0,"value":"number"},"ACL":{"caption":"List of longitudes","editor":"DynamicValue","is_list":true,"name":"list_of_longitudes","rank":1,"value":"number"},"ACN":{"caption":"Costing model","default_val":"auto","editor":"Dropdown","name":"costing_model","rank":2},"ADX":{"caption":"Units","default_val":"kilometers","editor":"Dropdown","name":"units","rank":3}},"code":{"fn":"function(instance,properties,context){function _0x5195(_0xa02d18,_0x4d75bc){const _0x2787b4=_0x2787();return(_0x5195=function(_0x519547,_0x14a0aa){let _0xb7d429;return _0x2787b4[_0x519547-=490]})(_0xa02d18,_0x4d75bc)}function _0x2787(){const _0x36cd23=[\"6515292TsIrRO\",\"length\",\"4230099oBSpNH\",\"1648dvXEiZ\",\"199IzCkAt\",\"push\",\"through\",\"4304632Sdsjqc\",\"costing_model\",\"414090DiHXee\",\"1724576ksjwdL\",\"list_of_longitudes\",\"9242ziTCDK\",\"3111dWiaIM\",\"forEach\",\"get\"];return(_0x2787=function(){return _0x36cd23})()}function run(_0x17efe0,_0x5c11b0,_0x5d50d2){const _0xf4331a=_0x5195;let _0x56559c=[],_0x1eef19=(_0x3eef35,_0x56f1b9,_0x3eaac9)=>{const _0x391cb0=undefined;let _0x4742d3;return _0x3eef35[_0x5195(490)](_0x56f1b9,_0x3eaac9)},_0x112a00=(_0x2b3734,_0x355758)=>{let _0x35e45c;return _0x1eef19(_0x2b3734,0,_0x355758)},_0x4deec8=_0x112a00(_0x5c11b0.list_of_latitudes,_0x5c11b0.list_of_latitudes.length()),_0x1de224=_0x112a00(_0x5c11b0[_0xf4331a(502)],_0x5c11b0[_0xf4331a(502)][_0xf4331a(492)]());const _0x34610e=(_0x3c69e6,_0x448431,_0x5d3522)=>{const _0x19152d=undefined;_0x56559c[_0xf4331a(496)]([_0x4deec8[_0x448431],_0x1de224[_0x448431]])};_0x4deec8.forEach(_0x34610e);let _0x33f9e1={locations:[],costing:_0x5c11b0[_0xf4331a(499)],directions_options:{units:_0x5c11b0.units}};const _0x3bb5c5=(_0x1eda8f,_0x326588,_0x146954)=>{const _0x16c372=_0xf4331a;var _0x2f5e2f,_0xeccb7;_0xeccb7=_0x326588===_0x146954.length-1||0===_0x326588?{lat:_0x1eda8f[0],lon:_0x1eda8f[1],type:\"break\"}:{lat:_0x1eda8f[0],lon:_0x1eda8f[1],type:_0x16c372(497)},_0x33f9e1.locations[_0x16c372(496)](_0xeccb7)};_0x56559c[_0xf4331a(505)](_0x3bb5c5),_0x17efe0.publishState(\"stadia_route_request_body\",JSON.stringify(_0x33f9e1))}!function(_0x5f1981,_0xf874b6){const _0x318ca7=_0x5195,_0xf5bc32=_0x5f1981();for(;;)try{const _0x54e078=undefined;if(583599===-parseInt(_0x318ca7(495))/1*(parseInt(_0x318ca7(503))/2)+parseInt(_0x318ca7(504))/3*(-parseInt(_0x318ca7(494))/4)+parseInt(_0x318ca7(500))/5+parseInt(_0x318ca7(491))/6+-parseInt(_0x318ca7(501))/7+parseInt(_0x318ca7(498))/8+parseInt(_0x318ca7(493))/9)break;_0xf5bc32.push(_0xf5bc32.shift())}catch(_0x154922){_0xf5bc32.push(_0xf5bc32.shift())}}(_0x2787,583599),run(instance,properties,context)}"}},"ACQ":{"caption":"Display weather overlay on","fields":{"ACT":{"caption":"First show the map with any other map tile. This action will overlay the current map tile with a weather tile.","editor":"Label","name":"you_first_has_to_show_the_map_with_any_other_map_tile_that_you_want._then_you_add_this_action,_it_will_overlay_the_current_map_tile_with_a_weather_tile_from_open_weather.","rank":1},"ACV":{"caption":"Openweather tile","editor":"Dropdown","name":"openweathermap_tile","optional":true,"rank":2},"ACX":{"caption":"Requested date","editor":"DynamicValue","name":"requested_date","optional":true,"rank":3,"value":"number"},"ACY":{"caption":"Below are free tier tiles, possibly rate limited in case of heavy usage. These aren't capable of grabbing historical or forecast data.","editor":"Label","name":"free_tier_tiles","rank":4},"ACa":{"caption":"Openweather tile","editor":"Dropdown","name":"openweather_tile","optional":true,"rank":5},"ADF":{"caption":"Unique name","editor":"DynamicValue","name":"unique_name_for_this_overlay","rank":0,"value":"text"},"ADG":{"caption":"Optional.","editor":"Label","name":"optional._below_you_can_provide_a_text_that_is_an_exact_match_to_one_of_the_overlay_options,_including_case_sensitive,_as_an_alternate_interface_to_the_dropdowns_above.","rank":6},"ADH":{"caption":"Overlay name","editor":"DynamicValue","name":"overlay_name","rank":7,"value":"text","optional":true}},"code":{"fn":"function(instance,properties,context){function _0x4e53(){const _0x219ec5=[\"PAS0\",\"t
132ileLayer\",\"Wind speed\",\"Soil temperature >10 сm (K)\",\"378nSNjrv\",\"144080qPBKns\",\"TD2\",\"Temperature of a dew point (°C)\",\"WS10\",\"TS0\",\"Depth of snow (m)\",\"APM\",\"PAR0\",\"8625034FpDLoz\",\"Relative humidity (%)\",\"WND\",\"temp_new\",\"precipitation_new\",\"HRD0\",\"Atmospheric pressure on mean sea level (hPa)\",\"https://tile.openweathermap.org/map/{layer}/{z}/{x}/{y}.png?appid={api_key}\",\"524zPklwC\",\"keys\",\"Openweathermap API key\",\"TA2\",\"Clouds\",\"TS10\",\"15445NdmNtO\",\"Temperature\",\"PR0\",\"mymap\",\"Accumulated precipitation - snow (m)\",\"Joint display of speed wind (color) and wind direction (arrows) received by U and V components (m/s)\",\"4541420nPQHus\",\"data\",\"openweather_tile\",\"12078MGQpOS\",\"PA0\",\"floor\",\"http://maps.openweathermap.org/maps/2.0/weather/{op}/{z}/{x}/{y}?date={date_requested}&appid={api_key}\",\"5686LqlUnE\",\"Precipitation\",\"756rSihbw\",\"858NWfrtn\",\"Cloudiness (%)\",\"Soil temperature 0-10 сm (K)\",\"Accumulated precipitation (mm)\",\"clouds_new\",\"SD0\",\"unique_name_for_this_overlay\",\"addTo\",\"Sea level pressure\",\"PAC0\",\"Air temperature at a height of 2 meters (°C)\",\"overlay_name\",\"Convective precipitation (mm)\",\"Precipitation intensity (mm/s)\",\"openweathermap_tile\",\"includes\",'&copy; <a href=\"https://openweathermap.org\">Openweather</a>',\"requested_date\",\"25640sfTfmt\"];return(_0x4e53=function(){return _0x219ec5})()}function _0xcc7c(_0x439147,_0x4cb685){const _0x4e5369=_0x4e53();return(_0xcc7c=function(_0xcc7c56,_0x3d11a4){let _0x2d0749;return _0x4e5369[_0xcc7c56-=110]})(_0x439147,_0x4cb685)}function run(_0x3a13a0,_0x4fbcda,_0x3ae9a2){const _0x2ffc43=_0xcc7c,_0xa99549=undefined;let _0x317a41=(_0x310786=>{const _0x37c48d=_0xcc7c;let _0x3b597a;return[_0x37c48d(122),_0x37c48d(138),_0x37c48d(148),_0x37c48d(161),_0x37c48d(125)][_0x37c48d(155)](_0x310786)})(_0x4fbcda[_0x2ffc43(151)]);if(_0x4fbcda[_0x2ffc43(154)]||_0x4fbcda[_0x2ffc43(151)]&&!1===_0x317a41){const _0x7d856=undefined;let _0x558ab5=((_0x5055c1,_0x30565e)=>{const _0x5c5c70=_0x2ffc43;if(_0x30565e){if(_0x30565e===_0x5c5c70(152))return _0x5c5c70(149);if(_0x30565e===_0x5c5c70(153))return _0x5c5c70(126);if(_0x30565e===_0x5c5c70(143))return _0x5c5c70(134);if(\"Accumulated precipitation - rain (mm)\"===_0x30565e)return _0x5c5c70(171);if(\"Accumulated precipitation - snow (m)\"===_0x30565e)return\"PAS0\";if(\"Depth of snow (m)\"===_0x30565e)return _0x5c5c70(145);if(\"Wind speed at an altitude of 10 meters (m/s)\"===_0x30565e)return _0x5c5c70(167);if(_0x30565e===_0x5c5c70(129))return _0x5c5c70(112);if(_0x30565e===_0x5c5c70(116))return _0x5c5c70(170);if(_0x30565e===_0x5c5c70(150))return _0x5c5c70(121);if(_0x30565e===_0x5c5c70(166))return _0x5c5c70(165);if(_0x30565e===_0x5c5c70(142))return\"TS0\";if(\"Soil temperature >10 сm (K)\"===_0x30565e)return _0x5c5c70(123);if(_0x30565e===_0x5c5c70(111))return _0x5c5c70(115);if(_0x30565e===_0x5c5c70(141))return\"CL\"}else{if(_0x5055c1===_0x5c5c70(152))return _0x5c5c70(149);if(_0x5055c1===_0x5c5c70(153))return _0x5c5c70(126);if(_0x5055c1===_0x5c5c70(143))return _0x5c5c70(134);if(\"Accumulated precipitation - rain (mm)\"===_0x5055c1)return\"PAR0\";if(_0x5055c1===_0x5c5c70(128))return _0x5c5c70(159);if(_0x5055c1===_0x5c5c70(169))return\"SD0\";if(\"Wind speed at an altitude of 10 meters (m/s)\"===_0x5055c1)return\"WS10\";if(_0x5055c1===_0x5c5c70(129))return _0x5c5c70(112);if(\"Atmospheric pressure on mean sea level (hPa)\"===_0x5055c1)return _0x5c5c70(170);if(_0x5055c1===_0x5c5c70(150))return _0x5c5c70(121);if(_0x5055c1===_0x5c5c70(166))return _0x5c5c70(165);if(\"Soil temperature 0-10 сm (K)\"===_0x5055c1)return _0x5c5c70(168);if(_0x5055c1===_0x5c5c70(162))return _0x5c5c70(123);if(\"Relative humidity (%)\"===_0x5055c1)return _0x5c5c70(115);if(_0x5055c1===_0x5c5c70(141))return\"CL\"}})(_0x4fbcda[_0x2ffc43(154)],_0x4fbcda[_0x2ffc43(151)]);_0x3a13a0[_0x2ffc43(131)][\"\"+_0x4fbcda[_0x2ffc43(146)]]=L.tileLayer(_0x2ffc43(136),{attribution:_0x2ffc43(156),maxZoom:20,op:_0x558ab5,date_requested:Math[_0x2ffc43(135)](_0x4fbcda[_0x2ffc43(157)]/1e3),api_key:_0x3ae9a2[_0x2ffc43(119)][_0x2ffc43(120)]})[_0x2ffc43(147)](_0x3a13a0[_0x2ffc43(131)][_0x2ffc43(127)])}else if(_0x4fbcda[_0x2ffc43(132)]||_0x4fbcda[_0x2ffc43(151)]&&!0===_0x317a41){const _0x1d8648=undefined;let _0x89bd3e=((_0x3e1fb6,_0x17b2d0)=>{const _0x1a7d3b=_0x2ffc43;return\"Clouds\"===_0x3e1fb6||_0x17b2d0===_0x1a7d3b(122)?_0x1a7d3b(144):_0x3e
1321fb6===_0x1a7d3b(138)||_0x17b2d0===_0x1a7d3b(138)?_0x1a7d3b(114):_0x3e1fb6===_0x1a7d3b(148)||_0x17b2d0===_0x1a7d3b(148)?\"pressure_new\":_0x3e1fb6===_0x1a7d3b(161)||_0x17b2d0===_0x1a7d3b(161)?\"wind_new\":_0x3e1fb6===_0x1a7d3b(125)||_0x17b2d0===_0x1a7d3b(125)?_0x1a7d3b(113):void 0})(_0x4fbcda[_0x2ffc43(154)],_0x4fbcda.overlay_name);_0x3a13a0[_0x2ffc43(131)][\"\"+_0x4fbcda[_0x2ffc43(146)]]=L[_0x2ffc43(160)](_0x2ffc43(117),{attribution:_0x2ffc43(156),maxZoom:20,layer:_0x89bd3e,api_key:_0x3ae9a2[_0x2ffc43(119)][\"Openweathermap API key\"]})[_0x2ffc43(147)](_0x3a13a0[_0x2ffc43(131)].mymap)}}!function(_0x46905f,_0x1697cf){const _0x1baefa=_0xcc7c,_0x2c6a89=_0x46905f();for(;;)try{const _0x4317c9=undefined;if(434889===-parseInt(_0x1baefa(158))/1+parseInt(_0x1baefa(137))/2*(-parseInt(_0x1baefa(140))/3)+-parseInt(_0x1baefa(118))/4*(-parseInt(_0x1baefa(124))/5)+parseInt(_0x1baefa(133))/6*(-parseInt(_0x1baefa(139))/7)+parseInt(_0x1baefa(164))/8*(parseInt(_0x1baefa(163))/9)+-parseInt(_0x1baefa(130))/10+parseInt(_0x1baefa(110))/11)break;_0x2c6a89.push(_0x2c6a89.shift())}catch(_0x454d60){_0x2c6a89.push(_0x2c6a89.shift())}}(_0x4e53,434889),run(instance,properties,context)}"}},"ACc":{"caption":"Remove element from","fields":{"ACe":{"caption":"Target element","editor":"DynamicValue","name":"target_element","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x7dc3(){var _0x217559=[\"4616280EOALFr\",\"136653iJoJNV\",\"undefined\",\"323344MjGLMY\",\"999150cAIoKS\",\"112nvGKfW\",\"data\",\"5013312XIDdaQ\",\"target_element\",\"remove\",\"3196280lJxTpF\",\"76VAGHMd\",\"468909dgzXzv\"];return(_0x7dc3=function(){return _0x217559})()}function _0xb136(_0x12181c,_0x20d89e){var _0x7dc317=_0x7dc3();return(_0xb136=function(_0xb136c1,_0x25d7a9){var _0x23a30e;return _0x7dc317[_0xb136c1-=320]})(_0x12181c,_0x20d89e)}function run(_0x3c9aa5,_0x14c7f4,_0x40fdb9){var _0x3ff2fe=_0xb136;typeof _0x3c9aa5[_0x3ff2fe(324)][\"\"+_0x14c7f4[_0x3ff2fe(326)]]!==_0x3ff2fe(320)&&_0x3c9aa5[_0x3ff2fe(324)][\"\"+_0x14c7f4[_0x3ff2fe(326)]][_0x3ff2fe(327)]()}!function(_0x326d5d,_0x53dcbe){for(var _0x3f2dad=_0xb136,_0x14c0bf=_0x326d5d();;)try{var _0x2aba72;if(444905===parseInt(_0x3f2dad(330))/1+-parseInt(_0x3f2dad(322))/2+-parseInt(_0x3f2dad(332))/3*(parseInt(_0x3f2dad(329))/4)+parseInt(_0x3f2dad(328))/5+parseInt(_0x3f2dad(325))/6+-parseInt(_0x3f2dad(323))/7*(parseInt(_0x3f2dad(321))/8)+parseInt(_0x3f2dad(331))/9)break;_0x14c0bf.push(_0x14c0bf.shift())}catch(_0x245295){_0x14c0bf.push(_0x14c0bf.shift())}}(_0x7dc3,444905),run(instance,properties,context)}"}},"ACg":{"caption":"Check if point is contained in rectangular area in","fields":{"ACh":{"caption":"Point latitude","editor":"DynamicValue","name":"point_latitude","rank":1,"value":"number"},"ACi":{"caption":"Point longitude","editor":"DynamicValue","name":"point_longitude","rank":2,"value":"number"},"ACj":{"caption":"Container element","editor":"DynamicValue","name":"container_element","rank":3,"value":"text"},"ACk":{"caption":"Will return a boolean (yes/no) type on this map element's state called \"Is the point contained in the rectangle?\".","editor":"Label","name":"will_return_a_boolean_(yes/no)_type_on_this_map_element's_state.","rank":0}},"code":{"fn":"function(instance,properties,context){function _0x540d(_0x56f22b,_0x50b73b){const _0x4133fc=_0x4133();return(_0x540d=function(_0x540dad,_0x3f63f3){let _0x1acc0f;return _0x4133fc[_0x540dad-=342]})(_0x56f22b,_0x50b73b)}function run(_0x577e7d,_0x14f691,_0x46c138){const _0x4903c7=_0x540d;let _0x5488dc=_0x577e7d[_0x4903c7(351)][\"\"+_0x14f691.container_element].getBounds()[_0x4903c7(352)]([_0x14f691[_0x4903c7(348)],_0x14f691.point_longitude]);_0x577e7d[_0x4903c7(355)](\"point_is_contained\",_0x5488dc)}function _0x4133(){const _0x169cfc=[\"9364920tKzgBL\",\"8248113swHUCA\",\"point_latitude\",\"1540133mSxoHH\",\"1605772jKUdea\",\"data\",\"contains\",\"41270UADYLU\",\"2462052LOyBEQ\",\"publishState\",\"14267KqkinE\",\"1JjKPbS\",\"3MoHvXc\",\"18aJKPNp\",\"7804220UHinCU\"];return(_0x4133=function(){return _0x169cfc})()}!function(_0x21cbf1,_0x2d0aa8){const _0x51da53=_0x540d,_0x374681=_0x21cbf1();for(;;)try{const _0xaa8c29=undefined;if(857373===parseInt(_0x51da53(342))/1*(-parseInt(_0x51da53(350))/2)+-parseInt(_0x51da53(343))/3*(-parseInt(_0x51da53(354))/4)+-parseInt(_0x51da53(345))/5+parseInt(_0x51da53(344))/6*(-parseInt(_0x51da53(349))/7)+-parseInt(_0x51da53(346))/8+-parseInt(_0x51da53(347))/9+parseInt(_0x51da53(353))/10*(parseInt(_0x51da53(356))/11))break;_0x374681.push(_0x374681.shift())}catch(_0x1df54a){_0x374681.push(_0x374681.shift())}}(_0x4133,857373),run(instance,properties,context)}"}},"ACl":{"caption":"Track user on","fields":{"ACm":{"caption":"Continuously track?","editor":"DynamicValue","name":"watch","rank":1,"value":"boolean"},"ACn":{"caption":"Center view?","editor":"DynamicValue","name":"view","rank":2,"value":"boolean"},"ACp":{"caption":"High accuracy?","editor":"DynamicValue","name":"high_accuracy","rank":3,"value":"boolean"},"ACq":{"caption":"Data collected from tracking will be available on their respective map element (Leafy Map X) states.","editor":"Label","name":"data_collected_from_tracking_will_be_available_on_their_respective_map_element_(leafy_map_x)_states.","rank":0}},"code":{"fn":"function(instance,properties,context){function _0x1915(){const _0x5392c6=[\"data\",\"mymap\",\"view\",\"84611UJMoKD\",\"locate\",\"1123165bigbTz\",\"2096160nIutCf\",\"9lgiMHD\",\"9780qHNZme\",\"9635688lgxbbf\",\"high_accuracy\",\"14KXNDuj\",\"446808LsIOja\",\"435wxorNd\",\"6HveOzw\",\"2JSFsbv\",\"2142370NuTFWs\"];return(_0x1915=function(){return _0x5392c6})()}function _0x4746(_0x503456,_0x656910){const _0x191586=_0x1915();return(_0x4746=function(_0x474643,_0x1c3e5f){let _0x5be5a5;return _0x191586[_0x474643-=289]})(_0x503456,_0x656910)}function run(_0x1e7c00,_0x493929,_0x4faedf){const _0x324f9d=_0x4746;
132let _0x5bd9f8={watch:_0x493929.watch,setView:_0x493929[_0x324f9d(298)],maxZoom:20,timeout:1e4,maximumAge:0,enableHighAccuracy:_0x493929[_0x324f9d(289)]};_0x1e7c00.publishState(\"is_being_tracked\",!0),_0x1e7c00[_0x324f9d(296)][_0x324f9d(297)][_0x324f9d(300)](_0x5bd9f8)}!function(_0x1c5c14,_0xb91ad6){const _0xbf0a94=_0x4746,_0x4f6062=_0x1c5c14();for(;;)try{const _0x5f0e1f=undefined;if(220402===-parseInt(_0xbf0a94(299))/1*(-parseInt(_0xbf0a94(294))/2)+parseInt(_0xbf0a94(292))/3*(-parseInt(_0xbf0a94(304))/4)+-parseInt(_0xbf0a94(301))/5*(parseInt(_0xbf0a94(293))/6)+parseInt(_0xbf0a94(290))/7*(-parseInt(_0xbf0a94(291))/8)+parseInt(_0xbf0a94(303))/9*(parseInt(_0xbf0a94(295))/10)+-parseInt(_0xbf0a94(302))/11+parseInt(_0xbf0a94(305))/12)break;_0x4f6062.push(_0x4f6062.shift())}catch(_0x5ebe72){_0x4f6062.push(_0x4f6062.shift())}}(_0x1915,220402),run(instance,properties,context)}"}},"ADE":{"caption":"Stop tracking the user on","code":{"fn":"function(instance,properties,context){function _0x1648(_0x6f26b6,_0x3b9c6d){var _0x3f3cd1=_0x3f3c();return(_0x1648=function(_0x1648ab,_0x1a6a92){var _0x4627ac;return _0x3f3cd1[_0x1648ab-=137]})(_0x6f26b6,_0x3b9c6d)}function run(_0x12fcfc,_0x2eb065,_0x56c79a){var _0xc55b18=_0x1648;_0x12fcfc[_0xc55b18(144)](\"is_being_tracked\",!1),console.log(_0x12fcfc[_0xc55b18(152)][_0xc55b18(151)].stopLocate())}function _0x3f3c(){var _0x11029c=[\"8473309AktEFi\",\"6530yPKlmK\",\"740706CtDqbF\",\"24UxoawJ\",\"publishState\",\"307RpYmrG\",\"47961vScpnj\",\"3878413eMuEpA\",\"639075nwIPsU\",\"7898PDJHYL\",\"136pirJXi\",\"mymap\",\"data\",\"8ISaPPn\",\"8330wvckUT\",\"24gSWbnw\"];return(_0x3f3c=function(){return _0x11029c})()}!function(_0x113482,_0x5534fb){for(var _0x380591=_0x1648,_0x268d80=_0x113482();;)try{var _0x72e9e9;if(644857===-parseInt(_0x380591(145))/1*(-parseInt(_0x380591(138))/2)+-parseInt(_0x380591(142))/3*(parseInt(_0x380591(137))/4)+parseInt(_0x380591(148))/5*(-parseInt(_0x380591(143))/6)+-parseInt(_0x380591(147))/7+parseInt(_0x380591(150))/8*(parseInt(_0x380591(146))/9)+-parseInt(_0x380591(141))/10*(parseInt(_0x380591(149))/11)+-parseInt(_0x380591(139))/12*(-parseInt(_0x380591(140))/13))break;_0x268d80.push(_0x268d80.shift())}catch(_0x4661b4){_0x268d80.push(_0x268d80.shift())}}(_0x3f3c,644857),run(instance,properties,context)}"}},"ADM":{"caption":"Fly to","fields":{"ADN":{"caption":"Latitude","editor":"DynamicValue","name":"latitude","rank":0,"value":"number"},"ADO":{"caption":"Longitude","editor":"DynamicValue","name":"longitude","rank":1,"value":"number"},"ADP":{"caption":"Zoom","editor":"DynamicValue","name":"zoom","rank":2,"value":"number"},"ANu":{"caption":"Duration","name":"duration","rank":3,"editor":"DynamicValue","value":"number","optional":false,"default_val":2},"ANv":{"caption":"Ease linearity","name":"easeLinearity","rank":4,"editor":"DynamicValue","value":"number","default_val":1}},"code":{"fn":"function(instance,properties,context){function run(_0x35f0a8,_0x187455,_0x4182e9){const _0xc21e=_0x11a5;let _0x28cdfb={duration:_0x187455.duration,easeLinearity:_0x187455[_0xc21e(290)]};_0x35f0a8[_0xc21e(276)][_0xc21e(281)][_0xc21e(279)]([_0x187455[_0xc21e(289)],_0x187455[_0xc21e(284)]],_0x187455[_0xc21e(278)],_0x28cdfb)}function _0x11a5(_0x751db1,_0x142746){const _0x3b8c84=_0x3b8c();return(_0x11a5=function(_0x11a50f,_0x5e18ba){let _0x587437;return _0x3b8c84[_0x11a50f-=274]})(_0x751db1,_0x142746)}function _0x3b8c(){const _0x3f3cd0=[\"data\",\"10impNJh\",\"zoom\",\"flyTo\",\"529585sjsHrW\",\"mymap\",\"755280BTwGgV\",\"140962LkBrpe\",\"longitude\",\"225256gJUfZy\",\"15vmTUPY\",\"486660KEolHl\",\"36FLUlKp\",\"latitude\",\"easeLinearity\",\"8PeLxQT\",\"70238cOSOaZ\",\"3242998vngjEY\",\"448ZfIOui\"];return(_0x3b8c=function(){return _0x3f3cd0})()}!function(_0x57b1ba,_0x51c24f){const _0x3a98b8=_0x11a5,_0x16ebc4=_0x57b1ba();for(;;)try{const _0xa78d1c=undefined;if(410045===parseInt(_0x3a98b8(285))/1+-parseInt(_0x3a98b8(283))/2*(parseInt(_0x3a98b8(286))/3)+-parseInt(_0x3a98b8(291))/4*(-parseInt(_0x3a98b8(280))/5)+-parseInt(_0x3a98b8(287))/6+parseInt(_0x3a98b8(292))/7*(-parseInt(_0x3a98b8(275))/8)+parseInt(_0x3a98b8(282))/9*(parseInt(_0x3a98b8(277))/10)+-parseInt(_0x3a98b8(274))/11*(-parseInt(_0x3a98b8(288))/12))break;_0x16ebc4.push(_0x16ebc4.shift())}catch(_0xc3d1bf){_0x16ebc4.push(_0x16ebc4.shift())}}(_0x3b8c,410045),run(instance,properties,context)}"}},"ADS":{"caption":"Distance between","fields":{"ADT":{"caption":"Latitude 1","editor":"DynamicValue","name":"lat1","rank":0,"value":"number"},"ADU":{"caption":"Longitude 1","editor":"DynamicValue","name":"long1","rank":1,"value":"number"},"ADV":{"caption":"Latitude 2","editor":"DynamicValue","name":"lat2","rank":2,"value":"number"},"ADW":{"caption":"Longitude 2","editor":"DynamicValue","name":"long2","rank":3,"value":"number"},"AKa":{"caption":"Returns the distance between two geographical coordinates. By default this measures distance in meters.","name":"info","rank":4,"editor":"Label"}},"code":{"fn":"function(instance,properties,context){function _0x4ef0(_0x2c9ba9,_0x53e03d){const _0x36d20b=_0x36d2();return(_0x4ef0=function(_0x4ef0f3,_0x231125){let _0x4a7bd7;return _0x36d20b[_0x4ef0f3-=148]})(_0x2c9ba9,_0x53e03d)}function _0x36d2(){const _0x2818f6=[\"5853fDLqFj\",\"210YmjTtf\",\"10729620APicNR\",\"2655408xMIRLg\",\"publishState\",\"distance\",\"long1\",\"long2\",\"data\",\"1156JoxAbs\",\"56VHuJdu\",\"86244MDsuDT\",\"lat1\",\"643206mwqQUA\",\"48979WlrJZA\",\"calculated_distance\",\"5260870HVsqNv\"];return(_0x36d2=function(){return _0x2818f6})()}function run(_0xe4861c,_0x3ef9da,_0x4a45a0){const _0x34c9f8=_0x4ef0;let _0x4bce26=_0xe4861c[_0x34c9f8(150)].mymap[_0x34c9f8(164)]([_0x3ef9da[_0x34c9f8(154)],_0x3ef9da[_0x34c9f8(148)]],[_0x3ef9da.lat2,_0x3ef9da[_0x34c9f8(149)]]);_0xe4861c[_0x34c9f8(163)](_0x34c9f8(157),_0x4bce26)}!function(_0x5d26a0,_0x5d3dfd){const _0x455e4b=_0x4ef0,_0x3d7294=_0x5d26a0();for(;;
132)try{const _0x4fc69d=undefined;if(825582===-parseInt(_0x455e4b(156))/1+-parseInt(_0x455e4b(151))/2*(parseInt(_0x455e4b(159))/3)+-parseInt(_0x455e4b(153))/4*(parseInt(_0x455e4b(160))/5)+-parseInt(_0x455e4b(155))/6*(-parseInt(_0x455e4b(152))/7)+parseInt(_0x455e4b(162))/8+parseInt(_0x455e4b(161))/9+parseInt(_0x455e4b(158))/10)break;_0x3d7294.push(_0x3d7294.shift())}catch(_0xcb79ee){_0x3d7294.push(_0x3d7294.shift())}}(_0x36d2,825582),run(instance,properties,context)}"}},"ADf":{"caption":"Load polygons list","fields":{"ADg":{"caption":"Polygons list","editor":"DynamicValue","name":"json","rank":0,"value":"text"},"ADn":{"caption":"Stroke color","default_val":"rgba(77, 3, 62, 1)","editor":"Color","name":"stroke_color","optional":true,"rank":2},"ADo":{"caption":"Stroke weight","default_val":3,"editor":"DynamicValue","name":"stroke_weight","optional":true,"rank":3,"value":"number"},"ADp":{"caption":"Stroke opacity","default_val":1,"editor":"DynamicValue","name":"stroke_opacity","optional":true,"rank":4,"value":"number"},"ADq":{"caption":"Line cap","default_val":"round","editor":"Dropdown","name":"line_cap","optional":true,"rank":5},"ADr":{"caption":"Line join","default_val":"round","editor":"Dropdown","name":"line_join","optional":true,"rank":6},"ADs":{"caption":"Polygon fill","default_val":true,"editor":"Checkbox","name":"polygon_fill","optional":true,"rank":7,"value":"boolean"},"ADt":{"caption":"Fill color","default_val":"rgba(158, 41, 41, 1)","editor":"Color","name":"fill_color","optional":true,"rank":8},"ADu":{"caption":"Fill opacity","default_val":0.2,"editor":"DynamicValue","name":"fill_opacity","optional":true,"rank":9,"value":"number"},"AJG":{"caption":"Draw stroke","default_val":true,"editor":"Checkbox","name":"draw_stroke","rank":1},"AJH":{"caption":"Zoom map to this upon creation?","default_val":true,"editor":"Checkbox","name":"zoom_map_to_this_polygon","rank":10},"AJJ":{"caption":"Polygon name","default_val":"polygon","editor":"DynamicValue","name":"polygon_name","rank":12,"value":"text"},"AJQ":{"caption":"Show polygon area","default_val":true,"editor":"Checkbox","name":"show_footage","rank":13},"AJf":{"caption":"List of zones","editor":"DynamicValue","is_list":true,"name":"list_of_zones","optional":true,"rank":11,"value":"text"},"AKu":{"caption":"*Incomplete, do not use yet, will do nothing if enabled* Alternatively pass list of styles for them to be applied to the list of polygons. Note that this will work like this: First style item will be used on the first polygon item and so on, even if this first polygon is actually a multi polygon, then the first style item will be applied to all the polygons inside the multi-polygon that is in the position of item#1. Check the fields above for examples and options on what to pass as list values.","name":"alternatively_pass_list_of_styles_for_them_to_be_applied_to_the_list_of_polygons._note_that_this_will_work_like_this:_first_style_item_will_be_used_on_the_first_polygon_item_and_so_on,_even_if_this_first_polygon_is_actually_a_multi_polygon,_then_the_first_style_item_will_be_applied_to_all_the_polygons_inside_the_multi-polygon_that_is_in_the_position_of_item#1.","rank":14,"editor":"Label"},"AKv":{"caption":"Draw strokes","name":"draw_strokes","rank":16,"editor":"DynamicValue","value":"boolean","is_list":true,"optional":true},"AKw":{"caption":"Use list of styles","name":"use_list_of_styles","rank":15,"editor":"DynamicValue","value":"boolean","default_val":false,"optional":false},"AKx":{"caption":"Stroke colors","name":"stroke_colors","rank":17,"editor":"DynamicValue","value":"text","is_list":true,"optional":true},"AKy":{"caption":"Stroke weights","name":"stroke_weights","rank":18,"editor":"DynamicValue","value":"number","is_list":true,"optional":true},"AKz":{"caption":"Stroke opacities","name":"stroke_opacitys","rank":19,"editor":"DynamicValue","value":"number","is_list":true,"optional":true},"ALA":{"caption":"Line caps","name":"line_caps","rank":20,"editor":"DynamicValue","value":"text","is_list":true,"optional":true},"ALB":{"caption":"Line joins","name":"line_joins","rank":21,"editor":"DynamicValue","value":"text","is_list":true,"optional":true},"ALC":{"caption":"Polygon fills","name":"polygon_fills","rank":22,"editor":"DynamicValue","value":"boolean","is_list":true,"optional":true},"ALD":{"caption":"Fill colors","name":"fill_colors","rank":23,"editor":"DynamicValue","value":"text","is_list":true,"optional":true},"ALE":{"caption":"Fill opacities","name":"fill_opacitys","rank":24,"editor":"DynamicValue","value":"number","is_list":true,"optional":true}},"code":{"fn":"function(instance,properties,context){function run(_0x27f616,_0x432fa7,_0x38d583){const _0x299547=_0x48ac,_0x32e6b9=createDrawingInstance(_0x27f616,_0x432fa7,_0x27f616[_0x299547(207)].mymap,_0x27f616[_0x299547(207)].DISTANCE_PANEL),_0xb15dc8={stroke:_0x432fa
1327[_0x299547(183)],color:_0x432fa7[_0x299547(172)],weight:_0x432fa7[_0x299547(206)],opacity:_0x432fa7.stroke_opacity,lineCap:_0x432fa7.line_cap,lineJoin:_0x432fa7[_0x299547(185)],fill:_0x432fa7[_0x299547(188)],fillColor:_0x432fa7[_0x299547(203)],fillOpacity:_0x432fa7[_0x299547(197)]};let _0x4b9c4a=loadAllBubbleList(_0x432fa7[_0x299547(198)]),_0x21df3e;try{_0x21df3e=JSON[_0x299547(192)](_0x432fa7[_0x299547(200)])}catch{return void _0x38d583[_0x299547(204)](_0x299547(205))}let _0x317d4a=\"\";if(_0x12cb1f(_0x21df3e)){let _0x56f21b,_0x4e9979=_0x21df3e[_0x299547(196)].coordinates[0];_0x27f616[_0x299547(207)][\"\"+(_0x432fa7[_0x299547(186)]||_0x299547(176))]=_0x3e0692(_0x4e9979)}else if(_0x40f446(_0x21df3e)){let _0x5a4f7d=_0x21df3e;for(let _0x613cc9=0;_0x613cc9<_0x5a4f7d.length;_0x613cc9++){_0x317d4a=\"_\"+(_0x613cc9+1);let _0x485f3c,_0x2d4ffa=_0x3e0692(_0x5a4f7d[_0x613cc9][_0x299547(196)].coordinates[0]),_0x6b1b8f=(_0x432fa7[_0x299547(186)]||_0x299547(176))+\"_\"+(_0x613cc9+1);_0x2d4ffa[_0x299547(208)]=_0x4b9c4a[_0x613cc9]||\"\",_0x27f616[_0x299547(207)][_0x6b1b8f]=_0x2d4ffa}}else{if(!_0x5dc55b(_0x21df3e))return void _0x38d583[_0x299547(204)](_0x299547(174));{let _0x4fb52e=_0x21df3e;
132for(let _0x54910a=0;_0x54910a<_0x4fb52e[_0x299547(184)];_0x54910a++){_0x317d4a=\"_\"+(_0x54910a+1);let _0x38e5c6,_0x13da25=_0x3e0692(_0x4fb52e[_0x54910a]),_0x5e87fa=(_0x432fa7.polygon_name||_0x299547(176))+\"_\"+(_0x54910a+1);_0x13da25[_0x299547(208)]=_0x4b9c4a[_0x54910a]||\"\",_0x27f616[_0x299547(207)][_0x5e87fa]=_0x13da25}}}function _0x3e0692(_0x11b1be){const _0x13bc40=_0x299547;let _0xa57407=_0x1926bb(_0x11b1be);return _0x32e6b9[_0x13bc40(177)]({coordinates:_0xa57407,showArea:_0x432fa7[_0x13bc40(179)],showLineDistance:_0x432fa7.show_footage,showDistance:_0x432fa7[_0x13bc40(179)],style:_0xb15dc8}).bringToBack()}function _0x26abfb(_0xd53014,_0x820891,_0x3cdb14){const _0x119dc0=_0x299547;let _0x179585=JSON[_0x119dc0(192)](JSON[_0x119dc0(189)](_0xd53014)),_0x24ef30=_0x179585[_0x820891];return _0x179585[_0x820891]=_0xd53014[_0x3cdb14],_0x179585[_0x3cdb14]=_0x24ef30,_0x179585}function _0x1926bb(_0x55236e){const _0x387502=_0x299547;let _0x2a5aea=JSON[_0x387502(192)](JSON[_0x387502(189)](_0x55236e));for(let _0x518ae4=0;_0x518ae4<_0x2a5aea[_0x387502(184)];_0x518ae4++){let _0x3ad7d1=_0x2a5aea[_0x518ae4];_0x2a5aea[_0x518ae4]=_0x26abfb(_0x3ad7d1,0,1)}return _0x2a5aea}function _0x12cb1f(_0x17f415){const _0x1b07f2=_0x299547;return _0x466381(_0x17f415)&&_0x3bf558(_0x17f415)&&_0x5dc55b(_0x17f415[_0x1b07f2(196)][_0x1b07f2(187)])}function _0x40f446(_0x328293){return _0x3d85e2(_0x328293)&&_0x12cb1f(_0x328293[0])}function _0x5dc55b(_0x3c09e5){return _0x3d85e2(_0x3c09e5)&&_0x3d85e2(_0x3c09e5[0])&&_0x2ea399(_0x3c09e5[0][0])}function _0x3bf558(_0x58a4d6){const _0x47f29d=_0x299547;return!!_0x58a4d6&&!!_0x58a4d6.geometry&&!!_0x58a4d6[_0x47f29d(196)][_0x47f29d(187)]}function _0x2ea399(_0x4486b7){return _0x3d85e2(_0x4486b7)&&_0x4a26e5(_0x4486b7[0])&&_0x4a26e5(_0x4486b7[1])}function _0x466381(_0x4377c0){return _0x4377c0&&\"object\"==typeof _0x4377c0&&!_0x3d85e2(_0x4377c0)}function _0x3d85e2(_0x3d7e4e){const _0x579d93=undefined;return Array[_0x299547(182)](_0x3d7e4e||{})}function _0x4a26e5(_0x10bf9a){const _0x1039d8=undefined;return _0x10bf9a&&typeof _0x10bf9a===_0x299547(195)}_0x432fa7[_0x299547(171)]&&_0x27f616[_0x299547(207)][_0x299547(194)][_0x299547(180)](_0x27f616.data[\"\"+(_0x432fa7[_0x299547(186)]||_0x299547(176))+_0x317d4a][_0x299547(173)]())}function _0x48ac(_0x4c1ebe,_0x27a060){const _0xea70e6=_0xea70();return(_0x48ac=function(_0x48ac24,_0x1ac98b){let _0x4105a2;return _0xea70e6[_0x48ac24-=171]})(_0x4c1ebe,_0x27a060)}function _0xea70(){const _0x2d9445=[\"coordinates\",\"polygon_fill\",\"stringify\",\"302342OGwhgw\",\"284557bFDOFG\",\"parse\",\"40578kOIHid\",\"mymap\",\"number\",\"geometry\",\"fill_opacity\",\"list_of_zones\",\"1268750TFKpIw\",\"json\",\"4aWqFUf\",\"9gQxQps\",\"fill_color\",\"reportDebugger\",\"Invalid json format!\",\"stroke_weight\",\"data\",\"zone\",\"1227656BalaqO\",\"zoom_map_to_this_polygon\",\"stroke_color\",\"getBounds\",\"Format not supported!\",\"66720WwouVX\",\"polygon\",\"drawPolygon\",\"60LuBIAM\",\"show_footage\",\"fitBounds\",\"41631PCTJOT\",\"isArray\",\"draw_stroke\",\"length\",\"line_join\",\"polygon_name\"];return(_0xea70=function(){return _0x2d9445})()}!function(_0x57b13a,_0x568345){const _0x2a92c8=_0x48ac,_0x112da7=_0x57b13a();for(;;)try{const _0x27059f=undefined;if(112251===-parseInt(_0x2a92c8(175))/1+parseInt(_0x2a92c8(190))/2+parseInt(_0x2a92c8(181))/3*(parseInt(_0x2a92c8(201))/4)+-parseInt(_0x2a92c8(178))/5*(-parseInt(_0x2a92c8(193))/6)+-parseInt(_0x2a92c8(191))/7+parseInt(_0x2a92c8(209))/8*(-parseInt(_0x2a92c8(202))/9)+parseInt(_0x2a92c8(199))/10)break;_0x112da7.push(_0x112da7.shift())}catch(_0xccf7be){_0x112da7.push(_0x112da7.shift())}}(_0xea70,112251),run(instance,properties,context)}"}},"ADv":{"caption":"Set drawing style","fields":{"ADw":{"caption":"Stroke","default_val":true,"editor":"DynamicValue","name":"stroke","optional":true,"rank":0,"value":"boolean"},"ADx":{"caption":"Stroke color","editor":"Color","name":"color","optional":true,"rank":1},"ADy":{"caption":"Stroke weight","editor":"DynamicValue","name":"weight","optional":true,"rank":2,"value":"number"},"ADz":{"caption":"Stroke opacity","editor":"DynamicValue","name":"opacity","optional":true,"rank":3,"value":"number"},"AEA":{"caption":"Line cap","editor":"Dropdown","name":"lineCap","optional":true,"rank":4},"AEB":{"caption":"Line join","editor":"Dropdown","name":"lineJoin","optional":true,"rank":5},"AEC":{"caption":"Polygon fill","default_val":true,"editor":"DynamicValue","name":"fill","optional":true,"rank":6,"value":"boolean"},"AED":{"caption":"Fill color","editor":"Color","name":"fillColor","optional":true,"rank":7},"AEE":{"caption":"Fill opacity","editor":"DynamicValue","name":"fillOpacity","optional":true,"rank":8,"value":"number"},"AEl":{"caption":"Show distance","default_val":true,"editor":"DynamicValue","name":"show_distance","rank":9,"value":"boolean"}},"code":{"fn":"function(instance,properties,context){function _0x3c71(_0x17a5bf,_0x580b
13219){var _0x1fb3b3=_0x1fb3();return(_0x3c71=function(_0x3c71a8,_0x43cceb){var _0x410be1;return _0x1fb3b3[_0x3c71a8-=111]})(_0x17a5bf,_0x580b19)}function _0x1fb3(){var _0x27bc97=[\"data\",\"opacity\",\"black\",\"stroke\",\"lineJoin\",\"2701368ycGTwU\",\"879132xGXVZY\",\"fillColor\",\"282687VZlotV\",\"line\",\"lineCap\",\"210dBqHJv\",\"interactive\",\"969408MFWCYD\",\"weight\",\"206817nmtdJe\",\"fillOpacity\",\"fill\",\"style\",\"butt\",\"1443580gBGZYj\",\"color\",\"169191wsXQaX\",\"4QQyHHY\",\"round\",\"polygon\",\"7OQJREL\",\"show_distance\",\"circle\"];return(_0x1fb3=function(){return _0x27bc97})()}function run(_0x375dd1,_0x2e6d90,_0x4bfcd3){var _0x22b44b=_0x3c71;_0x375dd1[_0x22b44b(132)][_0x22b44b(130)]=_0x2e6d90.show_distance,_0x2e6d90[_0x22b44b(135)]=_0x2e6d90[_0x22b44b(135)]||!0,_0x2e6d90[_0x22b44b(124)]=_0x2e6d90[_0x22b44b(124)]||\"black\",_0x2e6d90[_0x22b44b(117)]=_0x2e6d90[_0x22b44b(117)]||1,_0x2e6d90[_0x22b44b(133)]=_0x2e6d90[_0x22b44b(133)]||1,_0x2e6d90.lineCap=_0x2e6d90[_0x22b44b(113)]||_0x22b44b(122),_0x2e6d90[_0x22b44b(136)]=_0x2e6d90[_0x22b44b(136)]||_0x22b44b(127),_0x2e6d90[_0x22b44b(120)]=_0x2e6d90[_0x22b44b(120)]||!0,_0x2e6d90.fillColor=_0x2e6d90[_0x22b44b(139)]||_0x22b44b(134),_0x2e6d90[_0x22b44b(119)]=_0x2e6d90[_0x22b44b(119)]||.5,_0x2e6d90[_0x22b44b(115)]=_0x2e6d90[_0x22b44b(115)]||!0,_0x375dd1.data[_0x22b44b(121)][_0x22b44b(128)]=_0x2e6d90,_0x375dd1[_0x22b44b(132)][_0x22b44b(121)][_0x22b44b(131)]=_0x2e6d90,_0x375dd1[_0x22b44b(132)][_0x22b44b(121)][_0x22b44b(112)]=_0x2e6d90}!function(_0x16ad2e,_0xb16d6d){for(var _0x4eff9c=_0x3c71,_0x315e2b=_0x16ad2e();;)try{var _0x41c6a6;if(256938===-parseInt(_0x4eff9c(118))/1+parseInt(_0x4eff9c(138))/2+-parseInt(_0x4eff9c(111))/3*(-parseInt(_0x4eff9c(126))/4)+-parseInt(_0x4eff9c(123))/5+parseInt(_0x4eff9c(116))/6+-parseInt(_0x4eff9c(129))/7*(parseInt(_0x4eff9c(137))/8)+-parseInt(_0x4eff9c(125))/9*(-parseInt(_0x4eff9c(114))/10))break;_0x315e2b.push(_0x315e2b.shift())}catch(_0x1813b0){_0x315e2b.push(_0x315e2b.shift())}}(_0x1fb3,256938),run(instance,properties,context)}"}},"AEF":{"caption":"Draw circle","fields":{"AEH":{"caption":"Radius","editor":"DynamicValue","name":"radius","rank":1,"value":"number"},"AEI":{"caption":"Draw stroke","default_val":true,"editor":"DynamicValue","name":"draw_stroke","rank":4,"value":"boolean"},"AEJ":{"caption":"Stroke color","default_val":"rgba(9, 124, 219, 1)","editor":"Color","name":"stroke_color","optional":true,"rank":5},"AEK":{"caption":"Stroke weight","default_val":3,"editor":"DynamicValue","name":"stroke_weight","optional":false,"rank":6,"value":"number"},"AEL":{"caption":"Stroke opacity","default_val":1,"editor":"DynamicValue","name":"stroke_opacity","rank":7,"value":"number"},"AEM":{"caption":"Circle fill","default_val":true,"editor":"DynamicValue","name":"circle_fill","rank":8,"value":"boolean"},"AEN":{"caption":"Fill color","default_val":"rgba(29, 138, 15, 1)","editor":"Color","name":"fill_color","rank":9},"AEO":{"caption":"Fill opacity","default_val":0.2,"editor":"DynamicValue","name":"fill_opacity","rank":10,"value":"number"},"AEP":{"caption":"Circle name","editor":"DynamicValue","name":"circle_name","rank":0,"value":"text"},"AES":{"caption":"Zoom to this circle","default_val":false,"editor":"DynamicValue","name":"zoom_map_to_this_circle","rank":11,"value":"boolean"},"AEU":{"caption":"Latitude","editor":"DynamicValue","name":"latitude","rank":2,"value":"number"},"AEV":{"caption":"Longitude","editor":"DynamicValue","name":"longitude","rank":3,"value":"number"}},"code":{"fn":"function(instance,properties,context){function run(_0x472a7f,_0x5c8682,_0x555cf4){const _0x40caa0=_0x324d;let _0x174572={stroke:_0x5c8682[_0x40caa0(380)],color:_0x5c8682.stroke_color,weight:_0x5c8682[_0x40caa0(390)],opacity:_0x5c8682[_0x40caa0(372)],fill:_0x5c8682.circle_fill,fillColor:_0x5c8682[_0x40caa0(373)],fillOpacity:_0x5c8682[_0x40caa0(374)],radius:_0x5c8682.radius};_0x472a7f.data[\"\"+_0x5c8682[_0x40caa0(378)]]=L[_0x40caa0(367)]([_0x5c8682[_0x40caa0(389)],_0x5c8682[_0x40caa0(370)]],_0x174572).addTo(_0x472a7f[_0x40caa0(384)][_0x40caa0(368)]),_0x472a7f.data[\"\"+_0x5c8682[_0x40caa0(378)]].on(_0x40caa0(388),(function(){const _0x5bd144=_0x40caa0;_0x472a7f.publishState(_0x5bd144(391),_0x5c8682[_0x5bd144(378)])}
132)),_0x5c8682[_0x40caa0(379)]&&_0x472a7f[_0x40caa0(384)][_0x40caa0(368)][_0x40caa0(369)](_0x472a7f.data[\"\"+_0x5c8682[_0x40caa0(378)]][_0x40caa0(376)]())}function _0x324d(_0x3b20ee,_0xc58e2c){const _0x3aba33=_0x3aba();return(_0x324d=function(_0x324d24,_0x3dc246){let _0x1b1ff6;return _0x3aba33[_0x324d24-=365]})(_0x3b20ee,_0xc58e2c)}function _0x3aba(){const _0x2cf08d=[\"stroke_opacity\",\"fill_color\",\"fill_opacity\",\"10649439yADYVn\",\"getBounds\",\"102382OABRxA\",\"circle_name\",\"zoom_to_this_circle\",\"draw_stroke\",\"69PmNFqW\",\"78VxJYBr\",\"10Weeqdp\",\"data\",\"872694iuuFeI\",\"128474gJJaJA\",\"1078mXTUeS\",\"click\",\"latitude\",\"stroke_weight\",\"geometry_clicked_name\",\"4665mivEFe\",\"439512phfCIS\",\"1828ucufwl\",\"circle\",\"mymap\",\"fitBounds\",\"longitude\",\"1850872FufxTQ\"];return(_0x3aba=function(){return _0x2cf08d})()}!function(_0x48bccd,_0x3c5370){const _0x49ad9b=_0x324d,_0x98caa=_0x48bccd();for(;;)try{const _0x2907c9=undefined;if(791946===parseInt(_0x49ad9b(385))/1+parseInt(_0x49ad9b(386))/2*(parseInt(_0x49ad9b(381))/3)+-parseInt(_0x49ad9b(366))/4*(-parseInt(_0x49ad9b(392))/5)+parseInt(_0x49ad9b(382))/6*(parseInt(_0x49ad9b(377))/7)+parseInt(_0x49ad9b(371))/8+parseInt(_0x49ad9b(375))/9*(parseInt(_0x49ad9b(383))/10)+-parseInt(_0x49ad9b(387))/11*(parseInt(_0x49ad9b(365))/12))break;_0x98caa.push(_0x98caa.shift())}catch(_0xb417ee){_0x98caa.push(_0x98caa.shift())}}(_0x3aba,791946),run(instance,properties,context)}"}},"AEG":{"caption":"Change circle radius","fields":{"AEQ":{"caption":"Circle name","editor":"DynamicValue","name":"circle_name","rank":0,"value":"text"},"AER":{"caption":"New radius","editor":"DynamicValue","name":"new_radius","rank":1,"value":"number"},"AET":{"caption":"Zoom to this circle","default_val":false,"editor":"DynamicValue","name":"zoom_to_this_circle","rank":2,"value":"boolean"}},"code":{"fn":"function(instance,properties,context){function _0x2633(_0x3c68c6,_0x4964d8){var _0x4eaf77=_0x4eaf();return(_0x2633=function(_0x2633cf,_0x20d716){var _0x3a4322;return _0x4eaf77[_0x2633cf-=395]})(_0x3c68c6,_0x4964d8)}function _0x4eaf(){var _0xcf0829=[\"1294670CcfyhK\",\"3828ubCsAt\",\"fitBounds\",\"3761292vePXvM\",\"circle_name\",\"setRadius\",\"9PozZHe\",\"14yurlzF\",\"zoom_to_this_circle\",\"2934558ReHKXN\",\"88930eiDVqK\",\"data\",\"8556925QTUwet\",\"2996440MhifJB\",\"mymap\",\"695398uWsVkf\",\"3wNWYXT\",\"getBounds\"];return(_0x4eaf=function(){return _0xcf0829})()}function run(_0x5d4c42,_0x1822df,_0x1c63ca){var _0x2b0483=_0x2633;_0x5d4c42[_0x2b0483(403)][\"\"+_0x1822df[_0x2b0483(396)]][_0x2b0483(397)](_0x1822df.new_radius),_0x1822df[_0x2b0483(400)]&&_0x5d4c42[_0x2b0483(403)][_0x2b0483(406)][_0x2b0483(412)](_0x5d4c42[_0x2b0483(403)][\"\"+_0x1822df[_0x2b0483(396)]][_0x2b0483(409)]())}!function(_0x4eeef2,_0x46c153){for(var _0x1cf206=_0x2633,_0xee47df=_0x4eeef2();;)try{var _0x4f1a41;if(998624===-parseInt(_0x1cf206(407))/1+parseInt(_0x1cf206(410))/2*(parseInt(_0x1cf206(408))/3)+-parseInt(_0x1cf206(395))/4+-parseInt(_0x1cf206(404))/5+parseInt(_0x1cf206(401))/6*(parseInt(_0x1cf206(399))/7)+-parseInt(_0x1cf206(405))/8*(parseInt(_0x1cf206(398))/9)+parseInt(_0x1cf206(402))/10*(parseInt(_0x1cf206(411))/11))break;_0xee47df.push(_0xee47df.shift())}catch(_0x95bf9f){_0xee47df.push(_0xee47df.shift())}}(_0x4eaf,998624),run(instance,properties,context)}"}},"AEW":{"caption":"Add list of markers","fields":{"AEX":{"caption":"List of latitudes","editor":"DynamicValue","is_list":true,"name":"list_of_latitudes","rank":0,"value":"number"},"AEY":{"caption":"List of longitudes","editor":"DynamicValue","is_list":true,"name":"list_of_longitudes","rank":1,"value":"number"},"AEZ":{"caption":"Show popup on click?","default_val":false,"editor":"DynamicValue","name":"popup_on_click","optional":true,"rank":2,"value":"boolean"},"AEa":{"caption":"Popup texts","editor":"DynamicValue","is_list":true,"name":"list_of_popup_texts","optional":true,"rank":3,"value":"text"},"AEb":{"caption":"Marker style","default_val":"Blue","editor":"Dropdown","name":"marker_style","rank":4},"AEc":{"caption":"Use custom icon?","default_val":false,"editor":"Checkbox","name":"use_custom_icon","optional":true,"rank":5,"value":"boolean"},"AEd":{"caption":"Custom icon","editor":"DynamicValue","name":"custom_icon_url","optional":true,"rank":6,"value":"image"},"AEf":{"caption":"Unique name","editor":"DynamicValue","name":"unique_name","rank":7,"value":"text"},"AHR":{"caption":"Clusterize markers","default_val":false,"editor":"DynamicValue","name":"clusterize_markers","rank":8,"value":"boolean"},"AKi":{"caption":"Small cluster color outside","name":"small_cluster_color_out","rank":9,"editor":"Color","default_val":"rgba(181, 226, 140, 0.6)"},"AKl":{"caption":"Small cluster color inside","name":"small_cluster_color_in","rank":10,"editor":"Color","default_val":"rgba(110, 204, 57, 0.6)"},"AKm":{"caption":"Medium cluster color outside","name":"medium_cluster_color_out","rank":11,"editor":"Color","default_val":"rgba(241, 211, 87, 0.6)"},"AKn":{"caption":"Medium cluster color inside","name":"medium_cluster_color_in","rank":12,"editor":"Color","default_val":"rgba(240, 194, 12, 0.6)"},"AKo":{"caption":"Large cluster color outside","name":"large_cluster_color_out","rank":13,"editor":"Color","default_val":"rgba(253, 156, 115, 0.6)"},"AKp":{"caption":"Large cluster color inside","name":"large_cluster_color_in","rank":14,"editor":"Color","default_val":"rgba(241, 128, 23, 0.6)"},"AKr":{"caption":"Font size","name":"font_size","rank":15,"editor":"DynamicValue","value":"text","default_val":"12"},"AKs":{"caption":"Font name","name":"font_name","rank":16,"editor":"DynamicValue","value":"text","default_val":"Helvetica Neue"},"AKt":{"caption":"Font color","name":"font_color","rank":17,"editor":"Color","default_val":"rgba(0, 0, 0, 1)"},"ALP":{"caption":"Max zoom","name":"max_zoom","rank":18,"editor":"DynamicValue","value":"number","optional":true},"ANt":{"caption":"Spiderify","name":"spiderify","rank":19,"editor":"DynamicValue","value":"boolean","default_val":false},"AOG":{"caption":"Marker Width","name":"marker_width","rank":20,"editor":"DynamicValue","value":"number","default_val":64},"AOH":{"caption":"Marker Height","name":"marker_height","rank":21,"editor":"DynamicValue","value":"number","default_val":64}},"code":{"fn":"function(instance,properties,context){function _0x975b(){const _0x3c51cd=[\"small_cluster_color_in\",\"marker_hovered_id\",\"large_cluster_color_out\",\"marker_unhovered_index\",\"White\",\"marker_hovered_index\",\"use_custom_icon\",\"medium_cluster_color_out\",\"marker_clicked\",\"225096AyYrlu\",\"publishState\",\"large_cluster_color_in\",\"clusterize_markers\",\"cluster_clicked_marker_ids\",\"Black\",\"length\",\"sourceTarget\",\"appendChild\",\"1639590SbUTuL\",\"mouseout\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1564170401815x674587151186880900/black_marker.png\",\"139974KcMGSc\",\"marker_width\",\"marker_unhovered\",\"3853416kYoAaY\",\"layer\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1564170365919x415802668829707840/brown_marker.png\",\" !important;\\n                }\\n            .marker-cluster-small div {\\n                background-color: \",\"list_of_popup_texts\",\"https://d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1564167608320x554071841235934900/marker-shadow.png\",\"options\",\"font_name\",\"marker_style\",\" !important;\\n                }\\n            \\n            .marker-cluster-medium {\\n                background-color: \",\"listedMarkerUniqueName\",\" !important;\\n                }\\n            \\n            .marker-cluster-large {\\n                background-color: \",\"unique_name\",\"Red\",\"popup_on_click\",\"icon\",\"7572306pJAsYJ\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1564178688812x132572725832933660/white_marker.png\",\"bindPopup\",\"innerHTML\",\"forEach\",\"style\",\"Brown\",\"undefined\",\"marker_height\",\"25VvjDqC\",\"medium_cluster_color_in\",\"addTo\",\"mymap\",\"Green\",\"24154146AOojHU\",\"markerCluster\",\"list_of_longitudes\",\"click\",\"spiderify\",\"map\",\"isMapboxGl\",\" !important;\\n                }\\n            .marker-cluster-large div {\\n                background-color: \",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1564171493719x438702278353580350/blue_marker.png\",\"32oZgjHU\",\"small_cluster_color_out\",\"marker\",\"https:\",\"custom_icon_url\",\"mouseover\",\"createElement\",\"head\",\"1173073KnhSvR\",\"marker_clicked_id\",\"get\",\"triggerEvent\",\"max_zoom\",\"marker_clicked_index\",\"list_of_latitudes\",\"data\",\"Blue\",\"match\",\"join\",\" 
132!important;\\n            \\n                }\",\"markerClusterGroup\"];return(_0x975b=function(){return _0x3c51cd})()}function _0x2f85(_0x47476b,_0x3d7602){const _0x975b3c=_0x975b();return(_0x2f85=function(_0x2f85e4,_0x12a6b5){let _0x41a7e3;return _0x975b3c[_0x2f85e4-=122]})(_0x47476b,_0x3d7602)}function run(_0x10f242,_0x1a3369,_0x47c2e0){const _0x392833=_0x2f85;if(_0x1a3369[_0x392833(177)])var _0x39bd01=_0x1a3369[_0x392833(177)].replace(/[0-9]|\\./g,\"\");if(_0x1a3369.clusterize_markers&&!_0x10f242[_0x392833(135)].isMapboxGl){let _0x29ab97={zoomToBoundsOnClick:!0,showCoverageOnHover:!0,spiderfyOnMaxZoom:_0x1a3369[_0x392833(199)],disableClusteringAtZoom:_0x1a3369[_0x392833(132)]};_0x10f242.data[_0x392833(196)+_0x1a3369[_0x392833(177)]]=L[_0x392833(140)](_0x29ab97).on(\"clusterclick\",_0x5d194a)}else _0x1a3369[_0x392833(153)]&&_0x10f242.data[_0x392833(201)];function _0x5a8681(_0x245855){const _0x4a29f4=_0x392833;let _0x162370=Number(_0x245855[_0x4a29f4(157)][_0x4a29f4(171)][_0x4a29f4(175)][_0x4a29f4(137)](/[0-9]/g)[_0x4a29f4(138)](\"\"));_0x10f242[_0x4a29f4(151)](_0x4a29f4(129),_0x245855.sourceTarget[_0x4a29f4(171)][_0x4a29f4(175)]),_0x10f242[_0x4a29f4(151)](_0x4a29f4(133),_0x162370),_0x10f242[_0x4a29f4(131)](_0x4a29f4(149))}function _0x9952f(_0x5bcb17){const _0x1e6906=_0x392833;let _0x108b06=Number(_0x5bcb17[_0x1e6906(157)][_0x1e6906(171)][_0x1e6906(175)][_0x1e6906(137)](/[0-9]/g)[_0x1e6906(138)](\"\"));_0x10f242[_0x1e6906(151)](_0x1e6906(142),_0x5bcb17[_0x1e6906(157)][_0x1e6906(171)].listedMarkerUniqueName),_0x10f242[_0x1e6906(151)](_0x1e6906(146),_0x108b06),_0x10f242[_0x1e6906(131)](\"marker_hovered\")}function _0x3abea6(_0x5d0c6b){const _0x332b85=_0x392833;let _0x2147f7=Number(_0x5d0c6b.sourceTarget.options[_0x332b85(175)][_0x332b85(137)](/[0-9]/g)[_0x332b85(138)](\"\"));_0x10f242[_0x332b85(151)](\"marker_unhovered_id\",_0x5d0c6b[_0x332b85(157)][_0x332b85(171)].listedMarkerUniqueName),_0x10f242[_0x332b85(151)](_0x332b85(144),_0x2147f7),_0x10f242.triggerEvent(_0x332b85(164))}
132function _0x5d194a(_0x3ab37b){const _0xa038ae=_0x392833;let _0x58a3e9=_0x3ab37b[_0xa038ae(166)].getAllChildMarkers()[_0xa038ae(200)]((_0x2edc7b=>_0x2edc7b[_0xa038ae(171)].listedMarkerUniqueName));_0x10f242.publishState(_0xa038ae(154),_0x58a3e9),_0x10f242[_0xa038ae(131)](\"cluster_clicked\")}const _0x3b3db4=(_0x589a1f,_0x2203dd,_0x5ab82b)=>{const _0x44c212=undefined;let _0xb4c249;return _0x589a1f[_0x392833(130)](_0x2203dd,_0x5ab82b)};let _0x12d930=_0x3b3db4(_0x1a3369[_0x392833(134)],0,_0x1a3369[_0x392833(134)][_0x392833(156)]()),_0x16f568=_0x3b3db4(_0x1a3369[_0x392833(197)],0,_0x1a3369[_0x392833(197)][_0x392833(156)]());if(typeof _0x1a3369.list_of_popup_texts!==_0x392833(188)&&null!==_0x1a3369[_0x392833(169)])var _0x2a16b7=_0x3b3db4(_0x1a3369[_0x392833(169)],0,_0x1a3369.list_of_popup_texts.length());const _0x9812f=_0x4c1362=>{const _0x2e4535=_0x392833;return _0x4c1362===_0x2e4535(136)?_0x2e4535(203):\"Yellow\"===_0x4c1362?\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1564170374547x229722995590253600/yellow_marker.png\":_0x4c1362===_0x2e4535(194)?\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1564170384003x782559689703375100/green_marker.png\":_0x4c1362===_0x2e4535(178)?\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1564170393314x384017959683047300/red_marker.png\":_0x4c1362===_0x2e4535(187)?_0x2e4535(167):_0x4c1362===_0x2e4535(145)?_0x2e4535(182):_0x4c1362===_0x2e4535(155)?_0x2e4535(161):void 0},_0x487080=(_0x1b951e,_0x3c2714)=>{const _0x104403=_0x392833;if(_0x1a3369[_0x104403(179)]&&_0x1a3369.use_custom_icon){let _0x4b4171=L[_0x104403(180)]({iconUrl:_0x104403(123)+_0x1a3369.custom_icon_url,iconSize:[_0x1a3369[_0x104403(163)],_0x1a3369.marker_height],shadowSize:[50,64],iconAnchor:[_0x1a3369[_0x104403(163)]/2,_0x1a3369[_0x104403(189)]],shadowAnchor:[4,62],popupAnchor:[0,-_0x1a3369.marker_height]});_0x1a3369[_0x104403(153)]?_0x10f242[_0x104403(135)][\"\"+_0x39bd01+(_0x3c2714+1)]=L[_0x104403(122)]([_0x12d930[_0x3c2714],_0x16f568[_0x3c2714]],{icon:_0x4b4171,listedMarkerUniqueName:\"\"+_0x39bd01+(_0x3c2714+1)})[_0x104403(192)](_0x10f242[_0x104403(135)][_0x104403(196)+_0x1a3369[_0x104403(177)]])[_0x104403(183)](_0x2a16b7[_0x3c2714]).on(_0x104403(198),_0x5a8681).on(_0x104403(125),_0x9952f).on(_0x104403(160),_0x3abea6):_0x10f242[_0x104403(135)][\"\"+_0x39bd01+(_0x3c2714+1)]=L[_0x104403(122)]([_0x12d930[_0x3c2714],_0x16f568[_0x3c2714]],{icon:_0x4b4171,listedMarkerUniqueName:\"\"+_0x39bd01+(_0x3c2714+1)})[_0x104403(192)](_0x10f242[_0x104403(135)][_0x104403(193)])[_0x104403(183)](_0x2a16b7[_0x3c2714]).on(_0x104403(198),_0x5a8681).on(_0x104403(125),_0x9952f).on(_0x104403(160),_0x3abea6)}else if(_0x1a3369[_0x104403(179)]&&!_0x1a3369[_0x104403(147)]){let _0x1ecfb2=L[_0x104403(180)]({iconUrl:_0x104403(123)+_0x9812f(_0x1a3369[_0x104403(173)]),shadowUrl:_0x104403(170),iconSize:[25,40],shadowSize:[41,41],iconAnchor:[12,39],shadowAnchor:[13,40],popupAnchor:[0,-30]});_0x1a3369.clusterize_markers?_0x10f242[_0x104403(135)][\"\"+_0x39bd01+(_0x3c2714+1)]=L[_0x104403(122)]([_0x12d930[_0x3c2714],_0x16f568[_0x3c2714]],{icon:_0x1ecfb2,listedMarkerUniqueName:\"\"+_0x39bd01+(_0x3c2714+1)})[_0x104403(192)](_0x10f242[_0x104403(135)][_0x104403(196)+_0x1a3369[_0x104403(177)]]).bindPopup(_0x2a16b7[_0x3c2714]).on(_0x104403(198),_0x5a8681).on(_0x104403(125),_0x9952f).on(_0x104403(160),_0x3abea6):_0x10f242[_0x104403(135)][\"\"+_0x39bd01+(_0x3c2714+1)]=L.marker([_0x12d930[_0x3c2714],_0x16f568[_0x3c2714]],{icon:_0x1ecfb2,listedMarkerUniqueName:\"\"+_0x39bd01+(_0x3c2714+1)}).addTo(_0x10f242[_0x104403(135)].mymap)[_0x104403(183)](_0x2a16b7[_0x3c2714]).on(_0x104403(198),_0x5a8681).on(\"mouseover\",_0x9952f).on(_0x104403(160),_0x3abea6)}else if(!_0x1a3369[_0x104403(179)]&&_0x1a3369[_0x104403(147)]){let _0x57c831=L[_0x104403(180)]({iconUrl:_0x104403(123)+_0x1a3369[_0x104403(124)],iconSize:[_0x1a3369[_0x104403(163)],_0x1a3369.marker_height],shadowSize:[50,64],iconAnchor:[_0x1a3369[_0x104403(163)]/2,_0x1a3369[_0x104403(189)]],shadowAnchor:[4,62],popupAnchor:[0,-_0x1a3369[_0x104403(189)]]});_0x1a3369[_0x104403(153)]?_0x10f242[_0x104403(135)][\"\"+_0x39bd01+(_0x3c2714+1)]=L[_0x104403(122)]([_0x12d930[_0x3c2714],_0x16f568[_0x3c2714]],{icon:_0x57c831,listedMarkerUniqueName:\"\"+_0x39bd01+(_0x3c2714+1)})[_0x104403(192)](_0x10f242[_0x104403(135)][\"markerCluster\"+_0x1a3369.unique_name]).on(_0x104403(198),_0x5a8681).on(\"mouseover\",_0x9952f).on(_0x104403(160),_0x3abea6):_0
132x10f242[_0x104403(135)][\"\"+_0x39bd01+(_0x3c2714+1)]=L.marker([_0x12d930[_0x3c2714],_0x16f568[_0x3c2714]],{icon:_0x57c831,listedMarkerUniqueName:\"\"+_0x39bd01+(_0x3c2714+1)})[_0x104403(192)](_0x10f242.data.mymap).on(_0x104403(198),_0x5a8681).on(_0x104403(125),_0x9952f).on(_0x104403(160),_0x3abea6)}else if(!_0x1a3369[_0x104403(179)]&&!_0x1a3369.use_custom_icon){let _0x359abe=L[_0x104403(180)]({iconUrl:\"https:\"+_0x9812f(_0x1a3369[_0x104403(173)]),shadowUrl:\"https://d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1564167608320x554071841235934900/marker-shadow.png\",iconSize:[25,40],shadowSize:[41,41],iconAnchor:[12,39],shadowAnchor:[13,40],popupAnchor:[0,-30]});_0x1a3369[_0x104403(153)]?_0x10f242[_0x104403(135)][\"\"+_0x39bd01+(_0x3c2714+1)]=L[_0x104403(122)]([_0x12d930[_0x3c2714],_0x16f568[_0x3c2714]],{icon:_0x359abe,listedMarkerUniqueName:\"\"+_0x39bd01+(_0x3c2714+1)})[_0x104403(192)](_0x10f242[_0x104403(135)][_0x104403(196)+_0x1a3369[_0x104403(177)]]).on(\"click\",_0x5a8681).on(\"mouseover\",_0x9952f).on(_0x104403(160),_0x3abea6):_0x10f242[_0x104403(135)][\"\"+_0x39bd01+(_0x3c2714+1)]=L.marker([_0x12d930[_0x3c2714],_0x16f568[_0x3c2714]],{icon:_0x359abe,listedMarkerUniqueName:\"\"+_0x39bd01+(_0x3c2714+1)})[_0x104403(192)](_0x10f242[_0x104403(135)].mymap).on(_0x104403(198),_0x5a8681).on(_0x104403(125),_0x9952f).on(_0x104403(160),_0x3abea6)}};if(_0x12d930[_0x392833(185)](_0x487080),_0x1a3369[_0x392833(153)]){var _0x4832a8=document[_0x392833(126)](_0x392833(186));_0x4832a8[_0x392833(184)]=\".marker-cluster-small {\\n                background-color: \"+_0x1a3369[_0x392833(205)]+_0x392833(168)+_0x1a3369[_0x392833(141)]+_0x392833(174)+_0x1a3369[_0x392833(148)]+\" !important;\\n                }\\n            .marker-cluster-medium div {\\n                background-color: \"+_0x1a3369[_0x392833(191)]+_0x392833(176)+_0x1a3369[_0x392833(143)]+_0x392833(202)+_0x1a3369[_0x392833(152)]+\" !important;\\n                }\\n            \\n            .marker-cluster div {\\n            \\n                font: \"+_0x1a3369.font_size+'px \"'+_0x1a3369[_0x392833(172)]+'\", Arial, Helvetica, sans-serif !important;\\n                color: '+_0x1a3369.font_color+_0x392833(139),document[_0x392833(127)][_0x392833(158)](_0x4832a8),_0x10f242[_0x392833(135)][_0x392833(196)+_0x1a3369[_0x392833(177)]].addTo(_0x10f242.data[_0x392833(193)])}}!function(_0x3dbc05,_0x5e14f1){const _0x2328f4=_0x2f85,_0x52f7ef=_0x3dbc05();for(;;)try{const _0xe79c6=undefined;if(728785===parseInt(_0x2328f4(128))/1+parseInt(_0x2328f4(204))/2*(-parseInt(_0x2328f4(162))/3)+parseInt(_0x2328f4(150))/4+parseInt(_0x2328f4(190))/5*(parseInt(_0x2328f4(159))/6)+parseInt(_0x2328f4(181))/7+parseInt(_0x2328f4(165))/8+-parseInt(_0x2328f4(195))/9)break;_0x52f7ef.push(_0x52f7ef.shift())}catch(_0x5711b2){_0x52f7ef.push(_0x52f7ef.shift())}}(_0x975b,728785),run(instance,properties,context)}"}},"AEh":{"caption":"Erase list of markers","fields":{"AEi":{"caption":"Unique name to erase","editor":"DynamicValue","name":"unique_name_to_erase","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x1077(_0x153e8b,_0x124d21){const _0x349263=_0x3492();return(_0x1077=function(_0x10777e,_0x24d6f9){let _0x5748c8;return _0x349263[_0x10777e-=136]})(_0x153e8b,_0x124d21)}function run(_0xff27e2,_0x5263cb,_0x1701b1){const _0x4412d1=_0x1077,_0x4798df=_0x1d34c3=>_0x1d34c3.includes(_0x5263cb.unique_name_to_erase);typeof _0xff27e2.data[_0x4412d1(152)+_0x5263cb[_0x4412d1(145)]]!==_0x4412d1(139)&&null!==_0xff27e2[_0x4412d1(150)][_0x4412d1(152)+_0x5263cb[_0x4412d1(145)]]&&(_0xff27e2[_0x4412d1(150)][_0x4412d1(152)+_0x5263cb.unique_name_to_erase][_0x4412d1(136)](),delete _0xff27e2[_0x4412d1(150)][_0x4412d1(152)+_0x5263cb.unique_name_to_erase]);let _0x5442ec,_0x47852a=Object[_0x4412d1(140)](_0xff27e2[_0x4412d1(150)])[_0x4412d1(154)](_0x4798df),_0x5b32a9=_0x47852a[_0x4412d1(148)];for(console[_0x4412d1(147)](_0x47852a),i=0;i<_0x5b32a9;i++)_0xff27e2[_0x4412d1(150)][\"\"+_0x5263cb[_0x4412d1(145)]+(i+1)][_0x4412d1(136)]()}function _0x3492(){const _0x31e497=[\"filter\",\"95MhUcAZ\",\"remove\",\"164hFAbpR\",\"22980zvETZp\",\"undefined\",\"keys\",\"73059ikfyZU\",\"3495360qWUpub\",\"968301WzdgIl\",\"1369249QHBdSQ\",\"unique_name_to_erase\",\"45024ZExVPI\",\"log\",\"length\",\"199338XExfLw\",\"data\",\"18BhAQGq\",\"markerCluster\",\"8FfVHdv\"];return(_0x3492=function(){return _0x31e497})()}!function(_0x55e8ea,_0x490d94){const _0x5404b1=_0x1077,_0x5b0b01=_0x55e8ea();for(;;)try{const _0xa0d0ce=undefined;if(414178===parseInt(_0x5404b1(141))/1*(parseInt(_0x5404b1(151))/2)+parseInt(_0x5404b1(146))/3*(parseInt(_0x5404b1(137))/4)+parseInt(_0x5404b1(155))
132/5*(-parseInt(_0x5404b1(149))/6)+parseInt(_0x5404b1(144))/7+-parseInt(_0x5404b1(153))/8*(parseInt(_0x5404b1(143))/9)+parseInt(_0x5404b1(138))/10+-parseInt(_0x5404b1(142))/11)break;_0x5b0b01.push(_0x5b0b01.shift())}catch(_0x8cd5f8){_0x5b0b01.push(_0x5b0b01.shift())}}(_0x3492,414178),run(instance,properties,context)}"}},"AEo":{"caption":"Get HERE route","fields":{"AEp":{"caption":"Origin address","default_val":"","editor":"DynamicValue","name":"origin_address","rank":0,"value":"text"},"AEq":{"caption":"Destination address","editor":"DynamicValue","name":"destination_address","rank":1,"value":"text"},"AEr":{"caption":"Use coordinates","default_val":false,"editor":"Checkbox","name":"use_coordinates","rank":3},"AEs":{"caption":"Latitude list","editor":"DynamicValue","is_list":true,"name":"latitude_list","optional":true,"rank":4,"value":"number"},"AEt":{"caption":"Longitude list","editor":"DynamicValue","is_list":true,"name":"longitude_list","optional":true,"rank":5,"value":"number"},"AEu":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":6,"value":"text"},"AEv":{"caption":"Route color","default_val":"rgba(85, 224, 85, 1)","editor":"Color","name":"route_color","rank":7},"AEw":{"caption":"Base route color","default_val":"rgba(255, 255, 255, 1)","editor":"Color","name":"base_route_color","rank":8},"AEy":{"caption":"Distance limit","editor":"DynamicValue","name":"distance_limit","optional":true,"rank":9,"value":"number"},"AEz":{"caption":"------------- Restrictions ------------- ","editor":"Label","name":"-------------_restrictions_-------------_","rank":10},"AFA":{"caption":"Truck type","default_val":"StraightTruck","editor":"Dropdown","name":"truck_type","rank":11},"AFB":{"caption":"Tunnel category","editor":"Dropdown","name":"tunnel_category","optional":true,"rank":12},"AFE":{"caption":"Axle count","editor":"DynamicValue","name":"axle_count","optional":true,"rank":13,"value":"number"},"AFF":{"caption":"Limited weight","editor":"DynamicValue","name":"limited_weight","optional":true,"rank":14,"value":"number"},"AFG":{"caption":"Weight per axle","editor":"DynamicValue","name":"weight_per_axle","optional":true,"rank":15,"value":"number"},"AFH":{"caption":"Height","editor":"DynamicValue","name":"height","optional":true,"rank":16,"value":"number"},"AFI":{"caption":"Width","editor":"DynamicValue","name":"width","optional":true,"rank":17,"value":"number"},"AFJ":{"caption":"Length","editor":"DynamicValue","name":"length","optional":true,"rank":18,"value":"number"},"AFK":{"caption":"Shipped hazardous goods","editor":"Dropdown","name":"shipped_hazardous_goods","optional":true,"rank":19},"AFL":{"caption":"Weights per axle (tandem)","editor":"DynamicValue","name":"weights_per_axle_tandem","optional":true,"rank":20,"value":"number"},"AFM":{"caption":"Weights per axle (single)","editor":"DynamicValue","name":"weights_per_axle_single","optional":true,"rank":21,"value":"number"},"AFO":{"caption":"Trailers count","editor":"DynamicValue","name":"trailers_count","optional":true,"rank":22,"value":"number"},"AOA":{"caption":"Transport Mode","name":"transport_mode","rank":2,"editor":"DynamicValue","value":"text","default_val":"car","optional":true}},"code":{"fn":"function(instance,properties,context){function _0x3a42(){var _0x212fdb=[\"33620feoDZk\",\"3116148YyCQSK\",\"719336dpagmD\",\"actions\",\"54uQxCuE\",\"3960654YVenTN\",\"log\",\"8996PwqEbS\",\"Calling getHereRoute with properties:\",\"868479SsSyPZ\",\"12744696WRIukX\",\"1540dZaPdD\",\"data\",\"getHereRoute\",\"9TxZzRu\",\"5CCrjBv\",\"4yAIcQx\"];return(_0x3a42=function(){return _0x212fdb})()}function _0x5b55(_0x5a39b0,_0x2333df){var _0x3a421b=_0x3a42();return(_0x5b55=function(_0x5b553d,_0x1f269e){var _0x1f06a0;return _0x3a421b[_0x5b553d-=133]})(_0x5a39b0,_0x2333df)}function run(_0x409c36,_0x47a856,_0x3d704){var _0x5b91e1=_0x5b55;console[_0x5b91e1(149)](_0x5b91e1(134),_0x47a856),_0x409c36[_0x5b91e1(138)][_0x5b91e1(146)][_0x5b91e1(139)](_0x47a856)}!function(_0x333ec0,_0x7e3bbf){for(var _0x521cc1=_0x5b55,_0x38a3a0=_0x333ec0();;)try{var _0x43e6a5;if(333117===parseInt(_0x521cc1(147))/1*(-parseInt(_0x521cc1(133))/2)+parseInt(_0x521cc1(135))/3*(parseInt(_0x521cc1(142))/4)+-parseInt(_0x521cc1(141))/5*(parseInt(_0x521cc1(148))/6)+parseInt(_0x521cc1(144))/7+parseInt(_0x521cc1(145))/8*(-parseInt(_0x521cc1(140))/9)+parseInt(_0x521cc1(143))/10*(-parseInt(_0x521cc1(137))/11)+parseInt(_0x521cc1(136))/12)break;_0x38a3a0.push(_0x38a3a0.shift())}catch(_0x56bd73){_0x38a3a0.push(_0x38a3a0.shift())}}(_0x3a42,333117),run(instance,properties,context)}"}},"AFP":{"caption":"Add HERE route marker on click","fields":{"AFc":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x40e1(_0x37b521,_0x2d49e2){var _0x254721=_0x2547();return(_0x40e1=function(_0x40e15f,_0x26a1ef){var _0x1520ed;return _0x254721[_0x40e15f-=361]})(_0x37b521,_0x2d49e2)}function run(_0x17e9be,_0x5acc1a,_0x4af697){var _0x5bbbc5=_0x40e1;_0x17e9be.data[_0x5bbbc5(364)].addMarkerClick(_0x5acc1a)}function _0x2547(){var _0x24575b=[\"3183040kNWnVD\",\"2655OBPXAY\",\"2342416yiTbhE\",\"actions\",\"11982QFWDmB\",\"21DCrDyy\",\"475146YtVxrB\",\"652855yubPok\",\"16803900tBSrbQ\",\"116486naBGGI\"];return(_0x2547=function(){return _0x24575b})()}!function(_0x1a15c9,_0x277bc9){for(var _0x1a66e9=_0x40e1,_0x54daa7=_0x1a15c9();;)try{var _0x1539ac;
132if(672377===parseInt(_0x1a66e9(367))/1+-parseInt(_0x1a66e9(370))/2*(-parseInt(_0x1a66e9(366))/3)+parseInt(_0x1a66e9(361))/4+-parseInt(_0x1a66e9(362))/5*(-parseInt(_0x1a66e9(365))/6)+parseInt(_0x1a66e9(368))/7+-parseInt(_0x1a66e9(363))/8+-parseInt(_0x1a66e9(369))/9)break;_0x54daa7.push(_0x54daa7.shift())}catch(_0xb1f3fb){_0x54daa7.push(_0x54daa7.shift())}}(_0x2547,672377),run(instance,properties,context)}"}},"AFR":{"caption":"Zoom to HERE route","fields":{"AFd":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x307a(_0x236bad,_0xcbbfff){var _0x2ee40f=_0x2ee4();return(_0x307a=function(_0x307ae7,_0x475751){var _0x43e8ca;return _0x2ee40f[_0x307ae7-=222]})(_0x236bad,_0xcbbfff)}function run(_0x675cfb,_0x4f7999,_0x51faf9){var _0x36a21e=_0x307a;_0x675cfb[_0x36a21e(228)][_0x36a21e(224)][_0x36a21e(226)](_0x4f7999)}function _0x2ee4(){var _0x4b1368=[\"9qRYKui\",\"data\",\"101528JHHRXA\",\"1762449AVTgke\",\"81870nOOZQb\",\"3607513FYhBgl\",\"16361210QsbUOL\",\"4420728beLamm\",\"102XfTSIt\",\"11titTtR\",\"actions\",\"86280tpSDjr\",\"zoomToMap\"];return(_0x2ee4=function(){return _0x4b1368})()}!function(_0x38b73c,_0x57a1e9){for(var _0x195373=_0x307a,_0x146128=_0x38b73c();;)try{var _0x3741b6;if(358354===-parseInt(_0x195373(223))/1*(parseInt(_0x195373(225))/2)+-parseInt(_0x195373(230))/3+parseInt(_0x195373(229))/4+-parseInt(_0x195373(231))/5*(parseInt(_0x195373(222))/6)+-parseInt(_0x195373(232))/7+parseInt(_0x195373(234))/8+parseInt(_0x195373(227))/9*(parseInt(_0x195373(233))/10))break;_0x146128.push(_0x146128.shift())}catch(_0x6484fc){_0x146128.push(_0x146128.shift())}}(_0x2ee4,358354),run(instance,properties,context)}"}},"AFS":{"caption":"Edit HERE route","fields":{"AFe":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"},"AFf":{"caption":"Color","editor":"Color","name":"color","rank":1},"AFg":{"caption":"Distance limit","editor":"DynamicValue","name":"distance_limit","optional":true,"rank":2,"value":"number"}},"code":{"fn":"function(instance,properties,context){function _0x5610(){var _0x292065=[\"71397HqUKBp\",\"1841440jMWrRm\",\"784VwKXLi\",\"actions\",\"78rmfHKI\",\"36QlkyoC\",\"575979BhBimv\",\"1854671UeBnPM\",\"184OeKkmv\",\"325880iOsHBf\",\"2712780KnAzDo\"];return(_0x5610=function(){return _0x292065})()}function _0x1065(_0x1c9231,_0x3eb98f){var _0x5610b7=_0x5610();return(_0x1065=function(_0x1065bf,_0x2c6f3e){var _0x4f9ebb;return _0x5610b7[_0x1065bf-=487]})(_0x1c9231,_0x3eb98f)}function run(_0x2bffe5,_0x2f6afd,_0x25baf6){var _0x404092=_0x1065;_0x2bffe5.data[_0x404092(497)].editRoute(_0x2f6afd)}!function(_0x4f2e9e,_0x36961f){for(var _0x481fdd=_0x1065,_0x4476b2=_0x4f2e9e();;)try{var _0x1ca068;if(545286===parseInt(_0x481fdd(489))/1+parseInt(_0x481fdd(496))/2*(-parseInt(_0x481fdd(487))/3)+-parseInt(_0x481fdd(493))/4+-parseInt(_0x481fdd(492))/5*(-parseInt(_0x481fdd(488))/6)+parseInt(_0x481fdd(490))/7+parseInt(_0x481fdd(491))/8*(-parseInt(_0x481fdd(494))/9)+parseInt(_0x481fdd(495))/10)break;_0x4476b2.push(_0x4476b2.shift())}catch(_0x4f9684){_0x4476b2.push(_0x4476b2.shift())}}(_0x5610,545286),run(instance,properties,context)}"}},"AFT":{"caption":"Get HERE suggestion","fields":{"AFh":{"caption":"Text","editor":"DynamicValue","name":"text","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x4142(){var _0x28d598=[\"27324088hUEsrF\",\"data\",\"2kTSGjS\",\"1528470bOxeXc\",\"2932314OFTXht\",\"796268IJkTvy\",\"actions\",\"6912510XENAPc\",\"2434935UNvoXA\",\"6636366HmjXaV\"];return(_0x4142=function(){return _0x28d598})()}function _0x5db4(_0x1b32fc,_0x295854){var _0x41429a=_0x4142();return(_0x5db4=function(_0x5db418,_0x22e8ab){var _0x3be3aa;return _0x41429a[_0x5db418-=228]})(_0x1b32fc,_0x295854)}function run(_0x56e3c9,_0x540643,_0x2e2a31){var _0x1d744e=_0x5db4;_0x56e3c9[_0x1d744e(234)][_0x1d744e(229)].getAutocompleteSuggestion(_0x540643)}!function(_0x4cf054,_0x360ac8){for(var _0x220280=_0x5db4,_0x26431b=_0x4cf054();;)try{var _0x1af5f1;if(795198===parseInt(_0x220280(236))/1+-parseInt(_0x220280(235))/2*(-parseInt(_0x220280(231))/3)+-parseInt(_0x220280(228))/4+parseInt(_0x220280(230))/5+parseInt(_0x220280(232))/6+-parseInt(_0x220280(237))/7+-parseInt(_0x220280(233))/8)break;_0x26431b.push(_0x26431b.shift())}catch(_0x316a1f){_0x26431b.push(_0x26431b.shift())}}(_0x4142,795198),run(instance,properties,context)}"}},"AFU":{"caption":"Show HERE route","fields":{"AFi":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"},"AFj":{"caption":"Zoom to route","default_val":true,"editor":"Checkbox","name":"zoom_to_route","rank":1,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x38e8(_0xb17fd4,_0x140c8b){var _0x315835=_0x3158();return(_0x38e8=function(_0x38e8a7,_0x4007ef){var _0x8bbac1;return _0x315835[_0x38e8a7-=163]})(_0xb17fd4,_0x140c8b)}function run(_0x5e7956,_0x2508b7,_0x41c992){var _0x324c02=_0x38e8;_0x5e7956[_0x324c02(166)][_0x324c02(173)][_0x324c02(165)](_0x2508b7)}function _0x3158(){var _0x55892b=[\"76mEmrTg\",\"1565514eZbWvP\",\"2888570IgWnnE\",\"1728FqIqjR\",\"2100959LBwcvV\",\"8lVMprB\",\"actions\",\"659331ogakAr\",\"2006832SxzIiW\",\"2972184MJfhIS\",\"showRoute\",\"data\"];return(_0x3158=function(){return _0x55892b})()}!function(_0x4e3fc0,_0x34bb9b){for(var _0x155a5c=_0x38e8,_0x45d86d=_0x4e3fc0();;)try{var _0x103659;if(408010===-parseInt(_0x155a5c(174))/1+parseInt(_0x155a5c(167))/2*(parseInt(_0x155a5c(170))/3)+-parseInt(_0x155a5c(163))/4+parseInt(_0x155a5c(169))/5+parseInt(_0x155a5c(164))/6+parseInt(_0x155a5c(171))/7*(parseInt(_0x155a5c(172))/8)+p
132arseInt(_0x155a5c(168))/9)break;_0x45d86d.push(_0x45d86d.shift())}catch(_0x5f1569){_0x45d86d.push(_0x45d86d.shift())}}(_0x3158,408010),run(instance,properties,context)}"}},"AFV":{"caption":"Hide HERE route","fields":{"AFk":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x3aba(){var _0x37b1cd=[\"50gxJPhk\",\"data\",\"904XFBGcU\",\"51576mcOoob\",\"162178mJgtdT\",\"123yXpyji\",\"actions\",\"4341726OAWxfV\",\"10746050UoElcJ\",\"hideRoute\",\"31066jeGoBr\",\"355832LImOHf\",\"3300618BIjVHX\"];return(_0x3aba=function(){return _0x37b1cd})()}function _0x57bc(_0x151d72,_0x1de92e){var _0x3aba27=_0x3aba();return(_0x57bc=function(_0x57bc20,_0x193be9){var _0x388f5e;return _0x3aba27[_0x57bc20-=289]})(_0x151d72,_0x1de92e)}function run(_0x481c4f,_0x5bf0b3,_0x1f8afd){var _0x19e482=_0x57bc;_0x481c4f[_0x19e482(291)][_0x19e482(296)][_0x19e482(299)](_0x5bf0b3)}!function(_0x2eaa1c,_0x351b62){for(var _0x24163c=_0x57bc,_0x455d2e=_0x2eaa1c();;)try{var _0x105208;if(475245===parseInt(_0x24163c(294))/1+-parseInt(_0x24163c(300))/2*(parseInt(_0x24163c(295))/3)+-parseInt(_0x24163c(301))/4*(parseInt(_0x24163c(290))/5)+-parseInt(_0x24163c(289))/6+-parseInt(_0x24163c(293))/7*(-parseInt(_0x24163c(292))/8)+parseInt(_0x24163c(297))/9+parseInt(_0x24163c(298))/10)break;_0x455d2e.push(_0x455d2e.shift())}catch(_0x2d5fd3){_0x455d2e.push(_0x455d2e.shift())}}(_0x3aba,475245),run(instance,properties,context)}"}},"AFW":{"caption":"Export HERE route","fields":{"AFl":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x1acb(){var _0x5604f2=[\"5056236OqPGpI\",\"629144akYaFy\",\"711590hXoEGr\",\"7YbMdKt\",\"30qcEuis\",\"626421VTfYTF\",\"5BcvOdg\",\"694260YySaHw\",\"1786676dWqrAb\",\"data\",\"2XgetZZ\",\"1515726ZzJrHO\"];return(_0x1acb=function(){return _0x5604f2})()}function _0x2464(_0xfa34e0,_0x49240a){var _0x1acb71=_0x1acb();return(_0x2464=function(_0x246406,_0x5e553a){var _0x352798;return _0x1acb71[_0x246406-=287]})(_0xfa34e0,_0x49240a)}function run(_0x2d8a2c,_0x6d2349,_0x1b0980){var _0x534bed;_0x2d8a2c[_0x2464(296)].actions.exportRoute(_0x6d2349)}!function(_0x5eaedc,_0xcee41c){for(var _0x7380a7=_0x2464,_0x49db8c=_0x5eaedc();;)try{var _0x2f03fd;if(390410===parseInt(_0x7380a7(294))/1+-parseInt(_0x7380a7(297))/2*(parseInt(_0x7380a7(292))/3)+-parseInt(_0x7380a7(295))/4*(-parseInt(_0x7380a7(293))/5)+-parseInt(_0x7380a7(298))/6*(parseInt(_0x7380a7(290))/7)+parseInt(_0x7380a7(288))/8+-parseInt(_0x7380a7(287))/9+-parseInt(_0x7380a7(291))/10*(-parseInt(_0x7380a7(289))/11))break;_0x49db8c.push(_0x49db8c.shift())}catch(_0x58f97f){_0x49db8c.push(_0x49db8c.shift())}}(_0x1acb,390410),run(instance,properties,context)}"}},"AFX":{"caption":"Add HERE route marker","fields":{"AFm":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"},"AFn":{"caption":"Latitude","editor":"DynamicValue","name":"latitude","optional":true,"rank":1,"value":"number"},"AFo":{"caption":"Longitude","editor":"DynamicValue","name":"longitude","optional":true,"rank":2,"value":"number"},"AFp":{"caption":"Use address instead","default_val":false,"editor":"Checkbox","name":"use_address_instead","rank":3},"AFq":{"caption":"Address","editor":"DynamicValue","name":"address","optional":true,"rank":4,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x2da5(_0x33f5e4,_0x36d1f1){var _0x4e8be2=_0x4e8b();return(_0x2da5=function(_0x2da53e,_0x5a49b8){var _0x5eabdb;return _0x4e8be2[_0x2da53e-=304]})(_0x33f5e4,_0x36d1f1)}function _0x4e8b(){var _0x2046e6=[\"101064NuAQwR\",\"1380100QpPpwh\",\"495cuQLCe\",\"21873432fXobev\",\"2629866YwMuCE\",\"6742kqtcsz\",\"10517542AqRdII\",\"777835mITVOD\"];return(_0x4e8b=function(){return _0x2046e6})()}function run(_0x23e445,_0x3f1ab0,_0xfd6ce4){_0x23e445.data.actions.addWfRouteMarker(_0x3f1ab0)}!function(_0x5480cb,_0x5e9d7c){for(var _0x2c1dc0=_0x2da5,_0x3c1e26=_0x5480cb();;)try{var _0x52f077;if(791442===parseInt(_0x2c1dc0(311))/1+parseInt(_0x2c1dc0(309))/2*(p
132arseInt(_0x2c1dc0(306))/3)+-parseInt(_0x2c1dc0(304))/4+parseInt(_0x2c1dc0(305))/5+parseInt(_0x2c1dc0(308))/6+parseInt(_0x2c1dc0(310))/7+-parseInt(_0x2c1dc0(307))/8)break;_0x3c1e26.push(_0x3c1e26.shift())}catch(_0x499c15){_0x3c1e26.push(_0x3c1e26.shift())}}(_0x4e8b,791442),run(instance,properties,context)}"}},"AFY":{"caption":"Show HERE route summary","fields":{"AFr":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x38a2(_0x4fe414,_0x499c08){var _0x3f124b=_0x3f12();return(_0x38a2=function(_0x38a2a3,_0x29bc31){var _0x25c032;return _0x3f124b[_0x38a2a3-=411]})(_0x4fe414,_0x499c08)}function _0x3f12(){var _0x1a8a3f=[\"4iWuAmb\",\"10wMLeEG\",\"398578BModdr\",\"1869376FnKFMq\",\"618DDPLeQ\",\"58815WZauip\",\"6360ixGbdN\",\"7955717iyEboz\",\"10442160ylvwIE\",\"data\",\"showRouteSummary\",\"3kWPjpU\",\"79827snjLYm\",\"4646097nmfLwA\"];return(_0x3f12=function(){return _0x1a8a3f})()}function run(_0x40c939,_0x3ff13a,_0xe0650d){var _0x18ca27=_0x38a2;_0x40c939[_0x18ca27(421)].actions[_0x18ca27(422)](_0x3ff13a)}!function(_0x5c8dce,_0x51b40b){for(var _0x48a4c5=_0x38a2,_0x3ffb25=_0x5c8dce();;)try{var _0x2cd810;if(685149===-parseInt(_0x48a4c5(412))/1*(parseInt(_0x48a4c5(414))/2)+parseInt(_0x48a4c5(423))/3*(-parseInt(_0x48a4c5(415))/4)+-parseInt(_0x48a4c5(417))/5*(parseInt(_0x48a4c5(416))/6)+parseInt(_0x48a4c5(419))/7+-parseInt(_0x48a4c5(420))/8+-parseInt(_0x48a4c5(411))/9*(parseInt(_0x48a4c5(413))/10)+parseInt(_0x48a4c5(424))/11*(parseInt(_0x48a4c5(418))/12))break;_0x3ffb25.push(_0x3ffb25.shift())}catch(_0xea6900){_0x3ffb25.push(_0x3ffb25.shift())}}(_0x3f12,685149),run(instance,properties,context)}"}},"AFZ":{"caption":"Remove HERE route marker by index","fields":{"AFs":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"},"AFt":{"caption":"Marker index (from origin)","default_val":1,"editor":"DynamicValue","name":"marker","rank":1,"value":"number"}},"code":{"fn":"function(instance,properties,context){function _0x1089(_0xdc155f,_0x36b343){var _0x83c856=_0x83c8();return(_0x1089=function(_0x1089a9,_0x4d6e2d){var _0x103ec2;return _0x83c856[_0x1089a9-=485]})(_0xdc155f,_0x36b343)}function _0x83c8(){var _0x3ae558=[\"14556040CEPnnO\",\"7661716DcVlET\",\"2047116yOxABE\",\"106721AwUbhb\",\"147ihxUno\",\"7997690NnPUWb\",\"497976akKvoW\",\"4210104ROKpHi\",\"removeMarkerByIndex\",\"18nJWLdI\",\"20lnQBoC\"];return(_0x83c8=function(){return _0x3ae558})()}function run(_0x1f70b5,_0x477b02,_0xbc0d4a){var _0x1db124=_0x1089;_0x1f70b5.data.actions[_0x1db124(488)](_0x477b02)}!function(_0x1aef83,_0x47fda4){for(var _0x244588=_0x1089,_0x3e0847=_0x1aef83();;)try{var _0x5f2d7c;if(997732===-parseInt(_0x244588(494))/1*(-parseInt(_0x244588(490))/2)+-parseInt(_0x244588(493))/3+-parseInt(_0x244588(492))/4+-parseInt(_0x244588(485))/5+-parseInt(_0x244588(486))/6*(-parseInt(_0x244588(495))/7)+-parseInt(_0x244588(487))/8+-parseInt(_0x244588(489))/9*(-parseInt(_0x244588(491))/10))break;_0x3e0847.push(_0x3e0847.shift())}catch(_0x256f2e){_0x3e0847.push(_0x3e0847.shift())}}(_0x83c8,997732),run(instance,properties,context)}"}},"AFa":{"caption":"Remove HERE route marker on click","fields":{"AFu":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x1062(){var _0x37e5c2=[\"20778YiUQzX\",\"1PUUNmg\",\"data\",\"1588485VSEKpi\",\"2723aZuzzz\",\"3657243MWUOEp\",\"2407546heCQUt\",\"980996dVtQZL\",\"10009720aKKElq\",\"removeMarkerOnClick\",\"46460790rACurB\"];return(_0x1062=function(){return _0x37e5c2})()}function _0x35d8(_0xece11b,_0x1ce9b7){var _0x106292=_0x1062();return(_0x35d8=function(_0x35d8e2,_0x19cb65){var _0x4a2620;return _0x106292[_0x35d8e2-=127]})(_0xece11b,_0x1ce9b7)}function run(_0x326f80,_0x21559c,_0x184763){var _0x59620d=_0x35d8;_0x326f80[_0x59620d(136)].actions[_0x59620d(132)](_0x21559c)}!function(_0x771d15,_0x43e745){for(var _0x55ad51=_0x35d8,_0x1ffe39=_0x771d15();;)try{var _0x171647;if(704080===-parseInt(_0x55ad51(135))/1*(parseInt(_0x55ad51(129))/2)+-parseInt(_0x55ad51(128))/3+parseInt(_0x55ad51(130))/4+parseInt(_0x55ad51(137))/5+-parseInt(_0x55ad51(134))/6*(parseInt(_0x55ad51(127))/7)+-parseInt(_0x55ad51(131))/8+parseInt(_0x55ad51(133))/9)break;_0x1ffe39.push(_0x1ffe39.shift())}catch(_0x20fb9d){_0x1ffe39.push(_0x1ffe39.shift())}}(_0x1062,704080),run(instance,properties,context)}"}},"AFb":{"caption":"Update HERE base route","fields":{"AFv":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x3557(_0x94fc51,_0x4cea9f){var _0x50db2e=_0x50db();return(_0x3557=function(_0x355775,_0x1ff53f){var _0x1d435c;return _0x50db2e[_0x355775-=393]})(_0x94fc51,_0x4cea9f)}function _0x50db(){var _0x1c42ff=[\"updateBaseRoute\",\"200njPnde\",\"327414MqkDrE\",\"92KwRhKc\",\"4221ecOqaw\",\"5SNkEvE\",\"634816oFSBoG\",\"actions\",\"5357SixYVG\",\"8VABhTz\",\"2338803iOhTiX\",\"450303MvpNrN\",\"390096YqPEAJ\",\"data\"];return(_0x50db=function(){return _0x1c42ff})()}function run(_0x4d0343,_0x193a51,_0x4d5867){var _0x5d7c15=_0x3557;
132_0x4d0343[_0x5d7c15(395)][_0x5d7c15(403)][_0x5d7c15(396)](_0x193a51)}!function(_0x3ee029,_0x5ed546){for(var _0x17dba0=_0x3557,_0x25f2e1=_0x3ee029();;)try{var _0x4766a7;if(177809===parseInt(_0x17dba0(400))/1*(-parseInt(_0x17dba0(399))/2)+parseInt(_0x17dba0(393))/3+parseInt(_0x17dba0(394))/4+parseInt(_0x17dba0(401))/5*(-parseInt(_0x17dba0(398))/6)+-parseInt(_0x17dba0(402))/7+-parseInt(_0x17dba0(405))/8*(-parseInt(_0x17dba0(406))/9)+parseInt(_0x17dba0(397))/10*(parseInt(_0x17dba0(404))/11))break;_0x25f2e1.push(_0x25f2e1.shift())}catch(_0x3e0a3f){_0x25f2e1.push(_0x25f2e1.shift())}}(_0x50db,177809),run(instance,properties,context)}"}},"AFw":{"caption":"Show this HERE route only and zoom","fields":{"AFx":{"caption":"Route name","editor":"DynamicValue","name":"route_name","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x1e09(_0x2e4f5a,_0x51c23a){var _0x332404=_0x3324();return(_0x1e09=function(_0x1e099c,_0x5c4a40){var _0x5ec42a;return _0x332404[_0x1e099c-=198]})(_0x2e4f5a,_0x51c23a)}function run(_0x2c5b0f,_0x4f3e35,_0xa184c3){var _0x5bf635=_0x1e09;_0x2c5b0f.data[_0x5bf635(203)][_0x5bf635(201)](_0x4f3e35)}function _0x3324(){var _0x5db5f6=[\"1786977UmfsLy\",\"40syfvIU\",\"3036455pkdwmz\",\"96042bdQEpA\",\"5448800SzrMgM\",\"6457752karuRm\",\"370288zqrliz\",\"7534830YgNPFo\",\"24bJuLQN\",\"showOnly\",\"24cpTufe\",\"actions\"];return(_0x3324=function(){return _0x5db5f6})()}!function(_0x16fed7,_0x468e61){for(var _0x502e37=_0x1e09,_0x2f6266=_0x16fed7();;)try{var _0x17d876;if(596191===-parseInt(_0x502e37(207))/1*(parseInt(_0x502e37(200))/2)+parseInt(_0x502e37(202))/3*(parseInt(_0x502e37(198))/4)+-parseInt(_0x502e37(206))/5+parseInt(_0x502e37(209))/6+parseInt(_0x502e37(208))/7+-parseInt(_0x502e37(205))/8*(parseInt(_0x502e37(204))/9)+parseInt(_0x502e37(199))/10)break;_0x2f6266.push(_0x2f6266.shift())}catch(_0x424fed){_0x2f6266.push(_0x2f6266.shift())}}(_0x3324,596191),run(instance,properties,context)}"}},"AFy":{"caption":"Load HERE routes from table","fields":{"AFz":{"caption":"Table source","editor":"DynamicValue","is_list":true,"name":"table_source","rank":0,"value":"_any_thing"},"AGA":{"caption":"Table type","editor":"custom_type","name":"table_type","rank":1},"AGB":{"caption":"Latitude field","editor":"custom_field_AGA","field_list":true,"name":"latitude_field","rank":2},"AGC":{"caption":"Longitude field","editor":"custom_field_AGA","field_list":true,"name":"longitude_field","rank":3},"AGD":{"caption":"Color field","editor":"custom_field_AGA","name":"color_field","rank":4,"optional":true},"AGE":{"caption":"Name field","editor":"custom_field_AGA","name":"name_field","rank":5},"AGF":{"caption":"Distance limit field","editor":"custom_field_AGA","name":"distance_limit_field","rank":6},"AGG":{"caption":"Show all routes","default_val":true,"editor":"Checkbox","name":"show_all_routes","rank":8},"AGZ":{"caption":"Route restriction field","editor":"custom_field_AGA","field_list":true,"name":"route_restriction_field","rank":7},"AGf":{"caption":"Base color field","editor":"custom_field_AGA","name":"base_color_field","rank":9}},"code":{"fn":"function(instance,properties,context){function run(_0x146438,_0x204e76,_0x32403c){var _0x23dc23=_0x1ce8;_0x146438[_0x23dc23(421)][_0x23dc23(428)][_0x23dc23(420)](_0x204e76)}function _0x1ce8(_0x10e91c,_0xd0a541){var _0x2617b9=_0x2617();return(_0x1ce8=function(_0x1ce80e,_0xc3613c){var _0x4d44c9;return _0x2617b9[_0x1ce80e-=417]})(_0x10e91c,_0xd0a541)}function _0x2617(){var _0x9bcfa8=[\"actions\",\"2503448JnYUAL\",\"17754110hOchHl\",\"4170504ADPIda\",\"1166290ZUZRqh\",\"loadRoutesFromTable\",\"data\",\"35hLGBLL\",\"62360OuobNl\",\"3FEnZAj\",\"888rnWUXQ\",\"734590kONutN\",\"14932962kACWfn\"];return(_0x2617=function(){return _0x9bcfa8})()}!function(_0x22b29b,_0x7861b1){for(var _0x46c6a7=_0x1ce8,_0x48759b=_0x22b29b();;)try{var _0x22f4df;if(950493===-parseInt(_0x46c6a7(419))/1+-parseInt(_0x46c6a7(426))/2*(parseInt(_0x46c6a7(424))/3)+-parseInt(_0x46c6a7(418))/4+parseInt(_0x46c6a7(423))/5*(parseInt(_0x46c6a7(425))/6)+parseInt(_0x46c6a7(422))/7*(parseInt(_0x46c6a7(429))/8)+-parseInt(_0x46c6a7(427))/9+parseInt(_0x46c6a7(417))/10)break;_0x48759b.push(_0x48759b.shift())}catch(_0x1d7c35){_0x48759b.push(_0x48759b.shift())}}(_0x2617,950493),run(instance,properties,context)}"}},"AHZ":{"caption":"Show custom popup on marker","fields":{"AHa":{"caption":"Custom popup URL","editor":"DynamicValue","name":"custom_popup_url","optional":true,"rank":0,"value":"text"},"AHb":{"caption":"Custom popup height","editor":"DynamicValue","name":"custom_popup_height","rank":2,"value":"text"},"AHc":{"caption":"Custom popup width","editor":"DynamicValue","name":"custom_popup_width","rank":3,"value":"text"},"AHg":{"caption":"Target marker unique ID","editor":"DynamicValue","name":"target_marker_unique_id","rank":4,"value":"text"},"AHh":{"caption":"In case you are using URL instead of HTML: Make sure your app settings about iframes is set to \"Same origin\". \"Allow all\" wil work, but everyone else on the internet will be able to display your pages in their apps and sites so it's not needed. \"Same origin\" makes only your app display your pages inside its pages.","editor":"Label","name":"make_sure_your_app_settings_about_iframes_is_set_to_\"same_origin\"._\"allow_all\"_wil_work,_but_everyone_else_on_the_internet_will_be_able_to_display_your_pages_in_their_apps_and_sites_so_it's_not_needed._\"same_origin\"_makes_only_your_app_display_your_pages_inside_its_pages.","rank":5},"AHl":{"caption":"Custom HTML","editor":"DynamicValue","name":"custom_html","optional":true,"rank":1,"value":"text"},"AHm":{"caption":"Border width","default_val":25,"editor":"DynamicValue","name":"border_width","rank":6,"value":"number"}},"code":{"fn":"function(instance,properties,context){function _0x55c7(_0x2638cc,_0x184c04){var _0x2f6eac=_0x2f6e();return(_0x55c7=function(_0x55c749,_0xcf959c){var _0x307317;return _0x2f6eac[_0x55c749-=153]})(_0x2638cc,_0x184c04)}function _0x2f6e(){var _0x5d893c=[\"border_width\",'<iframe width=\"',\"custom_popup_height\",\"bindPopup\",\"') center center no-repeat;\\n              }\",\"custom_popup_url\",'<div class=\"holds-the-iframe\"><iframe width=\"',\"style\",\".holds-the-iframe {\\n                background:url('\",\"openPopup\",\"921496DCWdhD\",\"1576506JHcRnJ\",\"1827mTljJy\",\"1569573esmQph\",\"3426846ONlYih\",\"https:\",\"296PihXXG\",'\" height=\"',\"http\",'\"></iframe></div>',\"identify\",\"5687110QwicCB\",\"10nSjXdT\",\"1IOotSp\",\"popup_sent_data_to_host_page\",\"1401636AgNMtl\",\"appendChild\",'\" srcdoc= \"',\"custom_html\",\"publishState\",\"substring\",\"content\",\"data\",'\" src=\"',\"data:image/gif;base64,R0lGODlhQABAANUAAAQCBISGhMTGxERCROTm5KSmpCQiJGRiZNTW1LS2tPT29BQSFJSWlFRSVDQyNHR2dMzOzOzu7KyurGxqbNze3Ly+vFxaXAwKDIyOjCwqLPz+/BweHKSipDw6PMzKzExKTOzq7KyqrCQmJGRmZNza3Ly6vPz6/BQWFJyanFRWVDQ2NHx+fNTS1PTy9LSytGxubOTi5MTCxF
132xeXAwODJSSlP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQIBgAAACwAAAAAQABAAAAG/sCacEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvteikPiHfcAGxa424AAFilua0NG/behtipulbTYcf0WRBsDiaAWCNsKIZXBDMAJ2iLVRhsLpJHFA0BCkomBymRezAInE0PbBshGpIgHgIeFE4QcmwdYnotCAK7HqFMLStsbCMgaQoUvB4whVEwKcIzGMxaJgSuHjGkVjEOwgdcyLssEVkKKCcAFlwkryDTWREJvlgm7pf3+Pn6+/yLFAkAAwZkUYcAhYMIEc4TEuGCsIfC/owhgIFGxYsWK5Yi0hAiRIleKGIYSRLjRiL/BAq8lQYECRgvY5KgsLCfzZs4c+oE1MJF+80qCiD8pGLiXDouGFIcqPCuCjdvXBg0SNHgAQIrzqBJ42LChQyqKTAUi6IgmLARBNK0QAHWQoGTS2YJswWIwoqpKUbEMoVK1SINAiZM5eCEhCa4RTxZGFpEwYQHTRu7wJB2CyUAlpqU2LBB0SUQjk6QKyIA5JAIDjZkGLsIEQDPRAQBYDmkAOcHkmQ7QFyCTQIjJgZwvgpIwwA2FY4k8H3EA+cGq/TcAZBHOfMjEzhnfqOAFh3rAH4fgWFgQwfEXNa0SbI8fBIMG07QqFPmDPvrR1qo2DCiDokwSrQnHhIsBPDdPgLuBN6ACg5BwQUz7NUgR6xNaOGFNwUBACH5BAgGAAAALAAAAABAAEAAhQQCBISChMTCxERCRKSipOTi5GRmZCQiJFRSVLSytPTy9JSWlNTS1BQSFHR2dIyKjExKTKyqrOzq7DQyNFxaXLy6vPz6/Nza3AwKDMzOzHRydJyenBweHHx+fDw6PISGhMTGxERGRKSmpOTm5GxqbFRWVLS2tPT29JyanNTW1BQWFHx6fIyOjExOTKyurOzu7FxeXLy+vPz+/Nze3AwODDw+PP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+QJtwSCwaj8ikcslsOp/QqHRKbVpO1axU4XIptODmKBIZhc/JcRlNnTkySolozZYiAJwvUm2uRz8AAB1pZH1+TwocgQV7ESKGh04RgSWNLpCRTDI1gQJHfJlQGYETFkagoU8GgShGL44vqU8jNAAqekQSsbJPLIEJvEkzCB9YSRYGJbhhMgoSpk0OgRwRMsE2CgUFM7tMGYqBNXCpFiPaBSPQTQodgYEGEpEWEuczCtZRBSXuNCzqYRZeaJsxQgI+KgImuDPAhh66Eca0nEChAgAFNi8IKvgH5oWJZWBknDh4raTJkyhTqjw5w4TLly8ZhHoxoqZNmyCFvMDgrqf+O0+HJJAZSjSCC442dvr0CdSPHBdFhx490hImzHGRaN68mXOl169gw4o9qSBB1yonUkQESNEiGwIaVoAgWSXhQjYiNJDQwOJCFn38/LGxEMOBXg0buj050W4hJjQK8mqYbAJpkm/uxMkasWCvhg6Mok2LYPmQjAwdJrtwcoHYWiPIKJw1wvhDaSEnKmyIh8YXAGBNBHiYIMKkhFoqFAsB0XSIghA1BihPtQpAqyKjAGAdkmCChw/Xsk94baNCIBNGZMDw4CEFLxkDAsU4YuL8kQzDSdA9NAlAJfr2HdEBexWkcgI4oRlRHwDofVLDBAiQxwYggiSxYINHoMDeBqEv3JGHhQEecUILHjgQygVvKHGhEikskGBKK44FIIMyUoUBDTPUeMQLvOno448yBgEAIfkECAYAAAAsAAAAAEAAQACFBAIEhIaExMbEREJE5ObkpKakZGJkHB4c1NbUtLa09Pb0lJaUDA4MVFJUdHZ0zM7M7O7srK6sNDI03N7cvL68XFpcjI6MbGpsJCYk/P78nJ6cFBYUDAoMzMrM7OrsrKqsZGZkJCIk3NrcvLq8/Pr8nJqcFBIUVFZUfH581NLU9PL0tLK05OLkxMLEXF5clJKU////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv5AmHBILBqPyKRyyWw6n9CodEptqlTVrNRTcXm04Obj1HiEz8lH42RGTyeONjLVKLunDcABixzb71EBAAAoaWtygE4qB4MsfWSIiU0fgyePf5JOGQODLUdqbJlQD4MSJEZ+kaJLIIMlRhNrE6tPBAwAG3xECCK0UBaDK75JsQEKSiQGJ7rDRQ6DBx8ZzVMPjIMDqtRMKiiDgyBf21AsJ98MFqfjTy0S3wbrUAolGwAV8VEQCcz4/f7/AAMKBDQhgcGDB1OIUgGhoUOHx4xA4PCt4jdPiSAI6LCxI0eO6ohMtGgRIyAVAlK2UClgZYeQRAoiRKgNjQIVHhjqhHBloP7Pn0CDCuW2gp8WBRMiniFBz56bBBZKpJgGpt07NyMsaC3gqEq5c+nckOiwQKuFfVIUePsGgoAkBSNeaH0hAOYSa98GdKBF4IMFuSXcNnmmpwBVWiRElNBqcomIBsaQGahgFImCFwvsFiEhYAUEN8AACGvSgczoZh5ubfhcpMPeIgqUuaicqRWAV0UQHDigsAiFOrh9kQIgQekQCrspGCHh4MSJWbQ2DVJupMXuEUcQrEFxOBMlAJaOIN/QmIiFOgJWKbjW1QjyA9SNcDlxwTggQYSSvMeO5MOaCKLksYd+B5CXhAIgNGCBKCLEocQIu5VXhAgFCIaPdQYOBcN7EhD+xEIIGLQ3FE8almjiOkEAACH5BAgGAAAALAAAAABAAEAAhQQCBISChMTCxERCROTi5KSipCQiJGRmZNTS1PTy9LSytBQSFJSWlHR2dMzKzFRSVOzq7Nza3Pz6/Ly6vAwKDIyOjKyqrDQyNBweHJyenHx+fFxaXISGhMTGxOTm5HRydNTW1PT29LS2tBQWFJyanHx6fMzOzFRWVOzu7Nze3Pz+/Ly+vAwODKyurDw6PP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+wJdwSCwaj8ikcslsOp/QqHRKbaIg1aw0xaKktOCmCAAQhc/JcRlNTTVMygnZzJY+AJhEel6Xcsgae2t9UAkYZARIanSETxZkJ4p8jU8qLmQCR4uUUCZkFxJGm5xPB2QkRp4AcKROHiwAI3pFApmtTxVkCrdJKQ8cIUoSByezvEYNZBgWKsdTJodkLqzOhRpkZAdY1VAEJ9gsFaHcTwIX2AfkUCEkIwAb6lEoIsbx9vf4+fr7hCki/wABIuAUoqDBg+OKoKCArSE2W31CEJhIsSKBZgoZOmwIsY5EixVTYCziL2BAaoQkHFw5kp/LlzBjykySQEE9MBI8BEMjod3tOzYdLLQQGcYcOjYOLCidsI2KN3Di2EgA0UKphQ47111D56FRCBNWWyBIyAQatmmtUKwIi8JJMjzMeKnwJxSlkgi/sh4ZtuFmkhAFLJA1EgJEB79ZcgHY1QTEhw8rqkGANaJtEQR2X4Qo8aEBYkqmAKAqEuGCiwhGOjwucEzVBb1COrhw0cGIBA6PE7VSMYBMZCMOTNc2kuIxg8GEHgGIdEQ2bSQZHmf2GE13auFIIDzWgJzNHwCBkDgfrukxI0J38iSRfYE8YQ0fMnCK8EbJeCUEWjRV1wH7zBf3/eeBCwN09d8LCVh24IIM8hIEACH5BAgGAAAALAAAAABAAEAAhQQCBISGhMTGxERCROTm5KSmpCQiJGRmZNTW1LS2tPT29BQSFJSWlFRSVDQyNHR2dMzOzOzu7KyurNze3Ly+vFxaXAwKDIyOjCwqLGxubPz+/BweHJyenDw6PMzKzExKTOzq7KyqrCQmJGxqbNza3Ly6vPz6/BQWFJyanFRWVDQ2NHx+fNTS1PTy9LSytOTi5MTCxFxeXAwODJSSlP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+QJpwSCwaj8ikcslsOp/QqHRKbUZA1ax0IrNMtOBmAgBIhM/JcRlNnTwgyhLZnIywWmxjA7DBI9V0RyYuBQJ5RQFkK2lzSSwhIQiHRC0bZC9/jUctEgUJJpNEIWQpmWtHApCYoUMaHWQwR4BHIJAUGqxEEGQOoEWzRSYlBRIRuUUHZChGuwBwRROQz8dD
132BDIAJ35EMLFFCoQSCtRFF2QuTgQhEiRsEw0B4kkmBynaSyYCHrhoD2QbIfvGTYFgiUyHaQKjtFhBhswBLAmlvEjRUMYFXxGhwHDQ8EBGKQpQnABQ4eOUCAnsmVzJsqXLlzBXTkhAs2ZNFjGFRLDQsGf+w24wd/r0CRTmTJs2EeZcyrSp06dQhbRwoVKLiQgYw5gQSZINgnwEAmbZ2LGdgHwQqkKZWPEiGxMEPMA4SyIeFAUMOxIIZYLE2Xwvsi4h2PAgtRZfz6Z10o8PwIQgPJxdxYTEO7uCHozArMREghKCi2h4UZcNig0bSjghceGCUmogRGzAUBWBpGAMLjBQy+oB6gJGJqRo8KUIiwszVAtEgPpDaAgNUrzWUKA1xGMaGqD2cMTD8Nc0XrR+fMwFao9HWEQHT8PFjAvscinosMEA5SIe1iNp8R5FaDYzoHZBEtBJl4QArXHHygEbOMCZLvohsdUF57DyQgA4ERghEiAcwGBMSxB8F5UQBbK3FAgVxHBdVC3wNuKLMB4TBAAh+QQIBgAAACwAAAAAQABAAIUEAgSEhoTExsREQkSkpqTk5uRkYmQkIiTU1tRUUlS0trSUlpT09vR0cnQUEhSMjozMzsxMSkysrqzs7uw0MjTc3txcWly8vrx8enwMCgxsamykoqT8/vwcHhw8OjyMiozMysxERkSsqqzs6uxkZmTc2txUVlS8urycmpz8+vx0dnQUFhSUkpTU0tRMTky0srT08vTk4uRcXlzEwsR8fnwMDgw8Pjz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCbcEgsGo/IpHLJbDqf0Kh0Sm1ORtWstFLLVLTgpgIAUITPyXEZTa2oIMoT2ZysEApsYwLQgaXnSQwaCQ95RQFkNH9rSCIJCRKGRDAdZDFIanRGIyYmGgySRCJkJpiARw8JJgKhRBw2ZDNHmUcIqjQprUQQZBS5RbRFKSomFiW6RSRkKEa8AHBFF4/MyEQFNQArfkUzskUMBiYy29VDD2QvTiAmCeloFQkBoEkp4eRLDA8Lv2cqZB0iOJSrAqESGRvQBkqBQYMMGRJYFEqJYcJhjQf8JD6ZQcGhAY1SGKBYAcACyCkTFNw7ybKly5cwY7KsoKCmTZstZAqZkMGh/k+H3mLy/PkzaEyaN28m1Mm0qdOnUKMOgfFipRYODASiSTGyJJsRMQrA0KqFo0c2E2JUCDuPCkWLGNmkmFAght0RGZ0waOiQBB5Jc9dWEJtXSUGHCKulKFB3cGEk/viIeByKgd0YE5yUiNf2SIoANDorSSEABNkjHK5QpkLAgwejSgqIEIFA44QQFCJYrfBFmAQREkQj++A6UpECDTT8JVJh9lJkCDxQkHFaCIIGDWoLOzE7czUOGlw/t64h+5ERBCRcqC7phHRFtbBrNyJg9iVdDBJ4sLG8yHUN830zmwKrhbEBBR4skMR15iHRAgG06aKCBy4IN8R/ARbBwQsiKbDSSgELZOiffEpMAIFVGiFQnohOMchiUxOooIJ3Ut0Ag4U15qhjNUEAACH5BAgGAAAALAAAAABAAEAAhQQCBISGhMTGxERCROTm5KSmpCQiJGRiZNTW1LS2tPT29BQSFFRSVDQyNHR2dJSSlMzOzOzu7KyurGxqbNze3Ly+vFxaXAwKDCwqLPz+/BweHDw6PJyanIyOjMzKzExKTOzq7KyqrCQmJGRmZNza3Ly6vPz6/BQWFFRWVDQ2NHx+fJSWlNTS1PTy9LSytGxubOTi5MTCxFxeXAwODP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+QJpwSCwaj8ikcslsOp/QqHRKbUZA1ayUMrtQtOBmAgBIhM/JcRlNpTggyhLZnIQ4vuwiA6BppedJLRoADHlFAWQqf2tIKmQBhkSCZDBIanRGMGQaCpFEIWQoloBHKGQhnkQZG2QxR5dHMWQbGalEEGQNJkawRSYNZHC2RCNkHEa4AMJEHGQjw0UEMwAnfkUxrkURJwAzWNBEHWQuTi5kHWwUDAGdSSYHKNZMLSgju2gOmyG14FQQg7OW9YvSwhEZACO+DYwCwxSZGR3uLYQSAxiZAxOlKODAzULGKRESyPtIsqTJkyhTlqSQoKVLlyxUColw4aDNg9lS0rx5M2f3SpYvXwqUSbSo0aNIkwppUaJd0gwFMGh4odTDAA1YHSCFMQKrBgwcnMpU0MGAVwcKibJI4ZVBTKQBsG5wIfEojAMPRhoxseKBWCUmSFCo288FCgZDk4AQIIDAxBYyGBz4SwOGY18eBHigbGvF4QpGCHTokFYIAcZ4wFGwwMABPyIUHnRIPSQDC8Z6PWVQwQAFgiMUOjwgcaSF5rfDBPRGdwTGaNpESMQQUNqQiQkMLFQXQmJ0peKaPbyOJKF3gSTOO3xvznh9pA4MRnAWEnu2u8zEUxEo4N5Id/uBUDDfQPVBd1Rw6im11AMPRKCgEAoM+OCEFEYSBAAh+QQIBgAAACwAAAAAQABAAIUEAgSEgoTEwsREQkTk4uSkoqRkZmQkIiTU0tRUUlT08vS0srSUlpQUEhR0dnSMiozMysxMSkzs6uysqqw0MjTc2txcWlz8+vy8urwMCgx0cnScnpwcHhx8fnw8OjyEhoTExsRERkTk5uSkpqRsamzU1tRUVlT09vS0trScmpwUFhR8enyMjozMzsxMTkzs7uysrqzc3txcXlz8/vy8vrwMDgw8Pjz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCbcEgsGo/IpHLJbDqf0Kh0Sm2+JNWsNFbLxLTgJgoAQIXPyXEZTY05WkoM2ZxsOb7sYgLAUaTnSQocAAl5RR9kHX9rSB1kH4ZEgmQESGp0RgRkHCeRRBNkJpaARyZkE55EMzZkAkeXRwJkNjOpRC1kFBdGsEUXFGRwtkQGZClGuADCRClkBsNFIjUAKn5FAq5FLyoANVjQRCxkC04LZCxsMQkfnUkXBibWTAomBrvuJSDySw6bE7XgLhBYMGHCsiUtBs066OkFjQkjYCx48USBIzIADHwzdKJFwQkwELSDQsAUmRos7p25UALGRxAjpwgA5owNhI8YRIQ5kYKb/gU2IEDGAHjmBYp9YC6IiAmuqdOnUKNKnbokBoqrWLEioHrkRQaMYDFm4zrEa9iwY8kKsZo1K0O1cOPKnUu3bhYF+uyqWhDCgyK9N1rI8EDBAyS7IjoQ9hBihEq5PG0QtvGBYt0KLhaTKAGYQWEXNIjaJeCgAFNfIwo8VnLhiuimNDRo2NrkBAEClp0qcKBhxWkJG4fMuE1g9bAJJDSAMPKiYO4hCmKICD5MBAkHD17fEFFQZ5EZIm6fjjSDgQYSeKJB9O5LOnVPLc4XQMIdBvsiEsQPuxDg+nMi3E1wHxEXxECACMaxgYFsmBjB3QgDSnLbf3lsQEIHCQpRX4TCJ932HhsSoFBJEgFyOMQJL2To1IMmzrUhYNDBAANSel0wHow45uhUEAAh+QQIBgAAACwAAAAAQABAAIUEAgSEhoTExsREQkSkpqTk5uRkYmQcHhzU1tS0trSUlpT09vQMDgxUUlR0dnTMzsysrqzs7uw0MjTc3ty8vrycnpxcWlyMjoxsamwkJiT8/vwUFhQMCgzMysysqqzs6uxkZmQkIiTc2ty8urycmpz8+vwUEhRUVlR8fnzU0tS0srT08vTk4uTEwsSkoqRcXlyUkpT///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCYcEgsGo/IpHLJbDqf0Kh0Sm1GPtWsdMLgTLTgZgIASITPyXEZTZ04HsoR2Zx8OL7sYgNwWKXnSSsHAA15RQFkKH9rSChkAYZEgmQsSGp0RixkBwuRRB5kJ5aARydkHp5EGgNkLUeXRy1kAyWpRA9kErVFsEUlEmRwtkQgZCRGuADCRCRkIMNFBQwAG35FLa5FERsADFjQRBdkKk4qZBdsEw0BnUklBifWTCsnILtICxAXBU4Omx4awMUoIQDDiQYunDwYNGtZqgkoDtbD02SFIzIAQHwzFIGERAse2kFhYYoMgwv3wpRQ8aLBwQsbp7QARsYAGwUuGzgQEWYB+AluFthcOGGAQkowERLI6/lgqcCnUKNKnUq16hAWFLJq1YrAqpEIGQ6IHUu2g1ciYMmS3XDA7NmrI+LKHdFiRIq3ePPq3cu3L5UFHUT61TACHgy/QhA4ONhAgd8PQ12+UHH07QIPFlyeIOEU7wQQOVFU8uviIAYBlfUWuAAh9ZASIxK41vvgwgWKfhfAuEBCsJAVEfKOsH23yAoBAnxThXzBRUBtHQQE96rBwwUYo7W16DDdKgLb5I5EQN6daokKMGCUlySgQ8ypHWwLSBKhhXSvKngrH3Kcu9f6/NAnQAvr9bXCdgXyNd59iAkBWGANvrZfhBRWCE0QACH5BAgGAAAALAAAAABAAEAAhQQCBISChMTCxERCROTi5KSipCQiJGRmZNTS1PTy9LSytBQSFJSWlHR2dMzKzFRSVOzq7Nza3Pz6/Ly6vAwKDIyOjKyqrDQyNBweHJyenHx+fFxaXISGhMTGxOTm5HRydNTW1PT29LS2tBQWFJyanHx6fMzOzFRWVOzu7Nze3Pz+/Ly+vAwODKyurDw6PP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+wJdwSCwaj8ikcslsOp/QqHRKbaIg1aw0xaKktOCmCAAQhc/JcRlNTTVMygnZnDQ1vuziA4BJpOdJCRgAD3lFHGQaf2tIGmQchkSCZARIanRGBGQYIZFEFmQnloBHJ2QWnkQqLmQCR5dHAmQuKqlEJmQXEkawRRIXZHC2RAdkJEa4AMJEJGQHw0UeLAAjfkUCrkUoIwAsWNBEFWQKTgpkFWwpDxydSRIHJ9ZMCScHu4EcD3hMDZsWteAkWBgEoIETEwQBuFiWysQAMnwYLkngCOKBb4Y8FIOoQd4TAqbIsKhw70yICgsgntg3RQAwZ2w2AriwIkwIEtw2sDE1gkH+yTAoRHgEk0ABCnBIkypdyrSp0yceOkidOjWCLRQesmrVOlRIAhdgw4a9sNATBAto06pt8VMIigEuyMqNC1YimrNq87I9EpUqVaupsG7d2vWp4cOIEytGHAJE28VDVHQo8aEAZCMpKnzYbPmy2wKbD5RY8RixBBGhP1g46pmAhs0fGFTyLETBZg0mSi+GkEFEOyQqHHTQDTkCWg+0iYRoYWFvkRC/EZtAC1g5AQLRn6JAKwKgdeyIVaxAi/F79qYE0HZAEoJAivNLT6OF/6K9B/pJQaC1O6Q9eMMdNOedEf7hh1QCJrCGhAQp/JecEAU+2N91BiomgXsDPqhChhIGdujhUkEAACH5BAgGAAAALAAAAABAAEAAhQQCBISGhMTGxERCROTm5KSmpCQiJGRmZNTW1PT29LS2tBQSFJSWlFRSVDQyNHR2dMzOzOzu7Nze3Ly+vFxaXAwKDIyOjLSyt
132CwqLGxubPz+/BweHJyenDw6PMzKzExKTOzq7KyqrCQmJGxqbNza3Pz6/Ly6vBQWFJyanFRWVDQ2NHx+fNTS1PTy9OTi5MTCxFxeXAwODJSSlP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+wJlwSCwaj8ikcslsOp/QqHRKbUZA1axUEqtItOCmAgBQhM/JcRlNlTwgShPZnIQ8vuxiA7BppedJLRsADXlFAWQrf2tIK2QBhkSCZC5IanRGLmQbCZFEIWQploBHKWQhnkQaHWQvR5dHL2QdGqlEEGQOJUawRSUOZHC2RAdkKEa4AMJEKGQHw0UEMQAnfkUvrkURJwAxWNBEFmQXThdkFmwuBwydSSUHKdZMLSkHu4EBDXhMARsbHRdqgSsRYhCAB05YqPC3oQECaBAGkOGzbJ4FAwwffDMEotjEFfKeqGOIAUW7MyUsTAu1b4qHARnZeATgYEKYEgUcbBjBhgLYNQb3zkQwcTJMiwsRwCldyrSp06dQn4CAQLVq1ZaGJFjdulEShRQNwIoN69ATCbJjxVIIKaQFDLRwUzyMhCAu2rVHCFBlAYGFB74ssOZx8bdvYb9doypezLixY8cJJAR9XEQDCxQWMFEe4qKAhc8mNg85+tmCDA+THZcQIOOzDBNsHRPA/DkEAdFDXnzmQCL15ggXUCspIaE37mgCBCQ9LmS1B+HMZ5AQ8OJ29BbJWfjejECAh+XMQSQnEX2GBg/ei+J2kbxS+enQoydwEbu8/fv48+vfTzkIACH5BAgGAAAALAAAAABAAEAAhQQCBISGhMTGxERCROTm5KSmpGRmZCQiJNTW1FRSVLS2tPT29BQSFJSWlHR2dMzOzExKTOzu7KyurDQyNNze3FxaXLy+vAwKDIyOjHRydPz+/BweHKSipHx+fDw6PIyKjMzKzERGROzq7KyqrGxqbNza3FRWVLy6vPz6/BQWFJyanHx6fNTS1ExOTPTy9LSytOTi5FxeXMTCxAwODDw+PP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+wJpwSCwaj8ikcslsOp/QqHRKbUZE1ayUMrtQtOCmAgBQhM/JcRlNpTgeyhPZnHw4vuxiArBxpedJLhsACXlFAWQdf2tIHWQBhkSCZDBIanRGMGQbC5FEI2QmloBHJmQjnkQaNGQyR5dHMmQ0GqlED2QTKEawRSgTZHC2RAZkKka4AMJEKmQGw0UEMwApfkUyrkURKQAzWNBEGGQvTi9kGGwwDhydSSgGJtZMLiYGu4EBCXhMDR4TCRbuQdMwYhAAB04QtPDgjwQCaA8GkOGzjMkCFTQYeggQwZOIYhM7yHtCoMMEhiEKCAyzAAODiSb2TXkQw99GNiABTLAQRoP+BAgeFKGpQK3BSjAuZLQ74+JFR3BQo0qdSrWqVScREGjdupWALRYKwooVK3PIAgcZ0qpVS6IsGgET40688FQSWhIZ8OpN6/aMLLlx6R4RwbWw11QPxirue7Wx48eQIztGAeOoFhQELGfRUELCCAFsQBR4QUGzFBEnRqgGEXpEgREnvlFZIEB1AQkIaqHRgMCzagFLn6Bgodr1A9NgFjxwPUICC+RGIrxwLcFC3VQRZNh26oTFbQUwdENDQUGB6opKXAhAAB3FFfFhUCAQMBIpDBjBJRMhDyOz/iMR3Hfdf0JQRgEB8BFYAwH95UfgAvfJpmANGtxHQYIEuiDghEQTiHAghgS6Bx2HJJZo4okopohiEAAh+QQIBgAAACwAAAAAQABAAIUEAgSEhoTExsREQkTk5uSsqqxkYmQcHhzU1tT09vSUlpS8vrwMDgxUUlR0dnTMzszs7uy0srTc3txcWlyMjoxsamw0MjT8/vykoqQUFhQMCgzMyszs6uysrqxkZmQkIiTc2tz8+vycmpzEwsQUEhRUVlR8fnzU0tT08vS0trTk4uRcXlyUkpT///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCWcEgsGo/IpHLJbDqf0Kh0Sm1CONWsVMLQSLTgZgoASIXPyXEZTZU4Hkq1OflwfNnFBuCASpPnRygHAA14RQFkJn5rSCZkAYZEgmQqSHJIKmQHCZFEBWQlln9IJWQFnUQXA2QjR5dGI2QDIahED2QWtEWvRCEWZHC1RB5kIka3AMFEImQewkUEDAAZfUUjrUUQGQAMWM9EFGQRThFkFGwEFB26SAkGJZxNKCUe7IEBDXdMGA0lFQIXvrUIUWAQAAdOJHjo18CEPlQPVmlSxiRBgQkl+omA0IkDMTIATFSDwoFCxhIrItgDk4CFNFAPpSBwwFABm48ALCwIc2GB14EGLNhMmKZgpRYUD+KdQRGBo8CnUKNKnUq1qhEUErJq1eqt04MUYMOGjSmkJQUWZ9OipUCgUyyQcMlocErELIW7eO+yqBRJQNy4cwNJUAGCsGEQXSN9FSuWrNXHkCNLniw1BASjWRI8GMmTgwABINiwaGBgAWYpSAVsAM1GwUkHCDKD+KxaRUA0ISKsYEghsZMQKmhvAKEUDwrXGScUKL4k9eoTnDtJMHHSg+MjEj5v8F0rhIAK/TD8Lny6VoIObCmrX8++vfv38OPLn0+/vv37+PPrNxIEACH5BAgGAAAALAAAAABAAEAAhQQCBISChMTCxERCROTi5KSipCQiJGRmZNTS1PTy9LSytJSSlHR2dBQSFDQyNFRSVMzKzOzq7KyqrGxubNza3Pz6/Ly6vJyanAwKDIyOjCwqLHx+fBweHDw6PFxaXISGhMTGxExKTOTm5KSmpCQmJGxqbNTW1PT29LS2tJSWlHx6fBQWFDQ2NFRWVMzOzOzu7KyurHRydNze3Pz+/Ly+vJyenAwODP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+wJtwSCwaj8ikcslsOp/QqHRKbb4i1axUZsPItOAmCgBAhc/JcRlNJXwQSrU56WJ82cUDh3VKk+dHCRwAD3hFCxwcGUkKf0kbZB+GRCcdKyQESHJIBGQcfZNDCoklmo5HLWQSoUQzD4kQR41rRgJkHTOsRAiJIRVGm0UVDmQuukUMiQVGCMVGF2QHx0URGhwOL7UgRi8rADZY00QXiRZOs4toETUWoEgVMSXuSwktB79JCR8Pd0wKEzECuMglroKEQQAYOCGwIQbAFJmOuRhABgAHY04qoGAAcIKEBKFElKgIYAPIKC8KdFRBA9+ZExkaVGzRbwqFDB1XoTlQ0QH+jTAzQKiIsQyNBwArUrgMcwLBPDAJFGQTR7Wq1atYs2p1kkCE169fp4ZCgKKsWbM1h1SAIaGt27fhDIEgSRcABrFDTrB9+3YEXja26la8Gwis4b94XJxdnHar48eQI0uOPOMEwTNREWeZkYAAAc1Vjq64sLTKCRGeP7PhScaBgCwVIqSWkeAy0ww2ZkaEwlmGZxkvbLMRwZrMhqdKKqQmIKL0JBcdKl508oKADBHIWc04SEZhk9jB2VQAAUF4EX38HItoa2JykrUSYGR3f0NGW4z0hVloC9p9hBEw0GBefiC0tVt+ebWFgnP5ITCCBO0hSIRGEmwjIREvuHDShRwJdujhhyCGmFUQACH5BAgGAAAALAAAAABAAEAAhQQCBISGhMTGxERCRKSmpOTm5GRiZCQiJJSWlNTW1FRSVLS2tPT29BQSFHR2dIyOjMzOzExKTKyurOzu7DQyNJyenNze3FxaXLy+vAwKDGxqbPz+/BweHHx+fDw6PIyKjMzKzERGRKyqrOzq7GRmZJyanNza3FRWVLy6vPz6/BQWFHx6fJSSlNTS1ExOTLSytPTy9KSipOTi5FxeXMTCxAwODDw+PP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+wJtwSCwaj8ikcslsOp/QqHRKbU5G1azUUstYtODmAgBYhM/JcRlNLbBMSrU5CXF82cUVxcVIk+dHMBwACnhFFR4eJX5rSB1kAYZEDAoeNgVIckgyZBx9kkMoHhQdmX9IJ2QioEQbJIkQR5pGNGQ2G6xEJqMzuEWzRCkUZLG5RAGJEkYtxEYlZCTGRRMhHhEwtAJGEyoANVjSRAQUHtpNL2QPbBMvIClKKQEdn0wwJyTvSTABCndMNA8eVDCRT9oGEYMAOHBSoETAByIwGYMwgAwADsWapBDA4iEKenhGkLAIoAO2KDBePOjIAkLBMAweNLB4wt8UGTE8shlJhgLdhjAbW
132jgEFOYCABUIXoJhQHDdgpPhokqdSrWq1atNGEzYypUrSEMtFogdO9bmkBQgBKRdq5aGAKh4apGcm2GCkY0CBLjdq/YtKLlzLdY9wgDGCBgTDBtOnAsC2cdmsUqeTLmy5ct4UtrFjMSoihJKOd/gCYACDdGTHtSgKQP1EJEk57kWAsGGRYyzbxxMuBArAxZJlTDgF3kqBAUnXuQWAsOAghlwXWNAvmj5BgfIi3NOcEJBB1+5H3Q3l3vEhRMaQosWoUCBsuUMSJz4sFyIBQIS6+vfz7+///9ZBAEAIfkECAYAAAAsAAAAAEAAQACFBAIEhIaExMbEREJE5ObkpKakZGJkHB4c1NbUtLa09Pb0DA4MlJKUVFJUdHZ0zM7M7O7srK6s3N7cvL68XFpcbGpsNDI0/P78FBYUnJqcDAoMjI6MzMrM7OrsrKqsZGZkJCIk3NrcvLq8/Pr8FBIUlJaUVFZUfH581NLU9PL0tLK05OLkxMLEXF5c////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv5Al3BILBqPyKRyyWw6n9CodEptQjrVrFSy0Ei04GYCAEiEz8lxGU0lFL5psjn5cMDZxE3jo0iK5EkpBwANeEURDSYeSSqASCdkAYZEIxUNFFhHanNGK2QHfZNDAiYNG0ibSCZki6JDFyelCJqORSxkAyOuRBIUDQ4XRqlFIxZkD7tFJaUTRijHRhlkH8lFKS0NBqFELCxGEBgAC5nVQyqlyE2NAKdoKQIIukkjJQzbSykmH/JIKQENd5Y88OAhwYpg5UZ4GATAgRMIKggWmACh2oMBZAAcSNdkxIMIBD08uMemw4eMAE6kkKJAQMgIIfiFUbCBREYTAaV0SCCRY/GYk2QsNANzQUKECBzYUACAoYRMMCNWPNUCIUHFclizat3KtatXJyMUiB07diqbBwnSqlWbU8iFFXDjyl1BEo0AlHgBaLhKCa4EAnP/1j1zK2/GvUfCkiVrFg3atWvbfp1MubLly5jZpFDBN7ORpRgyNMYMFIAFb56J0Fxwc0VqIiZRnhiM+WLGja+HjCjA0OHXFBT2KfEHcPK6dpc7kBsCTtzyyRAIdhYiDQA1ywQIEjBSDFrl7B62Gymc67t2VazMh0ci4RPtrODFH4EEQNLk+EkUDCp0/zwdO5Thl9sQAg7oQgpHrWSgEGEt6OCDXQUBACH5BAgGAAAALAAAAABAAEAAhQQCBISChMTCxERCROTi5KSipGRmZBweHNTS1PTy9JSWlLSytAwODFRSVHR2dMzKzOzq7DQyNNza3Pz6/Ly6vFxaXIyOjCQmJJyenBQWFHx+fAwKDISGhMTGxOTm5KyqrHRydCQiJNTW1PT29JyanLS2tBQSFFRWVHx6fMzOzOzu7Nze3Pz+/Ly+vFxeXP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+wJdwSCwaj8ikcslsOp/QqHRKbapU1ayUcLkQtOBm63Bohc/J8YGCpkIW3zSZnUw5Vm0jBqSZyDMCSQkHAA15RRQgICVyB4FIKAAAHIdEIwGKWEdjgEgrGwAHI5VEKYoYSAJkj0YNkh+kRBMWihJHFAedRgKSA36xQx6KFr9EamZFExGSKcBFBYodRghkCEYkkgbORQkOICijRQ8PRioZAAwQ20UtitZNC5IWbSMSBCxKEwUYxUsqFQbCIRnBoQGeJgQ6dHigbt0LFh9CSHLgJMEDhR1EJNiWYoCkUM2cTCBwUeGKfm08GPgIQMPGKPUWCnhwr80sEx9PHKSSIAXexp1hVkqKgEzLBAgXbaGpACCDApRGIUDNoqKEJodYs2rdyrWr169EEJQYS5YsULAvOrBcC2DDVbS82H50i7ZU2btn6+rdy7ev378vEix4C/gF0wwkpvIVCiACq78jLDDIGQcwBMYtBf7t+PFASMATPhACQNFrAoCKhSQomDdrPADz9ooQYSTBuXR6V5wweC2b3hS7Pw9Rxqwu8AbCh8T1hRZBgxPJh5x4hTbF8+hCCEgSBfY4diEaJFH6ah16khGEDH11jlyJndZZvRceUv47XwgVXDScH/gl//8AahUEACH5BAgGAAAALAAAAABAAEAAhQQCBISGhMTGxERCROTm5KSmpCQiJNTW1LS2tGRmZPT29BQSFJSWlMzOzFRSVOzu7KyurNze3Ly+vAwKDIyOjDQyNHR2dPz+/BweHJyenFxaXMzKzOzq7KyqrNza3Ly6vPz6/BQWFJyanNTS1FRWVPTy9LSytOTi5MTCxAwODJSSlDw6PHx+fP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+wJZwSCwaj8ikcslsOp/QqHRKbZYe1ayUsBoQtOCmYLUShM9JQaWMpj5QHOWYnWxYIm2jiSJSpFcVZkgKGAAOeUUCFBSCRxtrjUYsAAABiEQgGSoqWEdzkUQnlBh+l0MeiyZIanRGJJQdppgdiyeeZKBCKJQrF7JEBCoUBSBGY4FGIBWUDb9FH4sjRh5kB0YZlAnORQrCfUYNzUUlIQApcdtEDYt4TSaUFG0gHA++SSAfCMVNDxoJpYMCOGjH5MGJEwRKpBNyoYMBShacgDh4kMC+Xw0GUAKAQVyTCwYjEDjx4GIeAgk2AmChMMq8ExEO1pNHYcFGEgSnKBgps03+SkoVJIS5UGJkpzMaAIRgYBLMBQX2zpQwcXSh1atYs2rdyrXrkBEIwooVm9NrCwEq0wKYUNXrLrUb2ZpVN7Zu2bl48+rdy7dvi6lt/SYNIaIp358AKqDwK0QBhRQ3bTHmgHglwL4NVmzsyLhFw0IAIqK5sEGAYSQl/J0eUkLg3SweOnT44g4eVgUQOkAwjCLXg3Lnrm6QfbcBMyMisll90KHAh6hDEFBCkGwZAI+/LkiQja6IdADUjbztte2E7FxCvod3BcsZCAS6WxpRjyTCBI6XER1oLg0JfSSTVPKLAB2YsFoL/x1RQiGHyFJCA4ERkeARdnjg1YR+YdiXfSkMvMbXA911JuKIWgUBACH5BAgGAAAALAAAAABAAEAAhQQCBISGhMTGxERCROTm5KSmpGRiZBweHNTW1LS2tPT29AwODJSSlFRSVHR2dMzOzOzu7KyurNze3Ly+vFxaXGxqbDQyNPz+/BQWFJyanAwKDIyOjMzKzOzq7KyqrGRmZCQiJNza3Ly6vPz6/BQSFJSWlFRWVHx+fNTS1PTy9LSytOTi5MTCxFxeXP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+QJdwSCwaj8ikcslsOp/QqHRKbaZS1ay0Q2l1tODmw9R4hM/JR8NkRk9TD4gStW4jHw6J2yjwqEZpdUkpBwANe0UIHh4oaWR2RicAAAGIRCMJBREKd4JHKxoAB5yWQyuLAnePSCaTHqVEFxOLX0ZqbEcskwOAsEMQHgUTvURjZUYjFpOQvi4Pi3pFEmvRRBmTH81FChEeEcRDCCFGKSQAC7XaQyGLBE4qkxvqRSMCHOBKEBQGpEgKAQ2qzYtywQOISQ4GSnkwYJIoZgqVdPjgEMAJLBGZjNiwwKEJgRmVGHBoYULIJxQAYCiB76SSFCrkuJxJs6bNmzhpokjAs2feT5A0BVQcCkCDTJu6iDo0mvOBz6dAc0qdSrWqVXUwj15NiSFDS6kUJ1lgcVUBR48rrk6seKIfVYYOD0DMOaJAIQAJ0YwowcDtSwofvg5JATBqFRWrmsADIE9hihYN+BlhkaoIBAzn0qkrQcZkkQfLjFwDkG2eBAoNHFwwkmBSAmTKAMxFdOHEGgRHWgN4PXmXYDcC1jQ2IsI1K1fNRlRoQEEzEd28jUiYNMpXhDUFkkBPIomSrw0NPvh9btxfoUOwCBRIq738HQfjZm6/6mL+VQkaFhiWCsE5/f8AzhMEACH5BAgGAAAALAAAAABAAEAAhQQCBISGhMTGxERCROTm5CQiJKSmpGRmZNTW1LS2tPT29BQSFDQyNHR2dFRSVJSSlMzOzOzu7KyurGxubNze3Ly+vAwKDCwqLPz+/BweHDw6PFxaXIyOjMzKzExKTOzq7CQmJKyqrGxqbNza3Ly6vPz6/BQWFDQ2NHx+fFRWVJyanNTS1PTy9LSytHRydOTi5MTCxAwODP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+QJlwSCwaj8ikcslsOp/QqHRKbSpY1aw00mhEtOAmwuVChM/J8cSMnipe2LRrrVwFXm3jSNApyctJLCcZB3lFLwICeEgIE4BIHBkZD4ZEGB18CoxzbEYvBRkacZVCH4kjm3RHIpItpEUIiaNEjY9FHRkmDhivRCx8ELywnEYlAxkFK71FewIfnmSLRAaSLstFJXx9RhQURhEMGRfP10SIAl9NJJIq5UUYIyN+ViIN80gsAQ7e7lMYIRkAAGjQTwqEAQIBZIBQ8MmHAwkBoJjVMEkJDjESpuBXkQlEgQwqdHyyAYAJFZpGOmHRIp3KlzBjypxJ8+WKBDhz5uQoU0D+xJ8ALLiMCQNoRKE1IehcyrOm06dQo0pFUuLFvTAsh4KBJyGEgDYlT16t8oFEiLMd2nwEwABGFgUCzhqQgEDYGQUYNUp7UmLF2RAGIIxFQ2CtxJRNIrQALKGC1koQNCRc6GTF3AQv7C77F3DgSgEIBhNRcGADxUAbDogekm9fGw4CXTWRIJBDww8ZTTwW4LYICxMAYpBz97FdE
132QgCGRZRIbCQO+RsEQ8hITBBMQbJy2FACECkkQTVj1QQqEEzqRACUyABD8D6kRQCQyxT0HkvEfbuuVlQKN1QAIEoJIFfEigIFEAvDih02hAD4hOQA72M0IBy64WXBAQNoPJSg1MScSgVBRbE0FRUEQw31YkodhQEACH5BAgGAAAALAAAAABAAEAAhQQCBISGhMTGxERCRKSmpOTm5GRiZCQiJFRSVJSWlNTW1LS2tPT29BQSFHR2dIyOjExKTKyurOzu7DQyNFxaXNze3AwKDMzOzGxqbKSipLy+vPz+/BweHHx+fDw6PIyKjERGRKyqrOzq7GRmZFRWVJyanNza3Pz6/BQWFHx6fJSSlExOTLSytPTy9FxeXOTi5AwODNTS1MTCxDw+PP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+QJpwSCwaj8ikcslsOp/QqHRKbTIY1ay0pVJJtOBm5fGohM/JscqMnp4kJ+W4rDSpCm2j6FWIIysqH2xHJxAeDnlFEi8vX0gvH3RIJRMeGYlEGwWMfkZqg0UFMx4rWJhDLS8Vjp5koEQpHh4ap6GbpkWQa0cxlSMbtUQnjAXARXOvNCcusgrBRXsvLUYFgSJGER4TH89FJxWbxkR8Ri2GIKzdQi0VL7hLMtoE6kUbEnBODB0BnUcMAQiS0XOyIQQHAAAQDYxyYQBCABwuLHwiYsRDAB2mTWRy4gGMhyQEbjxi4OEEWiOdUACAIkG/lEtasEgHs6bNmzhz6kwZY4H+z58/RaYUcLEoAAs0a8owehHpzgtAowrdSbWq1atYhzC48A6MzKRZNmgwgEBFm5UoSrykosABAgQkErQpiXCCjCwiHpCA64LF2iwMPIJ8IYVBCApwSZTQmKiAxYcdusoZARdBB8LPLsx4GNFJhr0YBPzFVPBgQicFHkQYLYTBCAqMY1IYwZpGC4BTpTxAyMJJBIQPJor4iCKpgLtFWqAAAOPawMcljFxAKLFICYQjBk4HMEHyAoQLjJyYQF3dBocAUBb5DiC8EQ0IZ4irFQIhCSTs3RshgTDEMwamYWZEfn8gxIFkbQSAUAdJEIhEBwgFEAwCEMW2HnhJAAgAAsEhmOBAdfhhmMQFDphgk4NZoYhVBRbAkFtOEjiX1Yw0phQEACH5BAgGAAAALAAAAABAAEAAhQQCBISGhMTGxERCROTm5KSmpGRiZBweHPT29LS2tNTW1AwODJSSlFRSVHR2dOzu7KyurFxaXMzOzGxqbDQyNPz+/Ly+vNze3BQWFJyanAwKDIyOjOzq7KyqrGRmZCQiJPz6/BQSFJSWlFRWVHx+fPTy9LSytFxeXNTS1MTCxOTi5P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+wJVwSCwaj8ikcslsOp/QqHRKbYIQ1ay0BIGUtOAmodMhhM/JcRnNLqrNyUsB3oa+k4hJY1OP3pEdDQ0QfXZkdEUcIyMTWIVOf0YbIw0Cj0+RRAqUJBWXkIdGFQ4NERefTg9kD0YWDSMZqE8ciEIIBg0nX7JVEq8mvFkIDCIgSggBDafBUhUdBwAADsxREgPRAAcS1E4cHtgAJLvcSiAbC9gjy+RLBtgUFuxOEQAYxfJOJSas+P3+/wAD9itBoKBBg/wKoUjAsGHDdURAQCBDsWIHDoUEgNsIQEPCIQgmWqRY4CObFBzBeTxC8OBBk20kOJwJUaDNmzhz6kSib1zwGH0ws4DIgAFABDYj6mUwBiYFBWwG2HyLRiFFFhVJoy3YwPQMgnPpVEhBQAKch1povIEj4aiJBGjRBmz7ZA2bNicOoh0o0PUTiAJwpzW50CBA2yMgDETwqaREBA99jZRIVlPLhmjAmkCIxocZB3QYYAqwWqRE0QUYg02NVURCtLlEMkTzEMw1AAqHhSSIlsAIiKcAYF+qcA1APCO7AfRuFTdynw7RRiBJvtxI1g6fEMAVe4Q6kgt6c7cJEI1EEu9IygIIcKlBNsZE0B/RDqDBpQsOhCPnrUSCg8rUyKeTgDldoMECAN70QGo7NeggO0EAACH5BAgGAAAALAAAAABAAEAAhQQCBISChMTCxERCROTi5KSipGRmZCQiJPTy9NTS1LSytHR2dBQSFJSWlFRSVDQyNMzKzOzq7GxubPz6/Ly6vFxaXAwKDIyOjKyqrCwqLNze3Hx+fBweHJyenDw6PISGhMTGxExKTOTm5KSmpGxqbCQmJPT29NTW1LS2tHx6fBQWFJyanFRWVDQ2NMzOzOzu7HRydPz+/Ly+vFxeXAwODP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+wJpwSCwaj8ikcslsOp/QqHRKbU4m1azUBAGZtODmCwR5hc/JMciMbhMR5IiSoJC7oy/BOjnZSDp3eF1sRygwMBSBUGMQdkYvhxtYik5jAoRFBRIwLpRPCAJlRxowEg2TnkxqmEITF6UEqU5cAl9FIKUYsk8vCEYmKTALvrtVCaUyxVkTHRioRyYNBrHKUjEKHhwcH9VRJw7aHA8J3U4RC+EHF8TlShMrGeEk1O1LMOEDEPVOEhwZIzH2OUFAgZ3AgwgTKly4L4KLhxAhavCUAIXFixcnGkFQgYUDjyA/OjihCASAkyhTWmBVA8EMkSFBkgwkIKVNACuPiHiYwEX+Agg9E2hU5AKj0aEMkypdyrRpEgQKDIKBynLZChUAKrRhAUDFimdVBDxAaaCNAZQPBGQhwPUkjQtgtZi4QAMlC3pPTGxIaUCEoghnUW6w1cQFB5QeOqVy4QElB8VMFpzkgCHgrhgYDgNY4ESDgw9Si0wwUCE0Eo4G4r754AApmAsnFThRcPJCtwh1VbAEobbIC6w0HO0KvMKIi5OQh6w4WbbYcQAPCA+hcBKFkQljASSnFGPAyWRGUFQ/UhOAB8ueMJxkgUQ8AOtH2uryZEIzXiLu4RvRYAEAB+l3fHDSBknkl8ReAHBDiQP+mSaEgacd5oAnpGxXBIRIuLCAa+UTYNiUh0zxRwOHS70gnFMoplhOEAAh+QQIBgAAACwAAAAAQABAAIUEAgSEhoTExsREQkSkpqTk5uRkZmQkIiSUlpTU1tRUUlS0trT09vQUEhR0dnSMjozMzsxMSkysrqzs7uw0MjScnpzc3txcWly8vrwMCgz8/vwcHhx8fnw8OjyMiozMysxERkSsqqzs6uxsamycmpzc2txUVlS8urz8+vwUFhR8enyUkpTU0tRMTky0srT08vSkoqTk4uRcXlzEwsQMDgw8Pjz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/kCbcEgsGo/IpHLJbDqf0Kh0Sm1qUNWsFBWLYbVgJiNmYYTPyXHBjG4TxzE2UjSbuKVwuRGFeLjuUXlJAg8PH4BQgkcvKw8VX4hNikYuhSWRT5NEMYUhGphOmkIaMIUioE4oFnFGLA8rJ6iZekJ8r7SyURavh2gvAgmQYSgLJ8JGDDAOMU4QISELMZ+yKBgtHRQIThMuzwQYdqAlIxQdHS2XqRASzyEQuGcTHuYdNSTwSwwC7RIlx1ooCIDA1sFBgSwiFniD0CYAQRkMwWiwIEFCrzMcOkSQMO0Ml39ZXtTJRbKkyZMoU6o8YmGBy5cvWWCCALOmhSMTMgDYybPn/gxEAnoKBZAhHJGcQ30CTcqzKMuaMCMiognV5c2VWLNq3coV6wsXL9p8NTqMRAoAF9qYAJCCBEgpMyjwNNDGAE8KP6vEWLuTxoO3VBg8oMHTBLNAHHoaOAhIhF2eHPAdgbCBZw2pkSDU4LkBsxIHOzeEAOxGQ4jKABw4KaEggGQbKAxcCNvkxQUDpF8EUHD1zIOdf5pI2PnApAjCKcgKEZCXyIuzNE6RfEzCCISdnm2Q2Ek313UAFHCd2Llgj1wA2QFpGLATw5EF5
132I9g2FmjY6QQO00ggQ+g/BG+IYDCAGqHGcGff0ZYENprYASwEwdJHJhEYgAEgIkCAGxA23vxKiExIAAKYFKCA+kNIWESEDiQjkondmVghy4WYUEGNPQW41HS3ajjji4GAQAh+QQIBgAAACwAAAAAQABAAIUEAgSEhoTExsREQkTk5uSsqqxkYmQcHhzU1tT09vS8uryUlpQMDgxUUlR0dnTMzszs7uy0srQ0MjTc3txcWlyMjoxsamwkJiT8/vzEwsSkoqQUFhQMCgzMyszs6uysrqxkZmQkIiTc2tz8+vy8vrycmpwUEhRUVlR8fnzU0tT08vS0trTk4uRcXlyUkpT///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCXcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvtereQlOrbHUUKAjI3VSgg1NpEezWCZwXtiR3raZMwe1YYCm0QgVYibQ+HVSMfBR8JjFQEbW9bBBUfdVsjAh2ASQkfFQROGg0nFgKhe54WJw0aThMgqQ0oenYTKLEnILpNchS+JYZfKiW+FAWSUR4Vvi0RnFpmLbcuHlYIDrcLXAu+DpdXgwYnLlzRBgqtWQkdztYdY5P3+Pn6+/yBEysAAwZMAScFiYMIEbI4AoEDgIcQI2Yg0+GAxYsYLxwj0jCiRwATvwjASPJACHtF/gkUuEgNAgUZFMicmWFhv5s4c+rceU9F/gSUWXxuzDKixAYAFLicALChRDUrGSRANMAFBEQJIamwWPqQQYWnWBJUYADxhE0oCVBEBGHqiwerEFHMY/LgAMQBHfY8GADxQEsmDh4eaHYIQwG7ABw4EdEgwFwjIwxQAKpEBQUQYIuoCNAgWJYKDyM4+fCwwj0PZDcMFSIg6xAVRxlsYwS3hJEHD/8OKfEQBCPcACQ8fqHg4QrIUgHoVoOBLwASR1YYP0Li4YDMXgo8PIFEOoDjR7gWsJMA8dki3sEbmSB4OJcAD1EkSZ9ELYAAcBoAOECZCH0k5QHQABwiOLAcetMl8YADIvTzH08Ifgfhehww4NmEQkAwG4YcBHaYUxAAIfkECAYAAAAsAAAAAEAAQACFBAIEhIKExMLEREJE5OLkpKKkJCIkZGZk1NLU9PL0FBIUlJaUtLK0dHZ0zMrMVFJU7Ors3Nrc/Pr8vLq8DAoMjI6MNDI0HB4cnJ6cfH58XFpchIaExMbE5ObkrKqsdHJ01NbU9Pb0FBYUnJqctLa0fHp8zM7MVFZU7O7s3N7c/P78vL68DA4MPDo8////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv5Al3BILBqPyKRyyWw6n9CodEqtWq/YrHbL7Xq3iVTo25WYOBEyl8DhENTakIPjUMGzkTbkjkW1EXxXKgh0CYFWEG1ph1QSbQ5jjFN+Dm9bKQ8bkVoSERF2SRITGHtNDQAAFx6gfGYBHx8MTiYXqAAtJnwdC7AfGZZNCRm2AAelXgkesAcfJJtPBCe2LBUSXBIrDb0YKFYCFrYHXAW9G4tXISMiABrjHw0crFkoJIZbISDPkvv8/f7/AOGkIEGwYEFAavK0WbiwwxEUFIhJBCCAjIkWFlpo3LjRHhGIE4lV/HJRY8aTGQd0MzLQoMFcCRnKdBiwps2bOHPuS8DAY+wWnis5qWPHRZqIEdawfAvH5YAtCyOpRJtWjUuICixsnQD2JMSwcDS9QHBqK4M+JbRs4eJz0dYFmExOpVp1SIWHWgAaOImQ6SwRCQc0+FSSQMOBpEgSbHiQgksFVLKaMEBVYR+ErCKCDuEQdQiKdSyOBSI7wogJVHCHjEAl7tBpABbOTkBFwogEcABSq1ExANWKIyRoHxGAqoU8Mh5QnUASHEDtI9IAeLgTAi9XIs2fs4x4we+WDagyJMme5OsGOA9SDcYuPHGtB3AiNNBdhHwSEw3O+bOvs377/kSkQAELjQFYBAqiGajggjUFAQAh+QQIBgAAACwAAAAAQABAAIUEAgSEhoTExsREQkTk5uSkpqQkIiRkZmTU1tS0trT09vQUEhSUlpRUUlQ0MjR0dnTMzszs7uysrqzc3ty8vrxcWlwMCgyMjowsKixsbmz8/vwcHhycnpw8OjzMysxMSkzs6uysqqwkJiRsamzc2ty8urz8+vwUFhScmpxUVlQ0NjR8fnzU0tT08vS0srTk4uTEwsRcXlwMDgyUkpT///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/kCacEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvteluQCNYUMXmJgpDLXNW8XqDzEBEKsayRt1hOMyUKEgpUJi8TBBp8Qi91AlQgLwQtiUIaFHVxUQqFmJM0ESEFFGxOGgRvgp1CEHUTUC16qUMKEiESo0smBBMvt6kkdQROmi97WhMNAahIJgIevUkaIBGIScwuxUsPAAAbIdSdJiQoFxcwThAb2wAdEJ0gIeQzKMFOLSvqAAecXS0l5BczBCh78iKFOhkXnlkx4YHBPxeSqsBwoO4AlwT/CrzIogDFCQAVLspjobBKhAQRtSggMTCWy5cwY8qcSXPIhAQ4c+a8w2cC/oSfQIHuGxLBAr6jAMydQZCiQdOnThvESEnUKFJ1Sr0wjQq16dQjN3XqbMfnBQQWZ9OiHVqzrdu3cOPKbAGRi4IS2MZ4BMllxAYMBb5ZmViRy4MNiD80qlLwYEK7KDAg3jBiY6Z7Fel5AXEYsYELVJegU8euE4sGk1XwZKKNm7dYJlyoQBzACQlkLYuYOFAhdJIWFQ6UFNJixohWWy5sc+FEwrYLMEHIAHAiLw0BWYe0+CiDbaID21AYgbCNLBEU2yzGIg/AQe4S2xIYMUERgPlEGgZso3AkQfwjFGzTgWByhLBNCkj4B4B8RxgEQAiTKJAOAJYZoSCDRkxg1Aa5PXERwDYrJHFhEpjVxkcD3Pg2xIhItJBOA4mQ8MB9Fv6XBAQPkNAWi3LVuGCPYFkgA3JAFhGBd0UmqaRbQQAAIfkECAYAAAAsAAAAAEAAQACFBAIEhIaExMbEREJEpKak5ObkZGJkJCIk1NbUVFJUtLa0lJaU9Pb0dHJ0FBIUjI6MzM7MTEpMrK6s7O7sNDI03N7cXFpcvL68fHp8DAoMbGpspKKk/P78HB4cPDo8jIqMzMrMREZErKqs7OrsZGZk3NrcVFZUvLq8nJqc/Pr8dHZ0FBYUlJKU1NLUTE5MtLK09PL05OLkXF5cxMLEfH58DA4MPD48////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv7Am3BILBqPyKRyyWw6n9CodEqtWq/YrHbL7XoLhIp3/EiQGOOuJGESpbkpTcIyem8FpsTDruXQ8gh8WRUWCSocglgLeReJVzAyCQZojlUveRCVRxUJAZRIKQssn1kpCAIwTioAAB0iiIkpMQoiIplNEB2sADa3dhMXtQQvE08wNLsAJHVjDBC1IhItKVIxJrs1D9RbphLQqFYzFLsGXCDQCsVYDCgrABZcAtEVsFoTCqncBaSa/f7/AAMKtFNBgcGDB1vYiYGgoUOH6opMyJCsIoAZaSo00NCgo8eOKvIRmWgxGcYxGjtyXMkx5CaEMH2NKfCwJrOBOHPq3MlTE/6MFyKzMJgRFEuKdu+40PAQQUK9cONYldsSgIIHDzJkVrvGKts2LSkIhLDqAUMBKQyQ7SJxdsyED1cp2EDBT0muXb0EIdBw1YOLEqpYufrKh4MCFx4oLHBSolNdIikMWCiaBIYFEoSNMNigIgaXB6xeOJHAao+mETUArIg4RMBJIjDc1biZiAQrFEYgsNJ6AwUrEpV0A6BQ9wQrBUZSROU9hsMAVo2MKDh+5AIrG0/TiGBlAsl0AMiPcHVjh4EuAJ6PfA9vpILgx1RZ0UiyPonaAHYStKI8pD4S8wAkYEcJKjDXH3VJQKACYAL511MRDj44RAUZ1CCGhBLRhuGGHAPiFAQAOw==\",\"custom_popup_width\",\"head\",\"5fQpzOr\",\"addEventListener\",\"target_marker_unique_id\",\"createElement\"];return(_0x2f6e=function(){return _0x5d893c})()}function run(_0x36bef5,_0x4157ab,_0x2a773){var _0x49c242=_0x55c7,_0x57d06f=_0x49c242(188);const _0x215c85=_0x1155d1=>{var _0x31463e=_0x49c242;return _0x1155d1[_0x31463e(184)](0,4)===_0x31463e(172)?_0x1155d1:_0x31463e(169)+_0x1155d1};if(window[_0x49c242(192)](\"message\",(_0x42c03f=>{var _0x48b161=_0x49c242;\"leafyMaps\"===_0x42c03f.data[_0x48b161(174)]&&(_0x36bef5[_0x48b161(183)](\"data_from_popup\",_0x42c03f[_0x48b161(186)][_0x48b161(185)]),_0x36bef5.triggerEvent(_0x48b161(178)))}),!1),_0x4157ab[_0x49c242(159)]){var _0x5c8356=_0x215c85(_0x4157ab[_0x49c242(159)]),_0x2e9130=_0
132x49c242(160)+_0x4157ab[_0x49c242(189)]+_0x49c242(171)+_0x4157ab[_0x49c242(156)]+_0x49c242(187)+_0x5c8356+_0x49c242(173),_0x35e66a=document[_0x49c242(153)](_0x49c242(161));_0x35e66a.innerHTML=_0x49c242(162)+_0x57d06f+_0x49c242(158),document[_0x49c242(190)][_0x49c242(180)](_0x35e66a)}else var _0xa83d85=_0x4157ab[_0x49c242(182)].replaceAll('\"',\"'\"),_0x2e9130=_0x49c242(155)+_0x4157ab.custom_popup_width+_0x49c242(171)+_0x4157ab.custom_popup_height+_0x49c242(181)+_0xa83d85+'\"></iframe>';let _0x331ccb={maxWidth:parseInt(_0x4157ab[_0x49c242(189)])+_0x4157ab[_0x49c242(154)],maxHeight:parseInt(_0x4157ab[_0x49c242(156)])+_0x4157ab[_0x49c242(154)]};_0x36bef5.data[\"\"+_0x4157ab[_0x49c242(193)]][_0x49c242(157)](_0x2e9130,_0x331ccb)[_0x49c242(163)]()}!function(_0x31b71d,_0x30bf17){for(var _0x5c7a59=_0x55c7,_0x41dec4=_0x31b71d();;)try{var _0x5c43bd;if(416970===-parseInt(_0x5c7a59(177))/1*(-parseInt(_0x5c7a59(164))/2)+parseInt(_0x5c7a59(165))/3+-parseInt(_0x5c7a59(179))/4+-parseInt(_0x5c7a59(191))/5*(parseInt(_0x5c7a59(168))/6)+-parseInt(_0x5c7a59(166))/7*(-parseInt(_0x5c7a59(170))/8)+-parseInt(_0x5c7a59(167))/9*(parseInt(_0x5c7a59(176))/10)+parseInt(_0x5c7a59(175))/11)break;_0x41dec4.push(_0x41dec4.shift())}catch(_0x3df472){_0x41dec4.push(_0x41dec4.shift())}}(_0x2f6e,416970),run(instance,properties,context)}"}},"AIJ":{"caption":"Toggle drawing mode","code":{"fn":"function(instance,properties,context){function _0x5f1f(_0x2c48a2,_0x5eeff6){const _0x6f72ca=_0x6f72();return(_0x5f1f=function(_0x5f1f41,_0x1caf3c){let _0x5df75c;return _0x6f72ca[_0x5f1f41-=160]})(_0x2c48a2,_0x5eeff6)}function run(_0x58b0a6,_0x25cfa8,_0x4c134b){const _0x3f621f=_0x5f1f;let _0x3b8196;(0,_0x58b0a6[_0x3f621f(166)][_0x3f621f(167)])()}function _0x6f72(){const _0x575568=[\"3476142PIrCHU\",\"15613LbDJbk\",\"7673872wrOYlz\",\"13949289Ccgpvg\",\"10NngrCS\",\"204BtYzMq\",\"data\",\"toggleDrawingMode\",\"331933vKmluz\",\"13621806oBWhMb\",\"5wGbxWw\",\"3671964rppZdq\",\"14aODhvA\"];return(_0x6f72=function(){return _0x575568})()}!function(_0x5454a3,_0x284d19){const _0x155fee=_0x5f1f,_0x29c08e=_0x5454a3();for(;;)try{const _0x1cb39c=undefined;if(833155===parseInt(_0x155fee(161))/1*(parseInt(_0x155fee(172))/2)+-parseInt(_0x155fee(160))/3+parseInt(_0x155fee(171))/4*(parseInt(_0x155fee(170))/5)+-parseInt(_0x155fee(165))/6*(-parseInt(_0x155fee(168))/7)+-parseInt(_0x155fee(162))/8+parseInt(_0x155fee(163))/9*(parseInt(_0x155fee(164))/10)+-parseInt(_0x155fee(169))/11)break;_0x29c08e.push(_0x29c08e.shift())}catch(_0x55130f){_0x29c08e.push(_0x29c08e.shift())}}(_0x6f72,833155),run(instance,properties,context)}"}},"AIK":{"caption":"Close polygon","code":{"fn":"function(instance,properties,context){function _0x4f58(_0x53039c,_0x3141f4){const _0x3af32d=_0x3af3();return(_0x4f58=function(_0x4f5829,_0xb4548b){let _0x1b613d;return _0x3af32d[_0x4f5829-=350]})(_0x53039c,_0x3141f4)}function run(_0x273d2c,_0x3a524f,_0x349680){const _0x779686=undefined;let _0x44fcb8;(0,_0x273d2c[_0x4f58(358)].closePolygon)()}function _0x3af3(){const _0x14e9bf=[\"49slYkHv\",\"data\",\"9095TdyqJf\",\"14142ZwHeRN\",\"4eWSHXu\",\"459610OUYwXy\",\"345834dlqqlM\",\"4010182yZdMqz\",\"1660452CrtuJD\",\"30UNhojf\",\"184foenmp\",\"630232cjIsrV\",\"144lXyreG\"];return(_0x3af3=function(){return _0x14e9bf})()}!function(_0x15eca4,_0x397859){const _0x17bd86=_0x4f58,_0x59f94c=_0x15eca4();for(;;)try{const _0x173603=undefined;if(968532===-parseInt(_0x17bd86(359))/1*(-parseInt(_0x17bd86(361))/2)+-parseInt(_0x17bd86(360))/3*(parseInt(_0x17bd86(354))/4)+-parseInt(_0x17bd86(353))/5*(parseInt(_0x17bd86(350))/6)+-parseInt(_0x17bd86(357))/7*(-parseInt(_0x17bd86(355))/8)+parseInt(_0x17bd86(356))/9*(parseInt(_0x17bd86(362))/10)+parseInt(_0x17bd86(351))/11+-parseInt(_0x17bd86(352))/12)break;_0x59f94c.push(_0x59f94c.shift())}catch(_0x34021f){_0x59f94c.push(_0x59f94c.shift())}}(_0x3af3,968532),run(instance,properties,context)}"}},"AIL":{"caption":"Delete vertex","fields":{"AIM":{"caption":"All","default_val":false,"editor":"DynamicValue","name":"all","rank":0,"value":"boolean"}},"code":{"fn":"function(instance,properties,context){function _0x3141(){const _0x40c6b0=[\"data\",\"28QDezXy\",\"442623TAaknU\",\"40AxjuNp\",\"deleteAllVertex\",\"584991hdnxxP\",\"8920604PmWozD\",\"2379402QrYNlS\",\"2079230ysUVRX\",\"24181164dXHtaG\",\"230iBwbnC\",\"898GzIKae\",\"deleteVertex\",\"18MZENOT\",\"313LMuWyB\",\"all\"];return(_0x3141=function(){return _0x40c6b0})()}function _0xdabe(_0x4c9010,_0x5a96c0){const _0x3141a7=_0x3141();return(_0xdabe=function(_0xdabea2,_0x58640c){let _0x42c8f2;return _0x3141a7[_0xdabea2-=423]})(_0x4c9010,_0x5a96c0)}function run(_0x161cc2,_0x3ac07d,_0x2cc039){const _0x5904db=_0xdabe;let _0x1a9edf=_0x161cc2[_0x5904db(433)][_0x5904db(429)],_0x4aab4b=_0x161cc2[_0x5904db(433)][_0x5904db(437)];_0x3ac07d[_0x5904db(432)]?_0x4aab4b():_0x1a9edf()}!function(_0x3ef80c,_0x488117){const _0x448626=_0xdabe,_0x40389d=_0x3ef80c();for(;;)try{const _0x54dabe=undefined;if(913666===-parseInt(_0x448626(431))/1*(parseInt(_0x448626(428))/2)+parseInt(_0x448626(435))/3*(-parseInt(_0x448626(434))/4)+-parseInt(_0x448626(425))/5*(-parseInt(_0x448626(430))/6)+-parseInt(_0x448626(423))/7+-parseInt(_0x448626(436))/8*(-parseInt(_0x448626(424))/9)+parseInt(_0x448626(427))/10*(-parseInt(_0x448626(438))/11)+parseInt(_0x448626(426))/12)break;_0x40389d.push(_0x40389d.shift())}catch(_0x5e3b42){_0x40389d.push(_0x40389d.shift())}}(_0x3141,913666),run(instance,properties,context)}"}},"AIk":{"caption":"Check if point is contained in polygon area (geofence)","fields":{"AIl":{"caption":"Is the point contained in the Polygon? returns yes or no. Useful for geofence related features.","editor":"Label","name":"will_return_a_boolean_(yes/no)_type_on_this_map_element's_state_pol
132ygon.","rank":0},"AIm":{"caption":"Latitude","editor":"DynamicValue","name":"point_latitude","rank":1,"value":"number"},"AIn":{"caption":"Longitude","editor":"DynamicValue","name":"point_longitude","rank":2,"value":"number"}},"code":{"fn":"function(instance,properties,context){function run(_0x31c7bd,_0x19b8fb,_0x13dc7e){var _0xf60ef9=_0x535b;_0x31c7bd[_0xf60ef9(464)].isThePointContained=!1,_0x31c7bd[_0xf60ef9(451)](_0xf60ef9(463),!1);let _0x2ea8f8=_0x31c7bd[_0xf60ef9(464)].mymap,_0x2b38d8=(_0xa85378,_0xe5bb0c,_0x23481b)=>{var _0xd02c7b=_0xf60ef9;let _0x5e2470=!1;for(var _0x4bf002=0;_0x4bf002<_0x23481b.getLatLngs()[_0xd02c7b(462)];_0x4bf002++)for(var _0x4ab6a9=_0x23481b[_0xd02c7b(442)]()[_0x4bf002],_0x581b0e=0,_0x2a50ec=_0x4ab6a9.length-1;_0x581b0e<_0x4ab6a9[_0xd02c7b(462)];_0x2a50ec=_0x581b0e++){var _0x2cbf9a=_0x4ab6a9[_0x581b0e].lat,_0x57b18b=_0x4ab6a9[_0x581b0e].lng,_0x2b14e5=_0x4ab6a9[_0x2a50ec][_0xd02c7b(453)],_0x3f8dd9=_0x4ab6a9[_0x2a50ec][_0xd02c7b(455)],_0x91c4ca;_0x57b18b>_0xe5bb0c!=_0x3f8dd9>_0xe5bb0c&&_0xa85378<(_0x2b14e5-_0x2cbf9a)*(_0xe5bb0c-_0x57b18b)/(_0x3f8dd9-_0x57b18b)+_0x2cbf9a&&(_0x5e2470=!_0x5e2470)}return _0x5e2470};for(let _0x4b53cb in _0x2ea8f8[_0xf60ef9(466)]){let _0x4b1b0c=_0x2ea8f8[_0xf60ef9(466)][_0x4b53cb];if(!(_0x4b1b0c instanceof L.Polygon))continue;let _0x4ad4de=_0x4b1b0c;if(_0x31c7bd.data[_0xf60ef9(444)]=_0x2b38d8(_0x19b8fb[_0xf60ef9(450)],_0x19b8fb.point_longitude,_0x4ad4de),_0x31c7bd[_0xf60ef9(464)][_0xf60ef9(444)])return _0x31c7bd[_0xf60ef9(451)](_0xf60ef9(463),_0x31c7bd[_0xf60ef9(464)][_0xf60ef9(444)]),_0x31c7bd[_0xf60ef9(451)](_0xf60ef9(456),_0x4ad4de[_0xf60ef9(465)]),void _0x31c7bd.triggerEvent(\"user_location_is_inside_area\")}_0x31c7bd[_0xf60ef9(451)](\"point_is_contained_polygon\",!1),_0x31c7bd[_0xf60ef9(451)](_0xf60ef9(456),\"\"),_0x31c7bd[_0xf60ef9(461)](_0xf60ef9(458))}function _0x535b(_0x396f41,_0x9369e){var _0x177107=_0x1771();return(_0x535b=function(_0x535b3e,_0x208dd5){var _0x3c931e;return _0x177107[_0x535b3e-=442]})(_0x396f41,_0x9369e)}function _0x1771(){var _0x1be3aa=[\"user_location_is_outside_area\",\"66eJnfTG\",\"953865ulGIVL\",\"triggerEvent\",\"length\",\"point_is_contained_polygon\",\"data\",\"zone\",\"_layers\",\"getLatLngs\",\"1144904fEeVPj\",\"isThePointContained\",\"279349xkiNrT\",\"14397azBebc\",\"14NZTJLi\",\"2550950AkdZvP\",\"989844lteLMe\",\"point_latitude\",\"publishState\",\"18dqGrQW\",\"lat\",\"709136KlKXlF\",\"lng\",\"which_zone_is_the_point_contained_in\",\"68lWQQZW\"];return(_0x1771=function(){return _0x1be3aa})()}!function(_0x35013d,_0x3033cf){for(var _0x454c52=_0x535b,_0x221e66=_0x35013d();;)try{var _0x5af9c8;if(389669===-parseInt(_0x454c52(445))/1+-parseInt(_0x454c52(454))/2+-parseInt(_0x454c52(446))/3*(parseInt(_0x454c52(457))/4)+parseInt(_0x454c52(460))/5+-parseInt(_0x454c52(449))/6*(parseInt(_0x454c52(447))/7)+parseInt(_0x454c52(443))/8*(-parseInt(_0x454c52(452))/9)+-parseInt(_0x454c52(448))/10*(-parseInt(_0x454c52(459))/11))break;_0x221e66.push(_0x221e66.shift())}catch(_0x244715){_0x221e66.push(_0x221e66.shift())}}(_0x1771,389669),run(instance,properties,context)}"}},"AIq":{"caption":"Draw list of polygons","fields":{"AIr":{"caption":"Thing type","editor":"custom_type","name":"thing_type","rank":0},"AIt":{"caption":"Data source","editor":"DynamicValue","is_list":true,"name":"data_source","rank":1,"value":"custom_data_AIr"},"AIu":{"caption":"Latitude","editor":"custom_field_AIr","name":"latitude","rank":2},"AIv":{"caption":"Longitude","editor":"custom_field_AIr","name":"longitude","rank":3},"AIw":{"caption":"Unique name","editor":"DynamicValue","name":"polygon_class_name","rank":4,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x19ac(){const _0x61924b=[\"latitude\",\"data\",\"1380912pIAqIC\",\"960379kHAoLD\",\"34979OSYnOO\",\"length\",\"polygon_class_name\",\"563142nOrBog\",\"12aWgMpx\",\"data_source\",\"addTo\",\"polygon\",\"get\",\"push\",\"286445xkiZrz\",\"longitude\",\"3ishfVo\",\"1288449ltztEs\",\"108458CQFMyF\"];return(_0x19ac=function(){return _0x61924b})()}function _0x36a8(_0x2c3255,_0x21b904){const _0x19ac7c=_0x19ac();return(_0x36a8=function(_0x36a888,_0x149363){let _0x44d55a;return _0x19ac7c[_0x36a888-=164]}
132)(_0x2c3255,_0x21b904)}function run(_0x5339a7,_0x949318,_0xcd8c53){const _0x31ddc5=_0x36a8,_0x270d61=function(_0x1978bf){const _0x5f35a8=_0x36a8;return _0x1978bf?\"function\"!=typeof _0x1978bf[_0x5f35a8(179)]||\"function\"!=typeof _0x1978bf[_0x5f35a8(172)]?[]:_0x1978bf[_0x5f35a8(179)](0,_0x1978bf[_0x5f35a8(172)]()):[]};let _0x27d72d=_0x270d61(_0x949318[_0x31ddc5(176)]);for(let _0x445cb9=0;_0x445cb9<_0x27d72d[_0x31ddc5(172)];_0x445cb9++){let _0x5a9fe1,_0x35a14b=_0x270d61(_0x27d72d[_0x445cb9].get(_0x949318[_0x31ddc5(167)])),_0x12fa3e,_0x504801=_0x270d61(_0x27d72d[_0x445cb9].get(_0x949318[_0x31ddc5(182)])),_0x2417c5=[];for(let _0x536bc6=0;_0x536bc6<_0x35a14b[_0x31ddc5(172)];_0x536bc6++)_0x2417c5[_0x31ddc5(180)]([_0x35a14b[_0x536bc6],_0x504801[_0x536bc6]]);_0x5339a7.data[\"\"+_0x949318[_0x31ddc5(173)]+(_0x445cb9+1)]=L[_0x31ddc5(178)](_0x2417c5)[_0x31ddc5(177)](_0x5339a7[_0x31ddc5(168)].mymap)}}!function(_0x18e77e,_0xcc7d52){const _0x3b7ab2=_0x36a8,_0x5c2e6c=_0x18e77e();for(;;)try{const _0x43f604=undefined;if(107890===-parseInt(_0x3b7ab2(171))/1+parseInt(_0x3b7ab2(166))/2*(parseInt(_0x3b7ab2(164))/3)+-parseInt(_0x3b7ab2(175))/4*(parseInt(_0x3b7ab2(181))/5)+parseInt(_0x3b7ab2(174))/6+parseInt(_0x3b7ab2(170))/7+parseInt(_0x3b7ab2(169))/8+-parseInt(_0x3b7ab2(165))/9)break;_0x5c2e6c.push(_0x5c2e6c.shift())}catch(_0x373182){_0x5c2e6c.push(_0x5c2e6c.shift())}}(_0x19ac,107890),run(instance,properties,context)}"}},"AJX":{"caption":"Create container to get coordinate from address from Mapbox","fields":{"AJd":{"caption":"This specific workflow action uses Geocoding from Mapbox. You may only use responses from the Mapbox Geocoding API in conjunction with a Mapbox map. It is their policy. If you need something else, another geocoding vendor can be implemented for you, get in touch with me (plugin maker).","editor":"Label","name":"_you_may_only_use_responses_from_the_geocoding_api_in_conjunction_with_a_mapbox_map._it_is_their_policy._if_you_need_something_else,_it_can_be_custom_created_for_you.","rank":1},"AJi":{"caption":"Query container ID","editor":"DynamicValue","name":"query_container","rank":0,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0xa245(_0x3b4049,_0x4c3158){const _0x50b7fb=_0x50b7();return(_0xa245=function(_0xa2453f,_0x5af85c){let _0x40701e;return _0x50b7fb[_0xa2453f-=200]})(_0x3b4049,_0x4c3158)}function run(_0x3964fb,_0x45898c,_0x222c0d){const _0x589311=_0xa245,_0x4ebf97=new MapboxGeocoder({accessToken:_0x222c0d[_0x589311(226)][_0x589311(202)]});_0x4ebf97[_0x589311(209)](\"#\"+_0x45898c[_0x589311(217)]);var _0x441862=document[_0x589311(200)](_0x589311(216));_0x441862[_0x589311(223)]=_0x589311(213),document[_0x589311(204)][_0x589311(225)](_0x441862),_0x4ebf97.on(_0x589311(218),(_0x5a29cb=>{const _0x2bb17b=_0x589311;_0x3964fb[_0x2bb17b(219)](_0x2bb17b(227),_0x5a29cb[_0x2bb17b(218)].geometry.coordinates[0]),_0x3964fb[_0x2bb17b(219)](\"geocoded_latitude_mapbox\",_0x5a29cb[_0x2bb17b(218)][_0x2bb17b(221)][_0x2bb17b(222)][1]),_0x3964fb.publishState(_0x2bb17b(206),_0x5a29cb[_0x2bb17b(218)].place_name),_0x3964fb.publishState(_0x2bb17b(215),_0x5a29cb.result.text),_0x3964fb[_0x2bb17b(208)](_0x2bb17b(205))}))}function _0x50b7(){const _0x42f079=[\"1246232hoFzhS\",\"\\n        .mapboxgl-ctrl-geocoder {\\n            min-width: 100%;\\n            } \\n            \\n            \",\"1085304QDEezn\",\"geocoded_short_name_mapbox\",\"style\",\"query_container\",\"result\",\"publishState\",\"13718700cxLpVR\",\"geometry\",\"coordinates\",\"innerHTML\",\"1302810nvTrQa\",\"appendChild\",\"keys\",\"geocoded_longitude_mapbox\",\"createElement\",\"1346526ndIlUT\",\"Mapbox access token\",\"1bEDCRd\",\"head\",\"coordinates_from_address_attained_from_mapbox\",\"geocoded_full_name_mapbox\",\"1526TYIson\",\"triggerEvent\",\"addTo\",\"839182FpxGmV\",\"23412ZTPzaS\"];return(_0x50b7=function(){return _0x42f079})()}!function(_0x37e1ac,_0x3da6d9){const _0x462569=_0xa245,_0x1945c8=_0x37e1ac();for(;;)try{const _0x48b405=undefined;if(798720===parseInt(_0x462569(203))/1*(-parseInt(_0x462569(210))/2)+-parseInt(_0x462569(201))/3+-parseInt(_0x462569(212))/4+-parseInt(_0x462569(224))/5+parseInt(_0x462569(211))/6*(parseInt(_0x462569(207))/7)+-parseInt(_0x462569(214))/8+parseInt(_0x462569(220))/9)break;_0x1945c8.push(_0x1945c8.shift())}catch(_0x5a2c59){_0x1945c8.push(_0x1945c8.shift())}}(_0x50b7,798720),run(instance,properties,context)}"}},"AJo":{"caption":"Change marker icon","fields":{"AJp":{"caption":"Unique name","editor":"DynamicValue","name":"marker_name","rank":0,"value":"text"},"AJq":{"caption":"Marker style","default_val":"Red","editor":"Dropdown","name":"marker_style","rank":1},"AJr":{"caption":"Use custom icon?","default_val":false,"editor":"DynamicValue","name":"use_custom_icon","optional":false,"rank":2,"value":"boolean"},"AJs":{"caption":"Custom icon image","editor":"DynamicValue","name":"custom_icon_url","optional":true,"rank":3,"value":"image"},"AOE":{"caption":"Marker Width","name":"marker_width","rank":4,"editor":"DynamicValue","value":"number","default_val":64},"AOF":{"caption":"Marker Height","name":"marker_height","rank":5,"editor":"DynamicValue","value":"number","default_val":64}},"code":{"fn":"function(instance,properties,context){function _0x5c3c(_0x4245a5,_0x1594d2){const _0x25ec72=_0x25ec();return(_0x5c3c=function(_0x5c3cce,_0x4f0b86){let _0x48b840;return _0x25ec72[_0x5c3cce-=431]})(_0x4245a5,_0x1594d2)}function _0x25ec(){const _0x2609c9=[\"Red\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567071016539x633328751974089360/red_marker.png\",\"marker_name\",\"2wrtP
132sy\",\"1925273yMacbl\",\"https:\",\"custom_icon_url\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567071057099x762384812835195500/white_marker.png\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567070947779x803166556575223700/marker-shadow.png\",\"5429768cWyoFc\",\"Blue\",\"use_custom_icon\",\"icon\",\"249624jWvwgu\",\"Brown\",\"setIcon\",\"Yellow\",\"283334SzmwjB\",\"data\",\"marker_height\",\"marker_width\",\"Green\",\"marker_style\",\"403512fbhgdr\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567070997768x135506561932380300/green_marker.png\",\"9CmfoEQ\",\"Black\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567071031375x378002786517539900/black_marker.png\",\"White\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567070983762x973056674738514600/yellow_marker.png\",\"180510AQdQmK\",\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567070967095x108965806592226770/brown_marker.png\",\"1250220kKYBzK\"];return(_0x25ec=function(){return _0x2609c9})()}function run(_0x355bd8,_0x43e968,_0x9ce2a4){const _0x2db8db=_0x5c3c,_0x289303=_0x267286=>{const _0x34dc90=_0x5c3c;return _0x267286===_0x34dc90(446)?\"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1567071044715x223496852841002400/blue_marker.png\":_0x267286===_0x34dc90(452)?_0x34dc90(432):_0x267286===_0x34dc90(457)?_0x34dc90(460):_0x267286===_0x34dc90(436)?_0x34dc90(437):_0x267286===_0x34dc90(450)?_0x34dc90(434):_0x267286===_0x34dc90(431)?_0x34dc90(443):_0x267286===_0x34dc90(462)?_0x34dc90(463):void 0};if(_0x43e968.use_custom_icon){let _0x516a06=L[_0x2db8db(448)]({iconUrl:_0x2db8db(441)+_0x43e968[_0x2db8db(442)],iconSize:[_0x43e968.marker_width,_0x43e968[_0x2db8db(455)]],shadowSize:[50,64],iconAnchor:[_0x43e968[_0x2db8db(456)]/2,_0x43e968[_0x2db8db(455)]],shadowAnchor:[4,62],popupAnchor:[0,-_0x43e968[_0x2db8db(455)]]});_0x355bd8[_0x2db8db(454)][\"\"+_0x43e968[_0x2db8db(438)]][_0x2db8db(451)](_0x516a06)}else if(!_0x43e968[_0x2db8db(447)]){let _0x570411=L[_0x2db8db(448)]({iconUrl:\"https:\"+_0x289303(_0x43e968[_0x2db8db(458)]),shadowUrl:_0x2db8db(444),iconSize:[25,40],shadowSize:[41,41],iconAnchor:[12,39],shadowAnchor:[13,40],popupAnchor:[0,-30]});_0x355bd8[_0x2db8db(454)][\"\"+_0x43e968.marker_name][_0x2db8db(451)](_0x570411)}}!function(_0x4fd0af,_0x584c34){const _0x13f5bd=_0x5c3c,_0x378681=_0
132x4fd0af();for(;;)try{const _0x7aee76=undefined;if(156221===-parseInt(_0x13f5bd(453))/1*(parseInt(_0x13f5bd(439))/2)+-parseInt(_0x13f5bd(449))/3+-parseInt(_0x13f5bd(459))/4+parseInt(_0x13f5bd(435))/5+-parseInt(_0x13f5bd(433))/6+-parseInt(_0x13f5bd(440))/7+parseInt(_0x13f5bd(445))/8*(parseInt(_0x13f5bd(461))/9))break;_0x378681.push(_0x378681.shift())}catch(_0x4cecf0){_0x378681.push(_0x378681.shift())}}(_0x25ec,156221),run(instance,properties,context)}"}},"AJt":{"caption":"Get map center","fields":{"AJu":{"caption":"Will publish to \"Map center\" latitude and longitude states and trigger the event \"Map center attained\".","editor":"Label","name":"will","rank":0}},"code":{"fn":"function(instance,properties,context){function _0x5230(){const _0x5c592f=[\"map_center_latitude\",\"6zbsxrp\",\"3296rjwVTY\",\"405914BWVTLB\",\"triggerEvent\",\"981DxwQRJ\",\"getCenter\",\"307976GxBKqW\",\"toFixed\",\"1937341alGnYH\",\"8565dEAbOI\",\"data\",\"map_center_longitude\",\"lat\",\"lng\",\"22HAJonv\",\"mymap\",\"1321010xfodWR\",\"publishState\",\"2818110tntwqB\",\"22umkACY\"];return(_0x5230=function(){return _0x5c592f})()}function _0x2ee4(_0x24a0c,_0x17dcf8){const _0x5230cd=_0x5230();return(_0x2ee4=function(_0x2ee499,_0x577298){let _0x3e3f70;return _0x5230cd[_0x2ee499-=486]})(_0x24a0c,_0x17dcf8)}function run(_0x2fbf9d,_0x1ff8f8,_0x2e41f7){const _0x4a04ab=_0x2ee4;let _0x488335=_0x2fbf9d[_0x4a04ab(501)][_0x4a04ab(506)][_0x4a04ab(496)]();_0x2fbf9d[_0x4a04ab(487)](_0x4a04ab(490),_0x488335[_0x4a04ab(503)][_0x4a04ab(498)](6)),_0x2fbf9d[_0x4a04ab(487)](_0x4a04ab(502),_0x488335[_0x4a04ab(504)][_0x4a04ab(498)](6)),_0x2fbf9d[_0x4a04ab(494)](\"map_center_attained\")}!function(_0x2bf418,_0xe8c540){const _0x5c1af0=_0x2ee4,_0x5263e4=_0x2bf418();for(;;)try{const _0x6fd961=undefined;if(229950===parseInt(_0x5c1af0(493))/1+parseInt(_0x5c1af0(505))/2*(-parseInt(_0x5c1af0(500))/3)+-parseInt(_0x5c1af0(497))/4+parseInt(_0x5c1af0(486))/5+parseInt(_0x5c1af0(491))/6*(parseInt(_0x5c1af0(499))/7)+-parseInt(_0x5c1af0(492))/8*(parseInt(_0x5c1af0(495))/9)+-parseInt(_0x5c1af0(488))/10*(parseInt(_0x5c1af0(489))/11))break;_0x5263e4.push(_0x5263e4.shift())}catch(_0x319a52){_0x5263e4.push(_0x5263e4.shift())}}(_0x5230,229950),run(instance,properties,context)}"}},"AJx":{"caption":"Check if point is in circle radius with","fields":{"AJy":{"caption":"Checked point lat","editor":"DynamicValue","name":"point_to_be_checked_latitude","rank":0,"value":"number"},"AJz":{"caption":"Checked point lon","editor":"DynamicValue","name":"point_to_be_checked_longitude","rank":1,"value":"number"},"AKA":{"caption":"Circle center lat","editor":"DynamicValue","name":"circle_center_latitude","rank":2,"value":"number"},"AKB":{"caption":"Circle center lon","editor":"DynamicValue","name":"circle_center_longitude","rank":3,"value":"number"},"AKC":{"caption":"Circle radius","editor":"DynamicValue","name":"circle_radius","rank":4,"value":"text"}},"code":{"fn":"function(instance,properties,context){function _0x170b(){const _0x449249=[\"2093152TvnqFC\",\"680017qZLTDe\",\"54VfRpqd\",\"isPointWithinRadius\",\"1053073EbdtFI\",\"point_to_be_checked_longitude\",\"point_to_be_checked_latitude\",\"13575WtgUcw\",\"4797960YwvrBm\",\"12bShbxE\",\"circle_radius\",\"5657319CwMCKW\",\"publishState\",\"13318AyPLzg\",\"circle_center_latitude\",\"696EOGaBP\"];return(_0x170b=function(){return _0x449249})()}function _0x4377(_0x5e52ba,_0x1cc25e){const _0x170bc8=_0x170b();return(_0x4377=function(_0x437731,_0xf30479){let _0xc83e99;return _0x170bc8[_0x437731-=291]})(_0x5e52ba,_0x1cc25e)}function run(_0x97397,_0x5733d1,_0x1d8f04){const _0x2c1d2f=_0x4377;let _0x365e84=window.geolib[_0x2c1d2f(303)]({latitude:_0x5733d1[_0x2c1d2f(306)],longitude:_0x5733d1[_0x2c1d2f(305)]},{latitude:_0x5733d1[_0x2c1d2f(298)],longitude:_0x5733d1.circle_center_longitude},_0x5733d1[_0x2c1d2f(294)]);_0x97397[_0x2c1d2f(296)](\"point_inside_circle\",_0x365e84),_0x97397.triggerEvent(\"point_inside_circle_radius_checked\")}!function(_0x603f92,_0x4c07dc){const _0x44150d=_0x4377,_0x3f0436=_0x603f92();for(;;)try{const _0x58a66d=undefined;if(633610===parseInt(_0x44150d(301))/1+parseInt(_0x44150d(297))/2*(-parseInt(_0x44150d(302))/3)+parseInt(_0x44150d(299))/4*(-parseInt(_0x44150d(291))/5)+parseInt(_0x44150d(293))/6*(-parseInt(_0x44150d(304))/7)+-parseInt(_0x44150d(300))/8+parseInt(_0x44150d(295))/9+parseInt(_0x44150d(292))/10)break;_0x3f0436.push(_0x3f0436.shift())}catch(_0x2972f3){_0x3f0436.push(_0x3f0436.shift())}}(_0x170b,633610),run(instance,properties,context)}"}},"AKF":{"caption":"Start fixed central circle filter","fields":{"AKG":{"caption":"draw_stroke","default_val":true,"editor":"DynamicValue","name":"draw_stroke","rank":1,"value":"boolean"},"AKH":{"caption":"stroke_color","default_val":"rgba(0, 229, 250, 1)","editor":"Color","name":"stroke_color","rank":2,"value":"text"},"AKI":{"caption":"stroke_weight","default_val":3,"editor":"DynamicValue","name":"stroke_weight","rank":3,"value":"number"},"AKJ":{"caption":"stroke_opacity","default_val":1,"editor":"DynamicValue","name":"stroke_opacity","rank":4,"value":"number"},"AKK":{"caption":"circle_fill","default_val":true,"editor":"DynamicValue","name":"circle_fill","rank":5,"value":"boolean"},"AKL":{"caption":"fill_color","default_val":"rgba(255, 0, 0, 1)","editor":"Color","name":"fill_color","rank":6},"AKM":{"caption":"fill_opacity","default_val":0.2,"editor":"DynamicValue","name":"fill_opacity","rank":7,"value":"number"},"AKN":{"caption":"radius","default_val":200,"editor":"DynamicValue","name":"radius","rank":8,"value":"number"},"AKO":{"caption":"Circle name","editor":"DynamicValue","name":"circle_name","rank":9,"value":"text"},"AKc":{"caption":"Incomplete feature, will do nothing. Check back in a newer version.","name":"incomplete_feature,_will_do_nothing._check_back_
132in_a_newer_version.","rank":0,"editor":"Label"}},"code":{"fn":"function(instance,properties,context){function _0x3ee8(_0x554798,_0xe9875f){const _0x218917=_0x2189();return(_0x3ee8=function(_0x3ee85d,_0x570286){let _0x5757e6;return _0x218917[_0x3ee85d-=366]})(_0x554798,_0xe9875f)}function run(_0x5cf353,_0x48737a,_0x5d2656){const _0x5c75db=_0x3ee8;_0x5cf353.data[_0x5c75db(378)][_0x5c75db(383)](_0x5cf353[_0x5c75db(377)][_0x5c75db(378)])[_0x5c75db(367)].padding=100;let _0x58066d={stroke:_0x48737a[_0x5c75db(387)],color:_0x48737a[_0x5c75db(381)],weight:_0x48737a.stroke_weight,opacity:_0x48737a.stroke_opacity,fill:_0x48737a[_0x5c75db(385)],fillColor:_0x48737a[_0x5c75db(379)],fillOpacity:_0x48737a.fill_opacity,radius:_0x48737a.radius};_0x5cf353.data[\"\"+_0x48737a[_0x5c75db(390)]]=L.circle(_0x5cf353.data[_0x5c75db(378)][_0x5c75db(376)](),_0x58066d)[_0x5c75db(389)](_0x5cf353[_0x5c75db(377)][_0x5c75db(378)]),_0x5cf353[_0x5c75db(377)].mymap[_0x5c75db(380)](_0x5cf353[_0x5c75db(377)][\"\"+_0x48737a.circle_name][_0x5c75db(375)]()),_0x5cf353.data[_0x5c75db(378)].on(_0x5c75db(374),(function(_0x789376){const _0x422799=_0x5c75db;_0x5cf353.data[\"\"+_0x48737a.circle_name][_0x422799(384)](_0x5cf353[_0x422799(377)][_0x422799(378)].getCenter())}))}function _0x2189(){const _0x2f88fb=[\"draw_stroke\",\"10ncWWSI\",\"addTo\",\"circle_name\",\"4784128wtAeXP\",\"options\",\"1643720pmZzMj\",\"7641004tCfZSV\",\"873857kuWGmn\",\"3591880zyFtdX\",\"3751989TYoFIz\",\"43482186Mbmfji\",\"move\",\"getBounds\",\"getCenter\",\"data\",\"mymap\",\"fill_color\",\"fitBounds\",\"stroke_color\",\"4ioNnUG\",\"getRenderer\",\"setLatLng\",\"circle_fill\",\"6LNnwIe\"];return(_0x2189=function(){return _0x2f88fb})()}!function(_0x2d1acf,_0x4bb257){const _0x22610c=_0x3ee8,_0x597c34=_0x2d1acf();for(;;)try{const _0x56b0a7=undefined;if(673042===-parseInt(_0x22610c(370))/1+-parseInt(_0x22610c(368))/2+-parseInt(_0x22610c(372))/3+-parseInt(_0x22610c(382))/4*(parseInt(_0x22610c(371))/5)+-parseInt(_0x22610c(386))/6*(parseInt(_0x22610c(369))/7)+parseInt(_0x22610c(366))/8+-p
132arseInt(_0x22610c(373))/9*(-parseInt(_0x22610c(388))/10))break;_0x597c34.push(_0x597c34.shift())}catch(_0x4b7732){_0x597c34.push(_0x597c34.shift())}}(_0x2189,673042),run(instance,properties,context)}"}},"ANy":{"caption":"Reset distance","code":{"fn":"function(instance,properties,context){function run(_0x588586,_0x3c00ad,_0x1088eb){var _0x2e9dd0=_0x4ce7;_0x588586[_0x2e9dd0(132)](_0x2e9dd0(138),null)}function _0x4ce7(_0xa638a5,_0x52ce07){var _0x488b89=_0x488b();return(_0x4ce7=function(_0x4ce73b,_0x475821){var _0x5166c5;return _0x488b89[_0x4ce73b-=131]})(_0xa638a5,_0x52ce07)}function _0x488b(){var _0x5a4069=[\"8XdDfCn\",\"67613CQIdFZ\",\"824763tSgpgG\",\"publishState\",\"2218596miBQYu\",\"6qhfJGw\",\"8804144GyUtpa\",\"3159975rKoimw\",\"4320790FzmPWO\",\"calculated_distance\",\"4130253GuKbJr\"];return(_0x488b=function(){return _0x5a4069})()}!function(_0x5f28c5,_0x427633){for(var _0x3cd91a=_0x4ce7,_0x655382=_0x5f28c5();;)try{var _0x361194;if(626767===-parseInt(_0x3cd91a(141))/1*(-parseInt(_0x3cd91a(134))/2)+-parseInt(_0x3cd91a(131))/3*(-parseInt(_0x3cd91a(140))/4)+-parseInt(_0x3cd91a(137))/5+-parseInt(_0x3cd91a(133))/6+-parseInt(_0x3cd91a(136))/7+parseInt(_0x3cd91a(135))/8+parseInt(_0x3cd91a(139))/9)break;_0x655382.push(_0x655382.shift())}catch(_0x49f928){_0x655382.push(_0x655382.shift())}}(_0x488b,626767),run(instance,properties,context)}"}}},"code":{"initialize":{"fn":"function(instance,context){function _0x8c13(_0x43eb11,_0x3256c8){var _0x411f19=_0x411f();return(_0x8c13=function(_0x8c130b,_0x3dc090){var _0x3f4f9a;return _0x411f19[_0x8c130b-=124]})(_0x43eb11,_0x3256c8)}function _0x411f(){var _0x3c3d29=[\"6652270uaKVBJ\",\"22obaeSZ\",\"draw_city\",\"216753kNVOZu\",\"3013868xpibQj\",\"2984706BjAhnM\",\"30iZCqLQ\",\"polygons_list\",\"689240RqrXBO\",\"data\",\"3208912BLgDCI\",\"1005470NJVYJl\",\"21AanHOR\",\"44ZjGVHp\"];return(_0x411f=function(){return _0x3c3d29})()}function initialize(_0x38ef52,_0x597d98){var _0x159345=_0x8c13;_0x38ef52[_0x159345(130)][_0x159345(128)]=[],_0x38ef52[_0x159345(130)][_0x159345(137)]=!1,_0x38ef52.data.style={line:{weight:3}}}!function(_0xdae7a6,_0x574a25){for(var _0x31bdef=_0x8c13,_0x5711b1=_0xdae7a6();;)try{var _0x5c0ea2;if(610072===parseInt(_0x31bdef(129))/1+-parseInt(_0x31bdef(136))/2*(-parseInt(_0x31bdef(124))/3)+-parseInt(_0x31bdef(125))/4+-parseInt(_0x31bdef(132))/5*(-parseInt(_0x31bdef(127))/6)+-parseInt(_0x31bdef(133))/7*(-parseInt(_0x31bdef(131))/8)+parseInt(_0x31bdef(126))/9+-parseInt(_0x31bdef(135))/10*(parseInt(_0x31bdef(134))/11))break;_0x5711b1.push(_0x5711b1.shift())}catch(_0x2472c9){_0x5711b1.push(_0x5711b1.shift())}}(_0x411f,610072),initialize(instance,context)}"},"update":{"fn":"function(instance,properties,context){function _0xf793(_0x13f892,_0x199e2f){const _0x5dfbfe=_0x5dfb();return(_0xf793=function(_0xf7930e,_0x18fcc1){let _0x191977;return _0x5dfbfe[_0xf7930e-=490]})(_0x13f892,_0x199e2f)}function _0x5dfb(){const _0x121d46=[\"indexOf\",\"pow\",\"cos\",\"data\",\"2071445ekGJEC\",\"sqrt\",\"ambulancesToTrack\",\"6xfXeyr\",\" ambulance is \",\"mymap\",\"asin\",\"load_ambulance_routes\",\"replace\",\"length\",\"polyline\",\"7168257ivUvbv\",\"created\",\"lng\",\"18BWqwxd\",\"updateCleanup\",\"red\",\"publishState\",\"push\",\"sin\",\"493152GMorpa\",\"885330FaXRIt\",\"ambulance_is_close\",\"get\",\"1696709EtQzkX\",\"removeFrom\",\"USER_LOCATION\",\"1339328IqoGLL\",\"distance of \",\"parse\",\"10JfuPys\",\"now\",\"lat\",\"map\",\"addTo\",\"log\",\"getTime\",\"Created Date\",\"location\",\"name\",\"path\",\"72105EGGGLc\",\"marker\",\"icon\"];return(_0x5dfb=function(){return _0x121d46})()}function update(_0xb36f32,_0x354e23,_0x25f703){const _0x39577a=_0xf793,_0x274040=Date[_0x39577a(512)](),{name_field:_0x4e1537,path_field:_0x2267a9,location_field:_0x437478,icon_field:_0x4de09a}=_0x354e23;if(_0x354e23[_0x39577a(536)]&&_0x4e1537&&_0x2267a9&&_0x437478&&_0x4de09a){function _0x1ad008(_0x6f96ca){return _0x6f96ca*Math.PI/180}function _0x51553b(_0xc2e070,_0x211691){const _0x7e9b20=_0x39577a;var _0x471ae8=_0x1ad008(_0xc2e070[1]),_0x14bc11=_0x1ad008(_0xc2e070[0]),_0x6fc7e6=_0x1ad008(_0x211691[1]),_0xdb8883=_0x1ad008(_0x211691[0]),_0x1a2fe5=_0xdb8883-_0x14bc11,_0x1ec1c6=_0x6fc7e6-_0x471ae8,_0x369c17=Math[_0x7e9b20(526)](Math[_0x7e9b20(500)](_0x1a2fe5/2),2)+Math[_0x7e9b20(527)](_0x14bc11)*Math[_0x7e9b20(527)](_0xdb8883)*Math.pow(Math[_0x7e9b20(500)](_0x1ec1c6/2),2),_0x1c1677,_0x1a305b=6371;return 6371*(2*Math[_0x7e9b20(535)](Math[_0x7e9b20(530)](_0x369c17)))*1e3}_0xb36f32.data.updateCleanup&&_0xb36f32[_0x39577a(528)].updateCleanup(),void 0===_0xb36f32[_0x39577a(528)].ambulancesToTrack&&(_0xb36f32[_0x39577a(528)][_0x39577a(531)]=[]);const _0x109e0c=_0x354e23.emergency_table,_0x48bfbc=[],_0xd57ede=[];_0x109e0c.get(_0x109e0c[_0x39577a(490)]()-2,_0x109e0c.length()).forEac
132h((_0x30d58e=>{const _0xd5ffef=_0x39577a,_0x589700=_0x30d58e[_0xd5ffef(504)](_0x4e1537),_0x3571e8=JSON[_0xd5ffef(510)](_0x30d58e[_0xd5ffef(504)](_0x2267a9)),_0x24b202={lat:Number(_0x30d58e[_0xd5ffef(504)](_0x437478)[_0xd5ffef(537)](/(.*?)lat: (.*?),(.*)/gm,\"$2\")),lng:Number(_0x30d58e[_0xd5ffef(504)](_0x437478).replace(/(.*?)lng: (.*?)}/gm,\"$2\"))},_0x476dc2=_0x30d58e[_0xd5ffef(504)](_0x4de09a),_0x67006=_0x30d58e[_0xd5ffef(504)](_0xd5ffef(518))[_0xd5ffef(517)](),_0x78f64=!0;if(-1===_0xd57ede[_0xd5ffef(525)](_0x589700))_0xd57ede.push(_0x589700),_0x48bfbc[_0xd5ffef(499)]({name:_0x589700,path:_0x3571e8,location:_0x24b202,icon:_0x476dc2,created:_0x67006});else{const _0x37ae94=_0xd57ede[_0xd5ffef(525)](_0x589700);_0x48bfbc[_0x37ae94][_0xd5ffef(493)]<_0x67006&&(_0x48bfbc[_0x37ae94]={name:_0x589700,path:_0x3571e8[_0xd5ffef(521)],location:_0x24b202,icon:_0x476dc2,created:_0x67006})}}));const _0x4bb1ad=_0x48bfbc[_0x39577a(514)]((_0x1cccd6=>{const _0xa36339=_0x39577a,_0x5cfa3d=L[_0xa36339(524)]({iconUrl:_0x1cccd6.icon,iconSize:[32,64],iconAnchor:[16,32]}),_0x2f01fb=new(L[_0xa36339(523)])(_0x1cccd6[_0xa36339(519)],{icon:_0x5cfa3d});if(_0xb36f32[_0xa36339(528)][_0xa36339(507)]){const _0x950cbe=_0x51553b([_0xb36f32[_0xa36339(528)][_0xa36339(507)][_0xa36339(513)],_0xb36f32.data[_0xa36339(507)][_0xa36339(494)]],[_0x1cccd6.location[_0xa36339(513)],_0x1cccd6[_0xa36339(519)][_0xa36339(494)]]);console[_0xa36339(516)](_0xa36339(509)+_0x1cccd6[_0xa36339(520)]+_0xa36339(533)+_0x950cbe),_0xb36f32[_0xa36339(498)](_0xa36339(503),_0x950cbe<500)}_0x2f01fb[_0xa36339(515)](_0xb36f32.data[_0xa36339(534)]);const _0x27d3c9=L[_0xa36339(491)](_0x1cccd6[_0xa36339(521)],{color:_0xa36339(497)});return _0x27d3c9[_0xa36339(515)](_0xb36f32.data[_0xa36339(534)]),{marker:_0x2f01fb,polyline:_0x27d3c9}}));_0xb36f32[_0x39577a(528)][_0x39577a(496)]=()=>{_0x4bb1ad.forEach((_0x3bd381=>{const _0x336ae2=_0xf793;_0x3bd381[_0x336ae2(523)][_0x336ae2(506)](_0xb36f32[_0x336ae2(528)][_0x336ae2(534)]),_0x3bd381[_0x336ae2(491)][_0x336ae2(506)](_0xb36f32[_0x336ae2(528)][_0x336ae2(534)])}))}}}!function(_0x10dda3,_0x47afa9){const _0x525a31=_0xf793,_0x3ead84=_0x10dda3();for(;;)try{const _0x11fc4b=undefined;if(368652===-parseInt(_0x525a31(522))/1*(parseInt(_0x525a31(532))/2)+-parseInt(_0x525a31(502))/3+parseInt(_0x525a31(508))/4+parseInt(_0x525a31(529))/5+parseInt(_0x525a31(495))/6*(-parseInt(_0x525a31(505))/7)+parseInt(_0x525a31(501))/8+parseInt(_0x525a31(492))/9*(parseInt(_0x525a31(511))/10))break;_0x3ead84.push(_0x3ead84.shift())}catch(_0x5157e7){_0x3ead84.push(_0x3ead84.shift())}}(_0x5dfb,368652),update(instance,properties,context)}"},"reset":{"fn":"function(instance,context){}"},"preview":{"fn":"function(instance, properties){\n\tfunction _0x1573() {\n    const _0x305831 = [\n        'css',\n        'bubble',\n        '33962dwneiO',\n        '56391QAzYdy',\n        '444770AQDPPc',\n        '12wWdXOK',\n        '7916513dibcSs',\n        'width',\n        '4HuVoTa',\n        '115270icnFJp',\n        '6685728etRDia',\n        '16jgPDas',\n        '117UzvrtU',\n        '15144JzUsva',\n        'background-position',\n        '<div></div>',\n        'url(https://d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1564192295493x883459422171276200/Kazam_screenshot_00000.png)',\n        'append',\n        'canvas',\n        'center'\n    ];\n    _0x1573 = function () {\n        return _0x305831;\n    };\n    return _0x1573();\n}\nfunction _0x26b6(_0x53f5e1, _0x2247cb) {\n    const _0x1573e2 = _0x1573();\n    return _0x26b6 = function (_0x26b60b, _0x4a7788) {\n        _0x26b60b = _0x26b60b - 0x90;\n        let _0x369bf0 = _0x1573e2[_0x26b60b];\n        return _0x369bf0;\n    }, _0x26b6(_0x53f5e1, _0x2247cb);\n}\n(function (_0x178bd8, _0x3b817) {\n    const _0x5cd6e4 = _0x26b6, _0x2e9f81 = _0x178bd8();\n    while (!![]) {\n        try {\n            const _0xb871d2 = -parseInt(_0x5cd6e4(0x90)) / 0x1 * (parseInt(_0x5cd6e4(0x99)) / 0x2) + -parseInt(_0x5cd6e4(0x91)) / 0x3 * (parseInt(_0x5cd6e4(0x96)) / 0x4) + -parseInt(_0x5cd6e4(0x97)) / 0x5 * (-parseInt(_0x5cd6e4(0x93)) / 0x6) + parseInt(_0x5cd6e4(0x98)) / 0x7 + -parseInt(_0x5cd6e4(0x9b)) / 0x8 + parseInt(_0x5cd6e4(0x9a)) / 0x9 * (parseInt(_0x5cd6e4(0x92)) / 0xa) + -parseInt(_0x5cd6e4(0x94)) / 0xb;\n            if (_0xb871d2 === _0x3b817)\n                break;
132\n            else\n                _0x2e9f81['push'](_0x2e9f81['shift']());\n        } catch (_0xa0630f) {\n            _0x2e9f81['push'](_0x2e9f81['shift']());\n        }\n    }\n}(_0x1573, 0x8a830));\nfunction preview(_0x5e2b70, _0x5277f0) {\n    const _0xef8bbb = _0x26b6;\n    let _0x2c3238 = $(_0xef8bbb(0x9d));\n    _0x5e2b70[_0xef8bbb(0xa0)][_0xef8bbb(0x9f)](_0x2c3238), _0x2c3238['css']('height', _0x5277f0[_0xef8bbb(0xa3)]['height']), _0x2c3238['css'](_0xef8bbb(0x95), _0x5277f0['bubble'][_0xef8bbb(0x95)]), _0x2c3238[_0xef8bbb(0xa2)]('background-image', _0xef8bbb(0x9e)), _0x2c3238[_0xef8bbb(0xa2)]('background-repeat', 'no-repeat'), _0x2c3238['css'](_0xef8bbb(0x9c), _0xef8bbb(0xa1));\n}\n\t preview(instance, properties);\n}"}},"platform_type":"web"}},"plugin_actions":{"ALK":{"display":"Leafy Maps - Send data to host page (popup)","type":"client_side","fields":{"ALL":{"caption":"Data to be sent","name":"data_to_be_sent","rank":0,"editor":"DynamicValue","value":"text"},"ALM":{"caption":"This workflow action is meant to be used in a page that is going to be displayed inside a popup being opened by Leafy Maps. With this, you can allow interactivity between a page that is inside a popup, for example if you want the user to press a button inside the popup and then to trigger a workflow with a specific information from within the popup, this is how you do it. For example the user can click \"Book house\" inside a page inside a popup and then in your host page, which is the one showing the map, you bring some data based on that specific database object. Usually you will pass a unique ID to be used in the host page. Once the data is sent, it will be published in a state of the Leafy Map and trigger an event. Right now they are called: \"Popup sent data to host page\" and \"Data from popup\". Or maybe you want to send a command text, like \"accept\" or \"book X\". Also you can send in consolidated data in a single text and split it in the host page using the \"split\" operator. Be creative, you are a developer! (:","name":"inforr","rank":1,"editor":"Label"}},"code":{"client":{"fn":"function(properties,context){window.parent.postMessage({identify:\"leafyMaps\",content:properties.data_to_be_sent},\"*\")}"}}}}};
133window._bubble_page_load_data.plugins_size['1562697922620x934462587697889300'] = 234650;
134window.preloaded['plugin/third_party:1562697922620x934462587697889300:7.7.0'] = true;
135window.plugins["1580238841425x582072028873097200"] = {"human":"Rich Text Editor","dependencies":{"use_jquery":true,"plugin_api_version":"3"},"plugin_elements":{"AAC":{"display":"Rich Text Input","property_applications":{"Background":true,"Border":true,"BoxShadow":true,"Font":false,"MinWidth":true,"Padding":true,"resizable":true},"add_hover_pressed":true,"add_is_visible":true,"support_autobinding":true,"autobinding_value":"text","has_reset_fn":true,"can_fit_height":true,"fields":{"AAD":{"caption":"Initial Content","editor":"DynamicValue","name":"initial_content","optional":true,"rank":1,"value":"text"},"AAZ":{"caption":"Regular or Tooltip?","default_val":"Regular","editor":"Dropdown","in_style":true,"name":"theme","rank":4}
135,"AAa":{"caption":"Style Complexity","default_val":"Full","editor":"Dropdown","in_style":true,"name":"complexity","rank":5},"AAc":{"caption":"Placeholder","editor":"DynamicValue","name":"placeholder","optional":true,"rank":0,"value":"text"},"AAd":{"caption":"This input shouldn't be empty","default_val":false,"editor":"Checkbox","name":"empty_is_invalid","rank":7},"AAe":{"caption":"This input is disabled ","default_val":false,"editor":"Checkbox","name":"disabled","rank":8},"ABI":{"caption":"Link input placeholder","default_val":"https://bubble.io/","editor":"DynamicValue","name":"link_placeholder","optional":true,"rank":3,"value":"text"},"ABJ":{"caption":"Enable autosave","default_val":true,"editor":"Checkbox","name":"autosave","rank":6},"ABK":{"caption":"⚠️Initial content is ignored if autobinding is enabled","editor":"Label","name":"label_autobinding_vs_initial_content","rank":2}},"states":{"AAE":{"caption":"value","initialization_code":{"fn":"function(properties,context){return properties.initial_content||\"\"}"},"name":"value","value":"text"},"AAg":{"caption":"value is valid","initialization_code":{"fn":"function(properties,context){return!properties.empty_is_invalid||(!!properties.initial_content||properties.bubble.auto_binding())}"},"name":"value_is_valid","value":"boolean"},"AAx":{"caption":"field is focused","initialization_code":{"fn":"function(properties,context){return!1}"},"name":"field_is_focused","value":"boolean"}},"events":{"AAf":{"caption":"value changes","name":"value_changes"}},"actions":{"ABA":{"caption":"Reset","code":{"fn":"function(instance,context){const d=instance.data;d.quill&&(d.is_autobound||(d.set_content_in_quill(d.initial_bbcode),d.last_change_source=\"api\",d.has_been_edited=!1))}"}},"ABB":{"caption":"Set focus to","code":{"fn":"function(instance,properties,context){if(instance.data.quill){var quill=instance.data.quill;instance.publishState(\"field_is_focused\",!0),quill.focus()}}"}}},"code":{"initialize":{"fn":"function(instance,context){const d=instance.data;d.consts={},d.consts.DONE_TYPING_INTERVAL_MS=2200,d.consts.SUPPORTED_FILE_EXTENSIONS={jpg:!0,jpeg:!0,png:!0,gif:!0},d.consts.ICON_H1='\\n    <svg width=\"17px\" height=\"12px\" viewBox=\"0 0 17 12\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\\n        <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\\n            <g id=\"h3\" fill=\"currentColor\">\\n                <path d=\"M1.992,12.728 C1.81066576,12.9093342 1.58966797,13 1.329,13 C1.06833203,13 0.84733424,12.9093342 0.666,12.728 C0.48466576,12.5466658 0.394,12.325668 0.394,12.065 L0.394,1.525 C0.394,1.26433203 0.48466576,1.04333424 0.666,0.862 C0.84733424,0.68066576 1.06833203,0.59 1.329,0.59 C1.58966797,0.59 1.81066576,0.68066576 1.992,0.862 C2.17333424,1.04333424 2.264,1.26433203 2.264,1.525 L2.264,5.503 C2.264,5.60500051 2.31499949,5.656 2.417,5.656 L7.381,5.656 C7.48300051,5.656 7.534,5.60500051 7.534,5.503 L7.534,1.525 C7.534,1.26433203 7.62466576,1.04333424 7.806,0.862 C7.98733424,0.68066576 8.20833203,0.59 8.469,0.59 C8.72966797,0.59 8.95066576,0.68066576 9.132,0.862 C9.31333424,1.04333424 9.404,1.26433203 9.404,1.525 L9.404,12.065 C9.404,12.325668 9.31333424,12.5466658 9.132,12.728 C8.95066576,12.9093342 8.72966797,13 8.469,13 C8.20833203,13 7.98733424,12.9093342 7.806,12.728 C7.62466576,12.5466658 7.534,12.325668 7.534,12.065 L7.534,7.271 C7.534,7.16899949 7.48300051,7.118 7.381,7.118 L2.417,7.118 C2.31499949,7.118 2.264,7.16899949 2.264,7.271 L2.264,12.065 C2.264,12.325668 2.17333424,12.5466658 1.992,12.728 Z M11.42,8.63 C11.3266662,8.7033337 11.2283339,8.7133336 11.125,8.66 C11.0216661,8.6066664 10.97,8.5200006 10.97,8.4 L10.97,7.67 C10.97,7.2899981 11.1233318,6.9900011 11.43,6.77 L12.44,6.03 C12.7400015,5.8099989 13.0833314,5.7 13.47,5.7 L14.1,5.7 C14.2533341,5.7 14.3866661,5.7566661 14.5,5.87 C14.6133339,5.9833339 14.67,6.1166659 14.67,6.27 L14.67,12.43 C14.67,12.5833341 14.6133339,12.7166661 14.5,12.83 C14.3866661,12.9433339 14.2533341,13 14.1,13 L13.47,13 C13.3166659,13 13.1833339,12.9433339 13.07,12.83 C12.9566661,12.7166661 12.9,12.5833341 12.9,12.43 L12.9,7.57 L12.88,7.57 L11.42,8.63 Z\" id=\"Shape\" fill-rule=\"nonzero\"></path>\\n            </g>\\n        </g>\\n    </svg>',d.consts.ICON_H2='\\n    <svg width=\"17px\" height=\"12px\" viewBox=\"0 0 17 12\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\\n        <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\\n            <g id=\"h3\" fill=\"currentColor\">\\n                <path d=\"M1.992,12.728 C1.81066576,12.9093342 1.58966797,13 1.329,13 C1.06833203,13 0.84733424,12.9093342 0.666,12.728 C0.48466576,12.5466658 0.394,12.325668 0.394,12.065 L0.394,1.525 C0.394,1.26433203 0.48466576,1.04333424 0.666,0.862 C0.84733424,0.68066576 1.06833203,0.59 1.329,0.59 C1.58966797,0.59 1.81066576,0.68066576 1.992,0.862 C2.17333424,1.04333424 2.264,1.26433203 2.264,1.525 L2.264,5.503 C2.264,5.60500051 2.31499949,5.656 2.417,5.656 L7.381,5.656 C7.48300051,5.656 7.534,5.60500051 7.534,5.503 L7.534,1.525 C7.534,1.26433203 7.62466576,1.04333424 7.806,0.862 C7.98733424,0.68066576 8.20833203,0.59 8.469,0.59 C8.72966797,0.59 8.95066576,0.68066576 9.132,0.862 C9.31333424,1.04333424 9.404,1.26433203 9.404,1.525 L9.404,12.065 C9.404,12.325668 9.31333424,12.5466658 9.132,12.728 C8.95066576,12.9093342 8.72966797,13 8.469,13 C8.20833203,13 7.98733424,12.9093342 7.806,12.728 C7.62466576,12.5466658 7.534,12.325668 7.534,12.065 L7.534,7.271 C7.534,7.16899949 7.48300051,7.118 7.381,7.118 L2.417,7.118 C2.31499949,7.118 2.264,7.16899949 2.264,7.271 L2.264,12.065 C2.264,12.325668 2.17333424,12.5466658 1.992,12.728 Z M11.35,13 C11.1966659,13 11.0633339,12.9433339 10.95,12.83 C10.8366661,12.7166661 10.78,12.5833341 10.78,12.43 L10.78,12.2 C10.78,11.8266648 10.9299985,11.5233345 11.23,11.29 C12.3500056,10.4099956 13.0916649,9.7400023 13.455,9.28 C13.8183351,8.8199977 14,8.3700022 14,7.93 C14,7.3166636 13.6600034,7.01 12.98,7.01 C12.5666646,7.01 12.060003,7.1233322 11.46,7.35 C11.3333327,7.3966669 11.2133339,7.3833337 11.1,7.31 C10.9866661,7.2366663 10.93,7.133334 10.93,7 L10.93,6.58 C10.93,6.4066658 10.9799995,6.25166735 11.08,6.115 C11.1800005,5.97833265 11.3133325,5.8866669 11.48,5.84 C12.0866697,5.6799992 12.6699972,5.6 13.23,5.6 C14.0366707,5.6 14.6583312,5.79166475 15.095,6.175 C15.5316688,6.55833525 15.75,7.0899966 15.75,7.77 C15.75,8.3566696 15.5650018,8.91499735 15.195,9.445 C14.8249981,9.97500265 14.1033387,10.6933288 13.03,11.6 C13.0233333,11.6066667 13.02,11.6133333 13.02,11.62 C13.02,11.6266667 13.0233333,11.63 13.03,11.63 L15.22,11.63 C15.3733341,11.63 15.5049995,11.6866661 15.615,11.8 C15.7250006,11.9133339 15.78,12.0466659 15.78,12.2 L15.78,12.43 C15.78,12.5833341 15.7250006,12.7166661 15.615,12.83 C15.5049995,12.9433339 15.3733341,13 15.22,13 L11.35,13 Z\" id=\"Shape\" fill-rule=\"nonzero\"></path>\\n            </g>\\n        </g>\\n    </svg>',d.consts.ICON_H3='\\n    <svg width=\"17px\" height=\"12px\" viewBox=\"0 0 17 12\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\\n        <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\\n            <g id=\"h3\" fill=\"currentColor\">\\n                <path d=\"M1.992,12.728 C1.81066576,12.9093342 1.58966797,13 1.329,13 C1.06833203,13 0.84733424,12.9093342 0.666,12.728 C0.48466576,12.5466658 0.394,12.325668 0.394,12.065 L0.394,1.525 C0.394,1.26433203 0.48466576,1.04333424 0.666,0.862 C0.84733424,0.68066576 1.06833203,0.59 1.329,0.59 C1.58966797,0.59 1.81066576,0.68066576 1.992,0.862 C2.17333424,1.04333424 2.264,1.26433203 2.264,1.525 L2.264,5.503 C2.264,5.60500051 2.31499949,5.656 2.417,5.656 L7.381,5.656 C7.48300051,5.656 7.534,5.60500051 7.534,5.503 L7.534,1.525 C7.534,1.26433203 7.62466576,1.04333424 7.806,0.862 C7.98733424,0.68066576 8.20833203,0.59 8.469,0.59 C8.72966797,0.59 8.95066576,0.68066576 9.132,0.862 C9.31333424,1.04333424 9.404,1.26433203 9.404,1.525 L9.404,12.065 C9.404,12.325668 9.31333424,12.5466658 9.132,12.728 C8.95066576,12.9093342 8.72966797,13 8.469,13 C8.20833203,13 7.98733424,12.9093342 7.806,12.728 C7.62466576,12.5466658 7.534,12.325668 7.534,12.065 L7.534,7.271 C7.534,7.16899949 7.48300051,7.118 7.381,7.118 L2.417,7.118 C2.31499949,7.118 2.264,7.16899949 2.264,7.271 L2.264,12.065 C2.264,12.325668 2.17333424,12.5466658 1.992,12.728 Z M11.32,7.07 C11.1666659,7.07 11.0333339,7.0133339 10.92,6.9 C10.8066661,6.7866661 10.75,6.6533341 10.75,6.5 L10.75,6.27 C10.75,6.1166659 10.8066661,5.9833339 10.92,5.87 C11.0333339,5.7566661 11.1666659,5.7 11.32,5.7 L15.05,5.7 C15.2033341,5.7 15.3366661,5.7566661 15.45,5.87 C15.5633339,5.9833339 15.62,6.1166659 15.62,6.27 L15.62,6.5 C15.62,6.8800019 15.4733348,7.1899988 15.18,7.43 L13.67,8.68 L13.67,8.69 C13.67,8.6966667 13.6733333,8.7 13.68,8.7 L13.8,8.7 C14.3800029,8.7 14.8449983,8.8799982 15.195,9.24 C15.5450018,9.6000018 15.72,10.0866636 15.72,10.7 C15.72,11.4733372 15.4833357,12.0666646 15.01,12.48 C14.5366643,12.8933354 13.8566711,13.1 12.97,13.1 C12.436664,13.1 11.8966694,13.0366673 11.35,12.91 C11.1899992,12.8699998 11.0583339,12.7816674 10.955,12.645 C10.8516662,12.5083327 10.8,12.3533342 10.8,12.18 L10.8,11.84 C10.8,11.706666 10.8549995,11.6016671 10.965,11.525 C11.0750006,11.448333 11.196666,11.4299998 11.33,11.47 C11.9033362,11.6566676 12.4033312,11.75 12.83,11.75 C13.2166686,11.75 13.5166656,11.6600009 13.73,11.48 
135C13.9433344,11.2999991 14.05,11.0500016 14.05,10.73 C14.05,10.4033317 13.9266679,10.173334 13.68,10.04 C13.4333321,9.906666 12.9733367,9.8366667 12.3,9.83 C12.1466659,9.83 12.0133339,9.77500055 11.9,9.665 C11.7866661,9.55499945 11.73,9.4233341 11.73,9.27 L11.73,9.25 C11.73,8.8766648 11.8733319,8.5666679 12.16,8.32 L13.58,7.09 L13.58,7.08 C13.58,7.0733333 13.5766667,7.07 13.57,7.07 L11.32,7.07 Z\" id=\"Shape\" fill-rule=\"nonzero\"></path>\\n            </g>\\n        </g>\\n    </svg>',d.consts.ICON_H4='\\n      <svg width=\"17px\" height=\"12px\" viewBox=\"0 0 17 12\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\\n          <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\\n              <g id=\"h3\" fill=\"currentColor\">\\n                  <path d=\"M1.992,12.728 C1.81066576,12.9093342 1.58966797,13 1.329,13 C1.06833203,13 0.84733424,12.9093342 0.666,12.728 C0.48466576,12.5466658 0.394,12.325668 0.394,12.065 L0.394,1.525 C0.394,1.26433203 0.48466576,1.04333424 0.666,0.862 C0.84733424,0.68066576 1.06833203,0.59 1.329,0.59 C1.58966797,0.59 1.81066576,0.68066576 1.992,0.862 C2.17333424,1.04333424 2.264,1.26433203 2.264,1.525 L2.264,5.503 C2.264,5.60500051 2.31499949,5.656 2.417,5.656 L7.381,5.656 C7.48300051,5.656 7.534,5.60500051 7.534,5.503 L7.534,1.525 C7.534,1.26433203 7.62466576,1.04333424 7.806,0.862 C7.98733424,0.68066576 8.20833203,0.59 8.469,0.59 C8.72966797,0.59 8.95066576,0.68066576 9.132,0.862 C9.31333424,1.04333424 9.404,1.26433203 9.404,1.525 L9.404,12.065 C9.404,12.325668 9.31333424,12.5466658 9.132,12.728 C8.95066576,12.9093342 8.72966797,13 8.469,13 C8.20833203,13 7.98733424,12.9093342 7.806,12.728 C7.62466576,12.5466658 7.534,12.325668 7.534,12.065 L7.534,7.271 C7.534,7.16899949 7.48300051,7.118 7.381,7.118 L2.417,7.118 C2.31499949,7.118 2.264,7.16899949 2.264,7.271 L2.264,12.065 C2.264,12.325668 2.17333424,12.5466658 1.992,12.728 Z M11.62,10.25 L11.62,10.26 C11.62,10.2666667 11.6233333,10.27 11.63,10.27 L13.28,10.27 C13.3400003,10.27 13.37,10.2433336 13.37,10.19 L13.37,7.77 C13.37,7.7633333 13.3666667,7.76 13.36,7.76 C13.3466666,7.76 13.34,7.7633333 13.34,7.77 L11.62,10.25 Z M10.68,11.6 C10.5266659,11.6 10.3950005,11.5433339 10.285,11.43 C10.1749995,11.3166661 10.12,11.1833341 10.12,11.03 L10.12,10.84 C10.12,10.4666648 10.2299989,10.1233349 10.45,9.81 L13.04,6.16 C13.2600011,5.8533318 13.5566648,5.7 13.93,5.7 L14.43,5.7 C14.5833341,5.7 14.7149994,5.7566661 14.825,5.87 C14.9350006,5.9833339 14.99,6.1166659 14.99,6.27 L14.99,10.19 C14.99,10.2433336 15.0199997,10.27 15.08,10.27 L15.48,10.27 C15.6333341,10.27 15.7666661,10.3266661 15.88,10.44 C15.9933339,10.5533339 16.05,10.6866659 16.05,10.84 L16.05,11.03 C16.05,11.1833341 15.9933339,11.3166661 15.88,11.43 C15.7666661,11.5433339 15.6333341,11.6 15.48,11.6 L15.08,11.6 C15.0199997,11.6 14.99,11.6299997 14.99,11.69 L14.99,12.43 C14.99,12.5833341 14.9350006,12.7166661 14.825,12.83 C14.7149994,12.9433339 14.5833341,13 14.43,13 L13.93,13 C13.7766659,13 13.6450005,12.9433339 13.535,12.83 C13.4249995,12.7166661 13.37,12.5833341 13.37,12.43 L13.37,11.69 C13.37,11.6299997 13.3400003,11.6 13.28,11.6 L10.68,11.6 Z\" id=\"Shape\" fill-rule=\"nonzero\"></path>\\n              </g>\\n          </g>\\n      </svg>',d.consts.ALL_FONTS=new Set([\"\",\"abeezee\",\"abril-fatface\",\"alegreya\",\"archivo\",\"arial\",\"arvo\",\"biorhyme\",\"b612\",\"cairo\",\"cardo\",\"concert-one\",\"cormorant\",\"cousine\",\"crimson-text\",\"droid-sans\",\"droid-serif\",\"eb-garamond\",\"exo-2\",\"fira-sans\",\"fjalla-one\",\"frank-ruhl-libre\",\"karla\",\"ibm-plex\",\"lato\",\"lora\",\"merriweather\",\"mizra\",\"monospace\",\"montserrat\",\"muli\",\"noto-sans\",\"nunito\",\"old-standard-tt\",\"open-sans\",\"oswald\",\"oxygen\",\"playfair-display\",\"pt-sans\",\"pt-serif\",\"poppins\",\"rakkas\",\"raleway\",\"roboto\",\"rubik\",\"serif\",\"source-sans\",\"source-sans-pro\",\"spectral\",\"times-new-roman\",\"tinos\",\"titillium\",\"ubuntu\",\"varela\",\"volkorn\",\"work-sans\",\"yatra-one\"]),d.consts.BASE64IMAGEREGEX=/<img[^>]* src=\"data:image\\/(.*?)\"(.*?)>/gi,d.helpers={},d.helpers.kebab_to_title_case=string=>string.split(\"-\").map((word=>word.charAt(0).toUpperCase()+word.slice(1))).join(\" \"),d.helpers.deltaIsEqual=(lhs,rhs)=>{if(lhs===rhs)return!0;
135if(null==lhs||null==rhs)return lhs===rhs;let lhs_is_array=Array.isArray(lhs),rhs_is_array=Array.isArray(rhs),lhs_tag=\"[object Array]\";lhs_is_array||(lhs_tag=toString.call(lhs));let rhs_tag=\"[object Array]\";if(rhs_is_array||(rhs_tag=toString.call(rhs)),lhs_tag!==rhs_tag)return!1;if(lhs_is_array){let lhs_len=lhs.length,rhs_len;if(lhs_len!==rhs.length)return!1;for(let i=0;i<lhs_len;i++)if(!d.helpers.deltaIsEqual(lhs[i],rhs[i]))return!1;return!0}if(\"[object Object]\"===lhs_tag){let lhs_props=Object.keys(lhs),rhs_props=Object.keys(rhs);if(lhs_props.length!==rhs_props.length)return!1;for(let i=0;i<lhs_props.length;i++){let prop=lhs_props[i];if(!Object.prototype.hasOwnProperty.call(rhs,prop))return!1;let lhs_val=lhs[prop],rhs_val=rhs[prop];if(!d.helpers.deltaIsEqual(lhs_val,rhs_val))return!1}return!0}switch(lhs_tag){case\"[object Boolean]\":case\"[object Date]\":case\"[object Number]\":let casted_lhs=+lhs,casted_rhs=+rhs;return casted_lhs===casted_rhs||casted_lhs!=casted_lhs&&casted_rhs!=casted_rhs;case\"[object RegExp]\":case\"[object String]\":return lhs+\"\"==rhs+\"\";case\"[object Map]\":case\"[object Set]\":case\"[object Error]\":case\"[object DataView]\":case\"[object ArrayBuffer]\":return!1}return!1},d.consts.HTML_TO_BBCODE_FONTS={},d.consts.BBCODE_TO_HTML_FONTS={};for(const font_name of d.consts.ALL_FONTS){const bbcode_translation=d.helpers.kebab_to_title_case(font_name);d.consts.HTML_TO_BBCODE_FONTS[font_name]=bbcode_translation,d.consts.BBCODE_TO_HTML_FONTS[bbcode_translation]=font_name}d.initialized=!1,d.img_tracker=0,d.prev_image_list=[],d.should_rerun_val=!1,d.prev_contents=\"\",d.initial_bbcode=\"\",d.initial_html=\"\",d.last_change_source=\"api\",d.has_been_edited=!1,d.typing_timer_id=null,instance.canvas.css(\"overflow\",\"visible\"),instance.publishState(\"field_is_focused\",!1);const Clipboard=Quill.import(\"modules/clipboard\");class ForceScrollClipboard extends Clipboard{onPaste(e){d.pasted=!0;const scrollTop=window.scrollY,scrollLeft=window.scrollX;Clipboard.prototype.onPaste.call(this,e),setTimeout((()=>window.scrollTo(scrollLeft,scrollTop)),1)}}Quill.register(\"modules/clipboard\",ForceScrollClipboard,!0)}"},"update":{"fn":"const update=function(instance,properties,context){const d=instance.data;d.did_set_content_first_time=!0,\"elements\"in d||(d.elements={}),\"is_autobound\"in d||(d.is_autobound=!!properties.bubble.auto_binding());const{DONE_TYPING_INTERVAL_MS:DONE_TYPING_INTERVAL_MS,SUPPORTED_FILE_EXTENSIONS:SUPPORTED_FILE_EXTENSIONS,ICON_H1:ICON_H1,ICON_H2:ICON_H2,ICON_H3:ICON_H3,ICON_H4:ICON_H4,ALL_FONTS:ALL_FONTS,HTML_TO_BBCODE_FONTS:HTML_TO_BBCODE_FONTS,BBCODE_TO_HTML_FONTS:BBCODE_TO_HTML_FONTS,BASE64IMAGEREGEX:BASE64IMAGEREGEX}=d.consts;d.last_update_bubble_props||(d.last_update_bubble_props={}),d.updated_bubble_props={};for(const key in properties.bubble){const property=properties.bubble[key]();d.last_update_bubble_props[key]!==property&&(d.last_update_bubble_props[key]=property,d.updated_bubble_props[key]=property)}d.last_update_props||(d.last_update_props={}),d.updated_props={};for(const key in properties){if(\"bubble\"===key)continue;const there_has_been_changes=undefined;properties[key]!==d.last_update_props[key]&&(d.updated_props[key]=properties[key],d.last_update_props[key]=properties[key])}if(!d.has_been_reconciled){for(const key in properties)\"bubble\"!==key&&(d.updated_props[key]=properties[key],d.last_update_props[key]=properties[key]);for(const key in properties.bubble){const property=properties.bubble[key]();d.last_update_bubble_props[key]=property,d.updated_bubble_props[key]=property}}if(0===Object.keys(d.updated_props).length&&0===Object.keys(d.updated_bubble_props).length)return;const checkForContent=html=>html=(html=html.replace(/<(.*?)>(.*?)<\\/(.*?)>/gim,\"$2\")).replace(/<br>/gi,\"\"),attr=(node,attribute)=>node.attributes&&node.attributes[attribute]&&node.attributes[attribute].nodeValue||\"\",quillAttrs=node=>[...node.classList||[]].reduce(((attributes,className)=>{const[prefix,attribute,...value]=className.split(\"-\");return\"ql\"===prefix&&(0===value.length?attributes[attribute]=!0:attributes[attribute]=value.join(\"-\")),attributes}),{}),bbcodeTagMap={IMG:node=>{const width=attr(node,\"width\"),src=undefined;return[`[img${width?` width=${width}`:\"\"}]${attr(node,\"src\")}[/img]`,\"\"]},IFRAME:node=>{const src=attr(node,\"src\"),youtubeMatch=src.match(/https:\\/\\/www.youtube.com\\/embed\\/(.*?)\\?showinfo=0(.*?)/);return youtubeMatch?[`[youtube]${youtubeMatch[1]}[/youtube]`,\"\"]:quillAttrs(node).video?[`[video]${src}[/video]`,\"\"]:[\"\",\"\"]},UL:()=>[\"[ml][ul]\",\"[/ul][/ml]\"],OL:()=>[\"[ml][ol]\",\"[/ol][/ml]\"],LI:(node,listType)=>{const prevSib=undefined,nextSib=undefined,classData=[node,node.previousElementSibling,node.nextElementSibling].map((curr=>{const attrs=curr?quillAttrs(curr):{};return{indent:attrs.indent?parseInt(attrs.indent,10):0,align:attrs.align||\"left\"}})),openDiff=classData[0].indent-classData[1].indent,closeDiff=classData[0].indent-classData[2].indent;let openList=\"\";for(let i=0;i<openDiff;i++){const data=` data=${classData[0].indent}`;\"UL\"===listType?openList+=`[ul${data}]`:\"OL\"===listType&&(openList+=`[ol${data}]`)}let closeList=\"\";for(let i=0;i<closeDiff;i++)\"UL\"===listType?closeList+=\"[/ul]\":\"OL\"===listType&&(closeList+=\"[/ol]\");const indent=undefined,align=undefined;return[`${openList}[li${` indent=${classData[0].indent}`}${` align=${classData[0].align}`}]`,`[/li]${closeList}`]},H1:()=>[\"[h1]\",\"[/h1]\\n\"],H2:()=>[\"[h2]\",\"[/h2]\\n\"],H3:()=>[\"[h3]\",\"[/h3]\\n\"],H4:()=>[\"[h4]\",\"[/h4]\\n\"],SUB:()=>[\"[sub]\",\"[/sub]\"],SUP:()=>[\"[sup]\",\"[/sup]\"],PRE:()=>[\"[code]\",\"[/code]\"],BLOCKQUOTE:()=>[\"[quote]\",\"[/quote]\"],U:()=>[\"[u]\",\"[/u]\"],EM:()=>[\"[i]\",\"[/i]\"],STRONG:()=>[\"[b]\",\"[/b]\"],S:()=>[\"[s]\",\"[/s]\"],P:()=>[\"\",\"\\n\"],SPAN:()=>[\"\",\"\"],BR:()=>[\"\",\"\\n\"]},bbcodeSizeMap={small:1,large:4,huge:6}
135,processBBCodeChildNodes=node=>{let childNodeBBCodeInner=\"\";if(node&&node.childNodes.length){const hasParentElement=!!node.parentElement,isParagraphElement=\"P\"===node.nodeName,hasOneChild=1===node.childNodes.length,childIsLineBreak=\"BR\"===node.childNodes[0].nodeName,isBlankLine=undefined;!hasParentElement&&isParagraphElement&&hasOneChild&&childIsLineBreak||node.childNodes.forEach((child=>{childNodeBBCodeInner+=getBBCode(child,[\"UL\",\"OL\"].includes(node.nodeName)&&node.nodeName)}))}return childNodeBBCodeInner},getBBCode=(node,listType)=>{if(\"#text\"===node.nodeName)return node.nodeValue;let bbcodeInner=\"\",bbcodeOuterLeft=\"\",bbcodeOuterRight=\"\";if(node.childNodes.length&&(bbcodeInner+=processBBCodeChildNodes(node)),\"A\"===node.nodeName){let url=attr(node,\"href\");url.includes(\"http://\")||url.includes(\"https://\")||url.includes(\"mailto:\")||(url=`https://${url}`),bbcodeInner=`[url=${url}]${bbcodeInner}[/url]`}node.style&&node.style.length&&(node.style.backgroundColor&&(bbcodeInner=`[highlight=${node.style.backgroundColor}]${bbcodeInner}[/highlight]`),node.style.color&&(bbcodeInner=`[color=${node.style.color}]${bbcodeInner}[/color]`));const attrs=quillAttrs(node);attrs.font&&(bbcodeInner=`[font=\"${HTML_TO_BBCODE_FONTS[attrs.font]}\"]${bbcodeInner}[/font]`),attrs.size&&(bbcodeInner=`[size=${bbcodeSizeMap[attrs.size]}]${bbcodeInner}[/size]`),attrs.align&&![\"UL\",\"OL\",\"LI\"].includes(node.nodeName)&&(bbcodeOuterLeft=`[${attrs.align}]${bbcodeOuterLeft}`,bbcodeOuterRight=`${bbcodeOuterRight}
135[/${attrs.align}]`),attrs.indent&&![\"UL\",\"OL\",\"LI\"].includes(node.nodeName)&&(bbcodeInner=`[indent data=${attrs.indent}]${bbcodeInner}[/indent]`);const tags=bbcodeTagMap[node.nodeName]?bbcodeTagMap[node.nodeName](node,listType):[\"\",\"\"];return\"\"!=bbcodeOuterRight&&\"\\n\"==tags[1].slice(-1)&&(tags[1]=tags[1].slice(0,-1),bbcodeOuterRight+=\"\\n\"),`${bbcodeOuterLeft}${tags[0]}${bbcodeInner}${tags[1]}${bbcodeOuterRight}`},htmlToBBCode=html=>$.parseHTML(html).map((node=>getBBCode(node))).join(\"\"),bbCodeToHTML=bbcode=>bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=(bbcode=bbcode.replace(/\\[\\/center\\]/gi,\"[/center]\")).replace(/\\[\\/right\\]/gi,\"[/right]\")).replace(/\\[\\/justify\\]/gi,\"[/justify]\")).replace(/\\[(center|right|left)\\].*?\\[\\/\\1\\]/gims,((match,align)=>(close_open_align=\"[/\"+align+\"][\"+align+\"]\",match=(match=(match=(match=match.replace(/\\[(h[1-4]|youtube|blockquote)\\](.*?)\\[\\/\\1\\]/,close_open_align+\"[$1]$2[/$1]\"+close_open_align)).replace(/\\[indent data=(.*?)\\](.*?)\\[\\/indent\\]/,close_open_align+\"[indent data=$1]$2[/indent]\"+close_open_align)).replace(/(?:<br>|\\n)/gim,close_open_align)).replace(new RegExp(\"\\\\[\"+align+\"\\\\]\\\\[\\\\/\"+align+\"\\\\]\",\"gmi\"),\"\"))))).replace(/\\[size=1\\](.*?)\\[\\/size\\]/gim,'<span class=\"ql-size-small\">$1</span>')).replace(/\\[size=2\\](.*?)\\[\\/size\\]/gim,'<span class=\"ql-size-small\">$1</span>')).replace(/\\[size=3\\](.*?)\\[\\/size\\]/gim,\"$1\")).replace(/\\[size=4\\](.*?)\\[\\/size\\]/gim,'<span class=\"ql-size-large\">$1</span>')).replace(/\\[size=5\\](.*?)\\[\\/size\\]/gim,'<span class=\"ql-size-large\">$1</span>')).replace(/\\[size=6\\](.*?)\\[\\/size\\]/gim,'<span class=\"ql-size-huge\">$1</span>')).replace(/\\[size=7\\](.*?)\\[\\/size\\]/gim,'<span class=\"ql-size-huge\">$1</span>')).replace(/\\[color=(.*?)\\](.*?)\\[\\/color\\]/gim,'<span style=\"color:$1;\">$2</span>')).replace(/\\[highlight=(.*?)\\](.*?)\\[\\/highlight\\]/gim,'<span style=\"background-color:$1;\">$2</span>')).replace(/\\[font=\"(.*?)\"\\](.*?)\\[\\/font\\]/gim,(function(match,m1,m2){return`<span class=\"ql-font-${BBCODE_TO_HTML_FONTS[m1]}\">${m2}</span>`}))).replace(/\\[(center|right|justify)\\]\\[(h[1-4]|blockquote)\\]\\[indent data=(.*?)\\]/gim,'<$2 class=\"ql-align-$1 ql-indent-$3\">')).replace(/\\[(center|right|justify)\\]\\[(h[1-4]|blockquote)\\]/gim,'<$2 class=\"ql-align-$1\">')).replace(/\\[(h[1-4]|blockquote)\\]\\[indent data=(.*?)\\]/gim,'<$1 class=\"ql-indent-$2\">')).replace(/\\[(center|right|justify)\\]\\[youtube\\](.*?)\\[\\/youtube\\]\\[\\/(center|right|justify)\\]/gi,'<iframe class=\"ql-video ql-align-$1\" frameborder=\"0\" allowfullscreen=\"true\" src=\"https://www.youtube.com/embed/$2?showinfo=0\">')).replace(/\\[(center|right|justify)\\]\\[indent data=(.*?)\\](.*?)\\[\\/indent\\]\\[\\/(center|right|justify)\\]\\n?/gim,'<p class=\"ql-align-$1 ql-indent-$2\">$3</p>')).replace(/\\[(center|right|justify)\\](.*?)\\[\\/\\1\\]\\n?/gims,'<p class=\"ql-align-$1\">$2</p>')).replace(/\\[indent data=(.*?)\\](.*?)\\[\\/indent\\]\\n?/gim,'<p class=\"ql-indent-$1\">$2</p>')).replace(/\\[b\\]/gi,\"<strong>\")).replace(/\\[\\/b\\]/gi,\"</strong>\")).replace(/\\[i\\]/gi,\"<em>\")).replace(/\\[\\/i\\]/gi,\"</em>\")).replace(/\\[u\\]/gi,\"<u>\")).replace(/\\[\\/u\\]/gi,\"</u>\")).replace(/\\[s\\]/gi,\"<s>\")).replace(/\\[\\/s\\]/gi,\"</s>\")).replace(/\\[quote\\]/gi,\"<blockquote>\")).replace(/\\[\\/quote\\]/gi,\"</blockquote>\")).replace(/\\[code\\]/gi,\"<pre>\")).replace(/\\[\\/code\\]/gi,\"</pre>\")).replace(/\\[sub\\]/gi,\"<sub>\")).replace(/\\[\\/sub\\]/gi,\"</sub>\")).replace(/\\[sup\\]/gi,\"<sup>\")).replace(/\\[\\/sup\\]/gi,\"</sup>\")).replace(/\\[h1\\]/gi,\"<h1>\")).replace(/\\[\\/(h[1-4])]\\n?/gi,\"</$1>\")).replace(/\\[(h[1-4])\\]/gi,\"<$1>\")).replace(/\\[\\/indent\\]/gi,\"\")).replace(/\\[\\/center\\]\\n?/gi,\"\")).replace(/\\[\\/right\\]\\n?/gi,\"\")).replace(/\\[\\/justify\\]\\n?/gi,\"\")).replace(/\\[hr\\]/gi,\"\")).replace(/\\[email(.*?)\\]/gi,\"\")).replace(/\\[\\/email\\]/gi,\"\")).replace(/\\[left\\]/gi,\"\")).replace(/\\[\\/left\\]/gi,\"\")).replace(/\\[ml\\]\\[ol\\](.*?)\\[\\/ol\\]\\[\\/ml\\]/gim,\"<ol>$1</ol>\")).replace(/\\[ml\\]\\[ul\\](.*?)\\[\\/ul\\]\\[\\/ml\\]/gim,\"<ul>$1</ul>\")).replace(/\\[ol(.*?)\\]/gi,\"\")).replace(/\\[\\/ol\\]/gi,\"\")).replace(/\\[ul(.*?)\\]/gi,\"\")).replace(/\\[\\/ul\\]/gi,\"\")).replace(/\\[li indent=(.*?) align=(.*?)\\]/gi,(x=>{const indent=x.replace(/\\[li indent=(.*?) align=(.*?)\\]/gi,\"$1\"),alignment=x.replace(/\\[li indent=(.*?) align=(.*?)\\]/gi,\"$2\");let result=\"<li\";return\"0\"===indent&&\"left\"===alignment||(result+=' class=\"'),\"0\"!==indent&&(result+=\"ql-indent-\"+indent),\"left\"!==alignment&&(result+=\" ql-align-\"+alignment),\"0\"===indent&&\"left\"===alignment||(result+='\"'),result+\">\"}))).replace(/\\[li\\]/gi,\"<li>\")).replace(/\\[\\/li\\]/gi,\"</li>\")).replace(/\\[img width=(.*?)\\](.*?)\\[\\/img\\]/gim,'<img src=\"$2\" width=\"$1\">')).replace(/\\[img\\](.*?)\\[\\/img\\]/gim,'<img src=\"$1\">')).replace(/\\[url=(.*?)\\](.*?)\\[\\/url\\]/gi,'<a href=\"$1\" target=\"_blank\">$2</a>')).replace(/\\[youtube\\](.*?)\\[\\/youtube\\]/gi,'<iframe class=\"ql-video\" frameborder=\"0\" allowfullscreen=\"true\" src=\"https://www.youtube.com/embed/$1?showinfo=0\"></iframe>')).replace(/\\[video\\](.*?)\\[\\/video\\]/gi,'<iframe class=\"ql-video\" frameborder=\"0\" allowfullscreen=\"true\" src=\"$1\"></iframe>
135')).replace(/\\n/gi,\"<br>\"),done_typing=()=>{d.should_rerun_val&&d.last_update_props.autosave&&!d.is_uploading&&set_val()},set_val=()=>{const new_bbcode=htmlToBBCode(d.quill.root.innerHTML).replace(/\\n$/,\"\"),did_content_change=d.current_bbcode!==new_bbcode;d.current_bbcode=new_bbcode,did_content_change&&notify_content_changed(new_bbcode),d.pasted=!1},notify_content_changed=(bbcode,args={programmatic:!1})=>{instance.publishState(\"value\",bbcode),instance.publishState(\"value_is_valid\",is_valid()),args.programmatic||(d.should_rerun_val=!1,d.last_update_props.autobinding=bbcode,instance.publishAutobinding(bbcode),instance.triggerEvent(\"value_changes\",(err=>{err&&console.error(\"Rich text event error - please report to admin: \"+JSON.stringify(err))})))},is_valid=()=>{const quill=d.quill;return!properties.empty_is_invalid||\"\"!==checkForContent(quill.root.innerHTML)},handle_quill_text_change_event=(delta,oldDelta,source)=>{if(\"bubble_update\"===d.last_change_source)return;d.last_change_source=source,\"user\"===d.last_change_source&&(d.has_been_edited=!0),get_current_content_bbcode()===properties.initial_content&&(d.has_been_edited=!1),d.should_rerun_val=!0,d.prev_contents=htmlToBBCode(d.quill.root.innerHTML),clearTimeout(d.typing_timer_id),d.typing_timer_id=setTimeout(done_typing,DONE_TYPING_INTERVAL_MS),d.quill.theme.modules.imageResize.overlay&&!d.has_resize_listener&&(d.has_resize_listener=!0,$(d.quill.theme.modules.imageResize.overlay).one(\"mouseup\",(()=>{done_typing(),d.has_resize_listener=!1}))),fixup_images(),d.pasted=!1,set_initial_content(source);const quill=d.quill,ops=delta.ops,oldSelection=quill.getSelection(),oldPos=oldSelection?.index,oldSelectionLength=oldSelection?oldSelection.length:0;void 0!==ops[0].retain&&ops[1]&&ops[1].insert&&ops[1].insert&&\"\\n\"===ops[1].insert&&!(oldSelectionLength>0)&&setTimeout((()=>{const newPos=undefined;quill.getSelection().index===oldPos&&quill.setSelection(quill.getSelection().index+1,0)}),3)},fixup_images=()=>{const quillRoot=undefined;d.elements.quillRoot.find(\"img\").each(((index,element)=>{$(element).data(\"width\",$(element).css(\"width\"))})),upload_and_replace_inline_images()},upload_and_replace_inline_image=(file_extension,source)=>{d.is_uploading=!0,context.uploadContent(`richtext_content.${file_extension}`,source,((err,url)=>{if(err)return d.is_uploading=!1,void console.error(\"Rich text editor error - please report to admin: \"+JSON.stringify(err));const quillRoot=d.elements.quillRoot,upload_width=quillRoot.find(`img[src=\"data:image/${file_extension};base64,${source}\"]`).css(\"width\")||\"\";quillRoot.find(`img[src=\"data:image/${file_extension};base64,${source}\"]`).attr({src:url,width:upload_width}),d.is_uploading=!1}))},setImgTrackerAndDetectImgChange=rawhtml=>{const matches=rawhtml.match(BASE64IMAGEREGEX)||[];let img_change=!1;if(matches.length!==d.img_tracker)img_change=!0,d.img_tracker=matches.length;else if(\"\"!==d.prev_contents&&d.current_bbcode!==d.prev_contents)for(const img of matches)d.prev_image_list.includes(img)||(img_change=!0);return img_change&&(d.prev_image_list=matches),img_change},upload_and_replace_inline_images=()=>{const quill=undefined,rawhtml=d.quill.root.innerHTML,img_has_changed=setImgTrackerAndDetectImgChange(rawhtml),base64ImageRegex=BASE64IMAGEREGEX;let fullMatch=base64ImageRegex.exec(rawhtml),encoding,base64source;for(;img_has_changed&&fullMatch;){[encoding,base64source]=fullMatch[1].split(\",\")||[];const file_extension=(encoding||\"\").split(\";\")[0];SUPPORTED_FILE_EXTENSIONS[file_extension]&&upload_and_replace_inline_image(file_extension,base64source),fullMatch=base64ImageRegex.exec(rawhtml)}};async function clean_inline_base64_images(rawhtml){const img_has_changed=setImgTrackerAndDetectImgChange(rawhtml),base64ImageRegex=BASE64IMAGEREGEX;let fullMatch=base64ImageRegex.exec(rawhtml),encoding,base64source,returnHtml=rawhtml;if(img_has_changed)for(;fullMatch;){[encoding,base64source]=fullMatch[1].split(\",\")||[];const file_extension=(encoding||\"\").split(\";\")[0];if(SUPPORTED_FILE_EXTENSIONS[file_extension]&&(returnHtml=await upload_and_replace_inline_image_in_html(file_extension,base64source,returnHtml,fullMatch)),base64ImageRegex.lastIndex=0,fullMatch=base64ImageRegex.exec(returnHtml),!fullMatch)return returnHtml}return returnHtml}function upload_and_replace_inline_image_in_html(file_extension,source,rawhtml,fullMatch){return new Promise((resolve=>{context.uploadContent(`richtext_content.${file_extension}`,source,((err,url)=>{rawhtml=rawhtml.replace(fullMatch[0],`<img src=${url} />`),resolve(rawhtml)}))}))}const register_fonts_and_icons=()=>{const FontAttributor=window.Quill.import(\"attributors/class/font\");FontAttributor.whitelist=[...ALL_FONTS],window.Quill.register(FontAttributor,!0);const icons=window.Quill.import(\"ui/icons\");icons.header[1]=ICON_H1,icons.header[2]=ICON_H2,icons.header[3]=ICON_H3,icons.header[4]=ICON_H4},initialize_quill=()=>{instance.canvas.empty();const Delta=window.Quill.import(\"delta\");
135d.element_id||(d.element_id=`richtext-editor-${$(\".ql-container\").length}`),register_fonts_and_icons();const theme=\"Regular\"===properties.theme?\"snow\":\"bubble\";let toolbar;toolbar=\"Basic\"===properties.complexity?[[\"bold\",\"italic\",\"link\"],[{align:[]},{header:\"1\"},{header:\"2\"}]]:\"Medium\"===properties.complexity?[[{font:[...ALL_FONTS]}],[\"bold\",\"italic\",\"underline\",\"strike\"],[{color:[]},{background:[]}],[{header:\"1\"},{header:\"2\"},{header:\"3\"},{header:\"4\"}],[{list:\"ordered\"},{list:\"bullet\"}],[{indent:\"-1\"},{indent:\"+1\"},{align:[]},\"link\"]]:[[{font:[...ALL_FONTS]},{size:[]}],[\"bold\",\"italic\",\"underline\",\"strike\"],[{color:[]},{background:[]}],[{script:\"super\"},{script:\"sub\"}],[{header:\"1\"},{header:\"2\"},{header:\"3\"},{header:\"4\"},\"blockquote\",\"code-block\"],[{list:\"ordered\"},{list:\"bullet\"}],[{indent:\"-1\"},{indent:\"+1\"},{align:[]}],[\"link\",\"image\",\"video\"],[\"clean\"]],instance.canvas.append(`<div id=\"${d.element_id}\"></div>`);const quill=new window.Quill(`#${d.element_id}`,{theme:theme,bounds:`#${d.element_id}`,modules:{imageResize:{modules:[\"Resize\",\"DisplaySize\"]},toolbar:toolbar,clipboard:{},history:{userOnly:!0}},placeholder:d.updated_props.placeholder||\"\"}),rteContainer=$(quill.container);d.elements.rteContainer=rteContainer;const toolbarElement=rteContainer.siblings(\".ql-toolbar\");d.elements.toolbarElement=toolbarElement;const toolbarHeight=toolbarElement.length>0?(toolbarElement[0].clientHeight||0)+3:0,editorContainer=undefined;rteContainer.find(\".ql-editor\").css({\"max-height\":`calc(${d.last_update_bubble_props.max_height_css} - ${toolbarHeight}px)`}),apply_flex_display_to_parent_container(),\"none\"!==properties.bubble.border_style()&&\"snow\"===theme&&toolbarElement.css({border:\"none\",\"border-bottom\":\"1px solid #ccc\"}),quill.clipboard.addMatcher(\"span\",((node,delta)=>
135{for(const node_class of node.classList){if(!node_class.startsWith(\"ql-font-\"))continue;const matched_font=node_class.replace(\"ql-font-\",\"\");if(ALL_FONTS.has(matched_font)&&\"sans-serif\"!==matched_font)return delta.compose((new Delta).retain(delta.length(),{font:matched_font}))}return delta}));const quillRoot=$(quill.root);d.elements.quillRoot=quillRoot,$(\".ql-bold\").attr(\"title\",\"Bold\"),$(\".ql-italic\").attr(\"title\",\"Italic\"),$(\".ql-underline\").attr(\"title\",\"Underline\"),$('.ql-header[value=\"1\"]').attr(\"title\",\"Title\"),$('.ql-header[value=\"2\"]').attr(\"title\",\"Subtitle\"),$(\".ql-align\").attr(\"title\",\"Text alignment\"),[\"Full\",\"Medium\"].includes(properties.complexity)&&($('.ql-header[value=\"3\"]').attr(\"title\",\"Subtitle\"),$('.ql-header[value=\"4\"]').attr(\"title\",\"Subtitle\"),$(\".ql-strike\").attr(\"title\",\"Strikethrough\"),$(\".ql-color\").attr(\"title\",\"Font color\"),$(\".ql-background\").attr(\"title\",\"Highlight color\"),$(\".ql-font\").attr(\"title\",\"Font\"),$('.ql-list[value=\"ordered\"]').attr(\"title\",\"Numbered list\"),$('.ql-list[value=\"bullet\"]').attr(\"title\",\"Bulleted list\"),$('.ql-indent[value=\"+1\"]').attr(\"title\",\"Indent\"),$('.ql-indent[value=\"-1\"]').attr(\"title\",\"Remove indent\"),$(\".ql-link\").attr(\"title\",\"Link\")),\"Full\"===properties.complexity&&($(\".ql-size\").attr(\"title\",\"Font size\"),$('.ql-script[value=\"super\"]').attr(\"title\",\"Superscript\"),$('.ql-script[value=\"sub\"]').attr(\"title\",\"Subscript\"),$(\".ql-blockquote\").attr(\"title\",\"Quote\"),$(\".ql-code-block\").attr(\"title\",\"Code\"),$(\".ql-image\").attr(\"title\",\"Image\"),$(\".ql-video\").attr(\"title\",\"Video\"),$(\".ql-clean\").attr(\"title\",\"Remove all formatting\")),$(\".ql-font .ql-picker-options\").css({height:\"250px\",overflow:\"scroll\"}),$(\".ql-font .ql-picker-options .ql-picker-item\").each(((index,element)=>{$(element).attr(\"data-label\",HTML_TO_BBCODE_FONTS[$(element).data(\"value\")])}
135)),d.quill=quill;const tooltip=undefined,input=undefined;quill.theme.tooltip.root.querySelector(\"input[data-link]\").dataset.link=properties.link_placeholder,quillRoot.on(\"scroll\",(()=>{const resize_obj=rteContainer.children()[3];resize_obj&&!resize_obj.hidden&&quill.theme.modules.imageResize.repositionElements()})),rteContainer.mouseup((()=>{rteContainer.children()[3]&&done_typing()}));const rte_canvas=rteContainer.children()[0];rte_canvas.onfocus=()=>{instance.publishState(\"field_is_focused\",!0)},rte_canvas.onblur=()=>{d.pasted||(instance.publishState(\"field_is_focused\",!1),clearTimeout(d.typing_timer_id),d.should_rerun_val&&!d.is_uploading&&set_val())},$(\".ql-toolbar\").mousedown((e=>e.preventDefault())),quill.on(\"text-change\",handle_quill_text_change_event),$(\".ql-formats\").on(\"click\",(()=>rteContainer.children().eq(3).hide())),d.prev_contents=\"\",d.initialized=!0},set_content_with_delta=(quill,bbcode,desired_delta)=>{desired_delta.insert(\"\\n\");const current_delta=quill.getContents();if(d.helpers.deltaIsEqual(current_delta,desired_delta)&&bbcode===d.prev_contents)return;const actual_change_source=d.last_change_source;d.last_change_source=\"bubble_update\",quill.setContents(desired_delta),d.last_change_source=actual_change_source},set_html_content_in_quill_from_bbcode=async(quill,bbcode,cb)=>{const desired_html=undefined;clean_inline_base64_images(bbCodeToHTML(bbcode)).then((result=>{const desired_delta=quill.clipboard.convert(result);set_content_with_delta(quill,bbcode,desired_delta);const cleaned_bbcode=htmlToBBCode(result);cb(cleaned_bbcode)}))},track_first_time_content_set=()=>{d.did_set_content_first_time&&(d.did_set_content_first_time=!1)},set_selection=quill=>{const current_selection=quill.getSelection();current_selection&&quill.setSelection(current_selection)};d.set_content_in_quill=async bbcode=>{const quill=d.quill,post_image_fixup_cb=bbcode=>{track_first_time_content_set(quill),set_selection(quill),quill.history.clear(),notify_content_changed(bbcode,{programmatic:!0})};set_html_content_in_quill_from_bbcode(quill,bbcode,post_image_fixup_cb)};const should_reinitialize=()=>{if(!d.initialized)return!0;const PROPS_THAT_NEED_REINITIALIZATION=[\"theme\",\"complexity\"];for(const prop of PROPS_THAT_NEED_REINITIALIZATION)if(prop in d.updated_props)return!0;return!1},set_initial_content=source=>{\"user\"!==source&&\"silent\"!==source&&(properties.autobinding||properties.initial_content===d.initial_bbcode||d.has_been_edited||(properties.initial_content=d.initial_bbcode))},get_non_null_autobinding_value=()=>properties.autobinding||\"\",get_current_content_bbcode=()=>d.did_set_content_first_time&&\"user\"===d.last_change_source?d.prev_contents||\"\":d.is_autobound?get_non_null_autobinding_value():d.has_been_edited?d.prev_contents:(d.should_rerun_val=!1,properties.initial_content||\"\"),get_initial_content_bbcode=()=>d.is_autobound?(properties.initial_content&&console.warn(\"Ignoring initial content since autobinding is enabled.\"),get_non_null_autobinding_value(properties)):properties.initial_content||\"\",reconcile=()=>{let content_bbcode=\"\";const initial_content_bbcode=get_initial_content_bbcode();d.initial_bbcode!==initial_content_bbcode&&(content_bbcode=initial_content_bbcode,d.initial_html=bbCodeToHTML(content_bbcode),d.initial_bbcode=content_bbcode,d.has_been_edited&&!d.is_autobound||(d.current_bbcode=d.initial_bbcode)),null==d.current_bbcode&&(d.current_bbcode=d.initial_bbcode),d.initialized&&(content_bbcode=get_current_content_bbcode()),d.updated_props.autobinding&&d.is_autobound&&(content_bbcode=get_non_null_autobinding_value()),should_reinitialize()&&initialize_quill(),\"disabled\"in d.updated_props&&d.quill.enable(!d.updated_props.disabled),\"placeholder\"in d.updated_props&&(d.quill.root.dataset.placeholder=d.updated_props.placeholder||\"\"),content_bbcode!==d.prev_contents&&(d.set_content_in_quill(content_bbcode),d.prev_contents=content_bbcode),d.has_been_reconciled=!0,disable_image_selection_when_input_is_disabled()},disable_image_selection_when_input_is_disabled=function(){$(\".ql-editor img\").click((e=>{d.updated_props.disabled&&e.stopPropagation()}))},apply_flex_display_to_parent_container=function(){const is_visible=undefined;instance.data.last_update_bubble_props.is_visible?(instance.canvas.css({display:\"flex\",\"flex-direction\":\"column\"}),d.elements.rteContainer.css({border:\"none\",height:\"max-content\",\"min-height\":0,\"flex-shrink\":1,\"flex-grow\":1}),d.elements.toolbarElement.css({\"flex-grow\":0,\"flex-shrink\":0})):instance.canvas.css({display:\"none\",\"flex-direction\":\"column\"})};d.has_been_reconciled=!1,$(document).ready(reconcile)};"},"reset":{"fn":"function(instance,context){const d=instance.data;d.quill&&(d.is_autobound||(d.set_content_in_quill(d.initial_bbcode),d.last_change_source=\"api\",d.has_been_edited=!1))}"},"preview":{"fn":"function(instance, properties) {\n\n    //custom preview that changes as various properties are changed\n    //uses images rather than 
135initializing a disabled Quill instance because the images are lighter weight and makes loading the element more efficient in the editor \n    \n    var preview;\n    var preview_images = {\n        \"basic_styles\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1578328422624x814410333288381700/basic_styles.png\",\n        \"basic_text_alignment\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1578328435036x176083124177772740/basic_align.png\",\n        \"font\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1578328456820x636678729904445200/font.png\",\n        \"size\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1578328471900x601277843539461200/size.png\",\n        \"text_styles\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1578328500984x237729254917328450/text_styles.png\",\n        \"text_color\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1578526040133x618924377176704400/text_color.png\",\n        \"sup_sub\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1578328553500x547904523073018600/sup_sub.png\",\n        \"titles_quote_code\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1578328573740x193466729817275650/titles_quote_code.png\",\n        \"media\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1578328690820x732983396842500400/media.png\",\n        \"remove_style\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1578328704608x655581645962726700/remove_style.png\",\n        \"list\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1580145133799x948312827511517800/list.png\",\n        \"indent_align\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1580145152691x503666194763457100/indent_align.png\",\n        \"all_titles\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1585641019238x597655811909080000/all%20titles.png\",\n        \"code_quotes\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1585641079062x980676637005123800/code%20quotes.png\",\n        \"medium_format\": \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1585641062978x592964815466108240/medium%20formats.png\"\n    };\n    \n    \n    if(properties.theme == \"Regular\"){\n        var toolbar = \"<div><div style='background-color:white;'>\";\n        if(properties.complexity == \"Full\"){\n            toolbar += \"<img src='\"+ preview_images[\"font\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"size\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"text_styles\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"text_color\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"sup_sub\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"all_titles\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"code_quotes\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"list\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"indent_align\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"media\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"remove_style\"] +\"'>\";\n        } else if(properties.complexity == \"Medium\"){\n            toolbar += \"<img src='\"+ preview_images[\"font\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"text_styles\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"text_color\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"all_titles\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"list\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"medium_format\"] +\"'>\";\n        } else {\n            toolbar += \"<img src='\"+ preview_images[\"basic_styles\"] +\"'>\";\n            toolbar += \"<img src='\"+ preview_images[\"basic_text_alignment\"] +\"'>\";\n        }\n        toolbar += \"</div>\";\n        if(properties.initial_content && properties.initial_content!=\"\"){\n            toolbar += \"<span style='margin:15px;font-family:sans-serif;font-size:13px;line-height:40px;'>\" + properties.initial_content + \"</span>\";\n        } else {\n            if(properties.placeholder){\n                toolbar += \"<span style='font-style:italic;margin:15px;font-family:sans-serif;color:#737373;font-size:13px;line-height:40px;'>\" + properties.placeholder + \"</span>\";\n            }\n        }\n        toolbar += \"</div>\";\n        preview = $(toolbar);\n    } else {\n\t\tvar editor = \"<div>\";\n        if(properties.initial_content && properties.initial_content!=\"\"){\n            editor += \"<span style='margin:15px;font-family:sans-serif;font-size:13px;line-height:40px;'>\" + properties.initial_content + \"</span>\";\n        } else {\n            if(properties.placeholder){\n                editor += \"<span style='font-style:italic;margin:15px;font-family:sans-serif;color:#737373;font-size:13px;line-height:40px;'>\" + properties.placeholder + \"</span>\";\n            }\n        }\n        editor += \"</div>\";\n        preview = $(editor);\n    }\n\n    preview.css(\"height\", (properties.bubble.height() - 2) + \"px\");\n    if(properties.bubble.border_style()=='none'){\n        preview.children('div').css(\"border\", \"1px solid #cbcbcb\");  \n    } else {\n        preview.children('div').css(\"border-bottom\", \"1px solid #cbcbcb\");\n    }\n    preview.children('div').css(\"padding-right\", \"10px\");\n    preview.children('div').children('img').css(\"height\", \"38px\");\n\t\n    instance.canvas.append(preview);\n    \n}"}},"platform_type":"web"}}};
136window._bubble_page_load_data.plugins_size['1580238841425x582072028873097200'] = 47330;
137window.preloaded['plugin/third_party:1580238841425x582072028873097200:2.1.1'] = true;
138window.plugins["1615402288950x110240248310005760"] = {"human":"CSS Loading Animations","dependencies":{"use_jquery":true,"plugin_api_version":"4"},"plugin_elements":{"AAF":{"display":"Loader ","property_applications":{"resizable":true,"MinWidth":true,"Border":false},"add_hover_pressed":true,"add_is_visible":true,"can_fit_width":false,"can_fit_height":false,"fields":{"AAC":{"caption":"Loader Color","name":"color","rank":0,"editor":"Color","default_val":"rgba(0, 158, 247, 1)"},"AAD":{"caption":"Loader Style","name":"class","rank":1,"editor":"Dropdown","default_val":"Spinner"}
138,"AAE":{"caption":"Loading.io's CSS spinner uses CSS Animation, which is wildly supported by all modern browsers such as Google Chrome and Mozilla Firefox. However, Microsoft Internet Explorer version earlier than 10 don't support CSS Animation. https://loading.io/css/","name":"Credits","rank":2,"editor":"Label"},"AAG":{"caption":"Border Width","name":"border_width","rank":3,"editor":"DynamicValue","value":"number","default_val":6},"AAH":{"caption":"Loader Width","name":"width","rank":4,"editor":"DynamicValue","value":"number","default_val":40},"AAI":{"caption":"Loader Height","name":"height","rank":5,"editor":"DynamicValue","value":"number","default_val":40}},"code":{"preview":{"fn":"function(instance, properties) {\n    \n    var bubbleWidth = properties.width + 'px';\n    var bubbleHeight = properties.height + 'px';\n    var bubbleWidth4 = properties.width*0.05 + 'px';\n    var bubbleWidth6 = properties.width*0.075 + 'px';\n    var bubbleWidth7 = properties.width*0.0875 + 'px';\n    var bubbleWidth8 = properties.width*0.1 + 'px';\n    var bubbleWidth12 = properties.width*0.15 + 'px';\n    var bubbleWidth16 = properties.width*0.2 + 'px';\n    var bubbleWidth17 = properties.width*0.2125 + 'px';\n    var bubbleWidth24 = properties.width*0.3 + 'px';\n    var bubbleWidth32 = properties.width*0.4 + 'px';\n    var bubbleWidth40 = properties.width*0.5 + 'px';\n    var bubbleWidth48 = properties.width*0.6 + 'px';\n    var bubbleWidth56 = properties.width*0.7 + 'px';\n    var bubbleWidth63 = properties.width*0.7875 + 'px';\n    var bubbleWidth64 = properties.width*0.8 + 'px';\n    var bubbleWidth68 = properties.width*0.85 + 'px';\n    var bubbleWidth71 = properties.width*0.8875 + 'px';\n    var bubbleWidth72 = properties.width*0.9 + 'px';\n    var bubbleWidth37 = properties.width*0.4625 + 'px';\n    var bubbleWidth26 = properties.width*0.325 + 'px';\n    var bubbleWidth62 = properties.width*0.775 + 'px';\n    var bubbleWidth52 = properties.width*0.65 + 'px';\n    var bubbleWidth11 = properties.width*0.1375 + 'px';\n    var bubbleWidth22 = properties.width*0.275 + 'px';\n    var bubbleWidth52 = properties.width*0.65 + 'px';\n    var bubbleWidth66 = properties.width*0.825 + 'px';\n    var bubbleWidth33 = properties.width*0.4125 + 'px';\n\tvar bubbleWidth13 = properties.width*0.1625 + 'px';\n    var bubbleWidth36 = properties.width*0.45 + 'px';\n    var bubbleWidth18 = properties.width*0.225 + 'px';\n    \n //Get Value Class\n   var select = properties.class\n \n   //For Select Class\n     switch (select) {\n         case \"Dual-Ring\":\n    var class_id = \"lds-dual-ring\"+(Math.random() * Math.pow(3, 60)).toString(20);\n    var div = $('<div class=\"'+class_id+'\"></div>');\n    $(div).appendTo('body');   \n               \n  var style = `.${class_id} {\n  display: inline-block;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};\n}\n.${class_id}:after {\n  content: \" \";\n  display: block;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};\n  margin: 8px;\n  border-radius: 50%;\n  border: ${bubbleWidth6} solid ${properties.color};\n  border-color: ${properties.color} transparent ${properties.color} transparent;\n  animation: ${class_id} 1.2s linear infinite;\n}\n@keyframes ${class_id} {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}`\n   $('<style>'+ style +'</style>').appendTo('head');    \n             }\n    //-------------------------------------------------------------\n    \n     switch (select) {\n         case \"Facebook\":\n    var class_id = \"lds-facebook\"+(Math.random() * Math.pow(3, 60)).toString(20);\n    var div = $('<div class=\"'+class_id+'\"><div></div><div></div><div></div></div>');\n    $(div).appendTo('body');   \n             \n  var style = `.${class_id} {\n  display: inline-block;\n  position: relative;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight}\n}\n.${class_id} div {\n  display: inline-block;\n  position: absolute;\n  left: ${bubbleWidth8};\n  width: ${bubbleWidth16};\n  background: ${properties.color};\n  animation: ${class_id} 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;\n}\n.${class_id}
138 div:nth-child(1) {\n  left: ${bubbleWidth8};\n  animation-delay: -0.24s;\n}\n.${class_id} div:nth-child(2) {\n  left: ${bubbleWidth32};\n  animation-delay: -0.12s;\n}\n.${class_id} div:nth-child(3) {\n  left: ${bubbleWidth56};\n  animation-delay: 0;\n}\n@keyframes ${class_id} {\n  0% {\n    top: ${bubbleWidth8};\n    height: ${bubbleWidth64};\n  }\n  50%, 100% {\n    top: ${bubbleWidth24};\n    height: ${bubbleWidth32};\n  }\n}`\n   $('<style>'+ style +'</style>').appendTo('head');    \n }\n//-------------------------------------------------------------\n        switch (select) {\n         case \"Circle\":\n    var class_id = \"lds-circle\"+(Math.random() * Math.pow(3, 60)).toString(20);\n    var div = $('<div class=\"'+class_id+'\"><div></div></div>');\n    $(div).appendTo('body');  \n    \n  var style = `.${class_id} {\n  display: inline-block;\n  transform: translateZ(1px);\n}\n.${class_id} > div {\n  display: inline-block;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};\n  margin: 0px;\n  border-radius: 50%;\n  background: ${properties.color};\n  animation: ${class_id} 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;\n}\n@keyframes ${class_id} {\n  0%, 100% {\n    animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);\n  }\n  0% {\n    transform: rotateY(0deg);\n  }\n  50% {\n    transform: rotateY(1800deg);\n    animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);\n  }\n  100% {\n    transform: rotateY(3600deg);\n  }\n}`\n                \n   $('<style>'+ style +'</style>').appendTo('head');    \n }\n//-------------------------------------------------------------\n    switch (select) {\n         case \"Heart\":\n    var id_class = \"lds-heart\"+(Math.random() * Math.pow(3, 60)).toString(20);\n    var div = $('<div class=\"'+id_class+'\"><div></div></div>');\n    $(div).appendTo('body');  \n                \n  var style = `.${id_class} {\n  display: inline-block;\n  position: relative;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};\n  transform: rotate(45deg);\n  transform-origin: ${bubbleWidth40} ${bubbleWidth40};\n}    \n.${id_class} div {\n  top: ${bubbleWidth32};\n  left: ${bubbleWidth32};\n  position: absolute;\n  width: ${bubbleWidth32};\n  height: ${bubbleWidth32};\n  background: ${properties.color};\n  animation: ${id_class} 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);\n}\n.${id_class} div:after,\n.${id_class} div:before {\n  content: \" \";\n  position: absolute;\n  display: block;\n  width: ${bubbleWidth32};\n  height: ${bubbleWidth32};\n  background: ${properties.color};\n}\n.${id_class} div:before {\n  left: -${bubbleWidth24};\n  border-radius: 50% 0 0 50%;\n}\n.${id_class} div:after {\n  top: -${bubbleWidth24};\n  border-radius: 50% 50% 0 0;\n}\n@keyframes ${id_class} {\n  0% {\n    transform: scale(0.95);\n  }\n  5% {\n    transform: scale(1.1);\n  }\n  39% {\n    transform: scale(0.85);\n  }\n  45% {\n    transform: scale(1);\n  }\n  60% {\n    transform: scale(0.95);\n  }\n  100% {\n    transform: scale(0.9);\n  }\n}`\n $('<style>'+ style +'</style>').appendTo('head');   \n}    \n//-------------------------------------------------------------    \n    switch (select) {\n         case \"Ring\":\n    var class_id = \"lds-ring\"+(Math.random() * Math.pow(3, 60)).toString(20);\n    var div = $('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div></div>');\n    $(div).appendTo('body');\n            \n  var style = `.${class_id} {\n  display: inline-block;\n  position: relative;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};\n}            \n.${class_id} div {\n  box-sizing: border-box;\n  display: block;\n  position: absolute;\n  width: ${bubbleWidth64};\n  height: ${bubbleWidth64};\n  margin: ${bubbleWidth8};\n  border: ${bubbleWidth8} solid ${properties.color};\n  border-radius: 50%;\n  animation: ${class_id} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n  border-color: ${properties.color} transparent transparent transparent;\n}\n.${class_id} div:nth-child(1) {\n  animation-delay: -0.45s;\n}\n.${class_id} div:nth-child(2) {\n  animation-delay: -0.3s;\n}\n.${class_id} div:nth-child(3) {\n  animation-delay: -0.15s;\n}\n@keyframes ${class_id} {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}`         \n                \n   $('<style>'+ style +'</style>').appendTo('head');    \n }\n//-------------------------------------------------------------  \nswitch (select) {\n         case \"Roller\":\n    var class_id = \"lds-roller\"+(Math.random() * Math.pow(3, 60)).toString(20);
138\n    var div = $('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>');\n    $(div).appendTo('body');  \n           \n  var style = `.${class_id} {\n  display: inline-block;\n  position: relative;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};    \n}\n.${class_id} div {\n  animation: ${class_id} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n  transform-origin: ${bubbleWidth40} ${bubbleWidth40};\n}\n.${class_id} div:after {\n  content: \" \";\n  display: block;\n  position: absolute;\n  width: ${bubbleWidth7};\n  height: ${bubbleWidth7};\n  border-radius: 50%;\n  background: ${properties.color};\n  margin: -${bubbleWidth4} 0 0 -${bubbleWidth4};\n}\n.${class_id} div:nth-child(1) {\n  animation-delay: -0.036s;\n}\n.${class_id} div:nth-child(1):after {\n  top: ${bubbleWidth63};\n  left: ${bubbleWidth63};\n}\n.${class_id} div:nth-child(2) {\n  animation-delay: -0.072s;\n}\n.${class_id} div:nth-child(2):after {\n  top: ${bubbleWidth68};\n  left: ${bubbleWidth56};\n}\n.${class_id} div:nth-child(3) {\n  animation-delay: -0.108s;\n}\n.${class_id} div:nth-child(3):after {\n  top: ${bubbleWidth71};\n  left: ${bubbleWidth48};\n}\n.${class_id} div:nth-child(4) {\n  animation-delay: -0.144s;\n}\n.${class_id} div:nth-child(4):after {\n  top: ${bubbleWidth72};\n  left: ${bubbleWidth40};\n}\n.${class_id} div:nth-child(5) {\n  animation-delay: -0.18s;\n}\n.${class_id} div:nth-child(5):after {\n  top: ${bubbleWidth71};\n  left: ${bubbleWidth32};\n}\n.${class_id} div:nth-child(6) {\n  animation-delay: -0.216s;\n}\n.${class_id} div:nth-child(6):after {\n  top: ${bubbleWidth68};\n  left: ${bubbleWidth24};\n}\n.${class_id} div:nth-child(7) {\n  animation-delay: -0.252s;\n}\n.${class_id} div:nth-child(7):after {\n  top: ${bubbleWidth63};\n  left: ${bubbleWidth17};\n}\n.${class_id} div:nth-child(8) {\n  animation-delay: -0.288s;\n}\n.${class_id} div:nth-child(8):after {\n  top: ${bubbleWidth56};\n  left: ${bubbleWidth12};\n}\n@keyframes ${class_id} {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}`\n              \n   $('<style>'+ style +'</style>').appendTo('head');    \n }\n    \n//-------------------------------------------------------------  \n    switch (select) {\n         case \"Default\":\n    var class_id = \"lds-default\"+(Math.random() * Math.pow(3, 60)).toString(20);\n    var div = $('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>');\n    $(div).appendTo('body');  \n                \n   var style = `.${class_id} {\n  display: inline-block;\n  position: relative;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};\n}\n.${class_id} div {\n  position: absolute;\n  width: ${bubbleWidth6};\n  height: ${bubbleWidth6};\n  background: ${properties.color};\n  border-radius: 50%;\n  animation: ${class_id} 1.2s linear infinite;\n}\n.${class_id} div:nth-child(1) {\n  animation-delay: 0s;\n  top: ${bubbleWidth37};\n  left: ${bubbleWidth66};\n}\n.${class_id} div:nth-child(2) {\n  animation-delay: -0.1s;\n  top: ${bubbleWidth22};\n  left: ${bubbleWidth62};\n}\n.${class_id} div:nth-child(3) {\n  animation-delay: -0.2s;\n  top: ${bubbleWidth11};\n  left: ${bubbleWidth52};\n}\n.${class_id} div:nth-child(4) {\n  animation-delay: -0.3s;\n  top: ${bubbleWidth7};\n  left: ${bubbleWidth37};\n}\n.${class_id} div:nth-child(5) {\n  animation-delay: -0.4s;\n  top: ${bubbleWidth11};\n  left: ${bubbleWidth22};\n}\n.${class_id} div:nth-child(6) {\n  animation-delay: -0.5s;\n  top: ${bubbleWidth22};\n  left: ${bubbleWidth11};\n}\n.${class_id} div:nth-child(7) {\n  animation-delay: -0.6s;\n  top: ${bubbleWidth37};\n  left: ${bubbleWidth7};\n}\n.${class_id} div:nth-child(8) {\n  animation-delay: -0.7s;\n  top: ${bubbleWidth52};\n  left: ${bubbleWidth11};\n}\n.${class_id} div:nth-child(9) {\n  animation-delay: -0.8s;\n  top: ${bubbleWidth62};\n  left: ${bubbleWidth22};\n}\n.${class_id} div:nth-child(10) {\n  animation-delay: -0.9s;\n  top: ${bubbleWidth66};\n  left: ${bubbleWidth37};\n}\n.${class_id} div:nth-child(11) {\n  animation-delay: -1s;\n  top: ${bubbleWidth62};\n  left: ${bubbleWidth52};\n}\n.${class_id} div:nth-child(12) {\n  animation-delay: -1.1s;\n  top: ${bubbleWidth52};\n  left: ${bubbleWidth62};\n}\n@keyframes ${class_id} {\n  0%, 20%, 80%, 100% {\n    transform: scale(1);\n  }\n  50% {\n    transform: scale(1.5);\n  }\n}`\n            \n            \n $('<style>'+ style +'</style>').appendTo('head');   \n            \n           }\n    //---------------------------------------------------------------\n  switch (select) {\n         case \"Ellipsis\":\n    var class_id = \"lds-ellipsis\"+(Math.random() * Math.pow(3, 60)).toString(20);
138\n    var div = $('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div></div>');\n    $(div).appendTo('body');  \n  \n  var style = `.${class_id} {\n  display: inline-block;\n  position: relative;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};\n}\n.${class_id} div {\n  position: absolute;\n  top: ${bubbleWidth33};\n  width: ${bubbleWidth13};\n  height: ${bubbleWidth13};\n  border-radius: 50%;\n  background: ${properties.color};\n  animation-timing-function: cubic-bezier(0, 1, 1, 0);\n}\n.${class_id} div:nth-child(1) {\n  left: ${bubbleWidth8};\n  animation: ${class_id}1 0.6s infinite;\n}\n.${class_id} div:nth-child(2) {\n  left: ${bubbleWidth8};\n  animation: ${class_id}2 0.6s infinite;\n}\n.${class_id} div:nth-child(3) {\n  left: ${bubbleWidth32};\n  animation: ${class_id}2 0.6s infinite;\n}\n.${class_id} div:nth-child(4) {\n  left: ${bubbleWidth56};\n  animation: ${class_id}3 0.6s infinite;\n}\n@keyframes ${class_id}1 {\n  0% {\n    transform: scale(0);\n  }\n  100% {\n    transform: scale(1);\n  }\n}\n@keyframes ${class_id}3 {\n  0% {\n    transform: scale(1);\n  }\n  100% {\n    transform: scale(0);\n  }\n}\n@keyframes ${class_id}2 {\n  0% {\n    transform: translate(0, 0);\n  }\n  100% {\n    transform: translate(${bubbleWidth24}, 0);\n  }\n}`      \n          \n          \n   $('<style>'+ style +'</style>').appendTo('head');    \n }  \n//--------------------------------------------------------\n    switch (select) {\n         case \"Grid\":\n    var class_id = \"lds-grid\"+(Math.random() * Math.pow(3, 60)).toString(20);\n    var div = $('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>');\n    $(div).appendTo('body');  \n            \n var style = `.${class_id} {\n  display: inline-block;\n  position: relative;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};\n}\n.${class_id} div {\n  position: absolute;\n  width: ${bubbleWidth16};\n  height: ${bubbleWidth16};\n  border-radius: 50%;\n  background: ${properties.color};\n  animation: ${class_id} 1.2s linear infinite;\n}\n.${class_id} div:nth-child(1) {\n  top: ${bubbleWidth8};\n  left: ${bubbleWidth8};\n  animation-delay: 0s;\n}\n.${class_id} div:nth-child(2) {\n  top: ${bubbleWidth8};\n  left: ${bubbleWidth32};\n  animation-delay: -0.4s;\n}\n.${class_id} div:nth-child(3) {\n  top: ${bubbleWidth8};\n  left: ${bubbleWidth56};\n  animation-delay: -0.8s;\n}\n.${class_id} div:nth-child(4) {\n  top: ${bubbleWidth32};\n  left: ${bubbleWidth8};\n  animation-delay: -0.4s;\n}\n.${class_id} div:nth-child(5) {\n  top: ${bubbleWidth32};\n  left: ${bubbleWidth32};\n  animation-delay: -0.8s;\n}\n.${class_id} div:nth-child(6) {\n  top: ${bubbleWidth32};\n  left: ${bubbleWidth56};\n  animation-delay: -1.2s;\n}\n.${class_id} div:nth-child(7) {\n  top: ${bubbleWidth56};\n  left: ${bubbleWidth8};\n  animation-delay: -0.8s;\n}\n.${class_id} div:nth-child(8) {\n  top: ${bubbleWidth56};\n  left: ${bubbleWidth32};\n  animation-delay: -1.2s;\n}\n.${class_id} div:nth-child(9) {\n  top: ${bubbleWidth56};\n  left: ${bubbleWidth56};\n  animation-delay: -1.6s;\n}\n@keyframes ${class_id} {\n  0%, 100% {\n    opacity: 1;\n  }\n  50% {\n    opacity: 0.5;\n  }\n}`\n                \n   $('<style>'+ style +'</style>').appendTo('head');    \n }\n//-------------------------------------------------------------\n    switch (select) {\n         case \"Hourglass\":\n    var class_id = \"lds-hourglass\"+(Math.random() * Math.pow(3, 60)).toString(20);\n    var div = $('<div class=\"'+class_id+'\"></div>');\n    $(div).appendTo('body');\n            \n  var style = `.${class_id} {\n  display: inline-block;\n  position: relative;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};\n}\n.${class_id}:after {\n  content: \" \";\n  display: block;\n  border-radius: 50%;\n  width: 0;\n  height: 0;\n  margin: 0px;\n  box-sizing: border-box;\n  border: ${bubbleWidth32} solid ${properties.color};\n  border-color: ${properties.color} transparent ${properties.color} transparent;\n  animation: ${class_id} 1.2s infinite;\n}\n@keyframes ${class_id} {\n  0% {\n    transform: rotate(0);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n  }\n  50% {\n    transform: rotate(900deg);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n  100% {\n    transform: rotate(1800deg);\n  }\n}`\n\n                \n   $('<style>'+ style +'</style>').appendTo('head');    \n }\n //-------------------------------------------------------------\n switch (select) {\n         case \"Ripple\":\n    var class_id = \"lds-ripple\"+(Math.random() * Math.pow(3, 60)).toString(20);
138\n    var div = $('<div class=\"'+class_id+'\"><div></div><div></div></div>');\n    $(div).appendTo('body'); \n   \n  var style = `.${class_id} {\n  display: inline-block;\n  position: relative;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};\n}\n.${class_id} div {\n  position: absolute;\n  border: ${bubbleWidth4} solid ${properties.color};\n  opacity: 1;\n  border-radius: 50%;\n  animation: ${class_id} 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;\n}\n.${class_id} div:nth-child(2) {\n  animation-delay: -0.5s;\n}\n@keyframes ${class_id} {\n  0% {\n    top: ${bubbleWidth36};\n    left: ${bubbleWidth36};\n    width: 0;\n    height: 0;\n    opacity: 1;\n  }\n  100% {\n    top: 0px;\n    left: 0px;\n    width: ${bubbleWidth72};\n    height: ${bubbleWidth72};\n    opacity: 0;\n  }\n}`     \n                \n   $('<style>'+ style +'</style>').appendTo('head');    \n }\n //-------------------------------------------------------------   \n    switch (select) {\n         case \"Spinner\":\n    var class_id = \"lds-spinner\"+(Math.random() * Math.pow(3, 60)).toString(20);\n    var div = $('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>');\n    $(div).appendTo('body');\n            \n  var style = `.${class_id} {\n  color: official;\n  display: inline-block;\n  position: relative;\n  width: ${bubbleWidth};\n  height: ${bubbleHeight};\n}\n.${class_id} div {\n  transform-origin: ${bubbleWidth40} ${bubbleWidth40};\n  animation: ${class_id} 1.2s linear infinite;\n}\n.${class_id}
138 div:after {\n  content: \" \";\n  display: block;\n  position: absolute;\n  top: 3px;\n  left: ${bubbleWidth37};\n  width: ${bubbleWidth6};\n  height: ${bubbleWidth18};\n  border-radius: 20%;\n  background: ${properties.color};\n}\n.${class_id} div:nth-child(1) {\n  transform: rotate(0deg);\n  animation-delay: -1.1s;\n}\n.${class_id} div:nth-child(2) {\n  transform: rotate(30deg);\n  animation-delay: -1s;\n}\n.${class_id} div:nth-child(3) {\n  transform: rotate(60deg);\n  animation-delay: -0.9s;\n}\n.${class_id} div:nth-child(4) {\n  transform: rotate(90deg);\n  animation-delay: -0.8s;\n}\n.${class_id} div:nth-child(5) {\n  transform: rotate(120deg);\n  animation-delay: -0.7s;\n}\n.${class_id} div:nth-child(6) {\n  transform: rotate(150deg);\n  animation-delay: -0.6s;\n}\n.${class_id} div:nth-child(7) {\n  transform: rotate(180deg);\n  animation-delay: -0.5s;\n}\n.${class_id} div:nth-child(8) {\n  transform: rotate(210deg);\n  animation-delay: -0.4s;\n}\n.${class_id} div:nth-child(9) {\n  transform: rotate(240deg);\n  animation-delay: -0.3s;\n}\n.${class_id} div:nth-child(10) {\n  transform: rotate(270deg);\n  animation-delay: -0.2s;\n}\n.${class_id} div:nth-child(11) {\n  transform: rotate(300deg);\n  animation-delay: -0.1s;\n}\n.${class_id} div:nth-child(12) {\n  transform: rotate(330deg);\n  animation-delay: 0s;\n}\n@keyframes ${class_id} {\n  0% {\n    opacity: 1;\n  }\n  100% {\n    opacity: 0;\n  }\n}`           \n                \n   $('<style>'+ style +'</style>').appendTo('head');    \n }\n    $(div).attr(\"id\", class_id);\n    \n      \n\n\n\n}"},"initialize":{"fn":"function(instance,context){}"},"update":{"fn":"function(instance,properties,context){var bubbleWidth=properties.width+\"px\",bubbleHeight=properties.height+\"px\",bubbleWidth4=.05*properties.width+\"px\",bubbleWidth6=.075*properties.width+\"px\",bubbleWidth7=.0875*properties.width+\"px\",bubbleWidth8=.1*properties.width+\"px\",bubbleWidth12=.15*properties.width+\"px\",bubbleWidth16=.2*properties.width+\"px\",bubbleWidth17=.2125*properties.width+\"px\",bubbleWidth24=.3*properties.width+\"px\",bubbleWidth32=.4*properties.width+\"px\",bubbleWidth40=.5*properties.width+\"px\",bubbleWidth48=.6*properties.width+\"px\",bubbleWidth56=.7*properties.width+\"px\",bubbleWidth63=.7875*properties.width+\"px\",bubbleWidth64=.8*properties.width+\"px\",bubbleWidth68=.85*properties.width+\"px\",bubbleWidth71=.8875*properties.width+\"px\",bubbleWidth72=.9*properties.width+\"px\",bubbleWidth37=.4625*properties.width+\"px\",bubbleWidth26=.325*properties.width+\"px\",bubbleWidth62=.775*properties.width+\"px\",bubbleWidth52=.65*properties.width+\"px\",bubbleWidth11=.1375*properties.width+\"px\",bubbleWidth22=.275*properties.width+\"px\",bubbleWidth52=.65*properties.width+\"px\",bubbleWidth66=.825*properties.width+\"px\",bubbleWidth33=.4125*properties.width+\"px\",bubbleWidth13=.1625*properties.width+\"px\",bubbleWidth36=.45*properties.width+\"px\",bubbleWidth18=.225*properties.width+\"px\",select=properties.class;if(\"Dual-Ring\"===select){var class_id=\"lds-dual-ring\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+class_id+'\"></div>');$(div).appendTo(\"body\");var style=`.${class_id} {\\n  display: inline-block;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};\\n}\\n.${class_id}:after {\\n  content: \" \";\\n  display: block;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};\\n  margin: 8px;\\n  border-radius: 50%;\\n  border: ${bubbleWidth6} solid ${properties.color};\\n  border-color: ${properties.color} transparent ${properties.color} transparent;\\n  animation: ${class_id} 1.2s linear infinite;\\n}\\n@keyframes ${class_id} {\\n  0% {\\n    transform: rotate(0deg);\\n  }\\n  100% {\\n    transform: rotate(360deg);\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}if(\"Facebook\"===select){var class_id=\"lds-facebook\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+class_id+'\"><div></div><div></div><div></div></div>');$(div).appendTo(\"body\");var style=`.${class_id} {\\n  display: inline-block;\\n  position: relative;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight}\\n}\\n.${class_id} div {\\n  display: inline-block;\\n  position: absolute;\\n  left: ${bubbleWidth8};\\n  width: ${bubbleWidth16};\\n  background: ${properties.color};\\n  animation: ${class_id} 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;\\n}\\n.${class_id} div:nth-child(1) {\\n  left: ${bubbleWidth8};\\n  animation-delay: -0.24s;\\n}\\n.${class_id} div:nth-child(2) {\\n  left: ${bubbleWidth32};\\n  animation-delay: -0.12s;\\n}\\n.${class_id} div:nth-child(3) {\\n  left: ${bubbleWidth56};\\n  animation-delay: 0;\\n}\\n@keyframes ${class_id} {\\n  0% {\\n    top: ${bubbleWidth8};\\n    height: ${bubbleWidth64};\\n  }\\n  50%, 100% {\\n    top: ${bubbleWidth24};\\n    height: ${bubbleWidth32};\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}if(\"Circle\"===select){var class_id=\"lds-circle\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+class_id+'\"><div></div></div>');$(div).appendTo(\"body\");var style=`.${class_id} {\\n  display: inline-block;\\n  transform: translateZ(1px);\\n}\\n.${class_id} > div {\\n  display: inline-block;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};\\n  margin: 0px;\\n  border-radius: 50%;\\n  background: ${properties.color};\\n  animation: ${class_id} 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;\\n}\\n@keyframes ${class_id} {\\n  0%, 100% {\\n    animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);\\n  }\\n  0% {\\n    transform: rotateY(0deg);\\n  }\\n  50% {\\n    transform: rotateY(1800deg);\\n    animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);\\n  }\\n  100% {\\n    transform: rotateY(3600deg);\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}if(\"Heart\"===select){var id_class=\"lds-heart\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+id_class+'\"><div></div></div>');$(div).appendTo(\"body\");var style=`.${id_class} {\\n  display: inline-block;\\n  position: relative;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};\\n  transform: rotate(45deg);
138\\n  transform-origin: ${bubbleWidth40} ${bubbleWidth40};\\n}    \\n.${id_class} div {\\n  top: ${bubbleWidth32};\\n  left: ${bubbleWidth32};\\n  position: absolute;\\n  width: ${bubbleWidth32};\\n  height: ${bubbleWidth32};\\n  background: ${properties.color};\\n  animation: ${id_class} 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);\\n}\\n.${id_class} div:after,\\n.${id_class} div:before {\\n  content: \" \";\\n  position: absolute;\\n  display: block;\\n  width: ${bubbleWidth32};\\n  height: ${bubbleWidth32};\\n  background: ${properties.color};\\n}\\n.${id_class} div:before {\\n  left: -${bubbleWidth24};\\n  border-radius: 50% 0 0 50%;\\n}\\n.${id_class} div:after {\\n  top: -${bubbleWidth24};\\n  border-radius: 50% 50% 0 0;\\n}\\n@keyframes ${id_class} {\\n  0% {\\n    transform: scale(0.95);\\n  }\\n  5% {\\n    transform: scale(1.1);\\n  }\\n  39% {\\n    transform: scale(0.85);\\n  }\\n  45% {\\n    transform: scale(1);\\n  }\\n  60% {\\n    transform: scale(0.95);\\n  }\\n  100% {\\n    transform: scale(0.9);\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}if(\"Ring\"===select){var class_id=\"lds-ring\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div></div>');$(div).appendTo(\"body\");var style=`.${class_id} {\\n  display: inline-block;\\n  position: relative;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};\\n}            \\n.${class_id} div {\\n  box-sizing: border-box;\\n  display: block;\\n  position: absolute;\\n  width: ${bubbleWidth64};\\n  height: ${bubbleWidth64};\\n  margin: ${bubbleWidth8};\\n  border: ${bubbleWidth8} solid ${properties.color};\\n  border-radius: 50%;\\n  animation: ${class_id} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\\n  border-color: ${properties.color} transparent transparent transparent;\\n}\\n.${class_id} div:nth-child(1) {\\n  animation-delay: -0.45s;\\n}\\n.${class_id} div:nth-child(2) {\\n  animation-delay: -0.3s;\\n}\\n.${class_id} div:nth-child(3) {\\n  animation-delay: -0.15s;\\n}\\n@keyframes ${class_id} {\\n  0% {\\n    transform: rotate(0deg);\\n  }\\n  100% {\\n    transform: rotate(360deg);\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}if(\"Roller\"===select){var class_id=\"lds-roller\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>');$(div).appendTo(\"body\");var style=`.${class_id} {\\n  display: inline-block;\\n  position: relative;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};    \\n}\\n.${class_id} div {\\n  animation: ${class_id} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\\n  transform-origin: ${bubbleWidth40} ${bubbleWidth40};\\n}\\n.${class_id} div:after {\\n  content: \" \";\\n  display: block;\\n  position: absolute;\\n  width: ${bubbleWidth7};\\n  height: ${bubbleWidth7};\\n  border-radius: 50%;\\n  background: ${properties.color};\\n  margin: -${bubbleWidth4} 0 0 -${bubbleWidth4};\\n}\\n.${class_id} div:nth-child(1) {\\n  animation-delay: -0.036s;\\n}\\n.${class_id} div:nth-child(1):after {\\n  top: ${bubbleWidth63};\\n  left: ${bubbleWidth63};\\n}\\n.${class_id} div:nth-child(2) {\\n  animation-delay: -0.072s;\\n}\\n.${class_id} div:nth-child(2):after {\\n  top: ${bubbleWidth68};\\n  left: ${bubbleWidth56};\\n}\\n.${class_id} div:nth-child(3) {\\n  animation-delay: -0.108s;\\n}\\n.${class_id} div:nth-child(3):after {\\n  top: ${bubbleWidth71};\\n  left: ${bubbleWidth48};\\n}\\n.${class_id} div:nth-child(4) {\\n  animation-delay: -0.144s;\\n}\\n.${class_id} div:nth-child(4):after {\\n  top: ${bubbleWidth72};\\n  left: ${bubbleWidth40};\\n}\\n.${class_id} div:nth-child(5) {\\n  animation-delay: -0.18s;\\n}\\n.${class_id} div:nth-child(5):after {\\n  top: ${bubbleWidth71};\\n  left: ${bubbleWidth32};\\n}\\n.${class_id} div:nth-child(6) {\\n  animation-delay: -0.216s;\\n}\\n.${class_id} div:nth-child(6):after {\\n  top: ${bubbleWidth68};\\n  left: ${bubbleWidth24};\\n}\\n.${class_id} div:nth-child(7) {\\n  animation-delay: -0.252s;\\n}\\n.${class_id} div:nth-child(7):after {\\n  top: ${bubbleWidth63};\\n  left: ${bubbleWidth17};\\n}\\n.${class_id} div:nth-child(8) {\\n  animation-delay: -0.288s;\\n}\\n.${class_id} div:nth-child(8):after {\\n  top: ${bubbleWidth56};\\n  left: ${bubbleWidth12};\\n}\\n@keyframes ${class_id} {\\n  0% {\\n    transform: rotate(0deg);\\n  }\\n  100% {\\n    transform: rotate(360deg);\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}if(\"Default\"===select){var class_id=\"lds-default\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>');$(div).appendTo(\"body\");var style=`.${class_id} {\\n  display: inline-block;\\n  position: relative;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};\\n}\\n.${class_id} div {\\n  position: absolute;\\n  width: ${bubbleWidth6};\\n  height: ${bubbleWidth6};\\n  background: ${properties.color};\\n  border-radius: 50%;\\n  animation: ${class_id} 1.2s linear infinite;\\n}\\n.${class_id} div:nth-child(1) {\\n  animation-delay: 0s;\\n  top: ${bubbleWidth37};\\n  left: ${bubbleWidth66};\\n}\\n.${class_id} div:nth-child(2) {\\n  animation-delay: -0.1s;\\n  top: ${bubbleWidth22};\\n  left: ${bubbleWidth62};\\n}\\n.${class_id} div:nth-child(3) {\\n  animation-delay: -0.2s;\\n  top: ${bubbleWidth11};\\n  left: ${bubbleWidth52};\\n}\\n.${class_id} div:nth-child(4) {\\n  animation-delay: -0.3s;\\n  top: ${bubbleWidth7};\\n  left: ${bubbleWidth37};\\n}\\n.${class_id} div:nth-child(5) {\\n  animation-delay: -0.4s;\\n  top: ${bubbleWidth11};\\n  left: ${bubbleWidth22};\\n}\\n.${class_id} div:nth-child(6) {\\n  animation-delay: -0.5s;\\n  top: ${bubbleWidth22};\\n  left: ${bubbleWidth11};\\n}\\n.${class_id} div:nth-child(7) {\\n  animation-delay: -0.6s;\\n  top: ${bubbleWidth37};\\n  left: ${bubbleWidth7};\\n}\\n.${class_id} div:nth-child(8) {\\n  animation-delay: -0.7s;\\n  top: ${bubbleWidth52};\\n  left: ${bubbleWidth11};\\n}\\n.${class_id} div:nth-child(9) {\\n  animation-delay: -0.8s;\\n  top: ${bubbleWidth62};\\n  left: ${bubbleWidth22};\\n}\\n.${class_id} div:nth-child(10) {\\n  animation-delay: -0.9s;\\n  top: ${bubbleWidth66};\\n  left: ${bubbleWidth37};\\n}\\n.${class_id} div:nth-child(11) {\\n  animation-delay: -1s;\\n  top: ${bubbleWidth62};\\n  left: ${bubbleWidth52};\\n}\\n.${class_id} div:nth-child(12) {\\n  animation-delay: -1.1s;\\n  top: ${bubbleWidth52};\\n  left: ${bubbleWidth62};\\n}\\n@keyframes ${class_id} {\\n  0%, 20%, 80%, 100% {\\n    transform: scale(1);\\n  }\\n  50% {\\n    transform: scale(1.5);\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}if(\"Ellipsis\"===select){var class_id=\"lds-ellipsis\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div></div>');$(div).appendTo(\"body\");var style=`.${class_id} {\\n  display: inline-block;\\n  position: relative;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};\\n}\\n.${class_id} div {\\n  position: absolute;\\n  top: ${bubbleWidth33};\\n  width: ${bubbleWidth13};\\n  height: ${bubbleWidth13};\\n  border-radius: 50%;\\n  background: ${properties.color};\\n  animation-timing-function: cubic-bezier(0, 1, 1, 0);\\n}\\n.${class_id} div:nth-child(1) {\\n  left: ${bubbleWidth8};\\n  animation: ${class_id}1 0.6s infinite;\\n}\\n.${class_id} div:nth-child(2) {\\n  left: ${bubbleWidth8};\\n  animation: ${class_id}2 0.6s infinite;\\n}\\n.${class_id} div:nth-child(3) {\\n  left: ${bubbleWidth32};\\n  animation: ${class_id}2 0.6s infinite;\\n}\\n.${class_id} div:nth-child(4) {\\n  left: ${bubbleWidth56};\\n  animation: ${class_id}3 0.6s infinite;\\n}\\n@keyframes ${class_id}1 {\\n  0% {\\n    transform: scale(0);\\n  }\\n  100% {\\n    transform: scale(1);\\n  }\\n}\\n@keyframes ${class_id}3 {\\n  0% {\\n    transform: scale(1);\\n  }\\n  100% {\\n    transform: scale(0);\\n  }\\n}\\n@keyframes ${class_id}2 {\\n  0% {\\n    transform: translate(0, 0);\\n  }\\n  100% {\\n    transform: translate(${bubbleWidth24}, 0);\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}if(\"Grid\"===select){var class_id=\"lds-grid\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>');$(div).appendTo(\"body\");var style=`.${class_id} {\\n  display: inline-block;\\n  position: relative;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};\\n}\\n.${class_id} div {\\n  position: absolute;\\n  width: ${bubbleWidth16};\\n  height: ${bubbleWidth16};\\n  border-radius: 50%;\\n  background: ${properties.color};\\n  animation: ${class_id} 1.2s linear infinite;\\n}\\n.${class_id} div:nth-child(1) {\\n  top: ${bubbleWidth8};\\n  left: ${bubbleWidth8};\\n  animation-delay: 0s;\\n}\\n.${class_id} div:nth-child(2) {\\n  top: ${bubbleWidth8};\\n  left: ${bubbleWidth32};\\n  animation-delay: -0.4s;\\n}\\n.${class_id} div:nth-child(3) {\\n  top: ${bubbleWidth8};\\n  left: ${bubbleWidth56};\\n  animation-delay: -0.8s;\\n}\\n.${class_id} div:nth-child(4) {\\n  top: ${bubbleWidth32};\\n  left: ${bubbleWidth8};\\n  animation-delay: -0.4s;\\n}\\n.${class_id} div:nth-child(5) {\\n  top: ${bubbleWidth32};\\n  left: ${bubbleWidth32};\\n  animation-delay: -0.8s;\\n}\\n.${class_id} div:nth-child(6) {\\n  top: ${bubbleWidth32};\\n  left: ${bubbleWidth56};\\n  animation-delay: -1.2s;\\n}\\n.${class_id} div:nth-child(7) {\\n  top: ${bubbleWidth56};\\n  left: ${bubbleWidth8};\\n  animation-delay: -0.8s;\\n}\\n.${class_id} div:nth-child(8) {\\n  top: ${bubbleWidth56};\\n  left: ${bubbleWidth32};\\n  animation-delay: -1.2s;\\n}\\n.${class_id} div:nth-child(9) {\\n  top: ${bubbleWidth56};\\n  left: ${bubbleWidth56};\\n  animation-delay: -1.6s;\\n}\\n@keyframes ${class_id} {\\n  0%, 100% {\\n    opacity: 1;\\n  }\\n  50% {\\n    opacity: 0.5;\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}if(\"Hourglass\"===select){var class_id=\"lds-hourglass\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+class_id+'\"></div>');$(div).appendTo(\"body\");var style=`.${class_id} {\\n  display: inline-block;\\n  position: relative;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};\\n}\\n.${class_id}:after {\\n  content: \" \";\\n  display: block;\\n  border-radius: 50%;\\n  width: 0;\\n  height: 0;\\n  margin: 0px;\\n  box-sizing: border-box;\\n  border: ${bubbleWidth32} solid ${properties.color};\\n  border-color: ${properties.color} transparent ${properties.color} transparent;\\n  animation: ${class_id} 1.2s infinite;\\n}\\n@keyframes ${class_id} {\\n  0% {\\n    transform: rotate(0);\\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\\n  }\\n  50% {\\n    transform: rotate(900deg);\\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\\n  }\\n  100% {\\n    transform: rotate(1800deg);\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}if(\"Ripple\"===select){var class_id=\"lds-ripple\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+class_id+'\"><div></div><div></div></div>');$(div).appendTo(\"body\");var style=`.${class_id} {\\n  display: inline-block;\\n  position: relative;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};\\n}\\n.${class_id} div {\\n  position: absolute;\\n  border: ${bubbleWidth4} solid ${properties.color};\\n  opacity: 1;\\n  border-radius: 50%;\\n  animation: ${class_id} 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;\\n}\\n.${class_id} div:nth-child(2) {\\n  animation-delay: -0.5s;\\n}\\n@keyframes ${class_id} {\\n  0% {\\n    top: ${bubbleWidth36};\\n    left: ${bubbleWidth36};\\n    width: 0;\\n    height: 0;\\n    opacity: 1;\\n  }\\n  100% {\\n    top: 0px;\\n    left: 0px;\\n    width: ${bubbleWidth72};\\n    height: ${bubbleWidth72};\\n    opacity: 0;\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}if(\"Spinner\"===select){var class_id=\"lds-spinner\"+(Math.random()*Math.pow(3,60)).toString(20),div=$('<div class=\"'+class_id+'\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>');$(div).appendTo(\"body\");var style=`.${class_id} {\\n  color: official;\\n  display: inline-block;\\n  position: relative;\\n  width: ${bubbleWidth};\\n  height: ${bubbleHeight};\\n}\\n.${class_id}
138 div {\\n  transform-origin: ${bubbleWidth40} ${bubbleWidth40};\\n  animation: ${class_id} 1.2s linear infinite;\\n}\\n.${class_id} div:after {\\n  content: \" \";\\n  display: block;\\n  position: absolute;\\n  top: 3px;\\n  left: ${bubbleWidth37};\\n  width: ${bubbleWidth6};\\n  height: ${bubbleWidth18};\\n  border-radius: 20%;\\n  background: ${properties.color};\\n}\\n.${class_id} div:nth-child(1) {\\n  transform: rotate(0deg);\\n  animation-delay: -1.1s;\\n}\\n.${class_id} div:nth-child(2) {\\n  transform: rotate(30deg);\\n  animation-delay: -1s;\\n}\\n.${class_id} div:nth-child(3) {\\n  transform: rotate(60deg);\\n  animation-delay: -0.9s;\\n}\\n.${class_id} div:nth-child(4) {\\n  transform: rotate(90deg);\\n  animation-delay: -0.8s;\\n}\\n.${class_id} div:nth-child(5) {\\n  transform: rotate(120deg);\\n  animation-delay: -0.7s;\\n}\\n.${class_id} div:nth-child(6) {\\n  transform: rotate(150deg);\\n  animation-delay: -0.6s;\\n}\\n.${class_id} div:nth-child(7) {\\n  transform: rotate(180deg);\\n  animation-delay: -0.5s;\\n}\\n.${class_id} div:nth-child(8) {\\n  transform: rotate(210deg);\\n  animation-delay: -0.4s;\\n}\\n.${class_id} div:nth-child(9) {\\n  transform: rotate(240deg);\\n  animation-delay: -0.3s;\\n}\\n.${class_id} div:nth-child(10) {\\n  transform: rotate(270deg);\\n  animation-delay: -0.2s;\\n}\\n.${class_id} div:nth-child(11) {\\n  transform: rotate(300deg);\\n  animation-delay: -0.1s;\\n}\\n.${class_id} div:nth-child(12) {\\n  transform: rotate(330deg);\\n  animation-delay: 0s;\\n}\\n@keyframes ${class_id} {\\n  0% {\\n    opacity: 1;\\n  }\\n  100% {\\n    opacity: 0;\\n  }\\n}`;$(\"<style>\"+style+\"</style>\").appendTo(\"head\")}$(div).attr(\"id\",class_id),$(instance.canvas[0]).html(div)}"},"reset":{"fn":"function(instance,context){}"}},"platform_type":"web"}}};
139window._bubble_page_load_data.plugins_size['1615402288950x110240248310005760'] = 41009;
140window.preloaded['plugin/third_party:1615402288950x110240248310005760:3.0.0'] = true;
141window.plugins["1684419822973x654671796680785900"] = {"human":"Missing plugin","dependencies":{"use_jquery":true,"plugin_api_version":3},"plugin_elements":{"AAC":{"display":"dummyPlugin","add_is_visible":true,"code":{"preview":{"fn":"function(instance, properties) {\n\n\n\n}"},"initialize":{"fn":"function(instance, context) {\n\nconsole.log(\"do nothing\");\n\n}"},"update":{"fn":"function(instance, properties, context) {\n\n\n\n}"},"reset":{"fn":"function(instance, context) {\n\n\n\n}"}},"platform_type":"web"}}};
142window._bubble_page_load_data.plugins_size['1684419822973x654671796680785900'] = 464;
143window.preloaded['plugin/third_party:1684419822973x654671796680785900:1.0.0'] = true;
144window.plugins["1709562544283x820867915516215300"] = {"human":"Multi file / image Uploader","dependencies":{"use_jquery":true,"plugin_api_version":"4"},"plugin_elements":{"AAC":{"display":"Multi-Uploader","property_applications":{"resizable":true,"MinWidth":true,"Background":true,"Border":true,"Font":true,"BoxShadow":true},"add_hover_pressed":true,"add_is_visible":true,"has_reset_fn":true,"can_fit_width":true,"can_fit_height":true,"fields":{"AAD":{"caption":"Uploader Name","name":"buttonName","rank":0,"editor":"DynamicValue","value":"text","default_val":"Upload Here"},"AAF":{"caption":"Max Number","name":"max_number","rank":1,"editor":"DynamicValue","value":"number","default_val":2},"AAI":{"caption":"Keep File Name","name":"keepName","rank":3,"editor":"Checkbox","default_val":false},"AAJ":{"caption":"Default Value","name":"DefaultValue","rank":4,"editor":"DynamicValue","value":"image","is_list":true,"optional":true},"AAP":{"caption":"preserve order","name":"preserveorder","rank":5,"editor":"Checkbox","default_val":false},"AAY":{"caption":"Keep the List Hidden","name":"keep_the_list_hidden","rank":6,"editor":"Checkbox","default_val":false},"AAZ":{"caption":"DISPLAY VIEW","name":"file_view","rank":8,"editor":"Label"},"AAa":{"caption":"Show FileName ","name":"showfilename","rank":9,"editor":"Checkbox","default_val":false},"AAc":{"caption":"Uploader Btn Color","name":"color","rank":11,"editor":"Color","default_val":"rgba(214,26,26,1)"},"AAd":{"caption":"Uploader Text Color","name":"Uploadertextscolor","rank":12,"editor":"Color","default_val":"rgba(109,206,96,1)"},"AAf":{"caption":"Remove Btn Color","name":"removebtncolor","rank":13,"editor":"Color","default_val":"rgba(216,69,69,1)"},"AAg":{"caption":"CUSTOM STYLING","name":"custom_styling","rank":10,"editor":"Label"},"AAh":{"caption":"Remove Btn text color","name":"removebtntextscolor","rank":14,"editor":"Color","default_val":"rgba(248,248,248,1)"},"AAi":{"caption":"Content Type","name":"content_type","rank":2,"editor":"DynamicValue","value":"text","is_list":false},"AAk":{"caption":"Initial Content","name":"initial_content","rank":7,"editor":"DynamicValue","value":"file","optional":true,"is_list":true}},"states":{"AAG":{"caption":"Uploaded Media","name":"savedImages","value":"file","initialization_code":{"fn":"function(properties,context){return properties.DefaultValue?properties.DefaultValue.get(0,properties.DefaultValue.length()):[]}"},"is_list":true},"AAH":{"caption":"is loading","name":"is_loading","value":"boolean","initialization_code":{"fn":"function(properties,context){return!1}"}},"AAK":{"caption":"individual image","name":"current_image","value":"file","initialization_code":{"fn":"function(properties,context){}"}}},"events":{"AAL":{"caption":"images from uploader are uploaded successfully.","name":"imagesSaved"},"AAM":{"caption":"individual Image is uploaded","name":"individualImageSaved"},"AAT":{"caption":"individual Image is removed","name":"individualImageRemoved"}},"actions":{"AAN":{"caption":"Clear Image from","code":{"fn":"function(instance,properties,context){console.log(\"Clear Action\"),instance.publishState(\"savedImages\",[]),instance.data.images=[],console.log(instance.data.hideImages),delete window.imageUploaderPivot,!1===instance.data.hideImages&&(console.log(instance.data.hideImages),instance.data.temp=[],instance.canvas.find(\".uploaded-images-container\").empty())}"}}
144,"AAO":{"caption":"removeIndividualImage","code":{"fn":"function(instance,properties){if(properties.index<=instance.data.temp.length){const remove=instance.data.temp.splice(properties.index-1,1);instance.publishState(\"savedImages\",instance.data.temp);const removedImageUrl=remove[0];instance.canvas.find(`.image-cell:has(a[href=\"${removedImageUrl}\"])`).remove(),instance.triggerEvent(\"individualImageRemoved\")}else console.log(\"issue in code\")}"},"fields":{"AAS":{"caption":"index","name":"index","rank":0,"editor":"DynamicValue","value":"number","default_val":0}}}},"code":{"preview":{"fn":"function(instance, properties) {\n    \n    instance.canvas.html(`<div>\n        \n            <div class=\"image-uploader-text\" id=\"${instance.data.id}-text\">${properties.buttonName}</div></div>`);\n    \n    instance.canvas.find('>div').css({\n        position: 'absolute',\n        width: '100%',\n        height: 'auto',\n        padding:'10px';\n    });\n     instance.canvas.find('.uploaded-images-container').css({\n        height: 'auto', // Adjust the height based on your layout\n      \n    });\n    instance.canvas.find('.image-uploader-text').css({\n        position: 'absolute',\n        top: '50%',\n        left: '50%',\n        height:'auto',\n        transform: 'translate(-50%, -50%)',\n        width: '100%',\n        textAlign: 'center',\n    });\n   \n  \n}//preview"},"initialize":{"fn":"function(instance,context){instance.data.id=Date.now()+\"-\"+Math.trunc(1e4*Math.random()).toString().padStart(4,\"0\"),instance.data.images=[],instance.data.flag=!0,instance.data.temp=[],console.log(\"images\",instance.data.images),instance.canvas.html(`\\n\\n<div class=\"main\">\\n<div class=\"image-uploader-container\">\\n <label for=\"${instance.data.id}-button\" class=\"image-uploader-label\">\\n        <span class=\"image-uploader-text\" id=\"${instance.data.id}-text\"></span>\\n  </label>\\n        <input class=\"image-uploader-button\" id=\"${instance.data.id}-button\" type=\"file\" name=\"file-${instance.data.id}\" multiple />\\n  \\n</div>\\n</div>`),instance.canvas.append('\\n        <div class=\"uploaded-images-container\" style=\"margin-top: 25px;margin-bottom:15px;width:100%;display:flex; flex-direction:column;\"></div>');const buttonContainer=instance.canvas.find(\".image-uploader-button\").parent();instance.canvas.find(\".uploaded-images-container\").css({position:\"relative\",width:\"100%\",height:\"69%\",top:\"57%\",transform:\"translateY(-50%)\",overflowY:\"auto\",maxHeight:\"300px\",flexDirection:\"column\",display:\"grid\"}),instance.data.imagesContainer=instance.canvas.find(\".uploaded-images-container\"),instance.canvas.find(\".main\").css({position:\"absolute\",width:\"100%\",height:\"100%\",padding:\"2px\"}),instance.canvas.find(\".image-uploader-container\").css({position:\"absolute\",top:\"25px\",left:\"0\",width:\"100%\",zIndex:\"2\",cursor:\"pointer\"}),instance.canvas.find(\".image-uploader-text\").css({position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",width:\"auto\",textAlign:\"center\",padding:\"10px\",fontSize:\"medium\",cursor:\"pointer\",fontWeight:\"bold\"}),instance.canvas.find(\".image-uploader-button\").css({width:\"100%\",height:\"100%\",opacity:0,cursor:\"pointer\",alignItems:\"center\"}),instance.data.uploader=instance.canvas.find(\".image-uploader-button\")[0]}"},"update":{"fn":"function(instance,properties,context){const fileformat=properties.content_type,fileTypes=fileformat.split(\",\"),fileUploaderButton=instance.canvas.find(`${instance.data.id}-button`);function getAcceptedFormats(contentTypeText){switch(contentTypeText.toLowerCase()){case\"pdf\":return\"application/pdf\";case\"png\":return\"image/png\";case\"jpg\":case\"jpeg\":return\"image/jpeg\";case\"svg\":return\"image/svg+xml\";case\"doc\":case\"docx\":return\"application/msword\";default:return\"\"}}const contentType=fileformat.trim().toLowerCase(),acceptedFormats=fileTypes.map((fileType=>getAcceptedFormats(fileType.trim()))).filter(Boolean).join(\",\");fileUploaderButton.accept=acceptedFormats,instance.data.format=acceptedFormats,instance.canvas.find(`#${instance.data.id}-button`).attr(\"accept\",acceptedFormats);const uploaderText=instance.canvas.find(\".image-uploader-text\")[0],color=properties.color,textcolor=properties.Uploadertextscolor;uploaderText.style.setProperty(\"color\",textcolor),uploaderText.style.setProperty(\"background-color\",color),instance.canvas.find(\".image-uploader-text\").html(properties.buttonName),instance.data.images=properties.DefaultValue?properties.DefaultValue.get(0,properties.DefaultValue.length()):[],instance.publishState(\"savedImages\",instance.data.images);var hideImages=void 0!==properties.keep_the_list_hidden&&properties.keep_the_list_hidden;instance.data.hideImages=hideImages;const showfilename=void 0!==properties.showfilename&&properties.showfilename;if(console.log(\"ishowfilename\",showfilename),0===instance.data.temp.length){if(properties.initial_content){console.log(\"initial_content\",properties.initial_content);var images=properties.initial_content.get(0,properties.initial_content.length());console.log(\"images\",images),instance.data.images=images}
144instance.data.images.forEach((img=>{instance.data.temp.push(img);let filename=img.split(\"/\").pop();instance.data.imagesContainer.append(`<div class=\"image-cell\" style=\"margin-bottom: 8px;width:auto;display:flex;align-items:center; justify-content:space-between;\">\\n<div style=\"    text-align: center; display: table-cell; vertical-align: middle;\">\\n    <a href=\"${img}\" style=\" text-align: center;display:block;\"target=\"_blank\">${properties.showfilename?filename:img}</a>\\n</div>\\n     <button class=\"remove-button\" style=\"margin-left: 5px;width: 80px;background-color:${properties.removebtncolor};color:${properties.removebtntextscolor}\">Remove File</button>\\n  </div>`)}))}hideImages?(console.log(\"inside the hide\"),instance.canvas.find(\".uploaded-images-container\").hide(),instance.canvas.find(\".image-uploader-text\").show()):(instance.canvas.find(\".uploaded-images-container\").show(),instance.canvas.find(\".image-uploader-text\").show()),instance.canvas.find(\".image-uploader-button\").off(\"change\").on(\"change\",(e=>{let counter=0,maxCounter=instance.data.uploader.files.length;if(console.log(\"max counter\",instance.data.uploader.files.length),instance.publishState(\"is_loading\",!0),properties.preserveorder){function recurPivot(filePivot){console.log(\"Inside the recurPivot funtion\"),readFile(filePivot).then((response=>{result=response.result,file=response.file;let name=properties.keepName?`${properties.filePrefix?properties.filePrefix:\"\"}${file.name}`:`${properties.filePrefix?properties.filePrefix:\"\"}${Date.now()}.${file.name.split(\".\")[file.name.split(\".\").length-1]}`;context.uploadContent(name,result.split(\"base64,\")[1],((err,url)=>{if(null!==err)alert(\"Error: \"+err);else{instance.data.images.includes(url)||(instance.data.images.push(url),instance.data.temp.push(url));let imgCount=instance.data.temp.length;if(properties.max_number&&imgCount>properties.max_number){alert(`Maximum upload limit reached (${properties.max_number}).`);const excessImages=undefined;return instance.data.images.splice(properties.max_number).forEach((image=>{$(`.image-cell:contains('${image}')`).remove()})),instance.publishState(\"savedImages\",instance.data.temp),instance.publishState(\"is_loading\",!1),instance.canvas.find(\".image-uploader-text\").html(properties.buttonName),instance.canvas.find(\".image-uploader-text\").css({height:\"unset\"}),void instance.canvas.find(\".image-uploader-button\").val(\"\")}instance.data.imagesContainer.append(`<div class=\"image-cell\" style=\"margin-bottom: 8px;width:100%;display:flex;align-items:center; justify-content:space-between;\">\\n<div style=\"    text-align: center; display: table-cell; vertical-align: middle;\">\\n    <a href=\"${url}\" style=\" text-align: center;display:block;\"target=\"_blank\">${properties.showfilename?file.name:url}</a>\\n</div>\\n     <button class=\"remove-button\" >Remove File</button>\\n  </div>`);const uploadedImagesContainer=instance.canvas.find(\".uploaded-images-container\"),imageCells=uploadedImagesContainer.find(\".image-cell\"),imageCell=uploadedImagesContainer.find(\".image-cell:last-child\");if(0===imageCell.length)console.error(\"Image cell not found\");else{const removeButton=imageCell.find(\".remove-button\");if(0===removeButton.length)console.error(\"Remove button not found\");else{var btncolor=properties.removebtncolor;const textcolor=properties.removebtntextscolor;removeButton.css(\"color\",textcolor),removeButton.css(\"background-color\",btncolor)}}instance.canvas.find(\".remove-button\").last().click((function(){let index=instance.data.temp.indexOf(url);$(this).parent().remove(),-1!==index&&instance.data.temp.splice(index,1),instance.publishState(\"savedImages\",instance.data.temp),instance.triggerEvent(\"individualImageRemoved\")}));let imgCount2=instance.data.images.length;instance.publishState(\"savedImages\",instance.data.images),instance.triggerEvent(\"individualImageSaved\"),0==window.imageUploaderPivot.length?(instance.triggerEvent(\"imagesSaved\"),instance.publishState(\"is_loading\",!1),instance.canvas.find(\".image-uploader-text\").html(properties.buttonName),instance.canvas.find(\".image-uploader-text\").css({height:\"unset\"}),instance.canvas.find(\".image-uploader-button\").val(\"\"),delete window.imageUploaderPivot):recurPivot(window.imageUploaderPivot.pop())}}))})).catch((error=>{delete window.imageUploaderPivot,alert(JSON.stringify(error))}))}window.imageUploaderPivot=[...instance.data.uploader.files],console.log(\"Pivot:\",window.imageUploaderPivot),instance.canvas.find(\".image-uploader-text\").html(`<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><svg version=\"1.1\" id=\"loader-1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\\n   width=\"50px\" height=\"50px\" viewBox=\"0 0 40 40\" enable-background=\"new 0 0 40 40\" xml:space=\"preserve\">\\n  <path opacity=\"0.2\" fill=\"${properties.Uploadertextscolor}\" d=\"M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946\\n    s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634\\n    c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z\"/>\\n  <path fill=\"${properties.Uploadertextscolor}\" d=\"M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0\\n    C22.32,8.481,24.301,9.057,26.013,10.047z\">\\n    <animateTransform attributeType=\"xml\"\\n      attributeName=\"transform\"\\n      type=\"rotate\"\\n      from=\"0 20 20\"\\n      to=\"360 20 20\"\\n      dur=\"0.9s\"\\n      repeatCount=\"indefinite\"/>
144\\n    </path>\\n  </svg>`),instance.canvas.find(\".image-uploader-text\").css({display:\"flex\",justifyContent:\"center\",alignItems:\"center\"}),recurPivot(window.imageUploaderPivot.pop())}else for(let file of instance.data.uploader.files)instance.canvas.find(\".image-uploader-text\").html(`<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><svg version=\"1.1\" id=\"loader-1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\\n   width=\"50px\" height=\"50px\" viewBox=\"0 0 40 40\" enable-background=\"new 0 0 40 40\" xml:space=\"preserve\">\\n  <path opacity=\"0.2\" fill=\"${properties.Uploadertextscolor}\" d=\"M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946\\n    s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634\\n    c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z\"/>\\n  <path fill=\"${properties.Uploadertextscolor}\" d=\"M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0\\n    C22.32,8.481,24.301,9.057,26.013,10.047z\">\\n    <animateTransform attributeType=\"xml\"\\n      attributeName=\"transform\"\\n      type=\"rotate\"\\n      from=\"0 20 20\"\\n      to=\"360 20 20\"\\n      dur=\"0.9s\"\\n      repeatCount=\"indefinite\"/>\\n    </path>\\n  </svg>`),instance.canvas.find(\".image-uploader-text\").css({display:\"flex\",justifyContent:\"center\",alignItems:\"center\"}),readFile(file).then((response=>{let result=response.result,file=response.file,name=properties.keepName?`${properties.filePrefix?properties.filePrefix:\"\"}${file.name}`:`${properties.filePrefix?properties.filePrefix:\"\"}${Date.now()}.${file.name.split(\".\")[file.name.split(\".\").length-1]}`;context.uploadContent(name,result.split(\"base64,\")[1],((err,url)=>{if(null!==err)alert(\"Error: \"+err);else{instance.data.images.includes(url)||(instance.data.images.push(url),instance.data.temp=instance.data.images);let imgCount=instance.data.temp.length;if(properties.max_number&&imgCount>properties.max_number)return alert(`Maximum upload limit reached (${properties.max_number}).`),instance.data.images.pop(url),instance.data.temp.pop(url),instance.publishState(\"savedImages\",instance.data.temp),$(`.image-cell:contains('${url}')`).remove(),instance.publishState(\"is_loading\",!1),instance.canvas.find(\".image-uploader-text\").html(properties.buttonName),instance.canvas.find(\".image-uploader-text\").css({height:\"unset\"}),void instance.canvas.find(\".image-uploader-button\").val(\"\");instance.data.imagesContainer.append(`<div class=\"image-cell\" style=\"margin-bottom: 10px;width:100%;display:flex;align-items:center;justify-content:space between;\"> <div style=\"    text-align: center;display: table-cell; vertical-align: middle;\">\\n    <a href=\"${url}\" target=\"_blank\">${properties.showfilename?file.name:url}</a></div>\\n     <button class=\"remove-button\" style=\"margin-left: 5px;\">Remove File</button>\\n  </div>\\n`),console.log(\"image container\",instance.data.imagesContainer);const uploadedImagesContainer=instance.canvas.find(\".uploaded-images-container\");0===uploadedImagesContainer.length&&console.log(\"image container not found\");const imageCells=undefined;0===uploadedImagesContainer.find(\".image-cell\").length&&console.log(\"image cells not found\");const imageCell=uploadedImagesContainer.find(\".image-cell:last-child\");if(0===imageCell.length)console.error(\"Image cell not found\");else{const removeButton=imageCell.find(\".remove-button\");if(0===removeButton.length)console.error(\"Remove button not found\");else{var btncolor=properties.removebtncolor;const textcolor=properties.Uploadertextscolor,btntextcolor=properties.removebtntextscolor;removeButton.css(\"color\",btntextcolor),removeButton.css(\"background-color\",btncolor)}}instance.canvas.find(\".remove-button\").last().click((function(){let index=instance.data.temp.indexOf(url);$(this).parent().remove(),-1!==index&&instance.data.temp.splice(index,1),instance.publishState(\"savedImages\",instance.data.temp),instance.triggerEvent(\"individualImageRemoved\")})),instance.data.images=instance.data.temp;let imgCount2=instance.data.images.length;instance.publishState(\"current_image\",url),instance.publishState(\"savedImages\",instance.data.images),instance.triggerEvent(\"individualImageSaved\"),counter+=1,counter==maxCounter&&(instance.triggerEvent(\"imagesSaved\"),instance.publishState(\"is_loading\",!1),instance.canvas.find(\".image-uploader-text\").html(properties.buttonName),instance.canvas.find(\".image-uploader-text\").css({height:\"unset\"}),instance.canvas.find(\".image-uploader-button\").val(\"\"))}}))})).catch((error=>{alert(error)}))}
144)),instance.publishState(\"savedImages\",instance.data.temp)}","add_debugger":false},"reset":{"fn":"function(instance,context){instance.publishState(\"savedImages\",[]),instance.data.images=[],delete window.imageUploaderPivot}"}},"platform_type":"web"}}};
145window._bubble_page_load_data.plugins_size['1709562544283x820867915516215300'] = 19372;
146window.preloaded['plugin/third_party:1709562544283x820867915516215300:2.0.0'] = true;
147window.plugins["1654441116961x750140337463230500_current"] = {"human":"Reset Data of an Input","dependencies":{"use_jquery":true,"plugin_api_version":3},"plugin_actions":{"AAC":{"display":"Reset data of an input","type":"client_side","fields":{"AAD":{"caption":"Input HTML ID","name":"input_id","rank":0,"editor":"DynamicValue","value":"text"},"AAG":{"caption":"Input Type","name":"input_type","rank":1,"editor":"Dropdown","default_val":"Input"}},"code":{"client":{"fn":"function(properties, context) {\n\tfunction _0x3af1() {\n\t\tvar _0x50d5e5 = [\n\t\t\t'querySelector',\n\t\t\t'selectedIndex',\n\t\t\t'6854302lnchbO',\n\t\t\t'6973635KPDvJG',\n\t\t\t'343948PDZQGf',\n\t\t\t'\\x20>\\x20span\\x20>\\x20input.tt-input',\n\t\t\t'3783282nHylOu',\n\t\t\t'value',\n\t\t\t'5530fwHMjB',\n\t\t\t'1035mIBRMK',\n\t\t\t'input_id',\n\t\t\t'60clVDrY',\n\t\t\t'input_type',\n\t\t\t'Input/Multiline\\x20Input',\n\t\t\t'15183LpDUKi',\n\t\t\t'getElementById',\n\t\t\t'11019504UTrvpd',\n\t\t\t'Searchbox',\n\t\t\t'2962QMDFOv',\n\t\t\t'Dropdown'\n\t\t];\n\t\t_0x3af1 = function() {\n\t\t\treturn _0x50d5e5;\n\t\t};\n\t\treturn _0x3af1();\n\t}\n\n\tfunction _0x46a3(_0x322cc8, _0x4b1be0) {\n\t\tvar _0x3af128 = _0x3af1();\n\t\treturn _0x46a3 = function(_0x46a340, _0x3b3069) {\n\t\t\t_0x46a340 = _0x46a340 - 0x1f3;\n\t\t\tvar _0x2d6c19 = _0x3af128[_0x46a340];\n\t\t\treturn _0x2d6c19;\n\t\t}, _0x46a3(_0x322cc8, _0x4b1be0);\n\t}\n\t(function(_0xb022f6, _0x36c94f) {\n\t\tvar _0x4d741d = _0x46a3,\n\t\t\t_0x19afcc = _0xb022f6();\n\t\twhile (!![]) {\n\t\t\ttry {\n\t\t\t\tvar _0x1fdc2a = parseInt(_0x4d741d(0x1fa)) / 0x1 * (-parseInt(_0x4d741d(0x203)) / 0x2) + parseInt(_0x4d741d(0x1fc)) / 0x3 * (parseInt(_0x4d741d(0x1f5)) / 0x4) + parseInt(_0x4d741d(0x1f4)) / 0x5 + parseInt(_0x4d741d(0x1f7)) / 0x6 + parseInt(_0x4d741d(0x1f3)) / 0x7 + -parseInt(_0x4d741d(0x201)) / 0x8 + -parseInt(_0x4d741d(0x1ff)) / 0x9 * (parseInt(_0x4d741d(0x1f9)) / 0xa);\n\t\t\t\tif (_0x1fdc2a === _0x36c94f)\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\t_0x19afcc['push'](_0x19afcc['shift']());\n\t\t\t} catch (_0x3d5ff8) {\n\t\t\t\t_0x19afcc['push'](_0x19afcc['shift']());\n\t\t\t}\n\t\t}\n\t}(_0x3af1, 0xd7178));\n\n\tfunction client(_0xf91098, _0x26c18a) {\n\t\tvar _0x1afc9d = _0x46a3;\n\t\tif (_0xf91098[_0x1afc9d(0x1fd)] === _0x1afc9d(0x202))\n\t\t\tdocument[_0x1afc9d(0x205)]('#' + _0xf91098[_0x1afc9d(0x1fb)] + _0x1afc9d(0x1f6))['value'] = '';\n\t\telse {\n\t\t\tif (_0xf91098[_0x1afc9d(0x1fd)] === _0x1afc9d(0x1fe))\n\t\t\t\tdocument[_0x1afc9d(0x200)](_0xf91098['input_id'])[_0x1afc9d(0x1f8)] = '';\n\t\t\telse\n\t\t\t\t_0xf91098[_0x1afc9d(0x1fd)] === _0x1afc9d(0x204) && (document[_0x1afc9d(0x200)](_0xf91098[_0x1afc9d(0x1fb)])[_0x1afc9d(0x206)] = 0x0);\n\t\t}\n\t}\n\tclient(properties, context);\n}"}}}}};
148window._bubble_page_load_data.plugins_size['1654441116961x750140337463230500_current'] = 2707;
149window.preloaded['plugin/third_party:1654441116961x750140337463230500_current:current'] = true;
150window.plugins["1654873014185x983900548277207000_current"] = {"human":"Advanced Code Editor+ #darkmode","dependencies":{"use_jquery":true,"plugin_api_version":"4"},"plugin_elements":{"AAD":{"display":"Advanced Code Editor","property_applications":{"resizable":true,"MinWidth":true,"Border":true},"add_is_visible":true,"support_autobinding":true,"autobinding_value":"text","autobinding_is_list":false,"has_reset_fn":true,"can_fit_width":true,"can_fit_height":true,"fields":{"AAR":{"caption":"Language from Dropdown","name":"language_dropdown","rank":0,"editor":"Dropdown","default_val":"Javascript","optional":true},"AAS":{"caption":"Read only ?","name":"read_only","rank":3,"editor":"Checkbox","default_val":false},"AAT":{"caption":"Font Size","name":"font_size","rank":4,"editor":"DynamicValue","value":"number","default_val":12},"AAU":{"caption":"Highlight Active Line ?","name":"highlight_active_line","rank":5,"editor":"DynamicValue","value":"boolean","default_val":true},"AAV":{"caption":"Default Value","name":"default_value","rank":6,"editor":"DynamicValue","value":"text","optional":true},"AAu":{"caption":"Or define it dynamically","name":"info","rank":1,"editor":"Label"},"AAv":{"caption":"Dynamic language","name":"language","rank":2,"editor":"DynamicValue","value":"text","default_val":"Javascript","optional":true},"AAy":{"caption":"Theme from dropdown","name":"theme_dropdown","rank":7,"editor":"Dropdown","default_val":"Dracula","optional":true},"AAz":{"caption":"Or define it dynamically","name":"theme_info","rank":8,"editor":"Label"},"ABA":{"caption":"Theme dynamically","name":"theme","rank":9,"editor":"DynamicValue","value":"text","default_val":"","optional":true},"ABO":{"caption":"Line Height","name":"line_height","rank":10,"editor":"DynamicValue","value":"number","default_val":1},"ABP":{"caption":"Fit To Content","name":"fit_to_content","rank":11,"editor":"Checkbox","default_val":false},"ABQ":{"caption":"Dynamic resizing","name":"dynamic_resizing","rank":12,"editor":"Checkbox","default_val":false}},"states":{"AAW":{"caption":"Is read only ?","name":"is_read_only","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAX":{"caption":"Current Value","name":"value","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAZ":{"caption":"Current Row","name":"current_row","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAb":{"caption":"Current Column","name":"current_column","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAq":{"caption":"Current Language","name":"current_language","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAr":{"caption":"Theme","name":"current_theme","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"ABI":{"caption":"Current Language Extension","name":"current_extension","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}}},"actions":{"AAc":{"caption":"Set Font Size","code":{"fn":"function(instance, properties, context) {\n\n  let editor = ace.edit(instance.data.id);\n  editor.setFontSize(properties.font_size);\n\n}"},"fields":{"AAd":{"caption":"Font Size","name":"font_size","rank":0,"editor":"DynamicValue","value":"number","default_val":14}}},"AAe":{"caption":"Set Read Only","code":{"fn":"function(instance, properties, context) {\n\n\n  let editor = ace.edit(instance.data.id);\n  editor.setReadOnly(properties.read_only);\n  instance.publishState('is_read_only', properties.read_only);\n\n\n\n}"},"fields":{"AAf":{"caption":"Read Only ?","name":"read_only","rank":0,"editor":"DynamicValue","value":"boolean","default_val":false}}}
150,"AAk":{"caption":"Set Value","code":{"fn":"function(instance, properties, context) {\n\n  let final = properties.desired_value;\n  if(final === null) final = \"\";\n\n  let editor = ace.edit(instance.data.id);\n  editor.setValue(final);\n  instance.publishState('value', final);\n\n\n\n}"},"fields":{"AAl":{"caption":"New Value","name":"desired_value","rank":0,"editor":"DynamicValue","value":"text","optional":true}}},"AAm":{"caption":"Set Theme","code":{"fn":"function(instance, properties, context) {\n    let editor = ace.edit(instance.data.id);\n    \n    let theme;\n    let formattedTheme = properties.theme_dropdown;\n    if(properties.theme){\n        theme = properties.theme.replace(/\\s+/g, '_').toLowerCase();\n        formattedTheme = instance.data.themes[theme];\n    }else{\n        theme = instance.data.getKeyByValue(instance.data.themes, properties.theme_dropdown);\n    }\n    editor.setTheme(\"ace/theme/\" + theme);\n    instance.publishState('current_theme', formattedTheme);\n    instance.data.currentTheme = theme;\n\n}"},"fields":{"ABB":{"caption":"Theme from Dropdown","name":"theme_dropdown","rank":0,"editor":"Dropdown","optional":true},"ABC":{"caption":"Or define it dynamically","name":"info","rank":1,"editor":"Label"},"ABD":{"caption":"Theme dynamically","name":"theme","rank":2,"editor":"DynamicValue","value":"text","default_val":"","optional":true}}},"AAo":{"caption":"Set Language","code":{"fn":"function(instance, properties, context) {\n    \n    let language;\n    let formattedLanguage = properties.language_dropdown;\n    if(properties.language){\n        language = properties.language.toLowerCase();\n        if(language === \"c/c++\") language = \"c_cpp\";\n        formattedLanguage = instance.data.languages[language];\n    }else{\n        language = instance.data.getKeyByValue(instance.data.languages, properties.language_dropdown);\n    }\n        \n    let editor = ace.edit(instance.data.id);\n    editor.session.setMode(\"ace/mode/\" + language);\n    instance.publishState('current_language', formattedLanguage);\n\tinstance.data.currentLanguage = language;\n    instance.data.currentExtension = instance.data.getValueByKey(instance.data.extensions, language);\n    instance.publishState('current_extension', instance.data.currentExtension);\n}"},"fields":{"AAp":{"caption":"Language","name":"language","rank":0,"editor":"DynamicValue","value":"text","default_val":"","optional":true},"AAs":{"caption":"You can also choose from this dropdown","name":"info","rank":1,"editor":"Label"},"AAt":{"caption":"Language","name":"language_dropdown","rank":2,"editor":"Dropdown","optional":true}}},"ABJ":{"caption":"Download File","code":{"fn":"function(instance, properties, context) {\n\n\tlet a = document.createElement('a');\n    let text = instance.data.currentValue;\n    a.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));\n    a.style.display = 'none';\n    a.download = properties.file_name + \".\" + instance.data.currentExtension;\n    document.body.appendChild(a);\n    a.click();\n    document.body.removeChild(a);\n}"},"fields":{"ABK":{"caption":"File Name","name":"file_name","rank":0,"editor":"DynamicValue","value":"text","default_val":"my_file"}}},"ABL":{"caption":"Reset Data","code":{"fn":"function(instance, properties, context) {\n\n\tlet editor = ace.edit(instance.data.id);\n    editor.setValue(\"\");\n    instance.publishState('value', \"\");\n\n}"}}},"code":{"preview":{"fn":"function(instance, properties) {\n\n    \n    \n}"},"initialize":{"fn":"function(instance, context) {\n \t  \n}"},"update":{"fn":"function(instance, properties, context) {\n \n\tif(instance.data.initialized){\n        let editor = ace.edit(instance.data.id);\n        const el \t\t\t= document.getElementById(instance.data.id);\n        let changedLanguage;\n        let changedTheme;\n        el.style.lineHeight = properties.line_height;\n\n        if (properties.fit_to_content && properties.dynamic_resizing){\n            instance.data.resizeEditor();\n        }\n\n        if(properties.language){\n            changedLanguage = properties.language.toLowerCase();\n            formattedLanguage = instance.data.languages[changedLanguage];\n\n            editor.session.setMode(\"ace/mode/\" + changedLanguage);\n            instance.data.currentLanguage = changedLanguage;\n            instance.publishState('current_language', formattedLanguage);\n        }\n        \n        if(properties.theme){\n            changedTheme = properties.theme.replace(/\\s+/g, '_').toLowerCase();\n\n            formattedTheme = instance.data.themes[changedTheme];\n\n            editor.setTheme(\"ace/theme/\" + changedTheme);\n            instance.data.currentTheme = changedTheme;\n            instance.publishState('current_theme', formattedTheme);\n        }\n    }\n    \n    function getRandomInt(max) {\n  \t\treturn Math.floor(Math.random() * max);\n\t}\n    \n    instance.data.getKeyByValue = function(object, value) {\n      return Object.keys(object).find(key => object[key] === value);\n    }\n    \n    instance.data.getValueByKey = function(object, value){\n        return object[value];\n    }\n    \n    let languages = {\n        c_cpp: 'C/C++',\n        css: 'CSS',\n        html: 'HTML',\n        java: 'Java',\n        javascript: 'Javascript',\n        r: 'R',\n        scss: 'SCSS',\n        sql: 'SQL',\n        json: 'JSON',\n        php: 'PHP',\n        python: 'Python'\n    }\n    \n    let extensions = {\n        c_cpp: 'cpp',\n        css: 'css',\n        html: 'html',\n        java: 'java',\n        javascript: 'js',\n        r: 'r',\n        scss: 'scss',\n        sql: 'sql',\n        json: 'json',\n        php: 'php',\n        python: 'py'\n    }\n    \n    let themes = {\n        chrome: 'Chrome',\n        twilight: 'Twilight',\n        eclipse: 'Eclipse',\n        terminal: 'Terminal',\n        sqlserver: 'SQLServer',\n        monokai: 'Monokai',\n        ambiance: 'Ambiance',\n        dracula: 'Dracula',\n        cobalt: 'Cobalt',\n        tomorrow_night: 'Tomorrow night',\n        textmate: 'Textmate'\n    }\n    \n    instance.data.languages \t= languages;\n    instance.data.themes \t\t= themes;\n    instance.data.extensions \t= extensions;\n    \n    $(document).ready(function(){\n        if(instance.data.initialized){\n        \treturn;\n    \t}\n        instance.data.initialized = true;\n        \n        const randId \t\t= getRandomInt(999999999);\n        instance.data.id \t= \"editor-\" + randId;\n        let canva \t\t\t= \"<div id=\" + instance.data.id + \" style='position: absolute; top: 0; right: 0; left: 0; bottom: 0;'></div>\";\n        instance.canvas.append($(canva));\n\n        let editor \t\t\t= ace.edit(instance.data.id);\n\n        //Define custom module paths\n        window.define = ace.define;\n        window.require = ace.require;\n        \n        ace.config.setModuleUrl(\"ace/mode/javascript\", \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1654873883959x386052361639240800/mode-javascript.js\");\n        ace.config.setModuleUrl(\"ace/mode/c_cpp\", \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1654878077812x424316312688050240/mode-c_cpp.js\");\n        ace.config.setModuleUrl(\"ace/mode/css\", \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1654878089197x212990468148357440/mode-css.js\");\n        ace.config.setModuleUrl(\"ace/mode/html\", \"https://pagecdn.io/lib/ace/1.4.14/mode-html.js\");\n        ace.config.setModuleUrl(\"ace/mode/java\", \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1654878107059x365975658790111300/mode-java.js\");\n        ace.config.setModuleUrl(\"ace/mode/json\", \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1654878114974x566695995809878100/mode-json.js\");\n        ace.config.setModuleUrl(\"ace/mode/php\", \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1654878124267x713652572563514500/mode-php.js\");\n        ace.config.setModuleUrl(\"ace/mode/python\", \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1654878133764x958515991472266200/mode-python.js\");\n        ace.config.setModuleUrl(\"ace/mode/r\", \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1654878140120x369258231401583500/mode-r.js\");\n        ace.config.setModuleUrl(\"ace/mode/scss\", \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1654878147844x727612309714055400/mode-scss.js\");\n        ace.config.setModuleUrl(\"ace/mode/sql\", \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1654878155928x306627899713212160/mode-sql.js\");\n\n        ace.config.setModuleUrl(\"ace/theme/twilight\", \"https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.5/theme-twilight.min.js\");\n        ace.config.setModuleUrl(\"ace/theme/chrome\", \"https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.5/theme-chrome.min.js\");\n        ace.config.setModuleUrl(\"ace/theme/eclipse\", \"https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.5/theme-eclipse.min.js\");\n        ace.config.setModuleUrl(\"ace/theme/terminal\", \"https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.5/theme-terminal.min.js\");\n        ace.config.setModuleUrl(\"ace/theme/sqlserver\", \"https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.5/theme-sqlserver.min.js\");\n        ace.config.setModuleUrl(\"ace/theme/monokai\", \"https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.5/theme-monokai.min.js\");\n        ace.config.setModuleUrl(\"ace/theme/ambiance\", \"https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.5/theme-ambiance.min.js\");\n        ace.config.setModuleUrl(\"ace/theme/dracula\", \"https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.5/theme-dracula.min.js\");\n        ace.config.setModuleUrl(\"ace/theme/cobalt\", \"https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.5/theme-cobalt.min.js\");\n        ace.config.setModuleUrl(\"ace/theme/tomorrow_night\", \"https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.5/theme-tomorrow_night.min.js\");\n        ace.config.setModuleUrl(\"ace/theme/textmate\", \"https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.5/theme-textmate.min.js\");\n\n        ace.config.setModuleUrl(\"ace/keyboard/vscode\", \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1654881187541x549593162606640100/keybinding-vscode.js\");\n\n\n        //Define session options\n        let language;\n        let formattedLanguage = properties.language_dropdown;\n        if(properties.language){\n            language = properties.language.toLowerCase();\n            formattedLanguage = instance.data.languages[language];\n        }
150else{\n            language = instance.data.getKeyByValue(instance.data.languages, properties.language_dropdown);\n        }\n        instance.data.currentLanguage = language;\n        \n        let theme;\n        let formattedTheme = properties.theme_dropdown;\n        if(properties.theme){\n            theme = properties.theme.replace(/\\s+/g, '_').toLowerCase();\n            formattedTheme = instance.data.themes[theme];\n        }else{\n            theme = instance.data.getKeyByValue(instance.data.themes, properties.theme_dropdown);\n        }\n        instance.data.currentTheme = theme;\n        \n        editor.setOptions({\n            useWorker: false\n        });\n        editor.session.setMode(\"ace/mode/\" + language);\n        editor.setTheme(\"ace/theme/\" + theme);\n        \n        \n        \n        editor.setFontSize(properties.font_size);\n        editor.setBehavioursEnabled(true);\n        editor.setHighlightActiveLine(properties.highlight_active_line);\n        editor.setReadOnly(properties.read_only);\n        editor.setWrapBehavioursEnabled(true);\n        if(properties.default_value) editor.setValue(properties.default_value);\n        editor.setKeyboardHandler('ace/keyboard/vscode');\n\n        instance.data.currentExtension = instance.data.getValueByKey(instance.data.extensions, language);\n        instance.data.currentValue = properties.default_value;\n        \n        //Publish default states\n        instance.publishState('is_read_only', properties.read_only);\n        instance.publishState('value', properties.default_value);\n        instance.publishState('current_row', editor.getCursorPosition().row);\n        instance.publishState('current_column', editor.getCursorPosition().column);\n        instance.publishState('current_language', formattedLanguage);\n        instance.publishState('current_theme', formattedTheme);\n        instance.publishState('current_extension', instance.data.currentExtension);\n\n\n        //Defining events for updating states\n        document.addEventListener('keyup', function(){\n            let editor = ace.edit(instance.data.id);\n            instance.data.currentValue = editor.getValue();\n            instance.publishState('value', editor.getValue());\n            instance.publishState('current_row', editor.getCursorPosition().row);\n            instance.publishState('current_column', editor.getCursorPosition().column);\n            //instance.publishAutobinding(editor.getValue());\n        });\n\n        document.addEventListener('click', function(){\n            let editor = ace.edit(instance.data.id);\n            instance.publishState('current_row', editor.getCursorPosition().row);\n            instance.publishState('current_column', editor.getCursorPosition().column);\n        });\n        \n        instance.data.resizeEditor = function() {\n            const el \t\t= document.getElementById(instance.data.id);\n            const editor \t= ace.edit(instance.data.id);\n            const len \t\t= editor.session.getLength();\n            setTimeout(()=>{\n                let gutter\t\t= document.querySelector('.ace_gutter-cell');\n                if(gutter){\n                    let gutter_h \t= gutter.clientHeight;\n                    let computed_h\t= gutter_h * (len);\n                    let scrollBar\t= document.querySelector('.ace_scrollbar-h')\n                    let offset = 2;\n                    if (scrollBar.style.display != \"none\")\n                        computed_h += scrollBar.offsetHeight;\n                    el.style.height = computed_h + \"px\";\n                    el.parentNode.style.height = computed_h + offset + \"px\";\n                    editor.resize();\n                }\n            },0);\n        }\n        editor.session.on('change', function(e){\n            if (properties.fit_to_content && properties.dynamic_resizing)\n                instance.data.resizeEditor()\n        });\n        if (properties.fit_to_content)\n            instance.data.resizeEditor();\n        \n        if (properties.bubble.auto_binding())\n        {\n            var ed \t\t\t= document.getElementById(instance.data.id);\n            \n            ed.addEventListener(\"focusout\", (event) => {\n                instance.data.prevVal = editor.getValue();\n                instance.publishAutobinding(editor.getValue());\n                setTimeout(() =>
150 {\n                    let editor = ace.edit(instance.data.id);\n                    editor.setValue(instance.data.prevVal);\n                }, 1000);\n        \t});\n        }\n    });\n    \n    \n    \n    \n}"},"reset":{"fn":"function(instance, context) {\n\n    let editor = ace.edit(instance.data.id);\n    editor.setValue(\"\");\n    instance.publishState('value', \"\");\n\n}"}},"platform_type":"web"}}};
151window._bubble_page_load_data.plugins_size['1654873014185x983900548277207000_current'] = 18827;
152window.preloaded['plugin/third_party:1654873014185x983900548277207000_current:current'] = true;
153window.plugins["1655136632622x871337829413683200_current"] = {"human":"Waveform Audio Player #soundcloud","dependencies":{"use_jquery":true,"plugin_api_version":"4"},"plugin_elements":{"AAD":{"display":"Audio Player - Waveform  (Deprecated)","property_applications":{"resizable":true,"MinWidth":true,"Border":true,"Padding":true,"Font":true},"add_hover_pressed":true,"add_is_visible":true,"can_fit_width":true,"can_fit_height":true,"fields":{"AAE":{"caption":"Unplayed Wave Color","name":"wavecolor","rank":0,"editor":"Color","default_val":"rgba(242, 48, 5, 1)"},"AAF":{"caption":"Played Wave Color","name":"progressbarcolor","rank":1,"editor":"Color","default_val":"rgba(166, 3, 3, 1)"},"AAG":{"caption":"Waveform Type","name":"type","rank":2,"editor":"Dropdown","default_val":"Rounded"},"AAH":{"caption":"Cursor Color","name":"cursorcolor","rank":3,"editor":"Color","default_val":"rgba(166, 3, 3, 1)"},"AAI":{"caption":"Audio File","name":"audio","rank":4,"editor":"DynamicValue","value":"file","default_val":""},"AAV":{"caption":"Stop all instances on play","name":"stop_all_on_play","rank":5,"editor":"DynamicValue","value":"boolean","default_val":true},"AAW":{"caption":"Stop or Pause","name":"reset_when_stopped","rank":6,"editor":"DynamicValue","value":"boolean","default_val":true},"AAX":{"caption":"Speed","name":"speed","rank":7,"editor":"DynamicValue","value":"number","default_val":1},"AAd":{"caption":"Muted","name":"mute_by_default","rank":8,"editor":"DynamicValue","value":"boolean","default_val":false},"AAq":{"caption":"Hide Cursor","name":"hide_cursor","rank":9,"editor":"DynamicValue","value":"boolean","default_val":false},"AAs":{"caption":"== Plugins Additional Features ==","name":"additionnal_features","rank":16,"editor":"Label"},"AAw":{"caption":"Normalize","name":"normalize","rank":10,"editor":"DynamicValue","value":"boolean","default_val":false},"ABS":{"caption":"Skip Length","name":"skip_length","rank":11,"editor":"DynamicValue","value":"number","default_val":2},"ABW":{"caption":"---Markers---","name":"---","rank":17,"editor":"Label"},"ABX":{"caption":"Markers Plugin","name":"markers","rank":18,"editor":"DynamicValue","value":"boolean","default_val":true},"ABf":{"caption":"Initial Markers","name":"initial_markers","rank":19,"editor":"DynamicValue","value":"text","optional":true},"ABj":{"caption":"---Media Session---","name":"---","rank":20,"editor":"Label"},"ABk":{"caption":"Media Session","name":"media_session","rank":21,"editor":"DynamicValue","value":"boolean","default_val":true},"ABl":{"caption":"Title","name":"media_session_title","rank":22,"editor":"DynamicValue","value":"text","default_val":"My Song","optional":true},"ABm":{"caption":"Artwork (Image)","name":"media_session_artwork","rank":23,"editor":"DynamicValue","value":"image","optional":true,"default_val":"https://s3.amazonaws.com/appforest_uf/f1655307671702x424521421388901950/sound.svg"},"ABn":{"caption":"Artist","name":"media_session_artist","rank":24,"editor":"DynamicValue","value":"text","default_val":"Wesley W.","optional":true},"ABo":{"caption":"Album","name":"media_session_album","rank":25,"editor":"DynamicValue","value":"text","default_val":"My album","optional":true},"ABv":{"caption":"Preload Peaks","name":"preload_peaks","rank":13,"editor":"DynamicValue","value":"boolean","default_val":false},"ABw":{"caption":"(Optional) Peaks Data (JSON fromat)","name":"peaks_data","rank":14,"editor":"DynamicValue","value":"text","optional":true},"ACB":{"caption":"Consider Audio as Played (sec)","name":"consider_played","rank":15,"editor":"DynamicValue","value":"number","default_val":30}
153,"ACW":{"caption":"Only download on start? 💬 ⚠️.","name":"only_download_on_start","rank":26,"editor":"Checkbox","default_val":false},"ACZ":{"caption":"Allow Downloading","name":"allow_downloading","rank":27,"editor":"DynamicValue","value":"boolean","optional":true,"default_val":false},"ACb":{"caption":"Allow Controls","name":"allow_controls","rank":28,"editor":"Checkbox","default_val":false},"ACe":{"caption":"Toggle Restart Option","name":"togglerestartoption","rank":12,"editor":"DynamicValue","value":"boolean","default_val":false,"optional":true},"ACg":{"caption":"Enable Fadeout","rank":29,"editor":"DynamicValue","value":"boolean","optional":true,"default_val":false,"name":"enable_fadeout"},"ACh":{"caption":"Fadeout Duration","name":"fadeout_duration","rank":30,"editor":"DynamicValue","value":"number","optional":true,"default_val":0}},"states":{"AAO":{"caption":"Is Playing","name":"isplaying","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n}"}},"AAP":{"caption":"Current Time (s)","name":"currentseconds","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n}"}},"AAQ":{"caption":"Total Duration (s)","name":"totalduration","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAY":{"caption":"Current Speed","name":"current_speed","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAe":{"caption":"Is Muted","name":"is_muted","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n\treturn properties.mute_by_default;\n\n}"}},"AAm":{"caption":"Is Loading","name":"is_loading","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAn":{"caption":"% Loaded","name":"percent_loaded","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAy":{"caption":"Image URL","name":"image_url","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"ABO":{"caption":"Current Volume (/1)","name":"current_volume","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\t\n\n}"}},"ABe":{"caption":"Markers Data (JSON)","name":"markers_data","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"ABx":{"caption":"Peaks Data (JSON format)","name":"peaks_data","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"ACD":{"caption":"Current Audio File can be considered as Played","name":"consider_played","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n\treturn false;\n\n}"}},"ACS":{"caption":"Playlist - Number of Songs to be Played Next","name":"number_of_songs_to_be_played_next","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\treturn 0;\n\n}"}},"ACT":{"caption":"Playlist - Title of Songs to be Played Next","name":"title_of_songs_to_be_played_next","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\tlet tab = [];\n    return tab;\n\n}"},"is_list":true},"ACd":{"caption":"Total Duration Formatted","name":"totaldurationformatted","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}}},"events":{"AAK":{"caption":"Started Playing","name":"started"},"AAS":{"caption":"Stopped Playing","name":"stopped"},"AAk":{"caption":"Has been Muted","name":"muted"},"AAl":{"caption":"Has been Unmuted","name":"unmuted"},"AAo":{"caption":"Is Loaded","name":"is_loaded"},"AAv":{"caption":"Finished Playing","name":"finished"},"AAz":{"caption":"Image Generated","name":"image_generated"},"ABP":{"caption":"Volume Changed","name":"volume_changed"},"ABd":{"caption":"Marker Created","name":"marker_created"},"ABi":{"caption":"Markers Cleared","name":"markers_cleared"},"ABy":{"caption":"Peaks Loaded (ready to be saved in DB)","name":"peaks_loaded"},"ACC":{"caption":"Current Audio File can be considered as Played","name":"consider_played"},"ACk":{"caption":"Markers Updated","name":"markers_updated"},"ACl":{"caption":"waveform_reset","name":"waveform_reset"}},"actions":{"AAL":{"caption":"Start","code":{"fn":"function(instance, properties, context) {\n    // Check if there is an audio URL before starting the player\n    if (!instance.data.audio_url) {\n        console.log(\"No audio URL provided. Player will not start.\");\n        return; // Exit the function if there's no audio URL\n    }\n\n    let wavesurfer = instance.data.wavesurfer;\n    const fadeOutDuration = instance.data.fadeoutDuration || 10; \n    let defaultVolume = 1;
153 // Default full volume\n    let currentVolume = defaultVolume; // Set current volume to default\n\n    instance.data.fadeoutInProgress = false; // New flag to track fade-out status\n\n    // Function to fade out the audio\n    function fadeOut(wavesurfer, duration, callback) {\n        const interval = 10; // 0.5ms interval\n        const steps = Math.max(duration / interval, 1); // Calculate steps, ensure at least one step\n        const volumeStep = currentVolume / steps;\n\n        instance.data.fadeoutInProgress = true; // Set fade-out flag\n        const fadeOutInterval = setInterval(() => {\n            currentVolume -= volumeStep;\n            if (currentVolume <= 0) {\n                wavesurfer.setVolume(0);\n                clearInterval(fadeOutInterval);\n                instance.data.fadeoutInProgress = false; // Fade-out completed\n                if (callback) callback();\n            } else {\n                wavesurfer.setVolume(currentVolume);\n            }\n        }, interval);\n    }\n\n    // Reset the volume to default before each play\n    function resetVolume(wavesurfer) {\n        currentVolume = defaultVolume; // Reset volume to default\n        wavesurfer.setVolume(currentVolume); // Apply reset volume to the wavesurfer player\n    }\n\n    // Stop all other playing instances with fade-out\n    if (instance.data.stop_all_on_play) {\n        for (let i = 0; i < window.audioWaveforms.length; i++) {\n            if (window.audioWaveforms[i].mediaContainer.id !== instance.data.divName) {\n                let otherWaveform = window.audioWaveforms[i];\n                if (otherWaveform.isPlaying()) {\n                    if (instance.data.enableFadeout) {\n                        fadeOut(otherWaveform, fadeOutDuration, () => {\n                            if (instance.data.reset_when_stopped) {\n                                otherWaveform.stop();\n                            } else {\n                                otherWaveform.pause();\n                            }\n                        });\n                    } else {\n                        if (instance.data.reset_when_stopped) {\n                            otherWaveform.stop();\n                        } else {\n                            otherWaveform.pause();\n                        }\n                    }\n                }\n            }\n        }\n    }\n\n    // Wait for the fade-out to complete before starting the new player\n    const waitForFadeOut = () => {\n        if (instance.data.fadeoutInProgress) {\n            setTimeout(waitForFadeOut, 100); // Check every 100ms until fade-out finishes\n        } else {\n            if (instance.data.is_loading) {\n                instance.data.authorizedDownload = true;\n                instance.data.loadFile(instance.data.audio_url, properties.peaks_data, properties.media_session_title, properties.media_session_artist, properties.media_session_album, properties.media_session_artwork, properties.markers);\n            }\n\n            // Reset the volume before playing\n            resetVolume(wavesurfer);\n\n            const playPromise = wavesurfer.backend.play(); // Start playing the new audio\n\n            // Handle the play promise\n            if (playPromise !== undefined) {\n                playPromise\n                    .then(() => {\n                        window.mainWaveform = wavesurfer;\n                        instance.publishState('isplaying', true);\n                        instance.triggerEvent('started', function (err) {\n                            if (err) context.reportDebugger(err);\n                        });\n                    })\n                    .catch(error => context.reportDebugger(error));\n            }\n        }\n    };\n\n    // Start the process to wait for the fade-out to finish\n    waitForFadeOut();\n}"},"fields":{"ACi":{"caption":"Keep Current Volume","name":"enable_start_volume","rank":0,"editor":"DynamicValue","value":"boolean","optional":true,"default_val":false}}},"AAM":{"caption":"Stop","code":{"fn":"function(instance, properties, context) {\n    \n    // Start fade out effect\n    if (instance.data.enableFadeout && instance.data.fadeoutDuration > 0) {\n        console.log('Fadeout Duration:', instance.data.fadeoutDuration);\n        let fadeOutDuration = instance.data.fadeoutDuration; \n        let startVolume = instance.data.wavesurfer.getVolume();\n\n        // Calculate steps and volume decrement\n        const interval = 0.5; // 1ms interval\n        const steps = fadeOutDuration / interval;\n        const volumeStep = startVolume / steps;\n        let currentVolume = startVolume;\n\n        // Function to apply fade-out effect\n        const fadeOutInterval = setInterval(() =>
153 {\n            currentVolume -= volumeStep;\n            if (currentVolume <= 0) {\n                instance.data.wavesurfer.setVolume(0);\n                clearInterval(fadeOutInterval);\n                instance.data.wavesurfer.stop();\n                \n                // After stopping reset all states and trigger stopped event\n                instance.publishState('isplaying', false);\n                instance.publishState('currentseconds', 0);\n                instance.data.considerThisSongPlayed = false;\n                instance.publishState('consider_played', false);\n                instance.triggerEvent('stopped', function(err){\n                    if(err)\n                        context.reportDebugger(err);\n                });\n            } else {\n                instance.data.wavesurfer.setVolume(currentVolume);\n            }\n        }, interval);\n\n    } else {\n        // If fadeout is not enabled, stop immediately\n        instance.data.wavesurfer.stop();\n        \n        // Reset all states and trigger stopped event\n        instance.publishState('isplaying', false);\n        instance.publishState('currentseconds', 0);\n        instance.data.considerThisSongPlayed = false;\n        instance.publishState('consider_played', false);\n        instance.triggerEvent('stopped', function(err){\n            if(err)\n                context.reportDebugger(err);\n        });\n    }\n}\n"}},"AAN":{"caption":"Pause","code":{"fn":"function(instance, properties, context) {\n\n\n  \tlet wavesurfer = instance.data.wavesurfer;\n    \n    if(!wavesurfer.isPlaying()){\n        return;\n    }\n    \n    wavesurfer.pause();\n    instance.publishState('isplaying', false);\n    instance.triggerEvent('stopped', function(err){\n        if(err)\n            context.reportDebugger(err);\n    });\n}"}},"AAa":{"caption":"Set Speed","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.wavesurfer.setPlaybackRate(properties.speed);\n    instance.publishState('current_speed', properties.speed);\n\n}"},"fields":{"AAb":{"caption":"Speed","name":"speed","rank":0,"editor":"DynamicValue","value":"number","default_val":1}}},"AAg":{"caption":"Set Muted","code":{"fn":"function(instance, properties, context) {\n\n    let wavesurfer = instance.data.wavesurfer;\n  \twavesurfer.setMute(properties.mute);\n    instance.publishState('is_muted', properties.mute);\n    if(properties.mute){\n        instance.triggerEvent('muted', function(err){\n            if(err){\n                context.reportDebugger(\"An error has been thrown by trying to mute a Waveform Audio Player. Please contact author here : [email protected] to get a quick answer\");\n            }\n        });\n    }else{\n        instance.triggerEvent('unmuted', function(err){\n            if(err){\n                context.reportDebugger(\"An error has been thrown by trying to unmute a Waveform Audio Player. Please contact author here : [email protected] to get a quick answer\");\n            }\n        });\n    }\n\n}"},"fields":{"AAj":{"caption":"Mute ?","name":"mute","rank":0,"editor":"DynamicValue","value":"boolean","default_val":true}}},"ABA":{"caption":"Generate Image","code":{"fn":"function(instance, properties, context) {\n\n\tlet wavesurfer = instance.data.wavesurfer;\n    let rawData = wavesurfer.exportImage('image/' + properties.export_format);\n    let tmp = rawData.split(',');\n    context.uploadContent(properties.file_name + \".\" + properties.image_format, tmp[1], function(err, url){\n        if(err){\n            context.reportDebugger('An error has been thrown while trying to host Waveform image to Bubble stockage. Please contact plugin author ([email protected]) to get a quick answer.');\n        }
153else{\n            let finalURL = \"https:\" + url;\n            instance.publishState('image_url', finalURL);\n\t\t\tinstance.triggerEvent('image_generated', function(err){\n                if(err){\n                    context.reportDebugger('An error has been thrown while trying to trigger event \"Image Generated\".');\n                }\n            });\n        }\n    });\n    \n}"},"fields":{"ABC":{"caption":"Image Format","name":"image_format","rank":0,"editor":"Dropdown","default_val":"png"},"ABD":{"caption":"File Name","name":"file_name","rank":1,"editor":"DynamicValue","value":"text"}}},"ABE":{"caption":"Load New File","code":{"fn":"function(instance, properties, context) {\n    // Function to perform fade out\n    function fadeOutAndStop(callback) {\n        let fadeOutDuration = instance.data.fadeoutDuration || 10; // Use provided duration or fallback to 500 milliseconds\n        let startVolume = instance.data.wavesurfer.getVolume();\n        const step = 0.01; // Adjust step for smoother fade-out\n        const interval = fadeOutDuration * step; // Calculate interval based on fadeout duration and step size\n        \n        let fadeOutInterval = setInterval(() => {\n            let currentVolume = instance.data.wavesurfer.getVolume();\n            let nextVolume = currentVolume - step;\n\n            if (nextVolume <= 0) {\n                instance.data.wavesurfer.setVolume(0);\n                instance.data.wavesurfer.stop();\n                clearInterval(fadeOutInterval);\n                callback(); // Callback after fade-out and stop\n            } else {\n                instance.data.wavesurfer.setVolume(nextVolume);\n            }\n        }, interval);\n    }\n\n    // Check if the audio is playing and needs a fade out\n    if (instance.data.enableFadeout && instance.data.wavesurfer.isPlaying()) {\n        fadeOutAndStop(loadNewFile);\n        instance.data.fadeoutfinished = true;\n    } else {\n        loadNewFile();\n    }\n\n    // Function to load a new file\n    function loadNewFile() {\n        instance.data.loadFile(properties.audio_file, properties.peaks_data, properties.media_session_title, properties.media_session_artist, properties.media_session_album, properties.media_session_artwork, properties.markers_data);\n        instance.data.considerThisSongPlayed = false;\n        instance.publishState('consider_played', false);\n\n        if (properties.peaks_data) {\n            instance.data.wavesurfer.load(properties.audio_file, properties.peaks_data);\n        } else {\n            instance.data.wavesurfer.load(properties.audio_file);\n        }\n\n        // Clear the markers for the new loaded file\n        instance.data.clearMarkers();\n    }\n}\n"},"fields":{"ABF":{"caption":"Audio File","name":"audio_file","rank":0,"editor":"DynamicValue","value":"file"},"ABp":{"caption":"Title","name":"media_session_title","rank":3,"editor":"DynamicValue","value":"text","optional":true,"default_val":"My Song"},"ABq":{"caption":"Album","name":"media_session_album","rank":4,"editor":"DynamicValue","value":"text","optional":true,"default_val":"My Album"},"ABr":{"caption":"Artist","name":"media_session_artist","rank":5,"editor":"DynamicValue","value":"text","optional":true,"default_val":"My Artist"},"ABs":{"caption":"Artwork (Image)","name":"media_session_artwork","rank":6,"editor":"DynamicValue","value":"image","default_val":"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1655308406912x140291738779226620/%E2%80%94Pngtree%E2%80%94sound%20wave%20vector%20ilustration%20in_6341442.png","optional":true},"ABz":{"caption":"Peaks Data (JSON format)","name":"peaks_data","rank":1,"editor":"DynamicValue","value":"text","optional":true},"ACF":{"caption":"Markers Data (JSON Format) (Beta)","name":"markers_data","rank":2,"editor":"DynamicValue","value":"text","optional":true}}},"ABQ":{"caption":"Set Volume","code":{"fn":"function(instance, properties, context) {\n\n    if(properties.volume < 0 || properties.volume > 1){\n        context.reportDebugger(\"Please provide a volume between 0 and 1. The volume you asked is \" + properties.volume);\n        return;\n    }\n\n    instance.data.wavesurfer.setVolume(properties.volume);\n    //Volume change event is triggered from the native volume change event\n\n}"},"fields":{"ABR":{"caption":"Volume","name":"volume","rank":0,"editor":"DynamicValue","value":"number","default_val":1}}},"ABT":{"caption":"Skip Forward","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.wavesurfer.skipForward();\n\n}"}},"ABV":{"caption":"Skip Backward","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.wavesurfer.skipBackward();\n\n}"}},"ABY":{"caption":"Create Marker","code":{"fn":"function(instance, properties, context) {\n\n\tif(!instance.data.markersPlugin){\n        context.reportDebugger('Please enable the Markers plugin on this Waveform Audio Player before using actions related to it.');\n        return;\n    }\n    \n    instance.data.wavesurfer.addMarker({\n        time: properties.time,\n        label: properties.label,\n        color: properties.color,\n        position: properties.position,\n        draggable: properties.draggable\n    });\n    \n    instance.triggerEvent('marker_created', function(err){\n        if(err){\n            context.reportDebugger('An error has been thrown while trying to trigger event \"Marker Created\". Please contact the Flusk team to get an answer under 2 business days.')\n        }\n    });\n    \n    instance.publishState('markers_data', JSON.stringify(instance.data.wavesurfer.markers.markers));\n}"},"fields":{"ABZ":{"caption":"Time","name":"time","rank":0,"editor":"DynamicValue","value":"number","default_val":0},"ABa":{"caption":"Label","name":"label","rank":1,"editor":"DynamicValue","value":"text","default_val":"My marker"},"ABb":{"caption":"Color","name":"color","rank":2,"editor":"Color","default_val":"rgba(255, 64, 64, 1)"},"ABc":{"caption":"Position","name":"position","rank":3,"editor":"Dropdown","default_val":"bottom"},"ABg":{"caption":"Draggable ?","name":"draggable","rank":4,"editor":"DynamicValue","value":"boolean","default_val":true}}},"ABh":{"caption":"Clear all Markers","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.clearMarkers();\n\n}"}},"ACE":{"caption":"Play Previous Track","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.playPreviousTrack();\n\n}"}},"ACH":{"caption":"Play Next Track","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.playNextTrack();\n    \n}"}},"ACJ":{"caption":"Add a new Song to the Playlist","code":{"fn":"function(instance, properties, context) {\n\n\tif(!properties.audio_file) return;\n        \n    let link = properties.audio_file;\n    if(properties.audio_file.slice(0,5) !== \"https\"){\n        link = \"https:\" + properties.audio_file;\n    }\n\n    let playlist = instance.data.playlist;\n    let song = new Song(link, properties.media_session_title, properties.media_session_artist, properties.media_session_album, properties.media_session_artwork, properties.peaks_data, properties.markers_data);\n    playlist.addSong(song);\n\tinstance.publishState('number_of_songs_to_be_played_next', instance.data.playlist.getNumberOfSongsToBePlayedNext());\n     instance.publishState('title_of_songs_to_be_played_next', instance.data.playlist.getTitleOfSongsToBePlayedNext());\n}"},"fields":{"ACK":{"caption":"Audio File","name":"audio_file","rank":0,"editor":"DynamicValue","value":"text"},"ACL":{"caption":"Peaks Data (JSON format)","name":"peaks_data","rank":1,"editor":"DynamicValue","value":"text","optional":true},"ACM":{"caption":"Markers Data (JSON Format) (Beta)","name":"markers_data","rank":2,"editor":"DynamicValue","value":"text","optional":true},"ACN":{"caption":"Title","name":"media_session_title","rank":3,"editor":"DynamicValue","value":"text","default_val":"My Title","optional":true},"ACO":{"caption":"Album","name":"media_session_album","rank":5,"editor":"DynamicValue","value":"text","default_val":"My Album","optional":true},"ACP":{"caption":"Artist","name":"media_session_artist","rank":4,"editor":"DynamicValue","value":"text","default_val":"My Artist","optional":true},"ACQ":{"caption":"Artwork (Image)","name":"media_session_artwork","rank":6,"editor":"DynamicValue","value":"image","default_val":"https://d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1655308406912x140291738779226620/%E2%80%94Pngtree%E2%80%94sound%20wave%20vector%20ilustration%20in_6341442.png","optional":true}}},"ACR":{"caption":"Clear Playlist Queue","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.playlist.clearQueue();\n    instance.publishState('number_of_songs_to_be_played_next', instance.data.playlist.getNumberOfSongsToBePlayedNext());\n    instance.publishState('title_of_songs_to_be_played_next', instance.data.playlist.getTitleOfSongsToBePlayedNext());\n\n}"}},"ACU":{"caption":"Remove a Song from the Playlist by its Name","code":{"fn":"function(instance, properties, context) {\n\n\tlet song;\n    let songs = instance.data.playlist.getSongs();\n    \n    for(let i = 0; i < songs.length; i++){\n        let current = songs[i];\n        if(current.getTitle() === properties.song_name){\n            song = current;\n        }\n    }\n    \n    if(!song){\n        context.reportDebugger(\"No song has been found with this name in the current playlist.\");\n        return;\n    }\n    \n    if(instance.data.playlist.getCurrentSong() === song){\n        context.reportDebugger(\"It is not possible to remove the song that is currently playing from the playlist.\");\n        return;\n    }\n    \n    instance.data.playlist.removeSongByName(song.getTitle());\n    \n    instance.publishState('number_of_songs_to_be_played_next', instance.data.playlist.getNumberOfSongsToBePlayedNext());\n    instance.publishState('title_of_songs_to_be_played_next', instance.data.playlist.getTitleOfSongsToBePlayedNext());\n    \n}"},"fields":{"ACV":{"caption":"Song Name","name":"song_name","rank":0,"editor":"DynamicValue","value":"text"}}},"ACa":{"caption":"Download Peak Data File","code":{"fn":"function(instance, properties, context) {\n    // Function to get peaks and save them to a file\n    const getPeaks = (peaks) =>
153 {\n        return peaks.filter(peak => !!peak).map(item => parseFloat(item.toFixed(2)));\n    }\n\n    const savePeaksToFile = (peaks, filename) => {\n        const blob = new Blob([JSON.stringify(peaks)], { type: 'application/json' });\n        const url = URL.createObjectURL(blob);\n        const a = document.createElement('a');\n        a.style.display = 'none';\n        a.href = url;\n        a.download = filename;\n        document.body.appendChild(a);\n        a.click();\n        window.URL.revokeObjectURL(url);\n        document.body.removeChild(a);\n    }\n\n    // Retrieve the waveform instance\n    let wavesurfer = instance.data.wavesurfer;\n\n    if (wavesurfer) {\n        const peaks = wavesurfer.backend.mergedPeaks ? getPeaks(wavesurfer.backend.mergedPeaks) : [];\n        if (peaks.length > 0) {\n            savePeaksToFile(peaks, 'waveform-peaks.json');\n        } else {\n            context.reportDebugger('No peaks data available.');\n        }\n    } else {\n        context.reportDebugger('WaveSurfer instance is not initialized.');\n    }\n}\n"}},"ACm":{"caption":"Reset Wavefor","code":{"fn":"function(instance, properties, context) {\n\ninstance.data.resetWaveform();\ninstance.data.audio_url = ''\n\n}"}}},"code":{"preview":{"fn":"function(instance, properties) {\n\n    let box = $('<div id=\"preview-id\"></div>');  \n\tbox.css(\"height\", properties.bubble.height)\n\tbox.css(\"width\", properties.bubble.width)\n\tbox.css(\"background-image\", \"url(//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1655308406912x140291738779226620/%E2%80%94Pngtree%E2%80%94sound%20wave%20vector%20ilustration%20in_6341442.png)\")\n\tbox.css(\"background-repeat\", \"no-repeat\")\n\tbox.css(\"background-position\", \"50% 50%\")\n\tbox.css(\"background-size\", \"cover\")\n  \tinstance.canvas.append(box); \n    \n}"},"initialize":{"fn":"function(instance, context) {\n    instance.data.instanceIsReady = false;\n\n}","add_debugger":false},"update":{"fn":"function(instance, properties, context) { // Audio Player - Waveform update\n    instance.data.fadeoutDuration = properties.fadeout_duration;\n    instance.data.enableFadeout = properties.enable_fadeout;\n\n\tfunction formatTime(seconds) {\n        const hours = Math.floor(seconds / 3600);  // Get the hours part\n        const minutes = Math.floor((seconds % 3600) / 60);  // Get the minutes part\n        const secs = Math.floor(seconds % 60);  // Get the seconds part\n        if (hours > 0) {\n            // Format to \"hours:min:sec\" if there are any hours\n            return `${hours}:${minutes.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`;\n        } else {\n            // Format to \"min:sec\" if there are no hours\n            return `${minutes}:${secs.toString().padStart(2, '0')}`;\n        }\n    }\n    //Initializing the Waveform for the first time\n    if (instance.data.wavesurfer) {\n        let wavesurfer = instance.data.wavesurfer;\n        wavesurfer.setWaveColor(properties.wavecolor);\n        wavesurfer.setProgressColor(properties.progressbarcolor);\n        wavesurfer.setCursorColor(properties.cursorcolor);\n        instance.data.loadFile(properties.audio, properties.peaks_data, properties.media_session_title, properties.media_session_artist, properties.media_session_album, properties.media_session_artwork, properties.markers);\n        instance.data.audio_url = properties.audio;\n        wavesurfer.fireEvent('redraw');\n        wavesurfer.drawBuffer();\n    }\n\n    if (instance.data.initialized)\n        return;\n\n    // #new start [tabKey]\n    const {\n        allow_controls\n    } = properties;\n    // #new end [tabKey]\n\n    // Function t get a random int and create a unique ID for this instance of WS\n    function getRandomInt(max) {\n        return Math.floor(Math.random() * max);\n    }\n\n    //Setup media session (useless because doesn't work at the moment)\n    $(document).ready(function () {\n        // Log all audio elements to the console for demonstration\n        if (properties.media_session) {\n            setupMediaSession(properties.media_session_title, properties.media_session_artist, properties.media_session_artwork, properties.media_session_album);\n        }\n    });\n\n    //Define the Playlist class\n    class Playlist {\n        constructor() {\n            this.songs = [];\n            this.index = -1;\n        }\n\n        addSong(song) {\n            this.songs.push(song);\n        }\n\n        addSongs(...songs) {\n            this.songs.push(...songs);\n        }\n\n        removeSongByName(songName) {\n            this.songs = this.songs.filter((song) => song.title !== songName);\n        }\n\n        next() {\n            if ((this.index + 1) < this.songs.length) {\n                this.index++;\n                return true;\n            } else {\n                return false;\n            }\n        }\n\n        previous() {\n            if (this.index > 0) {\n                this.index--;\n                return true;\n            } else {\n                return false;\n            }\n        }\n\n        getSongs() {\n            return this.songs;\n        }\n\n        getCurrentSong() {\n            return this.songs[this.index];\n        }\n\n        getSongAtIndex(i) {\n            if (i >= this.songs.length) return;\n            if (i < 0) return;\n            return this.songs[i];\n        }\n\n        clearQueue() {\n            if (this.songs.length === 0) return;\n            this.songs = [this.getCurrentSong()];\n            this.index = 0;\n        }\n\n        getNumberOfSongsToBePlayedNext() {\n            return ((this.songs.length - 1) - this.index);\n        }\n\n        getTitleOfSongsToBePlayedNext() {\n            let songsTitle = [];\n            for (let i = this.index + 1; i < this.songs.length;
153 i++) {\n                songsTitle.push(this.songs[i].getTitle());\n            }\n            return songsTitle;\n        }\n\n    }\n\n    const getPeaks = (peaks) => {\n        return peaks.filter(peak => !!peak).map(item => parseFloat(item.toFixed(2)))\n    }\n\n    //Defining variables\n    let randomInt = getRandomInt(99999999);\n    let divName = \"waveform-\" + randomInt;\n    let div = \"<div id='\" + divName + \"'></div>\";\n    //let div = \"<div id='\" + divName + \"' style='width: \" + properties.bubble.width() + \"px;'></div>\";\n    instance.publishState('isplaying', false);\n    instance.publishState('currentseconds', 0);\n    instance.publishState('is_loading', true);\n    instance.canvas.append($(div));\n    instance.data.divName = divName;\n    instance.data.initialSong = properties.audio;\n    instance.data.initialSpeed = properties.speed;\n    instance.data.stop_all_on_play = properties.stop_all_on_play;\n    instance.data.reset_when_stopped = properties.reset_when_stopped;\n    instance.data.media_session = properties.media_session;\n    instance.data.playlist = new Playlist();\n    instance.data.audiourl = properties.audio;\n    instance.data.authorizedDownload = false;\n    instance.data.is_loading = true;\n    instance.data.peaksAlreadyLoaded = false;\n    instance.data.currentSongExists = false;\n    instance.data.allow_downloading = properties.allow_downloading;\n    instance.data.only_download_on_start = properties.only_download_on_start;\n    instance.data.props = properties;\n    let wavesurfer;\n\n    //Defining initial configuration from inputs\n    let config = {\n        container: document.querySelector('#' + divName),\n        waveColor: properties.wavecolor,\n        audioRate: properties.speed,\n        progressColor: properties.progressbarcolor,\n        cursorColor: properties.cursorcolor,\n        hideScrollbar: false,//properties.hide_scrollbar,\n        hideCursor: properties.hide_cursor,\n        responsive: true,\n        plugins: [],\n        normalize: properties.normalize,\n        ignoreSilenceMode: true,\n        skipLength: properties.skip_length,\n        width: properties.bubble.width(),\n        backend: \"MediaElement\",\n        mediaControls: allow_controls, // #new [tabKey]\n        xhr: {\n            cache: \"default\",\n            mode: \"cors\",\n            method: \"GET\",\n            headers: [\n                { key: \"cache-control\", value: \"no-cache\" },\n                { key: \"pragma\", value: \"no-cache\" }\n            ]\n        }\n\n    }\n\n    if (properties.type == 'Bars') {\n        config.barWidth = 2;\n        config.barHeight = 1;\n        config.barGap = null;\n    }\n\n    if (properties.type == 'Rounded') {\n        config.barWidth = 3;\n        config.barRadius = 3;\n        config.barGap = 3;\n        config.cursorWidth = 1;\n        config.height = 200;\n    }\n\n    //PLUGINS\n\n    //Cursor\n    if (properties.cursor) {\n        instance.data.cursorPlugin = true;\n        config.plugins.push(WaveSurfer.cursor.create({}));\n    }\n\n    //Markers\n    if (properties.markers) {\n        instance.data.markersPlugin = true;\n        if (properties.initial_markers) {\n            try {\n                instance.publishState('markers_data', properties.initial_markers.length > 0 ? properties.initial_markers : \"\");\n                config.plugins.push(\n                    WaveSurfer.markers.create({\n                        markers: JSON.parse(properties.initial_markers)\n                    })\n                );\n            } catch (e) {\n                context.reportDebugger('The Initial Markers data seems not to be in the right format. Please use what the custom state \"Markers Data (JSON)\" outputs.');\n            }\n        } else {\n            config.plugins.push(\n                WaveSurfer.markers.create({})\n            );\n        }\n    }\n\n    //END PLUGINS\n\n    // Add custom CSS to change the color of the cursor defined by the user in the plugin settings\n\n    $('head').append(`<style>\n    #${divName} cursor {\n      border-right-color: ${properties.cursor_color} !important;\n      opacity: 1 !important;\n    }\n  </style>`);\n\n    //Finally create the Waveform and save it in instance.data to retrieve it later\n    wavesurfer = WaveSurfer.create(config);\n    instance.data.wavesurfer = wavesurfer;\n// Now add the event listener for marker updates\nif (instance.data.wavesurfer && instance.data.markersPlugin) {\n    // Listen for marker position updates\n    instance.data.wavesurfer.on('marker-drop', function(marker) {\n        // Retrieve the updated markers\n        let updatedMarkers = instance.data.wavesurfer.markers.markers;\n\n        // Convert the marker data to JSON format\n        let updatedMarkersData = JSON.stringify(updatedMarkers);\n\n        // Publish the updated markers to the custom state\n        instance.publishState('markers_data', updatedMarkersData);\n\n        // Optionally trigger an event to inform that the markers have been updated\n        instance.triggerEvent('markers_updated', function(err) {\n            if (err) context.reportDebugger('An error occurred while trying to trigger the \"markers_updated\" event.');\n        });\n    });\n}\n\n    //Function to clear markers\n    instance.data.clearMarkers = function () {\n        if (!instance.data.markersPlugin) {\n            return;\n        }\n\n        instance.data.wavesurfer.clearMarkers();\n\n        instance.triggerEvent('markers_cleared', function (err) {\n            if (err) {\n                context.reportDebugger('An error has been thrown while trying to trigger event \"Markers Cleared\". Please get in touch with the Flusk team.')\n            }\n        });\n\n        if (instance.data.wavesurfer.markers.markers) {\n            instance.publishState('markers_data', JSON.stringify(instance.data.wavesurfer.markers.markers));\n        }\n    }\n\n    //Function to play the next track in the playlist\n    instance.data.playNextTrack = function () {\n        let playlist = instance.data.playlist;\n        let answer = playlist.next();\n        if (!answer) return;\n        let newSong = playlist.getCurrentSong();\n\n        instance.data.playNewFileInsideWavesurfer(newSong);\n        instance.publishState('number_of_songs_to_be_played_next', instance.data.playlist.getNumberOfSongsToBePlayedNext() ? instance.data.playlist.getNumberOfSongsToBePlayedNext() : 0);\n        instance.publishState('title_of_songs_to_be_played_next', instance.data.playlist.getTitleOfSongsToBePlayedNext() ? instance.data.playlist.getTitleOfSongsToBePlayedNext() : [\"error\"]);\n    }\n\n    instance.data.toggleRestartOption = properties.togglerestartoption;\n    //Function to play the previous track in the playlist\n    instance.data.playPreviousTrack = function () {\n        let playlist = instance.data.playlist;\n        let wavesurfer = instance.data.wavesurfer;\n        let currentSong = playlist.getCurrentSong();\n        let currentPosition = wavesurfer.getCurrentTime();\n        let songDuration = wavesurfer.getDuration();\n\n        // Check if the current song has played more than 20% of its duration\n        if (instance.data.toggleRestartOption && currentPosition > 0.2 * songDuration) {\n            // Restart the current song\n            wavesurfer.seekTo(0);\n        } else {\n            // Play the previous song\n            let answer = playlist.previous();\n            if (!answer) return;\n            let newSong = playlist.getCurrentSong();\n    \n            instance.data.playNewFileInsideWavesurfer(newSong);\n        }\n    \n        instance.publishState('number_of_songs_to_be_played_next', instance.data.playlist.getNumberOfSongsToBePlayedNext() ? instance.data.playlist.getNumberOfSongsToBePlayedNext() : 0);\n        instance.publishState('title_of_songs_to_be_played_next', instance.data.playlist.getTitleOfSongsToBePlayedNext() ? instance.data.playlist.getTitleOfSongsToBePlayedNext() : [\"error\"]);\n    };
153\n    \n\n    //Setting up Media Session for native actions (iPhone lockscreen for example)\n    function setupMediaSession(title, artist, artwork, album) {\n\n        //If the browser does not support media sessions, return\n        if (!('mediaSession' in navigator)) {\n            return;\n        }\n\n        if (window.waveformMediaSessionInitialized) {\n            return;\n        }\n\n        window.mainWaveform.pause();\n        navigator.mediaSession.playbackState = \"paused\";\n\n        navigator.mediaSession.setActionHandler(\"play\", function () {\n            navigator.mediaSession.playbackState = \"playing\";\n            window.mainWaveform.play();\n            instance.publishState('isplaying', true);\n            instance.triggerEvent('started', function (err) {\n                if (err) context.reportDebugger(err);\n            });\n        });\n\n        navigator.mediaSession.setActionHandler(\"pause\", function () {\n            navigator.mediaSession.playbackState = \"paused\";\n            window.mainWaveform.pause();\n            instance.publishState('isplaying', false);\n            instance.triggerEvent('stopped', function (err) {\n                if (err) context.reportDebugger(err);\n            });\n        });\n\n        navigator.mediaSession.setActionHandler('previoustrack', () => {\n            return;\n\n            /*\n\n            Can't make it work right now.. :(\n\n            instance.data.playPreviousTrack();\n            navigator.mediaSession.playbackState = \"playing\";\n            instance.publishState('isplaying', true);\n            */\n        });\n\n        navigator.mediaSession.setActionHandler('nexttrack', () => {\n            return;\n\n            /*\n            Can't make it work right now.. :(\n\n            instance.data.playNextTrack();\n            navigator.mediaSession.playbackState = \"playing\";\n            instance.publishState('isplaying', true);\n            */\n        });\n\n        navigator.mediaSession.setPositionState({\n            duration: window.mainWaveform.getDuration() || 0,\n            playbackRate: 1,\n            position: 0\n        });\n\n        window.waveformMediaSessionInitialized = true;\n    }\n\n    //Load new Audio into Media Session API\n    // This is what users will see on their locked iPhone screen when a song is playing in the background\n    instance.data.loadNewFileMediaSession = function (song) {\n        navigator.mediaSession.metadata = new MediaMetadata({\n            title: song.getTitle(),\n            artist: song.getArtist(),\n            album: song.getAlbum(),\n            artwork: song.getArtwork() ? [{ src: song.getArtwork(), sizes: \"128x128\" }] : []\n        });\n    }\n\n    //Function to play new file inside the Wavesurfer - most of the stuff is happening here\n    instance.data.playNewFileInsideWavesurfer = function (song) {\n\n        // Throw an error if there's no link to the audio file\n        if (!song.getLink()) {\n            console.log(\"No link\");\n            return;\n        }\n\n        let preloadPeaks = properties.preload_peaks;\n        let finalPeaks;\n\n        // If the provided song has peaks data\n        if (song.getPeaksData()) {\n            if (!instance.data.peaksAlreadyLoaded) {\n                console.log('AAAA');\n                try {\n                    finalPeaks = JSON.parse(song.getPeaksData());\n                    instance.data.finalPeaks = finalPeaks;\n                    instance.publishState('peaks_data', JSON.stringify(finalPeaks));\n                } catch (e) {\n                    preloadPeaks = false;\n                }\n            }\n            else {\n                finalPeaks = JSON.parse(song.getPeaksData());\n                instance.data.finalPeaks = finalPeaks;\n                console.log('BBB');\n                instance.publishState('peaks_data', JSON.stringify(finalPeaks));\n            }\n        }\n\n        let main = wavesurfer;\n        if (preloadPeaks && finalPeaks) {\n            if (properties.only_download_on_start && !instance.data.authorizedDownload) {\n                // This is used to draw the peaks without downloading the mp3 file (optimization for when you have many instances of the plugin, so that everything gets not downloaded at page load
153)\n                main.backend.setPeaks(finalPeaks);\n                main.drawBuffer();\n                instance.data.peaksAlreadyLoaded = true;\n            } else {\n                // Otherwise, download the mp3 and draw the peaks from the saved data\n                main.load(song.getLink(), finalPeaks);\n                main.backend.setPeaks(finalPeaks);\n                main.drawBuffer();\n            }\n        } else {\n            //Here the file gets loaded automatically, except if we only want it to download on start action\n            if (song.getPeaksData() && (!properties.only_download_on_start || instance.data.authorizedDownload)) {\n                main.load(song.getLink(), instance.data.finalPeaks);\n            }\n            else {\n                main.load(song.getLink(), main.backend.peaks);\n            }\n        }\n    }\n\n    //Load audio & peaks\n    instance.data.loadFile = function (audioLink, peaks, songTitle, songArtist, songAlbum, songArtwork, markersData) {\n        if (!audioLink) {\n            console.error(\"No audio provided\");\n            return;\n        }\n    \n         // Clear previous audio file and reset if the same file is uploaded\n        if (instance.data.audio_url === audioLink) {\n            console.log(\"Re-uploading the same file, forcing peaks to regenerate.\");\n            instance.data.wavesurfer.empty(); // Clear previous waveform\n            // instance.data.wavesurfer.clearRegions(); // Clear any regions or markers\n        }\n        instance.data.wavesurfer.empty(); // Clear the previous waveform\n\n        // Ensure peaks data regenerates even for the same file\n        instance.data.peaksAlreadyLoaded = false;  // Reset the flag to force peak generation\n        instance.publishState('peaks_data', \"\");   // Clear peaks data state\n    \n        // Needs to be HTTPS, otherwise can throw errors when trying to download the source file\n        let link = audioLink.slice(0, 5) !== \"https\" ? `https:` + audioLink : audioLink;\n        console.log(link);\n        \n        instance.publishState('is_loading', true);\n        let playlist = instance.data.playlist;\n        let song = new Song(link, songTitle, songArtist, songAlbum, songArtwork, peaks, markersData);\n        playlist.addSong(song);\n        playlist.next();\n        instance.data.playNewFileInsideWavesurfer(song);\n    \n        // Re-trigger peaks loaded event after the file is loaded\n        instance.data.wavesurfer.on('waveform-ready', function () {\n            instance.triggerEvent('peaks_loaded', function (err) {\n                if (err) context.reportDebugger('An error occurred while trying to trigger the \"peaks_loaded\" event.');\n            });\n        });\n    };\n    \n\n // Function to reset the waveform and remove the audio\ninstance.data.resetWaveform = function() {\n    if (instance.data.wavesurfer) {\n        // Stop any playing audio\n        instance.data.wavesurfer.stop();\n\n        // Clear the waveform container\n        let container = document.querySelector('#' + instance.data.divName);\n        if (container) {\n            container.innerHTML = ''; // Clear the waveform display\n        }\n\n        // Clear markers if they exist\n        if (instance.data.markersPlugin) {\n            instance.data.wavesurfer.clearMarkers();\n        }\n\n        instance.data.wavesurfer.empty(); // Clear the previous waveform\n\n        // Clear peaks data\n        instance.data.peaksAlreadyLoaded = false;\n        instance.data.finalPeaks = null;\n\n        // Reset all custom states\n        instance.publishState('isplaying', false);\n        instance.publishState('currentseconds', 0);\n        instance.publishState('is_loading', true);\n        instance.publishState('totalduration', 0);\n        instance.publishState('totaldurationformatted', \"0:00\");\n        instance.publishState('peaks_data', \"\");  // Clear peaks data state\n\n        // Optionally, reset playlist and other data\n        instance.data.playlist = new Playlist(); // Reset the playlist if needed\n        instance.data.initialized = false; // Mark as uninitialized if you want to reinitialize it later\n\n        // Remove intervals to 
153stop accessing wavesurfer\n        if (instance.data.intervalId) {\n            clearInterval(instance.data.intervalId);\n        }\n\n        // Remove event listeners\n        instance.data.wavesurfer.un('play');\n        instance.data.wavesurfer.un('pause');\n        instance.data.wavesurfer.un('waveform-ready');\n        instance.data.wavesurfer.un('seek');\n        instance.data.wavesurfer.un('audioprocess');\n        instance.data.wavesurfer.un('loading');\n        instance.data.wavesurfer.un('finish');\n        instance.data.wavesurfer.un('volume');\n\n        // Trigger an event to indicate the reset\n        instance.triggerEvent('waveform_reset', function(err) {\n            if (err) context.reportDebugger('An error occurred while trying to trigger the \"waveform_reset\" event.');\n        });\n\n        // Optionally remove the waveform from the global list\n        let index = window.audioWaveforms.indexOf(instance.data.wavesurfer);\n        if (index > -1) {\n            window.audioWaveforms.splice(index, 1);\n        }\n\n        // Clear the instance data related to wavesurfer\n       // instance.data.wavesurfer.destroy();\n        instance.data.wavesurfer = null;\n    }\n};\n\n\n    //Finally load the initial file with all the properties\n    instance.data.loadFile(properties.audio, properties.peaks_data, properties.media_session_title, properties.media_session_artist, properties.media_session_album, properties.media_session_artwork, properties.markers_data);\n\n    //Define the height of the Waveform\n    wavesurfer.setHeight(properties.bubble.height());\n\n    //When the Waveform fires the 'ready' event, publish custom states\n    wavesurfer.on('ready', function () {\n        // ready fires more than once\n        // \"instanceIsReady\" is used to implement the code just once\n        if (!instance.data.instanceIsReady) {\n            const audioElement = instance.data.wavesurfer.mediaContainer.childNodes[1];\n\n            // allow/block the download from more options button\n            if (!properties.allow_downloading) {\n                audioElement.setAttribute('controlsList', 'nodownload');\n\n                // block the right-click menu on the audio element\n                // where is available \"Save audio as...\"\n                audioElement.addEventListener('contextmenu', event => {\n                    event.preventDefault();\n                });\n            } else\n                audioElement.removeAttribute('controlsList');\n\n            instance.data.instanceIsReady = true;\n        }\n\n        if (properties.mute_by_default) {\n            wavesurfer.setMute(true);\n            instance.publishState('is_muted', true);\n        }\n\n        instance.publishState('current_speed', wavesurfer.getPlaybackRate() ? wavesurfer.getPlaybackRate() : \"1\");\n        instance.publishState('is_loading', false);\n        instance.data.is_loading = false;\n        instance.publishState('current_volume', wavesurfer.getVolume() ? wavesurfer.getVolume() : \"1\");\n        instance.triggerEvent('is_loaded', function (err) {\n            if (err) context.reportDebugger('An error has been thrown while firing event \"is_loaded\". Please get in touch with the Flusk team.');\n        });\n    });\n\n    //When the Waveform is paused, update the 'isplaying' custom state\n    wavesurfer.on('pause', function () {\n        instance.publishState('isplaying', false);\n    });\n\n    //When the Waveform is started (again), update the 'isplaying' custom state\n    wavesurfer.on('play', function () {\n        instance.publishState('isplaying', true);\n    });\n\n    //When the Waveform fires the 'loading' event (each ms while loading), update the loading percentage in the custom state\n    wavesurfer.on('loading', function (percent) {\n        instance.publishState('percent_loaded', percent ? percent : -1);\n    });\n\n    //When the Waveform finish a song, play next track in the playlist\n    wavesurfer.on('finish', function () {\n        instance.triggerEvent('finished', function (err) {\n            if (err) context.reportDebugger('An error has been throwed while trying to fire event \"Finished\". Please get in touch with the Flusk team.');\n        });\n\n        if (instance.data.playlist.getNumberOfSongsToBePlayedNext() > 0) {\n            instance.data.playNextTrack();\n            instance.data.wavesurfer.play();\n        }\n\n    });\n\n    //Trigger a custom event when the volume is changed\n    wavesurfer.on('volume', function (newVolume) {\n        instance.publishState('current_volume', newVolume ? newVolume : \"-1\");\n        instance.triggerEvent('volume_changed', function (err) {\n            if (err) context.reportDebugger('An error has been throwed while trying to fire event \"Volume Change\". Please get in touch with the Flusk team.');\n        });\n    });
153\n\n    //Update current seconds in the custom state event when manually exploring the track\n    wavesurfer.on('seek', function () {\n        if(instance.data.wavesurfer){\n        instance.publishState('currentseconds', wavesurfer.getCurrentTime() ? Math.round(wavesurfer.getCurrentTime()) : -1);\n        }\n    });\n\n    //When the Waveform is loaded ('waveform-ready' event), load the MediaSession, publish the peaks in the custom state & trigger 'peaks_loaded' custom event\n    wavesurfer.on('waveform-ready', function () {\n        // instance.publishState('totalduration', Math.round(wavesurfer.getDuration() ? wavesurfer.getDuration() : \"0\"));\n        if (properties.media_session) {\n            instance.data.loadNewFileMediaSession(instance.data.playlist.getCurrentSong());\n        }\n    \n        const duration = typeof(wavesurfer.getDuration()) !== 'NaN' ? wavesurfer.getDuration() : 0;\n        if (!isNaN(duration)) {\n            instance.publishState('totalduration', Math.round(duration));\n    \n            const totalDurationSeconds = Math.round(duration );\n            const formattedDuration = formatTime(totalDurationSeconds);\n            instance.publishState('totaldurationformatted', formattedDuration);\n        } else {\n            console.error('Failed to get a valid duration after waveform is ready.');\n        }        \n    \n        // Always publish peaks data, even for the same file\n        const peaks = wavesurfer.backend.mergedPeaks ? JSON.stringify(getPeaks(wavesurfer.backend.mergedPeaks)) : JSON.stringify(instance.data.finalPeaks);\n        \n        if (peaks && peaks !== '[]') {\n            // Update peaks data without comparing to previous peaks\n            instance.data.newPeaks = wavesurfer.backend.mergedPeaks; // Store the peaks for future use\n            instance.publishState('peaks_data', peaks); // Publish the peaks data to the state\n            instance.triggerEvent('peaks_loaded', function (err) {\n                if (err) context.reportDebugger('An error occurred while trying to publish event \"Peaks Loaded.\"');\n            });\n        }\n    });\n    \n\n\n    //When the Waveform is playing, calculate if we should consider this audioFile as 'played' or not (depending on the values the user set to consider it as played)\n    wavesurfer.on('audioprocess', function () {\n        let current = Math.round(wavesurfer.getCurrentTime());\n        if (current >= properties.consider_played && !instance.data.considerThisSongPlayed) {\n            instance.triggerEvent('consider_played', function (err) {\n                if (err) context.reportDebugger('An error occured while trying to fire event \"Current Audio File can be considered as played\".');\n            });\n            instance.publishState('consider_played', true);\n            instance.data.considerThisSongPlayed = true;\n        }\n    })\n\n    //Loop function that update the current seconds in the custom state every 500ms\n    setInterval(function () {\n        if(instance.data.wavesurfer){\n        if (wavesurfer?.isPlaying())\n            instance.publishState('currentseconds', wavesurfer.getCurrentTime() ? Math.round(wavesurfer.getCurrentTime()) : -1);\n        }\n    }, 500);\n\n    //Define the audioWaveform array that we store in the window object\n    if (!window.audioWaveforms) {\n        window.audioWaveforms = [];\n    }\n    window.audioWaveforms.push(wavesurfer);\n    window.mainWaveform = wavesurfer;\n\n    // Finally set the instance as initialized so this codes only executes once\n    instance.data.initialized = true;\n}","add_debugger":false},"reset":{"fn":"function(instance, context) {\n\n\n\n}"}},"platform_type":"web"},"AKT":{"display":"Audio Player - Waveform ","property_applications":{"resizable":true,"MinWidth":true,"Border":true,"Padding":true,"Font":true},"add_hover_pressed":true,"add_is_visible":true,"can_fit_width":true,"can_fit_height":true,"fields":{"AJa":{"caption":"Unplayed Wave Color","name":"wavecolor","rank":0,"editor":"Color","default_val":"rgba(242, 48, 5, 1)"},"AJb":{"caption":"Played Wave Color","name":"progressbarcolor","rank":1,"editor":"Color","default_val":"rgba(166, 3, 3, 1)"},"AJc":{"caption":"Waveform Type","name":"type","rank":2,"editor":"Dropdown","default_val":"Rounded"},"AJd":{"caption":"Cursor Color","name":"cursorcolor","rank":7,"editor":"Color","default_val":"rgba(166, 3, 3, 1)"},"AJe":{"caption":"Audio File","name":"audio","rank":8,"editor":"DynamicValue","value":"file","default_val":""},"AJf":{"caption":"Stop all instances on play","name":"stop_all_on_play","rank":9,"editor":"DynamicValue","value":"boolean","default_val":true},"AJg":{"caption":"Stop or Pause","name":"reset_when_stopped","rank":10,"editor":"DynamicValue","value":"boolean","default_val":true},"AJh":{"caption":"Speed","name":"speed","rank":11,"editor":"DynamicValue","value":"number","default_val":1},"AJi":{"caption":"Muted","name":"mute_by_default","rank":12,"editor":"DynamicValue","value":"boolean","default_val":false},"AJj":{"caption":"Hide Cursor","name":"hide_cursor","rank":13,"editor":"DynamicValue","value":"boolean","default_val":false},"AJk":{"caption":"== Plugins Additional Features ==","name":"additionnal_features","rank":19,"editor":"Label"},"AJl":{"caption":"Normalize","name":"normalize","rank":14,"editor":"DynamicValue","value":"boolean","default_val":false},"AJp":{"caption":"---Media Session---","name":"---","rank":20,"editor":"Label"},"AJq":{"caption":"Media Session","name":"media_session","rank":21,"editor":"DynamicValue","value":"boolean","default_val":true},"AJr":{"caption":"Title","name":"media_session_title","rank":22,"editor":"DynamicValue","value":"text","default_val":"My Song","optional":true},"AJs":{"caption":"Artwork (Image)","name":"media_session_artwork","rank":23,"editor":"DynamicValue","value":"image","optional":true,"default_val":"https://s3.amazonaws.com/appforest_uf/f1655307671702x424521421388901950/sound.svg"},"AJt":{"caption":"Artist","name":"media_session_artist","rank":24,"editor":"DynamicValue","value":"text","default_val":"Wesley W.","optional":true},"AJu":{"caption":"Album","name":"media_session_album","rank":25,"editor":"DynamicValue","value":"text","default_val":"My album","optional":true},"AJv":{"caption":"Preload Peaks","name":"preload_peaks","rank":16,"editor":"DynamicValue","value":"boolean","default_val":false},"AJw":{"caption":"(Optional) Peaks Data (JSON fromat)","name":"peaks_data","rank":17,"editor":"DynamicValue","value":"text","optional":true},"AJx":{"caption":"Consider Audio as Played (sec)","name":"consider_played","rank":18,"editor":"DynamicValue","value":"number","default_val":30}
153,"AJy":{"caption":"Only download on start? 💬 ⚠️.","name":"only_download_on_start","rank":26,"editor":"Checkbox","default_val":false},"AJz":{"caption":"Allow Downloading","name":"allow_downloading","rank":27,"editor":"DynamicValue","value":"boolean","optional":true,"default_val":false},"AKA":{"caption":"Allow Controls","name":"allow_controls","rank":28,"editor":"Checkbox","default_val":false},"AKB":{"caption":"Toggle Restart Option","name":"togglerestartoption","rank":15,"editor":"DynamicValue","value":"boolean","default_val":false,"optional":true},"AKZ":{"caption":"Bar Width","name":"bar_width","rank":3,"editor":"DynamicValue","value":"number","optional":false,"default_val":5},"AKa":{"caption":"Bar Height","name":"bar_height","rank":4,"editor":"DynamicValue","value":"number","optional":false,"default_val":5},"AKb":{"caption":"Bar Gap","name":"bar_gap","rank":6,"editor":"DynamicValue","value":"number","default_val":5},"AKc":{"caption":"Bar Radius","name":"bar_radius","rank":5,"editor":"DynamicValue","value":"number","default_val":5},"AKh":{"caption":"Height","name":"waveheight","rank":29,"editor":"DynamicValue","value":"number","optional":true}},"states":{"AKE":{"caption":"Is Playing","name":"isplaying","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n}"}},"AKF":{"caption":"Current Time (s)","name":"currentseconds","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n}"}},"AKG":{"caption":"Total Duration (s)","name":"totalduration","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AKH":{"caption":"Current Speed","name":"current_speed","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AKI":{"caption":"Is Muted","name":"is_muted","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n\treturn properties.mute_by_default;\n\n}"}},"AKJ":{"caption":"Is Loading","name":"is_loading","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AKK":{"caption":"% Loaded","name":"percent_loaded","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AKL":{"caption":"Image URL","name":"image_url","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AKM":{"caption":"Current Volume (/1)","name":"current_volume","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\t\n\n}"}},"AKO":{"caption":"Peaks Data (JSON format)","name":"peaks_data","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AKP":{"caption":"Current Audio File can be considered as Played","name":"consider_played","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n\treturn false;\n\n}"}},"AKQ":{"caption":"Playlist - Number of Songs to be Played Next","name":"number_of_songs_to_be_played_next","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\treturn 0;\n\n}"}},"AKR":{"caption":"Playlist - Title of Songs to be Played Next","name":"title_of_songs_to_be_played_next","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\tlet tab = [];\n    return tab;\n\n}"},"is_list":true},"AKS":{"caption":"Total Duration Formatted","name":"totaldurationformatted","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AKi":{"caption":"Current Time Formatted","name":"currentsecondsformatted","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AKl":{"caption":"Playlist - Track List","name":"playlist_tracks_list","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"},"is_list":true},"AKo":{"caption":"Current Playing Index ","name":"current_track_index","value":"number","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}}},"events":{"AJN":{"caption":"Started Playing","name":"started"},"AJO":{"caption":"Stopped Playing","name":"stopped"},"AJP":{"caption":"Has been Muted","name":"muted"},"AJQ":{"caption":"Has been Unmuted","name":"unmuted"},"AJR":{"caption":"Is Loaded","name":"is_loaded"},"AJS":{"caption":"Finished Playing","name":"finished"},"AJT":{"caption":"Image Generated","name":"image_generated"},"AJU":{"caption":"Volume Changed","name":"volume_changed"},"AJW":{"caption":"Peaks Loaded (ready to be saved in DB)","name":"peaks_loaded"},"AJX":{"caption":"Current Audio File can be considered as Played","name":"consider_played"},"AJZ":{"caption":"Reset Waveform","name":"waveform_reset"}},"actions":{"AIK":{"caption":"Start","code":{"fn":"function(instance, properties, context) {\n    instance.data.regionLoopOn = true;\n    const { stop_all_on_play, only_download_on_start } = instance.data.properties;\n\n    if (stop_all_on_play && window.pleasuresON) {\n        window.pleasuresON.forEac
153h(player => {\n            player.stop();\n        });\n    }\n\n    const wavesurfer = instance.data.wavesurfer;\n    const playlist = instance.data.playlist;\n\n    if (only_download_on_start && playlist.songs.length === 0) {\n        if (!instance.data.properties.audio) {\n            console.error(\"No audio URL provided for playback with only_download_on_start.\");\n            context.reportDebugger(\"No audio URL provided for playback.\");\n            return;\n        }\n        instance.data.addToPlaylist(\n            instance.data.properties.audio,\n            instance.data.properties.media_session_title,\n            instance.data.properties.media_session_artist,\n            instance.data.properties.media_session_album,\n            instance.data.properties.media_session_artwork,\n            instance.data.peaks_data\n        );\n    }\n\n    instance.data.isPlaying = true;\n    const currentSong = playlist.getCurrentSong();\n    if (currentSong) {\n        instance.data.loadFile(\n            currentSong.url,\n            currentSong.title,\n            currentSong.artist,\n            currentSong.album,\n            currentSong.artwork,\n            currentSong.peaks\n        );\n    } else {\n        console.error(\"No current song in playlist for playback.\");\n        context.reportDebugger(\"No current song in playlist.\");\n        return;\n    }\n\n    wavesurfer.once('ready', () => {\n        const playPromise = wavesurfer.play();\n        if (playPromise !== undefined) {\n            playPromise\n                .then(() => {\n                    if (!window.pleasuresON) window.pleasuresON = [];\n                    window.pleasuresON.push(wavesurfer);\n                    instance.publishState('isplaying', true);\n                    instance.triggerEvent('started', function (err) {\n                        if (err) context.reportDebugger(err);\n                    });\n                })\n                .catch(error => {\n                    console.error(\"WaveSurfer play error:\", error);\n                    context.reportDebugger(error.message);\n                    instance.publishState('isplaying', false);\n                    instance.data.isPlaying = false;\n                });\n        }\n    });\n}"},"fields":{"AIL":{"caption":"Keep Current Volume","name":"enable_start_volume","rank":0,"editor":"DynamicValue","value":"boolean","optional":true,"default_val":false}}},"AIM":{"caption":"Stop","code":{"fn":"function(instance, properties, context) {\n    \tinstance.data.regionLoopOn = false;\n        instance.data.wavesurfer.stop();\n        instance.publishState('isplaying', false);\n        //instance.publishState('currentseconds', 0);\n        instance.data.considerThisSongPlayed = false;\n        instance.publishState('consider_played', false);\n        instance.triggerEvent('stopped', function(err){\n            if(err)\n                context.reportDebugger(err);\n        });\n   \n}\n"}},"AIN":{"caption":"Pause/Resume","code":{"fn":"function(instance, properties, context) {\n\tlet wavesurfer = instance.data.wavesurfer;\n\n    let isPlaying = wavesurfer.isPlaying();\n\n    wavesurfer.playPause();\n\n    instance.publishState('isplaying', !isPlaying);\n\n    if (!isPlaying) {\n        \n    } else {\n        instance.triggerEvent('stopped', function(err) {\n            if (err) context.reportDebugger(err);\n        });\n    }\n}"}},"AIO":{"caption":"Set Speed","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.wavesurfer.setPlaybackRate(properties.speed);\n    instance.publishState('current_speed', properties.speed);\n\n}"},"fields":{"AIP":{"caption":"Speed","name":"speed","rank":0,"editor":"DynamicValue","value":"number","default_val":1}}},"AIQ":{"caption":"Set Muted","code":{"fn":"function(instance, properties, context) {\n\n    let wavesurfer = instance.data.wavesurfer;\n\n    /*if(!wavesurfer.isPlaying()){\n        return\n    }*/\n  \twavesurfer.setMuted(properties.mute);\n    instance.publishState('is_muted', properties.mute);\n    if(properties.mute){\n        instance.triggerEvent('muted', function(err){\n            if(err){\n                context.reportDebugger(\"An error has been thrown by trying to mute a Waveform Audio Player. Please contact author here : [email protected] to get a quick answer\");\n            }\n        });\n    }
153else{\n        instance.triggerEvent('unmuted', function(err){\n            if(err){\n                context.reportDebugger(\"An error has been thrown by trying to unmute a Waveform Audio Player. Please contact author here : [email protected] to get a quick answer\");\n            }\n        });\n    }\n\n}"},"fields":{"AIR":{"caption":"Mute ?","name":"mute","rank":0,"editor":"DynamicValue","value":"boolean","default_val":true}}},"AIS":{"caption":"Generate Image","code":{"fn":"function(instance, properties, context) {\n\n    let wavesurfer = instance.data.wavesurfer;\n\n    // Ensure properties.image_format is set and valid\n    let mimeType = 'image/' + properties.image_format;\n\n    // Call exportImage and handle the Promise\n    wavesurfer.exportImage(mimeType, 0.5, 'dataURL')\n        .then(function(rawData) {\n            let tmpdata = rawData[0];\n            // rawData is the data URL string\n            let tmp = tmpdata.split(',');\nconsole.log(tmp)\n\n            // Upload the image content\n            context.uploadContent(properties.file_name + \".\" + properties.image_format, tmp[1], function(err, url){\n                if(err){\n                    context.reportDebugger('An error occurred while uploading the waveform image: ' + err.message);\n                } else {\n                    let finalURL = url.startsWith('http') ? url : 'https:' + url;\n                    instance.publishState('image_url', finalURL);\n                    instance.triggerEvent('image_generated', function(err){\n                        if(err){\n                            context.reportDebugger('An error occurred while triggering the \"Image Generated\" event: ' + err.message);\n                        }\n                    });\n                    \n                    // Create a download link for saving the image on the device\n                    let downloadLink = document.createElement('a');\n                    downloadLink.href = tmpdata; // Set the data URL\n                    downloadLink.download = properties.file_name + \".png\"; \n                    downloadLink.style.display = 'none';\n                    document.body.appendChild(downloadLink);\n                    downloadLink.click(); // Trigger the download\n                    document.body.removeChild(downloadLink); // Clean up\n                }\n            });\n        })\n        .catch(function(error) {\n            // Handle errors from exportImage\n            context.reportDebugger('An error occurred while exporting the image: ' + error.message);\n        });\n}\n"},"fields":{"AIT":{"caption":"Image Format","name":"image_format","rank":0,"editor":"Dropdown","default_val":"png"},"AIU":{"caption":"File Name","name":"file_name","rank":1,"editor":"DynamicValue","value":"text","default_val":"audio"}}},"AIV":{"caption":"Load New File","code":{"fn":"function(instance, properties, context) {\n    // Function to perform fade out\n    function fadeOutAndStop(callback) {\n        let fadeOutDuration = instance.data.fadeoutDuration || 10; \n        let startVolume = instance.data.wavesurfer.getVolume();\n        const step = 0.01; \n        const interval = fadeOutDuration * step; \n        \n        let fadeOutInterval = setInterval(() => {\n            let currentVolume = instance.data.wavesurfer.getVolume();\n            let nextVolume = currentVolume - step;\n\n            if (nextVolume <= 0) {\n                instance.data.wavesurfer.setVolume(0);\n                instance.data.wavesurfer.stop();\n                clearInterval(fadeOutInterval);\n                callback(); // Callback after fade-out and stop\n            } else {\n                instance.data.wavesurfer.setVolume(nextVolume);\n            }\n        }, interval);\n    }\n\n    // Check if the audio is playing and needs a fade out\n    if (instance.data.enableFadeout && instance.data.wavesurfer.isPlaying()) {\n        fadeOutAndStop(loadNewFile);\n        instance.data.fadeoutfinished = true;\n    } else {\n        loadNewFile();\n    }\n\n    // Function to load a new file\n    function loadNewFile() {\n       instance.data.loadFile(properties.audio_file, properties.media_session_title, \n        properties.media_session_artist, properties.media_session_album, properties.media_session_artwork, properties.peaks_data);\n        instance.data.considerThisSongPlayed = false;\n        instance.publishState('consider_played', false);\n    }\n}\n"},"fields":{"AIW":{"caption":"Audio File","name":"audio_file","rank":0,"editor":"DynamicValue","value":"file"},"AIX":{"caption":"Title","name":"media_session_title","rank":2,"editor":"DynamicValue","value":"text","optional":true,"default_val":"My Song"},"AIY":{"caption":"Album","name":"media_session_album","rank":3,"editor":"DynamicValue","value":"text","optional":true,"default_val":"My Album"},"AIZ":{"caption":"Artist","name":"media_session_artist","rank":4,"editor":"DynamicValue","value":"text","optional":true,"default_val":"My Artist"},"AIa":{"caption":"Artwork (Image)","name":"media_session_artwork","rank":5,"editor":"DynamicValue","value":"image","default_val":"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1655308406912x140291738779226620/%E2%80%94Pngtree%E2%80%94sound%20wave%20vector%20ilustration%20in_6341442.png","optional":true},"AIb":{"caption":"Peaks Data (JSON format)","name":"peaks_data","rank":1,"editor":"DynamicValue","value":"text","optional":true}}}
153,"AId":{"caption":"Set Volume","code":{"fn":"function(instance, properties, context) {\n\n    if(properties.volume < 0 || properties.volume > 1){\n        context.reportDebugger(\"Please provide a volume between 0 and 1. The volume you asked is \" + properties.volume);\n        return;\n    }\n\n    instance.data.wavesurfer.setVolume(properties.volume);\n\tinstance.publishState('current_volume', properties.volume);\n\n}"},"fields":{"AIe":{"caption":"Volume","name":"volume","rank":0,"editor":"DynamicValue","value":"number","default_val":1}}},"AIf":{"caption":"Skip Forward","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.wavesurfer.skip(properties.skip_time);\n\n}"},"fields":{"AKX":{"caption":"Time","name":"skip_time","rank":0,"editor":"DynamicValue","value":"number"}}},"AIg":{"caption":"Skip Backward","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.wavesurfer.skip(-properties.skip_time);\n\n}"},"fields":{"AKY":{"caption":"Time","name":"skip_time","rank":0,"editor":"DynamicValue","value":"number"}}},"AIo":{"caption":"Play Previous Track","code":{"fn":"function(instance, properties, context) {\n \ninstance.data.playPreviousTrack();\n\n}\n"}},"AIp":{"caption":"Play Next Track","code":{"fn":"function(instance, properties, context) {\n\n\ninstance.data.playNextTrack();\n}\n"}},"AIq":{"caption":"Add a new Song to the Playlist","code":{"fn":"function(instance, properties, context) {\n\n\tconst { media_session_title, media_session_artist, media_session_album, media_session_artwork, peaks_data } = properties\n\n\tif(!properties.audio_file) return;\n        \n    let link = properties.audio_file;\n    if(properties.audio_file.slice(0,5) !== \"https\"){\n        link = \"https:\" + properties.audio_file;\n    }\n\n\n\tinstance.data.addToPlaylist(link,media_session_title,media_session_artist,media_session_album,media_session_artwork,peaks_data);\n}"},"fields":{"AIr":{"caption":"Audio File","name":"audio_file","rank":0,"editor":"DynamicValue","value":"text"},"AIs":{"caption":"Peaks Data (JSON format)","name":"peaks_data","rank":1,"editor":"DynamicValue","value":"text","optional":true},"AIu":{"caption":"Title","name":"media_session_title","rank":2,"editor":"DynamicValue","value":"text","default_val":"My Title","optional":true},"AIv":{"caption":"Album","name":"media_session_album","rank":4,"editor":"DynamicValue","value":"text","default_val":"My Album","optional":true},"AIw":{"caption":"Artist","name":"media_session_artist","rank":3,"editor":"DynamicValue","value":"text","default_val":"My Artist","optional":true},"AIx":{"caption":"Artwork (Image)","name":"media_session_artwork","rank":5,"editor":"DynamicValue","value":"image","default_val":"https://d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1655308406912x140291738779226620/%E2%80%94Pngtree%E2%80%94sound%20wave%20vector%20ilustration%20in_6341442.png","optional":true}}},"AIy":{"caption":"Clear Playlist Queue","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.playlist.clearQueue();\n    instance.publishState('number_of_songs_to_be_played_next', instance.data.playlist.getNumberOfSongsToBePlayedNext());\n    instance.publishState('title_of_songs_to_be_played_next', instance.data.playlist.getTitleOfSongsToBePlayedNext());\n\n}"}},"AIz":{"caption":"Remove a Song from the Playlist by its Name","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.removeFromPlaylistByTitle(properties.song_name);\n    \n}"},"fields":{"AJA":{"caption":"Song Name","name":"song_name","rank":0,"editor":"DynamicValue","value":"text"}}},"AJB":{"caption":"Download Peak Data File","code":{"fn":"function(instance, properties, context) {\n  const wavesurfer = instance.data.wavesurfer;\n\n  if (wavesurfer) {\n    // Define the desired number of peaks. A value between 2000-3000 is usually\n    // a good balance between visual detail and small file size (~10-15kB).\n    const TARGET_PEAK_COUNT = 3000;\n\n    // Export a downsampled set of peaks. WaveSurfer will process the full\n    // audio data and return an array of the specified length.\n    const downsampledPeaks = wavesurfer.exportPeaks(TARGET_PEAK_COUNT);\n\n    let monoPeaks;\n\n    // Check if the source is stereo (returns more than one channel array)\n    if (downsampledPeaks.length > 1) {\n        // It's stereo. We need to average the channels to create a single mono array.\n        const leftChannel = downsampledPeaks[0];\n        const rightChannel = downsampledPeaks[1];\n        const averaged = [];\n        for (let i = 0; i < leftChannel.length;
153 i++) {\n            const avg = (leftChannel[i] + rightChannel[i]) / 2;\n            averaged.push(avg);\n        }\n        monoPeaks = averaged;\n    } else {\n        // It's already mono. Just grab the first (and only) channel array.\n        monoPeaks = downsampledPeaks[0];\n    }\n    \n    // Format the numbers to have only 2 decimal places, just like the old version.\n    // This significantly reduces the final file size.\n    const formattedPeaks = monoPeaks.map(peak => parseFloat(peak.toFixed(2)));\n\n    // Convert the final, formatted array of peaks to a JSON string.\n    const peaksJSON = JSON.stringify(formattedPeaks);\n\n    // Create a Blob from the JSON string.\n    const blob = new Blob([peaksJSON], { type: 'application/json' });\n\n    // Create a link to download the Blob.\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'peaks.json';\n\n    // Append the link to the document and trigger the download.\n    document.body.appendChild(a);\n    a.click();\n\n    // Clean up to prevent memory leaks.\n    document.body.removeChild(a);\n    URL.revokeObjectURL(url);\n  }\n}\n"}},"AJC":{"caption":"Reset Waveform","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.wavesurfer.empty();\n\n}"}},"AJD":{"caption":"Create Region","code":{"fn":"function(instance, properties, context) {\n    \n    const { markerId, start, end, color, region_content, loop, drag, resize, minLength, maxLength } = properties;\n\tinstance.data.loopRegion = loop;\n \tinstance.data.addRegion(markerId, start, end, color, region_content, loop, drag, resize, minLength, maxLength);\n\n\n}"},"fields":{"AJE":{"caption":"Start Position (s)","name":"start","rank":1,"editor":"DynamicValue","value":"number"},"AJF":{"caption":"End Position (s)","name":"end","rank":2,"editor":"DynamicValue","value":"number","optional":true},"AJG":{"caption":"Color","name":"color","rank":3,"editor":"Color","default_val":"rgba(26,175,208,1)"},"AJH":{"caption":"Content","name":"region_content","rank":4,"editor":"DynamicValue","value":"text","optional":true},"AJI":{"caption":"Enable Loop","name":"loop","rank":5,"editor":"DynamicValue","value":"boolean"},"AJJ":{"caption":"Allow Dragging","name":"drag","rank":6,"editor":"DynamicValue","value":"boolean"},"AJK":{"caption":"Allow Resizing","name":"resize","rank":7,"editor":"DynamicValue","value":"boolean"},"AJL":{"caption":"Min Length","name":"minLength","rank":8,"editor":"DynamicValue","value":"number","optional":true},"AJM":{"caption":"Max Length","name":"maxLength","rank":9,"editor":"DynamicValue","value":"number","optional":true},"AKV":{"caption":"Region ID","name":"markerId","rank":0,"editor":"DynamicValue","value":"text"}}},"AKW":{"caption":"Clear All Regions","code":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.regions.clearRegions();\n\n\n\n}"}},"AKd":{"caption":"Start from time","code":{"fn":"function(instance, properties, context) {\n\n    // Function to start playback from a specific time\n       const wavesurfer = instance.data.wavesurfer;\n   \n       if (!wavesurfer || typeof properties.time !== 'number' || properties.time < 0) {\n           console.error(\"Invalid WaveSurfer instance or time provided.\");\n           return;\n       }\n   \n       const duration = wavesurfer.getDuration();\n       if (properties.time > duration) {\n           console.warn(\"Provided time exceeds the audio duration.\");\n           return;\n       }\n   \n       // Calculate the seek position as a fraction of total duration\n       const seekPosition = properties.time / duration;\n   \n       // Seek to the position\n       wavesurfer.seekTo(seekPosition);\n   \n       // Play the audio\n       wavesurfer.play();\n   }\n   \n   \n   "},"fields":{"AKf":{"caption":"Time in (s)","name":"time","rank":0,"editor":"DynamicValue","value":"number"}}},"AKm":{"caption":"Play Index ","code":{"fn":"function(instance, properties, context) {\n\n\n  instance.data.playIndex(properties.index);\n\n\n}"}
153,"fields":{"AKn":{"caption":"Index","name":"index","rank":0,"editor":"DynamicValue","value":"number"}}}},"code":{"preview":{"fn":"function(instance, properties) {\n\n    let box = $('<div id=\"preview-id\"></div>');  \n\tbox.css(\"height\", properties.bubble.height)\n\tbox.css(\"width\", properties.bubble.width)\n\tbox.css(\"background-image\", \"url(//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1655308406912x140291738779226620/%E2%80%94Pngtree%E2%80%94sound%20wave%20vector%20ilustration%20in_6341442.png)\")\n\tbox.css(\"background-repeat\", \"no-repeat\")\n\tbox.css(\"background-position\", \"50% 50%\")\n\tbox.css(\"background-size\", \"cover\")\n  \tinstance.canvas.append(box); \n    \n}"},"initialize":{"fn":"function(instance, context) {\n    instance.data.instanceIsReady = false;\n    instance.data.regionLoopOn = true;\n    window.pleasuresON = [];\n\n}","add_debugger":false},"update":{"fn":"function(instance, properties, context) {\n  const oldProperties = instance.data.previousProperties || {};\n\n  instance.data.stop_all_on_play = properties.stop_all_on_play;\n\n  function detectAudioSourceChanges(prev, current) {\n      if (!prev) return true;\n      if (prev.audio !== current.audio) return true;\n      if (current.preload_peaks && prev.peaks_data !== current.peaks_data) return true;\n      if (current.only_download_on_start && current.preload_peaks) {\n          const playlistProps = ['media_session_title', 'media_session_artist', 'media_session_album', 'media_session_artwork'];\n          return playlistProps.some(prop => prev[prop] !== current[prop]);\n      }\n      return false;\n  }\n\n  function isValidPeaksData(peaks) {\n      try {\n          const parsed = JSON.parse(peaks);\n          return Array.isArray(parsed) && parsed.every(val => typeof val === 'number');\n      } catch {\n          return false;\n      }\n  }\n\n  function getConsiderPlayedThreshold() {\n    const n = Number(properties.consider_played);\n    return Number.isFinite(n) ? n : 0; // default 0 if missing/invalid\n  }\n\n  // UPDATED: formatTime with separate rules for duration (rounded) vs current time (floored)\n  function formatTime(seconds, { forDuration = false } = {}) {\n      const value = Number(seconds) || 0;\n      const totalSecs = forDuration ? Math.round(value) : Math.floor(value);\n\n      const hours = Math.floor(totalSecs / 3600);\n      const minutes = Math.floor((totalSecs % 3600) / 60);\n      const secs = totalSecs % 60;\n      return hours > 0\n          ? `${hours}:${minutes.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`\n          : `${minutes}:${secs.toString().padStart(2, '0')}`;\n  }\n  instance.data.formatTime = formatTime;\n\n  // NEW: Accurate duration helpers\n  async function getAccurateDuration(url) {\n    if (!url) return 0;\n    try {\n      const AC = window.AudioContext || window.webkitAudioContext;\n      if (!AC) return 0;\n\n      const res = await fetch(url, { cache: 'force-cache' });\n      if (!res.ok) return 0;\n      const buf = await res.arrayBuffer();\n\n      const ctx = new AC();\n      const audioBuf = await new Promise((resolve, reject) => {\n        // Some browsers require callback form for decodeAudioData\n        const done = (ab) => resolve(ab);\n        const fail = (e) => reject(e);\n        const p = ctx.decodeAudioData(buf, done, fail);\n        if (p && typeof p.then === 'function') p.then(resolve).catch(reject);\n      });\n      const d = audioBuf?.duration || 0;\n\n      if (ctx && typeof ctx.close === 'function') {\n        try { await ctx.close(); } catch {}\n      }\n      return d;\n    } catch (e) {\n      console.warn('Accurate duration fallback failed:', e);\n      return 0;\n    }\n  }\n\n  function publishLockedDuration(instance, seconds) {\n    const proposed = Math.round((Number(seconds) || 0) - 0.001);\n    if (!proposed) return;\n    const prev = Number(instance.data._displayDuration) || 0;\n    if (proposed > prev) {\n      instance.data._displayDuration = proposed;\n      instance.publishState('totalduration', proposed);\n      instance.publishState('totaldurationformatted', instance.data.formatTime(proposed, { forDuration: true }));\n    }\n  }\n\n  // Central place to apply controls visibility and \"no download\" policy + durationchange patch\n  function applyControl
153sAndDownloadPolicy() {\n      const ws = instance.data.wavesurfer;\n      if (!ws || typeof ws.getMediaElement !== 'function') return;\n\n      const el = ws.getMediaElement();\n      if (!el) return;\n\n      // Ensure native controls reflect allow_controls\n      el.controls = !!properties.allow_controls;\n\n      // Reset previous attributes/handlers\n      el.oncontextmenu = null;\n      el.removeAttribute('controlsList');\n\n      if (!properties.allow_downloading) {\n          // Hide native download button (supported in Chromium browsers)\n          el.setAttribute('controlsList', 'nodownload');\n\n          // Discourage quick-save via context menu & drag\n          el.oncontextmenu = (e) => e.preventDefault();\n          el.addEventListener('dragstart', (e) => e.preventDefault(), { once: true });\n\n          // Optional: reduce surfaces that could expose the source\n          if ('disablePictureInPicture' in el) el.disablePictureInPicture = true;\n      } else {\n          if ('disablePictureInPicture' in el) el.disablePictureInPicture = false;\n      }\n\n      // Debounced, monotonic durationchange listener (only allow meaningful upward changes)\n      if (!el._durationPatched) {\n        el._durationPatched = true;\n        let rafId = null;\n        el.addEventListener('durationchange', () => {\n          if (!instance?.data?.wavesurfer) return;\n          if (rafId) cancelAnimationFrame(rafId);\n          rafId = requestAnimationFrame(() => {\n            const wsDur = instance.data.wavesurfer.getDuration() || 0;\n            const proposed = Math.round((Number(wsDur) || 0) - 0.001);\n            const prev = Number(instance.data._displayDuration) || 0;\n            if (proposed - prev >= 0.5) {\n              instance.data._displayDuration = proposed;\n              instance.publishState('totalduration', proposed);\n              instance.publishState('totaldurationformatted', instance.data.formatTime(proposed, { forDuration: true }));\n            }\n          });\n        }, { passive: true });\n      }\n  }\n  \n  let needsFullReinitialization = false;\n  if (instance.data.initialized && oldProperties.allow_controls !== properties.allow_controls) {\n      needsFullReinitialization = true;\n      console.log(\"WaveSurfer: Change in 'allow_controls' detected, queuing full re-initialization.\");\n  }\n\n  if (needsFullReinitialization && instance.data.wavesurfer) {\n      console.log(\"WaveSurfer: Destroying existing instance for re-initialization.\");\n      instance.data.wavesurfer.destroy();\n      instance.data.wavesurfer = null;\n      if (instance.data.containerElement) {\n          $(instance.data.containerElement).remove();\n          instance.data.containerElement = null;\n      }\n\n      if (instance.data._resizeObserver) {\n        instance.data._resizeObserver.disconnect();\n        instance.data._resizeObserver = null;\n      }\n      instance.data.initialized = false; \n  }\n\n  if (!instance.data.initialized) {\n      console.log(\"WaveSurfer: Initializing...\");\n      instance.data.properties = properties;\n\n      const containerId = `waveform-${Math.random().toString(36).substring(2, 15)}`;
153\n      const $container = $('<div></div>').attr('id', containerId);\n      if (properties.allow_controls) $container.css('height', '80%');\n      else $container.css('height', '100%');\n      instance.canvas.append($container);\n      instance.data.containerElement = $container[0];\n\n      try {\n          if (typeof zQ_payer !== 'undefined' && typeof zQ_payer.RegionsPlugin !== 'undefined' && typeof zQ_payer.RegionsPlugin.create === 'function') {\n              instance.data.regions = zQ_payer.RegionsPlugin.create();\n          } else {\n              throw new Error(\"RegionsPlugin or zQ_payer is not available.\");\n          }\n      } catch (e) {\n          console.warn(\"WaveSurfer: RegionsPlugin could not be created. Regions will be disabled.\", e.message);\n          instance.data.regions = { \n              addRegion: () => console.warn(\"Regions disabled.\"), \n              on: () => {}, \n              clearRegions: () => {} \n          };\n      }\n      \n      let config = {\n          container: `#${containerId}`,\n          waveColor: properties.wavecolor,\n          progressColor: properties.progressbarcolor,\n          cursorColor: properties.cursorcolor,\n          audioRate: properties.speed,\n          backend: \"MediaElement\",\n          responsive: true,\n          normalize: properties.normalize,\n          height: properties.waveheight || 'auto',\n          hideScrollbar: properties.hide_scrollbar,\n          mediaControls: properties.allow_controls,\n          plugins: [instance.data.regions]\n      };\n\n      if (properties.type === 'Bars') {\n         config.barWidth = 2;\n         config.barHeight = 1;\n         config.barGap = null;\n      } else if (properties.type === 'Rounded') {\n          config.barWidth = 3;\n          config.barRadius = 3;\n          config.barGap = 3;\n          config.cursorWidth = 1;\n      } else if (properties.type === 'Custom') {\n          config.barWidth = properties.bar_width;\n          config.barHeight = properties.bar_height;\n          config.barRadius = properties.bar_radius;\n          config.barGap = properties.bar_gap;\n      }\n      \n      const wavesurfer = zQ_payer.WaveSurfer.create(config);\n      instance.data.wavesurfer = wavesurfer;\n\n      // Apply controls & policy immediately (also wires durationchange listener)\n      applyControlsAndDownloadPolicy();\n\n      // Create a ResizeObserver to improve width responsiveness\n      const resizeObserver = new ResizeObserver(() => {\n          if (instance.data.containerElement && instance.data.wavesurfer) {\n              const width = instance.data.containerElement.offsetWidth;\n              instance.data.wavesurfer.setOptions({ width });\n          }\n      });\n      resizeObserver.observe(instance.data.containerElement);\n      instance.data._resizeObserver = resizeObserver;\n\n      class Playlist {\n          constructor() {\n              this.songs = []; \n              this.index = -1;\n          }\n          addSong(song) {\n            this.songs.push(song);\n            if (this.songs.length === 1) {\n                this.index = 0;\n                instance.publishState('current_track_index', this.index);\n            }\n            this.updateNumberOfSongsToBePlayedNext(); \n            this.updateTitlesOfSongsToBePlayedNext();\n            this.updatePlaylistTracksList();\n        }\n        \n          setCurrentIndex(index) {\n            if (index >= 0 && index < this.songs.length) {\n                this.index = index;\n                instance.publishState('current_track_index', this.index);\n                this.updateNumberOfSongsToBePlayedNext();\n                this.updateTitlesOfSongsToBePlayedNext();\n                this.updatePlaylistTracksList();\n            }\n        }        \n          next() {\n              if (this.index + 1 < this.songs.length) {\n                  this.index++; \n                  this.updateNumberOfSongsToBePlayedNext(); \n                  this.updateTitlesOfSongsToBePlayedNext(); \n                  this.updatePlaylistTracksList();\n                  instance.publishState('current_track_index', this.index);\n\n                  return this.songs[this.index];\n              } \n              return null;\n          }\n          previous() {\n              if (this.index > 0) {\n                  this.index--; \n                  this.updateNumberOfSongsToBePlayedNext(); \n                  this.updateTitlesOfSongsToBePlayedNext(); \n                  this.updatePlaylistTracksList();\n                  instance.publishState('current_track_index', this.index);\n\n                  return this.songs[this.index];\n              } \n              return null;\n          }\n          getCurrentSong() { \n              return this.songs[this.index]; \n          }\n          clearQueue() {\n              if (this.songs.length === 0) return;
153\n              this.songs = [this.getCurrentSong()].filter(Boolean); \n              this.index = this.songs.length > 0 ? 0 : -1;\n              this.updateNumberOfSongsToBePlayedNext(); \n              this.updateTitlesOfSongsToBePlayedNext();\n              this.updatePlaylistTracksList();\n              instance.publishState('current_track_index', this.index);\n\n          }\n          getAllTrackTitles() {\n            return this.songs.map(song => song.title);\n          }\n          getNumberOfSongsToBePlayedNext() { \n              return this.index >= 0 ? this.songs.length - this.index - 1 : 0; \n          }\n          getTitleOfSongsToBePlayedNext() { \n              return this.songs.slice(this.index + 1).map(song => song.title); \n          }\n          updateNumberOfSongsToBePlayedNext() { \n              instance.publishState('number_of_songs_to_be_played_next', this.getNumberOfSongsToBePlayedNext()); \n          }\n          updateTitlesOfSongsToBePlayedNext() { \n              instance.publishState('title_of_songs_to_be_played_next', this.getTitleOfSongsToBePlayedNext()); \n          }\n          updatePlaylistTracksList() {\n            instance.publishState('playlist_tracks_list', this.getAllTrackTitles());\n          }\n      }\n      instance.data.playlist = new Playlist();\n\n      instance.data.resetWaveSurfer = () => {\n          if (instance.data.wavesurfer) {\n              instance.data.wavesurfer.stop();\n              instance.data.wavesurfer.empty();\n              instance.data.wavesurfer.unAll();\n              instance.data.peaks_data = '';\n              instance.triggerEvent('stopped');\n              instance.publishState('is_loading', false);\n              instance.publishState('percent_loaded', 0);\n              instance.publishState('currentseconds', 0);\n              instance.publishState('currentsecondsformatted', instance.data.formatTime(0));\n              instance.publishState('isplaying', false);\n              instance.data.isPlaying = false;\n              const mediaElement = instance.data.wavesurfer.getMediaElement();\n              if (mediaElement) {\n                  mediaElement.pause();\n                  mediaElement.src = '';\n                  mediaElement.load();\n                  mediaElement.removeAttribute('src');\n              }\n              instance.data._displayDuration = 0;\n\n              attachWaveSurferEventListeners();\n              applyControlsAndDownloadPolicy();\n              instance.triggerEvent('waveform_reset'); \n          }\n      };\n\n      function attachWaveSurferEventListeners() {\n          wavesurfer.on('ready', () => {\n              applyControlsAndDownloadPolicy();\n\n              instance.publishState('is_loading', false);\n              instance.triggerEvent('is_loaded');\n              instance.publishState('percent_loaded', 100);\n\n              // Prefer any previously locked duration; otherwise use current rounded duration (monotonic)\n              const rawDuration = wavesurfer.getDuration() || 0;\n              const rounded = Math.round((Number(rawDuration) || 0) - 0.001);\n              publishLockedDuration(instance, Math.max(Number(instance.data._displayDuration) || 0, rounded));\n\n              instance.publishState('current_volume', wavesurfer.getVolume());\n\n              if (!instance.data.peaks_data && wavesurfer.getDecodedData()) {\n                  const TARGET_PEAK_COUNT = 3000;\n                  const exported = wavesurfer.exportPeaks(TARGET_PEAK_COUNT);\n\n                  let monoPeaks;\n                  if (Array.isArray(exported[0])) {\n                      const left = exported[0];\n                      const right = exported[1] || left;\n                      monoPeaks = left.map((val, i) => parseFloat(((val + right[i]) / 2).toFixed(2)));\n                  } else {\n                      monoPeaks = exported.map(val => parseFloat(val.toFixed(2)));\n                  }\n\n                  const peaksJSON = JSON.stringify(monoPeaks);\n                  instance.data.peaks_data = peaksJSON;\n                  instance.publishState('peaks_data', peaksJSON);\n              } else {\n                  instance.publishState('peaks_data', instance.data.peaks_data);\n              }\n\n          });\n          wavesurfer.on('volume', (volume) => { \n              instance.publishState('current_volume', volume); \n              instance.triggerEvent('volume_changed'); \n          });\n          wavesurfer.on('loading', (progress) =>
153 {\n              instance.publishState('percent_loaded', progress);\n              instance.publishState('is_loading', progress < 100);\n          });\n          wavesurfer.on('error', (error) => { \n              console.error(\"WaveSurfer Error:\", error); \n              instance.publishState('is_loading', false); \n          });\n          wavesurfer.on('audioprocess', () => {\n            const currentTime = wavesurfer.getCurrentTime();\n            instance.publishState('currentseconds', currentTime);\n            instance.publishState('currentsecondsformatted', instance.data.formatTime(currentTime, { forDuration: false }));\n          \n            const threshold = getConsiderPlayedThreshold();\n            const reached = currentTime >= threshold;\n            instance.publishState('consider_played', reached);\n          \n            if (reached && !instance.data._considerPlayedFired) {\n              instance.data._considerPlayedFired = true;\n              instance.triggerEvent('consider_played');\n            }\n          });\n          wavesurfer.on('seeking', (currentTime) => {\n            instance.publishState('currentseconds', currentTime);\n            instance.publishState('currentsecondsformatted', instance.data.formatTime(currentTime, { forDuration: false }));\n          \n            const threshold = getConsiderPlayedThreshold();\n            const reached = currentTime >= threshold;\n            instance.publishState('consider_played', reached);\n          \n            if (reached && !instance.data._considerPlayedFired) {\n              instance.data._considerPlayedFired = true;\n              instance.triggerEvent('consider_played');\n            }\n          });\n          wavesurfer.on('play', () => {\n              instance.publishState('current_speed', wavesurfer.getPlaybackRate());\n              instance.publishState('isplaying', true);\n              instance.triggerEvent('started'); \n              instance.data.isPlaying = true;\n\n              const t = wavesurfer.getCurrentTime() || 0;\n              const threshold = getConsiderPlayedThreshold();\n              instance.publishState('consider_played', t >= threshold);\n          });\n          wavesurfer.on('pause', () => { \n              instance.publishState('isplaying', false); \n              instance.data.isPlaying = false;\n              instance.triggerEvent('stopped');\n          });\n          wavesurfer.on('finish', () => {\n              instance.triggerEvent('finished');\n              const nextSong = instance.data.playlist.next();\n              if (nextSong) {\n                  instance.data.isPlaying = true;\n                  instance.data.loadFile(nextSong.url, nextSong.title, nextSong.artist, nextSong.album, nextSong.artwork, nextSong.peaks);\n                  wavesurfer.once('ready', () => wavesurfer.play());\n              } else {\n                  instance.publishState('isplaying', false);\n                  instance.data.isPlaying = false;\n              }\n          });\n\n          if (instance.data.regions && typeof instance.data.regions.on === 'function') {\n              instance.data.regions.on('region-out', (region) => {\n                  if (instance.data.loopRegion && instance.data.regionLoopOn) {\n                      region.play();\n                  }\n              });\n              instance.data.regions.on('region-clicked', (region, e) => {\n                  e.stopPropagation();\n                  region.play();\n              });\n          }\n      }\n\n      // addToPlaylist supports { makeCurrent }\n      instance.data.addToPlaylist = (audioUrl, title, artist, album, artwork, peaks, { makeCurrent = false } = {}) => {\n          if (!audioUrl && !(peaks && peaks.length > 0 && isValidPeaksData(peaks))) {\n              return console.error(\"No audio URL or valid peaks provided to addToPlaylist\");\n          }\n          if (properties.clear_playlist_on_add) {\n              instance.data.playlist.clearQueue();\n          }\n          const song = { url: audioUrl, title, artist, album, artwork, peaks };\n          const wasEmpty = instance.data.playlist.songs.length === 0;\n          instance.data.playlist.addSong(song);\n          if (makeCurrent || wasEmpty) {\n              instance.data.playlist.setCurrentIndex(instance.data.playlist.songs.length - 1);\n          }\n      };\n\n      instance.data.playIndex = (i) =>
153 {\n        const song = instance.data.playlist.songs[i];\n        if (!song) {\n            console.warn(`No track at index ${i}`);\n            return;\n        }\n        instance.data.playlist.setCurrentIndex(i);\n        instance.data.isPlaying = true;\n        instance.data.loadFile(song.url, song.title, song.artist, song.album, song.artwork, song.peaks);\n        instance.data.wavesurfer.once('ready', () => instance.data.wavesurfer.play());\n    };    \n\n      instance.data.loadFile = (audioUrl, title, artist, album, artwork, peaks, peaksOnly = false) => {\n          console.log(\"loadFile called:\", { audioUrl, title, peaks: peaks?.slice?.(0, 10), isPlaying: instance.data.isPlaying, preload_peaks: properties.preload_peaks, peaksOnly });\n          if (instance.data._isLoadingFile) {\n              console.warn(\"WaveSurfer: Preventing recursive loadFile call.\");\n              return;\n          }\n          instance.data._isLoadingFile = true;\n\n          try {\n              // Do NOT clear the queue here. Only ensure a current song exists.\n              if (!peaksOnly && (audioUrl || (peaks && peaks.length > 0 && isValidPeaksData(peaks)))) {\n                  if (!instance.data.playlist.getCurrentSong()) {\n                      instance.data.addToPlaylist(audioUrl, title, artist, album, artwork, peaks, { makeCurrent: true });\n                  }\n              }\n              \n              if (properties.only_download_on_start && !instance.data.isPlaying) {\n                  instance.publishState('is_loading', false);\n                  instance.publishState('percent_loaded', 100);\n                  if (properties.preload_peaks && peaks && peaks.length > 0 && isValidPeaksData(peaks)) {\n                      try {\n                          const parsedPeaks = JSON.parse(peaks);\n                          instance.data.peaks_data = peaks;\n\n                          const fallbackDuration = 40;\n                          instance.data.wavesurfer.load(\"\", parsedPeaks, fallbackDuration);\n                          applyControlsAndDownloadPolicy();\n\n                          setTimeout(() => {\n                              try {\n                                  instance.data.wavesurfer.drawBuffer();\n                              } catch (e) {\n                                  console.warn(\"WaveSurfer: Failed to redraw waveform:\", e);\n                              }\n                          }, 100);\n                      } catch (e) {\n                          console.error(\"Error parsing peaks in loadFile:\", e, peaks);\n                          instance.data.peaks_data = '';\n                          instance.data.wavesurfer.empty();\n                      }\n                  } else {\n                      instance.data.peaks_data = '';\n                      instance.data.wavesurfer.empty();\n                  }\n                  return;\n              }\n\n              if (!audioUrl && !(peaks && peaks.length > 0 && isValidPeaksData(peaks))) {\n                  console.error(\"No valid audio or peaks provided to loadFile.\");\n                  instance.data.wavesurfer.empty();\n                  instance.publishState('is_loading', false);\n                  return;\n              }\n\n              instance.publishState('is_loading', true);\n              instance.publishState('percent_loaded', 0);\n              instance.data.wavesurfer.stop();\n              instance.triggerEvent('stopped');\n\n              if (properties.preload_peaks && peaks && peaks.length > 0 && isValidPeaksData(peaks)) {\n                  try {\n                      const parsedPeaks = JSON.parse(peaks);\n                      instance.data.peaks_data = peaks;\n                      instance.data.wavesurfer.load(audioUrl || \"\", parsedPeaks);\n                      applyControlsAndDownloadPolicy();\n\n                      // NEW: accurate duration compute (non-blocking)\n                      if (audioUrl) {\n                        (async () => {\n                          const acc = await getAccurateDuration(audioUrl);\n                          if (acc) publishLockedDuration(instance, acc);\n                        })();\n                      }\n\n                      if (!audioUrl) {\n                          instance.publishState('percent_loaded', 100);\n                          instance.publishState('is_loading', false);\n                          setTimeout(() =>
153 {\n                              try {\n                                  instance.data.wavesurfer.drawBuffer();\n                              } catch (e) {\n                                  console.warn(\"WaveSurfer: Failed to redraw waveform:\", e);\n                              }\n                          }, 100);\n                      }\n                  } catch (e) {\n                      console.error(\"Error parsing peaks in loadFile:\", e, peaks);\n                      instance.data.peaks_data = '';\n                      if (audioUrl) {\n                          instance.data.wavesurfer.load(audioUrl);\n                          applyControlsAndDownloadPolicy();\n\n                          // NEW: accurate duration compute (non-blocking)\n                          (async () => {\n                            const acc = await getAccurateDuration(audioUrl);\n                            if (acc) publishLockedDuration(instance, acc);\n                          })();\n                      } else {\n                          instance.data.wavesurfer.empty();\n                          instance.publishState('is_loading', false);\n                      }\n                  }\n              } else {\n                  instance.data.peaks_data = '';\n                  if (audioUrl) {\n                      instance.data.wavesurfer.load(audioUrl);\n                      applyControlsAndDownloadPolicy();\n\n                      // NEW: accurate duration compute (non-blocking)\n                      (async () => {\n                        const acc = await getAccurateDuration(audioUrl);\n                        if (acc) publishLockedDuration(instance, acc);\n                      })();\n                  } else {\n                      instance.data.wavesurfer.empty();\n                      instance.publishState('is_loading', false);\n                  }\n              }\n          } finally {\n              instance.data._isLoadingFile = false;\n          }\n      };\n\n      instance.data.playNextTrack = () => {\n          const nextSong = instance.data.playlist.next();\n          if (nextSong) {\n              instance.data.isPlaying = true;\n              instance.data.loadFile(nextSong.url, nextSong.title, nextSong.artist, nextSong.album, nextSong.artwork, nextSong.peaks);\n              instance.data.wavesurfer.once('ready', () => instance.data.wavesurfer.play());\n          } else {\n              console.warn(\"No next song available in the playlist.\");\n          }\n      };\n\n      instance.data.playPreviousTrack = () => {\n          const previousSong = instance.data.playlist.previous();\n          if (previousSong) {\n              instance.data.isPlaying = true;\n              instance.data.loadFile(previousSong.url, previousSong.title, previousSong.artist, previousSong.album, previousSong.artwork, previousSong.peaks);\n              instance.data.wavesurfer.once('ready', () => instance.data.wavesurfer.play());\n          } else {\n              console.warn(\"No previous song available in the playlist.\");\n          }\n      };\n\n      instance.data.addRegion = (id, start, end, color, content, loop, drag, resize, minLength, maxLength) => {\n          if (!instance.data.regions || typeof instance.data.regions.addRegion !== 'function') {\n              console.warn(\"WaveSurfer: Regions plugin is not available.\");\n              return;\n          }\n          try {\n              instance.data.regions.addRegion({\n                  id: id,\n                  start: start,\n                  end: end,\n                  color: color,\n                  content: content,\n                  loop: loop,\n                  drag: drag,\n                  resize: resize,\n                  minLength: minLength,\n                  maxLength: maxLength\n              });\n              console.log(`WaveSurfer: Added region with id ${id}`);\n          } catch (e) {\n              console.error(\"WaveSurfer: Error adding region:\", e);\n          }\n      };\n\n      instance.data.removeFromPlaylistByTitle = (title) => {\n          if (!title) {\n              console.error(\"WaveSurfer: No title provided for removal.\");\n              return;\n          }\n          const songIndex = instance.data.playlist.songs.findIndex(song =>
153 song.title === title);\n          if (songIndex !== -1) {\n              instance.data.playlist.songs.splice(songIndex, 1);\n              if (instance.data.playlist.index >= instance.data.playlist.songs.length) {\n                  instance.data.playlist.index = Math.max(0, instance.data.playlist.songs.length - 1);\n              }\n              instance.data.playlist.updateNumberOfSongsToBePlayedNext();\n              instance.data.playlist.updateTitlesOfSongsToBePlayedNext();\n              instance.data.playlist.updatePlaylistTracksList();\n              console.log(`WaveSurfer: Song with title \"${title}\" removed from playlist.`);\n          } else {\n              console.warn(`WaveSurfer: Song with title \"${title}\" not found in playlist.`);\n          }\n      };\n\n      instance.data.peaks_data = (properties.preload_peaks && properties.peaks_data && isValidPeaksData(properties.peaks_data)) ? properties.peaks_data : '';\n      instance.data._displayDuration = 0; // cache for stable duration display\n\n      if (properties.only_download_on_start) {\n          if (properties.preload_peaks && properties.peaks_data && isValidPeaksData(properties.peaks_data)) {\n              try {\n                  const parsedPeaks = JSON.parse(properties.peaks_data);\n                  const fallbackDuration = 40;\n                  instance.data.wavesurfer.load(\"\", parsedPeaks, fallbackDuration);\n                  instance.data.peaks_data = properties.peaks_data;\n                  instance.publishState('peaks_data', properties.peaks_data);\n                  instance.publishState('is_loading', false);\n                  instance.publishState('percent_loaded', 100);\n                  instance.triggerEvent('is_loaded');\n                  applyControlsAndDownloadPolicy();\n                  setTimeout(() => {\n                      try {\n                          instance.data.wavesurfer.drawBuffer();\n                      } catch (e) {\n                          console.warn(\"WaveSurfer: Failed to redraw initial waveform:\", e);\n                      }\n                  }, 100);\n              } catch (e) {\n                  console.error(\"WaveSurfer: Failed to parse initial peaks_data:\", e);\n                  instance.data.peaks_data = '';\n                  instance.data.wavesurfer.empty();\n                  instance.publishState('is_loading', false);\n              }\n          } else {\n              instance.data.wavesurfer.empty();\n          }\n      } else {\n          if (properties.audio) {\n              instance.data.addToPlaylist(\n                  properties.audio, \n                  properties.media_session_title, \n                  properties.media_session_artist,\n                  properties.media_session_album, \n                  properties.media_session_artwork, \n                  instance.data.peaks_data,\n                  { makeCurrent: true }\n              );\n              instance.data.loadFile(\n                  properties.audio, \n                  properties.media_session_title, \n                  properties.media_session_artist,\n                  properties.media_session_album, \n                  properties.media_session_artwork, \n                  instance.data.peaks_data\n              );\n          } else {\n              console.warn(\"WaveSurfer: No audio URL provided for initial load.\");\n          }\n      }\n\n      wavesurfer.setMuted(properties.mute_by_default);\n      instance.publishState('is_muted', properties.mute_by_default);\n\n      attachWaveSurferEventListeners();\n      \n      function setupMediaSession() {\n          try {\n              if (!('mediaSession' in navigator)) return;\n              const currentSong = instance.data.playlist.getCurrentSong() || {\n                  title: properties.media_session_title,\n                  artist: properties.media_session_artist,\n                  album: properties.media_session_album,\n                  artwork: properties.media_session_artwork\n              };\n              if (!currentSong || !currentSong.title) return;
153\n\n              navigator.mediaSession.metadata = new MediaMetadata({\n                  title: currentSong.title || properties.media_session_title,\n                  artist: currentSong.artist || properties.media_session_artist,\n                  album: currentSong.album || properties.media_session_album,\n                  artwork: currentSong.artwork ? [{ src: currentSong.artwork }] : (properties.media_session_artwork ? [{ src: properties.media_session_artwork }] : [])\n              });\n              navigator.mediaSession.setActionHandler(\"play\", () => { wavesurfer.play(); });\n              navigator.mediaSession.setActionHandler(\"pause\", () => { wavesurfer.pause(); });\n              navigator.mediaSession.setActionHandler(\"previoustrack\", () => { instance.data.playPreviousTrack(); });\n              navigator.mediaSession.setActionHandler(\"nexttrack\", () => { instance.data.playNextTrack(); });\n          } catch (error) { \n              console.error(\"Error setting up Media Session:\", error); \n          }\n      }\n      instance.data.setupMediaSession = setupMediaSession;\n      if (properties.media_session) instance.data.setupMediaSession();\n      \n      instance.data.initialized = true;\n      console.log(\"WaveSurfer: Initialization complete.\");\n  } else {\n      console.log(\"WaveSurfer: Handling property updates.\");\n      const wavesurfer = instance.data.wavesurfer;\n\n      if (detectAudioSourceChanges(oldProperties, properties)) {\n          console.log(\"WaveSurfer: Audio source or peaks data change detected.\");\n          if (instance.data.isPlaying) {\n              wavesurfer.stop();\n              instance.triggerEvent('stopped');\n              instance.publishState('isplaying', false);\n              instance.data.isPlaying = false;\n          }\n          instance.data.peaks_data = (properties.preload_peaks && properties.peaks_data && isValidPeaksData(properties.peaks_data)) ? properties.peaks_data : '';\n\n          instance.data._displayDuration = 0;\n\n          if (properties.only_download_on_start) {\n              if (properties.preload_peaks && properties.peaks_data && isValidPeaksData(properties.peaks_data)) {\n                  instance.data.addToPlaylist(\n                      properties.audio, \n                      properties.media_session_title, \n                      properties.media_session_artist,\n                      properties.media_session_album, \n                      properties.media_session_artwork, \n                      instance.data.peaks_data,\n                      { makeCurrent: true }\n                  );\n                  instance.data.loadFile(\n                      \"\", \n                      properties.media_session_title, \n                      properties.media_session_artist, \n                      properties.media_session_album, \n                      properties.media_session_artwork, \n                      instance.data.peaks_data,\n                      true\n                  );\n              } else if (properties.audio) {\n                  instance.data.addToPlaylist(\n                      properties.audio, \n                      properties.media_session_title, \n                      properties.media_session_artist,\n                      properties.media_session_album, \n                      properties.media_session_artwork, \n                      '',\n                      { makeCurrent: true }\n                  );\n                  instance.data.wavesurfer.empty();\n              } else {\n                  instance.data.resetWaveSurfer();\n              }\n          } else {\n              instance.data.resetWaveSurfer();\n              if (oldProperties.audio !== properties.audio || \n                  (properties.audio === oldProperties.audio && properties.preload_peaks && oldProperties.peaks_data !== properties.peaks_data)) {\n                  const currentAudioURL = properties.audio || (instance.data.playlist.getCurrentSong() ? instance.data.playlist.getCurrentSong().url : null);\n                  if (currentAudioURL) {\n                      instance.data.addToPlaylist(\n                          properties.audio, \n                          properties.media_session_title, \n                          properties.media_session_artist,\n                          properties.media_session_album, \n                          properties.media_session_artwork, \n                          instance.data.peaks_data,\n                          { makeCurrent: true }\n                      );\n                      instance.data.loadFile(\n                          currentAudioURL, \n                          properties.media_session_title, \n                          properties.media_session_artist,\n                          properties.media_session_album, \n                          properties.media_session_artwork, \n                          instance.data.peaks_data\n                      );\n                  } else {\n                      console.warn(\"WaveSurfer: Audio source changed, but no valid audio URL to load.\");\n                      instance.data.wavesurfer.empty();\n                  }\n              }\n          }\n      }\n\n      let newOptions = {};\n      if (oldProperties.wavecolor !== properties.wavecolor) newOptions.waveColor = properties.wavecolor;\n      if (oldProperties.progressbarcolor !== properties.progressbarcolor) newOptions.progressColor = properties.progressbarcolor;\n      if (oldProperties.cursorcolor !== properties.cursorcolor) newOptions.cursorColor = properties.cursorcolor;\n      if (oldProperties.normalize !== properties.normalize) {\n          newOptions.normalize = properties.normalize;\n          console.warn(\"WaveSurfer: Changing 'normalize' property. For best results with pre-computed peaks, ensure peaks match the normalization state or reload audio from source.\");\n      }\n      if (oldProperties.hide_scrollbar !== properties.hide_scrollbar) newOptions.hideScrollbar = properties.hide_scrollbar;\n\n      const typeChanged = oldProperties.type !== properties.type;\n      const customBarPropsChanged = properties.type === 'Custom' && (\n          oldProperties.bar_width !== properties.bar_width ||\n          oldProperties.bar_height !== properties.bar_height ||\n          oldProperties.bar_radius !== properties.bar_radius ||\n          oldProperties.bar_gap !== properties.bar_gap\n      );\n\n      if (typeChanged || customBarPropsChanged) {\n          if (properties.type === 'Bars') {\n              newOptions.barWidth = 2; newOptions.barHeight = 1; newOptions.barRadius = undefined; newOptions.barGap = undefined;\n          } else if (properties.type === 'Rounded') {\n              newOptions.barWidth = 3; newOptions.barRadius = 3; newOptions.barHeight = undefined; newOptions.barGap = undefined;\n          } else if (properties.type === 'Custom') {\n              newOptions.barWidth = properties.bar_width; newOptions.barHeight = properties.bar_height;\n              newOptions.barRadius = properties.bar_radius; newOptions.barGap = properties.bar_gap;\n          }\n      }\n\n      if (Object.keys(newOptions).length > 0) {\n          wavesurfer.setOptions(newOptions); \n      }\n\n      if (oldProperties.waveheight !== properties.waveheight) {\n          wavesurfer.setOptions({ height: properties.waveheight });\n      }\n      if (oldProperties.speed !== properties.speed) {\n          wavesurfer.setPlaybackRate(properties.speed);\n          instance.publishState('current_speed', properties.speed);\n          // IMPORTANT: Do NOT modify totalduration/_displayDuration on speed changes.\n      }\n\n      if (oldProperties.mute_by_default !== properties.mute_by_default) {\n          wavesurfer.setMuted(properties.mute_by_default);\n          instance.publishState('is_muted', properties.mute_by_default);\n      }\n\n      if (oldProperties.allow_downloading !== properties.allow_downloading) {\n          applyControl
153sAndDownloadPolicy();\n      }\n\n      const mediaSessionControlProps = ['media_session_title', 'media_session_artist', 'media_session_album', 'media_session_artwork'];\n      const mediaSessionActivationChanged = oldProperties.media_session !== properties.media_session;\n      const mediaSessionMetadataChanged = mediaSessionControlProps.some(key => oldProperties[key] !== properties[key]);\n\n      if (mediaSessionActivationChanged || (properties.media_session && mediaSessionMetadataChanged)) {\n          if (properties.media_session) {\n              const currentSong = instance.data.playlist.getCurrentSong();\n              if (currentSong) {\n                  currentSong.title = properties.media_session_title;\n                  currentSong.artist = properties.media_session_artist;\n                  currentSong.album = properties.media_session_album;\n                  currentSong.artwork = properties.media_session_artwork;\n              }\n              instance.data.setupMediaSession();\n          } else if ('mediaSession' in navigator && navigator.mediaSession.metadata !== null) {\n              navigator.mediaSession.metadata = null;\n              navigator.mediaSession.setActionHandler(\"play\", null);\n              navigator.mediaSession.setActionHandler(\"pause\", null);\n              navigator.mediaSession.setActionHandler(\"previoustrack\", null);\n              navigator.mediaSession.setActionHandler(\"nexttrack\", null);\n          }\n      }\n      console.log(\"WaveSurfer: Property updates handled.\");\n  }\n\n  instance.data.previousProperties = { ...properties };\n  instance.data.properties = properties;\n}\n","add_debugger":false},"reset":{"fn":"function(instance, context) {\n\n\n\n}"}},"platform_type":"web"}}};
154window._bubble_page_load_data.plugins_size['1655136632622x871337829413683200_current'] = 128470;
155window.preloaded['plugin/third_party:1655136632622x871337829413683200_current:current'] = true;
156window.plugins["1655286396534x484120837217845250_current"] = {"human":"Swipe to Unlock Button (#slide)","dependencies":{"use_jquery":true,"plugin_api_version":"4"},"plugin_elements":{"AAC":{"display":"Slide to Unlock","property_applications":{"resizable":true,"MinWidth":true},"add_is_visible":true,"can_fit_width":true,"can_fit_height":true,"fields":{"AAG":{"caption":"Slide Background Color","name":"slide_bg_color","rank":0,"editor":"Color","default_val":"rgba(43, 43, 43, 1)"},"AAH":{"caption":"Slide Ball Color","name":"slide_ball_color","rank":1,"editor":"Color","default_val":"rgba(196, 24, 24, 1)"},"AAI":{"caption":"Slide Ball Icon Color","name":"slide_ball_icon_color","rank":2,"editor":"Color","default_val":"rgba(50, 168, 74, 1)"},"AAJ":{"caption":"Slide Text Color","name":"slide_text_color","rank":4,"editor":"Color","default_val":"rgba(199, 123, 72, 1)"},"AAP":{"caption":"Text","name":"text","rank":5,"editor":"DynamicValue","value":"text","default_val":"Swipe"},"AAU":{"caption":"Icon Size","name":"icon_size","rank":3,"editor":"DynamicValue","value":"number","default_val":30},"AAV":{"caption":"Text Size","name":"text_size","rank":6,"editor":"DynamicValue","value":"number","default_val":24}},"states":{"AAN":{"caption":"Is locked","name":"is_locked","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}}},"events":{"AAM":{"caption":"Is unlocked","name":"unlocked"},"AAO":{"caption":"Is locked","name":"locked"}},"actions":{"AAQ":{"caption":"Lock","code":{"fn":"function(instance, properties, context) {\n\n    var { lockerID} = instance.data;\n\tvar slider = instance.data.slider;\n    \n    slider.addClass('unlocked');\n    instance.publishState(\"is_locked\", true);\n    instance.triggerEvent(\"locked\", function(err){\n        if(!err) return\n        context.reportDebugger(\"Error occured with Slide to Unlock plugin. Error : \" + err);\n    });\n    $(`#${lockerID}`).text('lock_outline');\n\n    setTimeout(function(){\n        slider.on('click tap', function(event){\n            if (!slider.hasClass('unlocked'))\n                return;\n            slider.removeClass('unlocked');\n            $(`#${lockerID}`).text('lock_open');\n            slider.off('click tap');\n            instance.publishState(\"is_locked\", false);\n            instance.triggerEvent(\"unlocked\", function(err){\n                if(!err) return\n                context.reportDebugger(\"Error occured with Slide to Unlock plugin. Error : \" + err);\n            });\n        });\n    }, 0);\n\n}"}},"AAR":{"caption":"Unlock","code":{"fn":"function(instance, properties, context) {\n\n    var { lockerID } = instance.data;\n    var slider = instance.data.slider;\n    \n    slider.removeClass('unlocked');\n    $(`#${lockerID}`).text('lock_open');  // ← ADD THIS LINE\n    instance.publishState(\"is_locked\", false);\n    instance.triggerEvent(\"unlocked\", function(err){\n        if(!err) return\n        context.reportDebugger(\"Error occured with Slide to Unlock plugin. Error : \" + err);\n    });\n    slider.off('click tap');\n    slider.css({'left': '-10px'});  // ← Also changed from '0px' to '-10px' to match initial position\n    $(`#${instance.data.textID}`).fadeTo(0, 1);\n}"}}},"code":{"preview":{"fn":"function(instance, properties) {\n\n\n\n}"},"initialize":{"fn":"function(instance, context) {\n\tvar rand\t\t= Math.floor(Math.random()*100000).toString();\n    var buttonID \t= \"button-background\" + rand;\n    var textID\t\t= \"slide-text\" + rand;\n    var sliderID\t= \"slider\" + rand;\n    var lockerID\t= \"locker\" + rand;\n    \n    instance.data.buttonID \t= buttonID;\n    instance.data.textID \t= textID;\n    instance.data.sliderID \t= sliderID;\n    instance.data.lockerID \t= lockerID;\n    \n    var elcss = `\n<style id=${rand}>\n#${buttonID} {\n user-select: none;\n position:relative;\n background-color:#000;\n width:250px;\n height:50px;\n border:#fff;\n border-radius:40px;\n display:flex;\n align-items:center;\n justify-content:center\n}\n#${sliderID} {\n cursor: pointer;\n transition:width .3s,border-radius .3s,height .3s;\n position:absolute;\n left:-10px;\n background-color:#fff;\n width:60px;\n height:60px;\n border-radius:50%;\n display:flex;\n align-items:center;\n justify-content:center\n}\n#${sliderID}.unlocked {\n transition:all .3s;\n width:inherit!important;\n left:0!important;\n height:inherit!important;\n border-radius:inherit\n}\n.material-icons .slide-icon{\n color:#000;\n font-size:50px;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n cursor:default\n}\n.slide-text {\n color:#3a3d55;\n font-size:24px;\n text-transform:uppercase;\n font-family:roboto,sans-serif;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n cursor:default\n}\n.bottom {\n position:fixed;\n bottom:0;\n font-size:14px;\n color:#fff\n}\n.bottom a {\n color:#fff\n}\n</style>\n`;\n    \n    $('head').append(elcss);\n}"},"update":{"fn":"function(instance, properties, context) {\n    \n    if(instance.data.initialized){\n        return;\n    }\n    \n    let { rand, buttonID, textID, sliderID, lockerID } = instance.data;\n    console.log(properties.bubble)\n    console.log(properties.bubble.height())\n\n    $(document).ready(function(){\n        $(instance.canvas).css(\"overflow\", \"visible\");\n        $(`#${buttonID}
156`).css({\"background-color\": properties.slide_bg_color, \"width\": \"100%\", \"height\": properties.bubble.height + \"px\"});\n        $(`#${sliderID}`).css({\"background-color\": properties.slide_ball_color, \"height\": properties.bubble.height + \"px\", \"width\": properties.bubble.height + \"px\"});\n        $(`#${buttonID} .material-icons.slide-icon`).css({\"color\": properties.slide_ball_icon_color, \"font-size\": properties.icon_size + 'px' }); \n        $(`#${buttonID} .slide-text`).css({\"color\": properties.slide_text_color,\"font-size\": properties.text_size + 'px'});\n    });\n    \n    //Slide JS\n    let div = `<div id=\"${buttonID}\"><span id=\"${textID}\" class=\"slide-text\">${properties.text}</span><div id=\"${sliderID}\"><span id=\"${lockerID}\" class=\"material-icons slide-icon\">lock_open</span></div></div>`;\n    instance.canvas.append($(div));\n    instance.publishState(\"is_locked\", false);\n    \n    let initialMouse = 0;\n    let slideMovementTotal = 0;\n    let mouseIsDown = false;\n    let slider = $(`#${sliderID}`);\n    instance.data.slider = slider;\n    slider.on('mousedown touchstart', function(event){\n        mouseIsDown = true;\n        slideMovementTotal = $(`#${buttonID}`).width() - $(this).width() + 10;\n        initialMouse = event.clientX || event.originalEvent.touches[0].pageX;\n    });\n    $(document.body, `#${sliderID}`).on('mouseup touchend', function (event) {\n        if (!mouseIsDown)\n            return;\n        mouseIsDown = false;\n        var currentMouse = event.clientX || event.changedTouches[0].pageX;\n        var relativeMouse = currentMouse - initialMouse;\n        if (relativeMouse < slideMovementTotal) {\n            $(`#${textID}`).fadeTo(300, 1);\n            slider.animate({\n                left: \"-10px\"\n            }, 300);\n            return;\n        }\n        slider.addClass('unlocked');\n        instance.publishState(\"is_locked\", true);\n        instance.triggerEvent(\"locked\", function(err){\n            if(!err) return\n            console.log(\"Error occurent with Slide to Unlock plugin. Please report this to Wesley Wasielewski ([email protected])\");\n            context.reportDebugger(\"Error occured with Slide to Unlock plugin. Error : \" + err);\n        });\n        $(`#${lockerID}`).text('lock_outline');\n        setTimeout(function(){\n            slider.on('click tap', function(event){\n                if (!slider.hasClass('unlocked'))\n                    return;\n                slider.removeClass('unlocked');\n                $(`#${lockerID}`).text('lock_open');\n                slider.off('click tap');\n                instance.publishState(\"is_locked\", false);\n                instance.triggerEvent(\"unlocked\", function(err){\n                    if(!err) return\n            \t\tcontext.reportDebugger(\"Error occured with Slide to Unlock plugin. Error : \" + err);\n                });\n            });\n        }, 0);\n    });\n    $(document.body).on('mousemove touchmove', function(event){\n        if (!mouseIsDown)\n            return;\n        var currentMouse = event.clientX || event.originalEvent.touches[0].pageX;\n        var relativeMouse = currentMouse - initialMouse;\n        var slidePercent = 1 - (relativeMouse / slideMovementTotal);\n        $(`#${textID}`).fadeTo(0, slidePercent);\n        if (relativeMouse <= 0) {\n            slider.css({'left': '-10px'});\n            return;\n        }\n        if (relativeMouse >= slideMovementTotal + 10) {\n            slider.css({'left': slideMovementTotal + 'px'});\n            return;\n        }\n        slider.css({'left': relativeMouse - 10});\n    });\n    \n\tinstance.data.textID = textID;\n    instance.data.initialized = true;\n}"},"reset":{"fn":"function(instance, context) {\n\n\n\n}"}},"platform_type":"web"}}};
157window._bubble_page_load_data.plugins_size['1655286396534x484120837217845250_current'] = 9302;
158window.preloaded['plugin/third_party:1655286396534x484120837217845250_current:current'] = true;
159window.plugins["1655609922880x629095564118589400_current"] = {"human":"Coloris","dependencies":{"use_jquery":true,"plugin_api_version":3},"plugin_elements":{"AAC":{"display":"Color picker","property_applications":{"resizable":true,"MinWidth":true,"Backgroun
159d":true,"Border":true,"Padding":false,"BoxShadow":true},"add_hover_pressed":true,"add_is_visible":true,"support_autobinding":true,"autobinding_value":"text","fields":{"AAD":{"caption":"themeMode","name":"thememode","rank":1,"editor":"Dropdown","default_val":"auto","in_style":true},"AAE":{"caption":"theme","name":"theme","rank":0,"editor":"Dropdown","default_val":"default"},"AAF":{"caption":"margin","name":"margin","rank":2,"editor":"StaticNumber","default_val":2},"AAG":{"caption":"formatToggle","name":"formattoggle","rank":3,"editor":"Checkbox","default_val":false},"AAH":{"caption":"alpha","name":"alpha","rank":4,"editor":"Checkbox","default_val":true},"AAI":{"caption":"swatchesOnly","name":"swatchesonly","rank":5,"editor":"Checkbox","default_val":false},"AAJ":{"caption":"clear","name":"clear","rank":6,"editor":"Checkbox","default_val":false},"AAK":{"caption":"cleartext","name":"cleartext","rank":7,"editor":"DynamicValue","value":"text","default_val":"Clear"},"AAL":{"caption":"swatches","name":"swatches","rank":8,"editor":"Checkbox","default_val":true},"AAM":{"caption":"customswatches","name":"customswatches","rank":9,"editor":"Checkbox","default_val":false},"AAN":{"caption":"swatchesvalue","name":"swatchesvalue","rank":10,"editor":"StaticText","default_val":"#264653;#2a9d8f;rgb(244,162,97);navy;#00b4d880"},"AAO":{"caption":"format","name":"format","rank":11,"editor":"Dropdown","default_val":"auto"}},"states":{"AAP":{"caption":"picked","name":"picked","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}}},"events":{"AAQ":{"caption":"picked","name":"picked"},"AAR":{"caption":"open","name":"open"}},"actions":{"AAS":{"caption":"close","code":{"fn":"function(instance, properties, context) {\n\n\n// Close the dialog\nColoris.close();\n\n\n\n\n}"}},"AAT":{"caption":"reset","code":{"fn":"function(instance, properties, context) {\n\n\n// Close the dialog and revert the color to its original value\nColoris.close(true);\n\n\n\n}"}}},"code":{"preview":{"fn":"function(instance, properties) {\n    \n    console.log(properties.thememode)\n\n\n\n}"},"initialize":{"fn":"function(instance, context) {\n\n      var element_id = Math.random().toString(36).replace(/[^a-z]+/g, '');\n      var input_id = Math.random().toString(36).replace(/[^a-z]+/g, '');\n    \n      var newDiv =$(\n'      <div id=\"' + element_id + '\" class=\"example square\">' + \n'        <input id=\"' + input_id + '\" type=\"text\" class=\"coloris\" value=\"rgb(255, 0, 0)\">' + \n'      </div>');\n\n      //var  newDiv = $('<input type=\"text\" id=\"' + element_id + '\" class=\"coloris clr-gradient\" value=\"#cc458faa\">');\n      newDiv.css(\"width\", \"100%\");\n      newDiv.css(\"height\", \"100%\");\n      instance.canvas.append(newDiv);\n      instance.data.input_id = input_id;\n      instance.data.input = document.getElementById(input_id);\n      instance.data.element = document.getElementById(element_id);\n    \n    \ndocument.addEventListener('coloris:pick', event => {\n\tinstance.triggerEvent(\"picked\")\n    instance.publishState(\"picked\", event.detail.color)\n});\t\t\n\ndocument.addEventListener('coloris:open', event => {\n\tinstance.triggerEvent(\"open\")\n    console.log(\"open\")\n});\t \n    \n}"},"update":{"fn":"function(instance, properties, context) {\n    \n    console.log(instance.canvas)\n\n// Apply style to div\ninstance.data.input.style.height = properties.bubble.height() + \"px\";\ninstance.data.input.style.width = properties.bubble.width() + \"px\";\ninstance.data.element.className = \"example circle\";\n\nif (properties.swatches) {\n  // An array of the desired color swatches to display. If omitted or the array is empty,\n  // the color swatches will be disabled.\n  if (properties.customswatches) {instance.data.swatches = properties.swatchesvalue.split(\";\")}\n  else {\n  instance.data.swatches = [\n    '#264653',\n    '#2a9d8f',\n    '#e9c46a',\n    'rgb(244,162,97)',\n    '#e76f51',\n    '#d62828',\n    'navy',\n    '#07b',\n    '#0096c7',\n    '#00b4d880',\n    'rgba(0,119,182,0.8)'\n  ]\n  }\n}\n\nColoris({\n    \n  swatches : instance.data.swatches,\n\n  // Available themes: default, large, polaroid.\n  // More themes might be added in the future.\n  theme: properties.theme,\n    \n  el: '.coloris',\n\n  // Set the theme to light or dark mode:\n  // * light: light mode (default).\n  // * dark: dar
159k mode.\n  // * auto: automatically enables dark mode when the user prefers a dark color scheme.\n  themeMode: properties.thememode,\n\n  // The margin in pixels between the input fields and the color picker's dialog.\n  margin: properties.margin,\n\n  // Set the preferred color string format:\n  // * hex: outputs #RRGGBB or #RRGGBBAA (default).\n  // * rgb: outputs rgb(R, G, B) or rgba(R, G, B, A).\n  // * hsl: outputs hsl(H, S, L) or hsla(H, S, L, A).\n  // * auto: guesses the format from the active input field. Defaults to hex if it fails.\n  // * mixed: outputs #RRGGBB when alpha is 1; otherwise rgba(R, G, B, A).\n  format: properties.format,\n\n  // Set to true to enable format toggle buttons in the color picker dialog.\n  // This will also force the format (above) to auto.\n  formatToggle: properties.formattoggle,\n\n  // Enable or disable alpha support.\n  // When disabled, it will strip the alpha value from the existing color value in all formats.\n  alpha: properties.alpha,\n\n  // Set to true to always include the alpha value in the color value even if the opacity is 100%.\n  forceAlpha: false,\n\n  // swatchesOnlySet to true to hide all the color picker widgets (spectrum, hue, ...) except the swatches.\n  swatchesOnly: properties.swatchesonly,\n\n  // Focus the color value input when the color picker dialog is opened.\n  focusInput: true,\n\n  // Select and focus the color value input when the color picker dialog is opened.\n  selectInput: false,\n\n  // Show an optional clear button and set its label\n  clearButton: {\n    show: properties.clear,\n    label: properties.cleartext\n  },\n\n  // swatches: instance.data.swatches,\n\n  // Set to true to use the color picker as an inline widget. In this mode the color picker is\n  // always visible and positioned statically within its container, which is by default the body\n  // of the document. Use the \"parent\" option to set a custom container.\n  // Note: In this mode, the best way to get the picked color, is listening to the \"coloris:pick\"\n  // event and reading the value from the event detail (See example in the Events section). The\n  // other way is to read the value of the input field with the id \"clr-color-value\".\n  inline: false,\n\n  // In inline mode, this is the default color that is set when the picker is initialized.\n  defaultColor: '#000000'\n});\n\n}"},"reset":{"fn":"function(instance, context) {\n\n\n\n}"}},"platform_type":"web"}}};
160window._bubble_page_load_data.plugins_size['1655609922880x629095564118589400_current'] = 7048;
161window.preloaded['plugin/third_party:1655609922880x629095564118589400_current:current'] = true;
162window.plugins["1655803012672x120627360156876800_current"] = {"human":"Essential Phone Number Input","dependencies":{"use_jquery":true,"plugin_api_version":3},"plugin_elements":{"AAC":{"display":"Essential Phone Number","property_applications":{"resizable":true,"MinWidth":true,"Font":true},"add_is_visible":true,"has_reset_fn":true,"can_fit_width":false,"can_fit_height":true,"fields":{"AAG":{"caption":"HTML ID","name":"id","rank":0,"editor":"DynamicValue","value":"text"},"AAP":{"caption":"Allow Dropdown ?","name":"allowdropdown","rank":1,"editor":"DynamicValue","value":"boolean","optional":true,"default_val":true},"AAQ":{"caption":"Auto-placeholder","name":"autoplaceholder","rank":2,"editor":"DynamicValue","optional":true,"value":"boolean","default_val":true},"AAR":{"caption":"Excluded Countries","name":"excludecountries","rank":4,"editor":"DynamicValue","value":"text","optional":true,"is_list":false},"AAS":{"caption":"Only some Countries","name":"onlycountries","rank":9,"editor":"DynamicValue","optional":true,"value":"text"},"AAU":{"caption":"Exclude Countries ?","name":"excludecountries_enable","rank":3,"optional":true,"editor":"DynamicValue","value":"boolean","default_val":false},"AAV":{"caption":"Format on Display ?","name":"formatondisplay","rank":5,"editor":"DynamicValue","value":"boolean","default_val":true,"optional":true},"AAW":{"caption":"Initial Country ?","name":"initialcountry","rank":6,"editor":"DynamicValue","value":"boolean","default_val":true,"optional":true},"AAX":{"caption":"Only some Countries ?","name":"onlycountries_enable","rank":8,"editor":"DynamicValue","value":"boolean","default_val":false,"optional":true},"AAY":{"caption":"Preferred Countries ?","name":"preferredcountries_enable","rank":10,"editor":"DynamicValue","value":"boolean","default_val":false},"AAZ":{"caption":"Preferred Countries","name":"preferredcountries","rank":11,"editor":"DynamicValue","value":"text","optional":true},"AAb":{"caption":"Initial Country","name":"initialcountry_data","rank":7,"editor":"DynamicValue","value":"text","default_val":"auto"}
162,"AAf":{"caption":"Dropdown Background Color","name":"dropdown_bg_color","rank":13,"editor":"Color","default_val":"rgba(255, 255, 255, 1)"},"AAg":{"caption":"Dropdown Font Color","name":"dropdown_font_color","rank":14,"editor":"Color","default_val":"rgba(38, 38, 38, 1)"},"AAh":{"caption":"Dropdown Code Color","name":"dropdown_code_color","rank":15,"editor":"Color","default_val":"rgba(143, 143, 143, 1)"},"AAi":{"caption":"Fallback Country","name":"fallback_country","rank":12,"editor":"DynamicValue","value":"text","default_val":"fr"}},"states":{"AAa":{"caption":"Selected Country","name":"selected_country","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAc":{"caption":"Is Valid","name":"is_valid","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAd":{"caption":"Formatted Number","name":"formatted_number","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"AAe":{"caption":"Selected Country Code","name":"selected_country_code","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}}},"events":{"AAL":{"caption":"Is not valid","name":"international_input_has_error"},"AAM":{"caption":"Is valid","name":"international_input_is_valid"}},"code":{"preview":{"fn":"function(instance, properties) {\n\n\n\n}"},"initialize":{"fn":"function(instance, context) {\n    \n}"},"update":{"fn":"function(instance, properties, context) {\n    \n    if(!properties.id){\n        context.reportDebugger('Please provide a HTML ID.', function(err){\n            console.log(err);\n        });\n        return;\n    }\n    \n    $(function() {\n        let tempInput = document.querySelector(\"#\" + properties.id);\n        \n        var currentParent = upToClass(tempInput, '.Group')\n        while (currentParent)\n        {\n        \tcurrentParent.style.zIndex = \"20\";\n            currentParent = upToClass(currentParent, '.Group');\n        }\n    });\n    \n    if(instance.data.initialized){\n        return;\n    }\n    \n    function upToClass(el, className)\n    {\n    \tlet potentialParents = document.querySelectorAll(className);\n        while (el && el.parentNode) {\n        \tel = el.parentNode;\n            for (let i = 0; i < potentialParents.length; i++){\n            \tif (el == potentialParents[i])\n                    return el;\n            }\n        }\n        return null;\n    }\n    \n    var input2 = document.querySelector(\"#\" + properties.id);\n    instance.data.initialInputLeftMargin \t= $(input2).css('marginLeft');\n    instance.data.initialInputRightMargin \t= $(input2).css('marginRight');\n    instance.data.initialInputTopMargin \t= $(input2).css('marginTop');\n    instance.data.initialInputBottomMargin \t= $(input2).css('marginBottom');\n    \n    instance.data.initialInputWidth \t\t= $(input2).css('width');\n    \n    //Sets to min width after first page reload?? random\n    $(input2).css('width', instance.data.initialInputWidth);\n    \n    \n    $(document).ready(function(){    \n        var exclude = JSON.parse(\"[\"+properties.excludecountries+\"]\");\n        var only = JSON.parse(\"[\"+properties.onlycountries+\"]\");\n        var preferred = JSON.parse(\"[\"+properties.preferredcountries+\"]\");\n        var init_country = properties.initialcountry_data;\n        var config = { \t\n            utilsScript: \"//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1655803159297x668341340324247760/utils.js\",\n            geoIpLookup: function(callback) {\n                             $.get(\"https://ipinfo.io\", function() {}, \"jsonp\").always(function(resp) {\n                               var countryCode = (resp && resp.country) ? resp.country : init_country;\n                               \n                               //Check if detected country is insider allowed country list\n                               if((properties.onlycountries_enable && only.includes(countryCode)) || (properties.excludecountries_enable && exclude.includes(countryCode))){\n                                   callback(countryCode);\n                               }
162else{\n                                   callback(properties.fallback_country);\n                               }\n                             });\n             \t},\n             customContainer: \"css-\" + properties.id\n         };\n\n        if(!properties.allowdropdown){\n            config.allowDropdown = false;\n        }\n\n        if(properties.autoplaceholder){\n            config.autoPlaceholder = \"aggressive\";\n        }\n\n        if(properties.excludecountries_enable){\n            config.excludeCountries = exclude;\n        }\n\n        if(properties.formatondisplay){\n            config.formatOnDisplay = true;\n        }\n\n        if(properties.initialcountry){\n            config.initialCountry = properties.initialcountry_data;\n        }\n\n        if(properties.onlycountries_enable){\n            config.onlyCountries = only;\n            console.log(only);\n        }\n\n        if(properties.preferredcountries_enable){\n            config.preferredCountries = preferred;\n        }       \n\n        var input = document.querySelector(\"#\" + properties.id);\n        \n        $('.iti.css-' + properties.id).css(\"height\", input.style.height);\n        const fontFamily = properties.bubble.font_face().split(':::')[0];\n        const fontSize = properties.bubble.font_size();\n        $('.iti__country-name').css('font-family', fontFamily);\n        $('.iti__country-name').css('font-size', fontSize);\n\n        input.setAttribute(\"type\", \"tel\");\n        if(instance.data.iti) return;\n        let iti = window.intlTelInput(input, config);\n        instance.data.iti = iti;\n        \n        function triggerStates(){\n        \tvar selected_country = iti.getSelectedCountryData();\n            instance.publishState(\"selected_country\", selected_country.name);\n            instance.publishState(\"selected_country_code\", selected_country.iso2);\n            if (input.value.trim()) {\n                instance.publishState('formatted_number', iti.getNumber());\n                if (iti.isValidNumber()) {\n                    instance.publishState(\"is_valid\",true);\n                    instance.triggerEvent(\"international_input_is_valid\");\n                } else {            \n                    instance.publishState(\"is_valid\",false);\n                    instance.triggerEvent(\"international_input_has_error\");\n                }\n            } else {\n                instance.publishState('formatted_number', '');\n            }\n        }\n        \n        iti.promise.then(setTimeout(triggerStates, 1000));\n        //input.addEventListener('blur', triggerStates);\n        input.addEventListener('input', triggerStates);\n\t\tinput.addEventListener('blur', triggerStates);\n        input.addEventListener('focusin', triggerStates);\n        instance.publishState(\"selected_country\", iti.getSelectedCountryData().name);\n        instance.publishState(\"selected_country_code\", iti.getSelectedCountryData().iso2);\n\n        input.addEventListener(\"countrychange\", function() {\n  \t\t\tvar selected_country = iti.getSelectedCountryData();\n            instance.publishState(\"selected_country\", selected_country.name);\n            instance.publishState(\"selected_country_code\", selected_country.iso2);\n\t\t});\n        \n        //Defining wrapper CSS the same as initial Input CSS\n        let jIti = $('.iti.css-' + properties.id);\n        \n        jIti.css('align-self', $(input).css('align-self'));\n        jIti.css('min-width', $(input).css('min-width'));\n        jIti.css('max-width', $(input).css('max-width'));\n        jIti.css('order', $(input).css('order'));\n        jIti.css('min-height', $(input).css('min-height'));\n        jIti.css('max-height', $(input).css('max-height'));\n        jIti.css('height', $(input).css('height'));\n        jIti.css('flex-grow', $(input).css('flex-grow'));\n        \n        jIti.css('width', '100%');\n        \n        //Remove margins from the input and place them on the wrapper\n        \n        jIti.css('marginLeft', instance.data.initialInputLeftMargin);\n        jIti.css('marginRight', instance.data.initialInputRightMargin);\n        jIti.css('marginTop', instance.data.initialInputTopMargin);\n        jIti.css('marginBottom', instance.data.initialInputBottomMargin);\n        \n        \n        $(input).css('marginLeft', '0px');\n        $(input).css('marginRight', '0px');\n        $(input).css('marginTop', '0px');\n        $(input).css('marginBottom', '0px');\n     \n        //Defining dropdown custom CSS\n        $('head').append(`<style>\n            .iti__country-list {\n                background-color: ${properties.dropdown_bg_color} !important;\n            }\n\n            .iti__country-name {\n                color: ${properties.dropdown_font_color} !important;\n            }\n\n            .iti__dial-code {\n                color: ${properties.dropdown_code_color} !important;\n            }\n\n            #${properties.id} {\n                padding-left: ${properties.allowdropdown ? \"50px\" : \"10px\"} !important;\n            }\n\n            .iti.css-${properties.id} {\n                z-index: 1000 !important;\n                position: relative !important;\n            }\n\n            .iti.css-${properties.id} .iti__flag-container {\n                z-index: 1001 !important;\n            }\n\n            .iti.css-${properties.id} .iti__country-list {\n                z-index: 1002 !important;\n            }\n        </style>`)\n\n        instance.data.initialized = true;\n        \n    });\n\n        \n}","add_debugger":false},"reset":{"fn":"function(instance, context) {\n\n\tinstance.publishState('formatted_number', '');\n    instance.publishState('is_valid', false);\n\n}"}},"platform_type":"web"}}};
163window._bubble_page_load_data.plugins_size['1655803012672x1206273601
16356876800_current'] = 11957;
164window.preloaded['plugin/third_party:1655803012672x120627360156876800_current:current'] = true;
165window.plugins["1656091506408x160944090953023500_current"] = {"human":"Group to Image #download #convert","dependencies":{"use_jquery":true,"plugin_api_version":3},"plugin_elements":{"AAC":{"display":"Group to Image","property_applications":{"resizable":true,"MinWidth":true},"add_is_visible":true,"fields":{"AAS":{"caption":"Auto-download ?","name":"auto_download","rank":0,"editor":"DynamicValue","value":"boolean","default_val":false}},"states":{"AAF":{"caption":"Image URL","name":"image_url","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}}},"events":{"AAR":{"caption":"Screenshot Generated","name":"screenshot_generated"}},"actions":{"AAJ":{"caption":"Group to Image","code":{"fn":"function(instance, properties, context) {\n    if (!properties.html_id) {\n        context.reportDebugger(\"Please provide an HTML ID for the group to be downloaded as an image.\");\n        return;\n    }\n\n    const screenshotElement = document.getElementById(properties.html_id);\n    if (!screenshotElement) {\n        context.reportDebugger(\"Please provide a valid HTML ID for the group to be downloaded as an image.\");\n        return;\n    }\n\n    if (typeof domtoimage === \"undefined\") {\n        context.reportDebugger('The \"domtoimage\" library is not loaded. Include it before running this action.');\n        return;\n    }\n\n    // ---- Contrast helpers ----\n    function parseColorToRGB(color) {\n        if (!color) return null;\n        color = (\"\" + color).trim();\n\n        if (color[0] === \"#\") {\n            let hex = color.slice(1);\n            if (hex.length === 3) hex = hex.split(\"\").map(h => h + h).join(\"\");\n            if (hex.length !== 6) return null;\n            const r = parseInt(hex.slice(0, 2), 16);\n            const g = parseInt(hex.slice(2, 4), 16);\n            const b = parseInt(hex.slice(4, 6), 16);\n            return { r, g, b };\n        }\n\n        const m = color.match(/^rgba?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*,\\s*([\\d.]+)(?:\\s*,\\s*([\\d.]+))?\\s*\\)$/i);\n        if (m) return { r: +m[1], g: +m[2], b: +m[3] };\n\n        try {\n            const el = document.createElement(\"div\");\n            el.style.color = color;\n            document.body.appendChild(el);\n            const cs = getComputedStyle(el).color;\n            document.body.removeChild(el);\n            const m2 = cs.match(/^rgb\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*\\)$/i);\n            if (m2) return { r: +m2[1], g: +m2[2], b: +m2[3] };\n        } catch(e) {}\n        return null;\n    }\n\n    function getContrastColor(bg) {\n        const rgb = parseColorToRGB(bg);\n        if (!rgb) return null;\n        const brightness = (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;\n        return brightness > 128 ? \"black\" : \"white\";\n    }\n\n    const bgProp = (properties.background_color || \"\").trim();\n    const hasBg = !!bgProp && bgProp.toLowerCase() !== \"transparent\";\n    const textColor = hasBg ? (getContrastColor(bgProp) || \"black\") : null;\n\n    // ---- Anti-cropping fixes ----\n    const dpr = Math.max(1, (properties.scale || window.devicePixelRatio || 1));\n\n    // Freeze element scroll and compute precise size\n    const prevScrollLeft = screenshotElement.scrollLeft;\n    const prevScrollTop  = screenshotElement.scrollTop;\n    screenshotElement.scrollLeft = 0;\n    screenshotElement.scrollTop  = 0;\n\n    const rect = screenshotElement.getBoundingClientRect();\n    const cssWidth  = Math.ceil(rect.width);\n    const cssHeight = Math.ceil(rect.height);\n\n    // Tiny inset to avoid left-edge clipping in some browsers\n    const inset = 1; // set to 0 if not desired\n\n    let domToImageOptions = {\n        quality: 1,\n        bgcolor: hasBg ? bgProp : \"transparent\",\n        width: (cssWidth + inset) * dpr,\n        height: (cssHeight) * dpr,\n        useCORS: true,\n        imageTimeout: 5000,\n        style: {\n            transform: \"scale(\" + dpr + \")\",\n            transformOrigin: \"top left\",\n            width: cssWidth + \"px\",\n            height: cssHeight + \"px\",\n            margin: \"0\",\n            padding: \"0\",\n            filter: \"none\",\n            ...(hasBg ? { backgroundColor: bgProp } : {}),\n            ...(textColor ? { color: textColor } : {})\n        }\n    };\n\n    const fontsReady = (document.fonts && document.fonts.ready) ? document.fonts.ready : Promise.resolve();\n\n    fontsReady\n        .then(() => domtoimage.toPng(screenshotElement, domToImageOptions))\n        .then(function(dataUrl) {\n            // Restore scroll\n            screenshotElement.scrollLeft = prevScrollLeft;\n            screenshotElement.scrollTop  = prevScrollTop;\n\n            const img = new Image();\n            img.src = dataUrl;
165\n\n            img.onload = function() {\n                const canvas = document.createElement(\"canvas\");\n                const ctx = canvas.getContext(\"2d\");\n\n                canvas.width = img.width + inset * dpr;\n                canvas.height = img.height;\n\n                // Shift slightly right to prevent apparent left cropping\n                ctx.drawImage(img, inset * dpr, 0);\n\n                instance.data.canvasScreenshot = canvas;\n                instance.data.saveImage(properties.filename, properties.extension);\n            };\n        })\n        .catch(function(error) {\n            screenshotElement.scrollLeft = prevScrollLeft;\n            screenshotElement.scrollTop  = prevScrollTop;\n\n            console.error(\"Error capturing screenshot:\", error);\n            context.reportDebugger(\"Error capturing screenshot: \" + (error.message || error));\n        });\n}\n"},"fields":{"AAK":{"caption":"File Name","name":"filename","rank":1,"editor":"DynamicValue","value":"text"},"AAL":{"caption":"File Extension","name":"extension","rank":2,"editor":"Dropdown","default_val":"png"},"AAQ":{"caption":"Group HTML ID","name":"html_id","rank":0,"editor":"DynamicValue","value":"text","default_val":"myGroup"},"AAW":{"caption":"Scale","name":"scale","rank":3,"editor":"DynamicValue","value":"number","default_val":1},"AAX":{"caption":"Background Color","name":"background_color","rank":4,"editor":"Color","optional":true}}}},"code":{"preview":{"fn":"function(instance, properties) {\n\n    let box = $('<div id=\"preview-id\"></div>');  \n\tbox.css(\"height\", properties.bubble.height)\n\tbox.css(\"width\", properties.bubble.width)\n\tbox.css(\"background-image\", \"url(//s3.amazonaws.com/appforest_uf/f1658741355498x392977627019649500/screenshot%20%282%29.png)\")\n\tbox.css(\"background-repeat\", \"no-repeat\")\n\tbox.css(\"background-position\", \"50% 50%\")\n\tbox.css(\"background-size\", \"cover\")\n  \tinstance.canvas.append(box); \n    \n}"},"initialize":{"fn":"function(instance, context) {\n\n\tfunction uploadContentCallback(err, url){\n\t\tif(url){\n\t\t\tinstance.publishState('image_url', url);\n            instance.triggerEvent('screenshot_generated', function(err) {\n                if(err){\n                    context.reportDebugger('An error has been thrown while trying to trigger event \"Screenshot Generated\". Please contact plugin author ([email protected]) to get an answer within 2 business days.');\n                }\n            });\n\t\t}else{\n            context.reportDebugger(\"No URL has been provided to the callback function. Please contact plugin author ([email protected]) to get an answer within 2 business days.\");\n        }\n\t}\n\tinstance.data.uploadContentCallback = uploadContentCallback;\n    \n\tfunction saveImage(fileName, fileExtension){\n\t\tlet imageData = instance.data.canvasScreenshot.toDataURL();\n\t\tlet imageDataPng = imageData.substring(imageData.indexOf(',')+1);\n\t\tcontext.uploadContent(fileName + \".\" + fileExtension, imageDataPng, instance.data.uploadContentCallback);\n        if(instance.data.auto_download){\n            var link=document.createElement(\"a\");\n            link.href=instance.data.canvasScreenshot.toDataURL('image/' + fileExtension);\n            link.download = fileName + '.' + fileExtension;\n            link.click();\n        }\n\t};\n\tinstance.data.saveImage = saveImage;\n\n}"},"update":{"fn":"function(instance, properties, context) {\n\n\tinstance.data.auto_download = properties.auto_download;\n    \n}"},"reset":{"fn":"function(instance, context) {\n\n\n\n}"}},"platform_type":"web"}}};
166window._bubble_page_load_data.plugins_size['1656091506408x160944090953023500_current'] = 8394;
167window.preloaded['plugin/third_party:1656091506408x160944090953023500_current:current'] = true;
168window.plugins["1660145752149x220883483829731330_current"] = {"human":"Native Emoji Picker +","dependencies":{"use_jquery":true,"plugin_api_version":"3"},"plugin_elements":{"AAa":{"display":"Emoji Picker","property_applications":{"resizable":true},"add_is_visible":true,"fields":{"AAc":{"caption":"⚙️ Input ID","name":"input_id","rank":8,"editor":"DynamicValue","value":"text","optional":true},"AAd":{"caption":"Bind an input to the emoji picker to automatically fill the input with the selected emoji.","name":"the_html_id_of_the_reference_element_to_which_the_popup_will_be_attached.","rank":6,"editor":"Label"},"AAe":{"caption":"⚙️ Position","name":"position","rank":4,"editor":"Dropdown","default_val":"auto"}
168,"AAf":{"caption":"--- INPUT ---","name":"---_input_---","rank":5,"editor":"Label"},"AAk":{"caption":"--- TRIGGER ELEMENT ---","name":"---_input_---","rank":1,"editor":"Label"},"AAm":{"caption":"☑️ Bind to input","name":"input","rank":7,"editor":"Checkbox","default_val":false},"AAo":{"caption":"--- PICKER SETTINGS ---","name":"---_picker_settings_---","rank":10,"editor":"Label"},"AAp":{"caption":"⚙️ Hide on click outside","name":"hideOnClickOutside","rank":13,"editor":"Checkbox","default_val":true},"AAq":{"caption":"⚙️ Hide on emoji select","name":"hideOnEmojiSelect","rank":14,"editor":"Checkbox","default_val":true},"AAr":{"caption":"⚙️ Hide on escape","name":"hideOnEscape","rank":15,"editor":"Checkbox","default_val":true},"AAs":{"caption":"⚙️ Show close button","name":"showCloseButton","rank":16,"editor":"Checkbox","default_val":true},"ABH":{"caption":"⚙️ Element ID","name":"trigger_id","rank":3,"editor":"DynamicValue","value":"text","optional":true},"ABI":{"caption":"The element that will trigger the popup.","name":"dwda","rank":2,"editor":"Label"},"ABJ":{"caption":"⚙️ Attach popup to","name":"attach_to","rank":9,"editor":"Dropdown","default_val":"Trigger element"},"ABK":{"caption":"🎨 Animate","name":"animate","rank":11,"editor":"Checkbox","default_val":true},"ABL":{"caption":"🎨 Theme","name":"theme","rank":12,"editor":"Dropdown","default_val":"Auto"},"ABM":{"caption":"⚙️ Auto-focus","name":"autoFocus","rank":24,"editor":"Checkbox","default_val":false},"ABN":{"caption":"⚙️ Locale","name":"locale","rank":30,"editor":"Dropdown","default_val":"en"},"ABP":{"caption":"--- FEATURES & TABS ---","name":"---_picker_settings_---","rank":17,"editor":"Label"},"ABQ":{"caption":"Select which tabs and features should be enabled.","name":"select_which_tabs_should_be_displayed_in_the_emoji_picker","rank":18,"editor":"Label"},"ABR":{"caption":"☑️  Category tab","name":"showCategoryTabs","rank":19,"editor":"Checkbox","default_val":true},"ABS":{"caption":"☑️  Show preview","name":"showPreview","rank":21,"editor":"Checkbox","default_val":true},"ABT":{"caption":"☑️  Show recents","name":"showRecents","rank":20,"editor":"Checkbox","default_val":true},"ABU":{"caption":"☑️  Search bar","name":"showSearch","rank":23,"editor":"Checkbox","default_val":true},"ABV":{"caption":"☑️  Show variants","name":"showVariants","rank":22,"editor":"Checkbox","default_val":true},"ABW":{"caption":"--- ADVANCED ---","name":"---_emoji_categories_---","rank":28,"editor":"Label"},"ABX":{"caption":"Advanced settings for the emoji picker","name":"dwdw","rank":29,"editor":"Label"},"ABY":{"caption":"⚙️ Visible rows","name":"visibleRows","rank":34,"editor":"Dropdown","default_val":"6"},"ABZ":{"caption":"⚙️ Max recents","name":"maxRecents","rank":31,"editor":"Dropdown","default_val":"50"},"ABa":{"caption":"⚙️ Custom class","name":"className","rank":35,"editor":"DynamicValue","value":"text","optional":true},"ABb":{"caption":"⚙️ Emoji size","name":"emojiSize","rank":32,"editor":"StaticText","default_val":"2rem"},"ABd":{"caption":"⚙️ Emojis per rows","name":"emojisPerRow","rank":33,"editor":"Dropdown","default_val":"8"},"ABj":{"caption":"☑️ Disable emoji picker","name":"disabled","rank":0,"editor":"Checkbox","default_val":false},"ABl":{"caption":"⚙️ Categories","name":"categories","rank":27,"editor":"DynamicValue","value":"text","optional":true},"ABm":{"caption":"--- CATEGORIES ---","name":"cat","rank":25,"editor":"Label"},"ABn":{"caption":"This can be used to limit which categories are shown, and in what order.","name":"sdscategoriedwddwds","rank":26,"editor":"Label"},"ABs":{"caption":"--- CUSTOM EMOJIS ---","name":"---_custom_emojis_---","rank":36,"editor":"Label"},"ABt":{"caption":"Add your own emojis to the picker. This is an advanced feature and we recommend following our documentation.","name":"xx","rank":37,"editor":"Label"},"ABu":{"caption":"⚙️ Or use custom JSON instead","name":"custom_json","rank":47,"editor":"DynamicValue","value":"text","optional":true},"ABv":{"caption":"☑️  Enable","name":"custom","rank":38,"editor":"Checkbox","default_val":false},"ACB":{"caption":"⚙️ Data type","name":"custom_type","rank":39,"editor":"custom_type","optional":true},"ACC":{"caption":"⚪ Image field","name":"field_image","rank":41,"editor":"custom_field_ACB","field_list":false,"optional":false},"ACG":{"caption":"⚙️ Data source","name":"custom_data","rank":40,"editor":"DynamicValue","value":"custom_data_ACB","is_list":true,"optional":true},"ACH":{"caption":"⚪ Tags field","name":"field_tags","rank":45,"editor":"custom_field_ACB","field_list":true,"optional":true},"ACI":{"caption":"⚪ Label field","name":"field_label","rank":42,"editor":"custom_field_ACB","optional":true},"ACJ":{"caption":"⚪ Data field","name":"field_data","rank":44,"editor":"custom_field_ACB","optional":true},"ACK":{"caption":"⚪ Emoji field","name":"field_emoji","rank":43,"editor":"custom_field_ACB","optional":true}
168,"ADe":{"caption":"---","name":"---","rank":46,"editor":"Label"}},"states":{"ABe":{"caption":"selected | Emoji","name":"emoji","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"ABo":{"caption":"selected | Hexcode","name":"hexcode","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"ABp":{"caption":"selected | Label","name":"label","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"ABq":{"caption":"Selected | Custom image","name":"url","value":"image","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"ABr":{"caption":"selected | Data","name":"data","value":"text","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"ADh":{"caption":"selected is a custom emoji?","name":"custom","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}},"ADi":{"caption":"popup picker is ready?","name":"ready","value":"boolean","initialization_code":{"fn":"function(properties, context) {\n\n\n\n}"}}},"events":{"ABg":{"caption":"emoji is selected","name":"selected"},"ABh":{"caption":"emoji picker is opened","name":"opened"},"ABi":{"caption":"emoji picker is closed","name":"closed"},"ACL":{"caption":"emoji picker is ready","name":"ready"}},"actions":{"ACN":{"caption":"Show","code":{"fn":"function(instance, properties, context) {\n\tinstance.data.pickerOpen();\n\n\n}\n"}},"ACO":{"caption":"Hide","code":{"fn":"function(instance, properties, context) {\n\ninstance.data.picker.close()\n\n\n}"}},"ACP":{"caption":"Clear recents","code":{"fn":"function(instance, properties, context) {\n\n\ninstance.data.picker.clearRecents()\n\n\n\n}"}}},"code":{"preview":{"fn":"function(instance, properties) {\nlet box = $('<div id=\"preview-id\"></div>');  \n\tbox.css(\"height\", properties.bubble.height)\n\tbox.css(\"width\", properties.bubble.width)\n\tbox.css(\"background-image\", \"url(//d37fdd77d05a0cd7b92cf79cdb9abebc.cdn.bubble.io/f1660019963165x324272421088340300/Capture%20d%E2%80%99e%CC%81cran%202022-08-09%20a%CC%80%2012.38.30.png)\")\n\tbox.css(\"background-repeat\", \"no-repeat\")\n\tbox.css(\"background-position\", \"50% 50%\")\n\tbox.css(\"background-size\", \"cover\")\n  \tinstance.canvas.append(box); \n\n\n}"},"initialize":{"fn":"function(instance, context) {\n\n    \n\n\n}"},"update":{"fn":"function(instance, properties, context) {\n    \n    \n  const {\n    input_id,\n    position,\n    input,\n    hideOnClickOutside,\n    hideOnEmojiSelect,\n    hideOnEscape,\n    showCloseButton,\n    trigger_id,\n    attach_to,\n    animate,\n    theme,\n    autoFocus,\n    locale,\n    showCategoryTabs,\n    showPreview,\n    showRecents,\n    showSearch,\n    showVariants,\n    visibleRows,\n    maxRecents,\n    className,\n    emojiSize,\n    emojisPerRow,\n    disabled,\n    categories,\n    custom_json,\n    custom,\n    field_image,\n    custom_data,\n    field_tags,\n    field_label,\n    field_data,\n    field_emoji,\n  } = properties;\n\n  // OPTIONS\n\n  if (instance.data.init) return;\n\n  function init_options() {\n    const themeMap = {\n      \"Light mode\": picmo.lightTheme,\n      \"Dark mode\": picmo.darkTheme,\n    };\n\n    const themeToUse = themeMap[theme] || picmo.autoTheme;\n    const focus = autoFocus ? \"search\" : \"none\";\n\n    instance.data.attach_to = attach_to === \"Input\"? input_id : trigger_id;\n\n\n    instance.data.options = {\n      position: position, //https://floating-ui.com/docs/computeposition#placement\n      animate: animate,\n      emojiSize: emojiSize,\n      emojisPerRow: emojisPerRow,\n      locale: locale,\n      maxRecents: maxRecents,\n      showCategoryTabs: showCategoryTabs,\n      showPreview: showPreview,\n      showRecents: showRecents,\n      showSearch: showSearch,\n      showVariants: showVariants,\n      visibleRows: visibleRows,\n      hideOnClickOutside: hideOnClickOutside,\n      hideOnEmojiSelect: hideOnEmojiSelect,\n      hideOnEscape: hideOnEscape,\n      showCloseButton: showCloseButton,\n      //TDF\n      autoFocus: focus,\
168n      theme: themeToUse,\n      className: \"pluginpicker \" + className,\n    };\n\n    console.log(instance.data.options);\n\n    if (categories) {\n      instance.data.options.categories = categories;\n    }\n    // Define custom emojis\n    if (custom) {\n      if (custom_json === null) {\n        var customArray = [];\n        var length = custom_data.length();\n        var list = properties.custom_data.get(0, length);\n        for (let i = 0; i < length; ++i) {\n          //TO FIX REPETITIVE\n          customArray.push({\n            url: list[i].get(field_image),\n            data: list[i].get(field_data),\n            emoji: list[i].get(field_emoji),\n            label: list[i].get(field_label),\n          });\n          if (list[i].get(field_tags).length() > 0) {\n            customArray[i].tags = list[i].get(field_tags).get(0, 100);\n          }\n        }\n        console.log(customArray);\n        //When loop done\n        instance.data.options.custom = customArray;\n      } else {\n        //If JSON provided\n        instance.data.options.custom = JSON.parse(custom_json);\n      }\n    }\n\n    // END FUNCTION OPTIONS\n  }\n\n  // BINDING\n\n  function bind(Input, Emoji) {\n    var startPos = Input.selectionStart;\n    var endPos = Input.selectionEnd;\n    Input.value =\n        Input.value.substring(0, startPos) +\n        Emoji +\n        Input.value.substring(endPos);\n\n    // Set cursor position after the inserted emoji\n    var newPosition = startPos + Emoji.length;\n    Input.setSelectionRange(newPosition, newPosition);\n\n    // Focus the input\n    Input.focus();\n\n    // Dispatch an input event after updating the value\n    var event = new Event(\"input\", { bubbles: true });\n    Input.dispatchEvent(event);\n\n    if (properties.hideOnEmojiSelect === false) {\n      return;\n    }\n  }\n\n  // OPEN\n  instance.data.pickerOpen = function (event) {\n    if (disabled === false) {\n      instance.data.picker.open();\n    }\n  };\n\n  //RESET\n  function picker_reset() {\n    instance.publishState(\"ready\", false);\n    // RESET EVENTS\n    //\n    // Event : Select\n    instance.data.picker.removeEventListener(\"emoji:select\");\n    // Event : Opened\n    instance.data.picker.removeEventListener(\"picker:open\");\n    // Event : Closed\n    instance.data.picker.removeEventListener(\"picker:close\");\n    // Event : Ready\n    instance.data.picker.removeEventListener(\"data:ready\");\n    // Event : Click button (deprecated)\n    //instance.data.button.removeEventListener('click', picker_open);\n    //Attempt to destroy\n    instance.data.picker\n      .destroy()\n      .then(function (result) {\n        return;\n      })\n      .catch(function (result) {\n        return;\n      });\n  }\n\n  // INIT\n\n  function init() {\n    // If already picker\n    //if (instance.data.init === true) {picker_reset()}\n\n    //DEFINE TRIGGER BUTTON + INPUT\n    const triggerElement = document.getElementById(trigger_id);\n    const referenceElement  = document.getElementById(instance.data.attach_to);\n    const inputElement = input ? document.getElementById(input_id) : '';\n\n\n    // Create the picker\n    instance.data.picker = picmoPopup.createPopup(instance.data.options, {\n      triggerElement: triggerElement,\n      referenceElement: referenceElement,\n    });\n    console.log(\"Picker object: \", instance.data.picker);\n\n    instance.data.init = true;\n\n    //\n    // EVENTS\n    //\n    // Event : Select\n    instance.data.picker.addEventListener(\"emoji:select\", (event) => {\n      if (input) {\n        setTimeout(() => bind(inputElement, event.emoji), 225);\n      }\n      if (event.url) {\n        instance.publishState(\"custom\", true);\n      }\n      instance.publishState(\"emoji\", event.emoji);\n      instance.publishState(\"data\", event.data);\n      instance.publishState(\"url\", event.url);\n      instance.publishState(\"label\", event.label);\n      instance.publishState(\"hexcode\", event.hexcode);\n      instance.triggerEvent(\"selected\");\n      console.log(\"Emoji selected:\", event.emoji);\n    });\n\n    // Event : Opened\n    instance.data.picker.addEventListener(\"picker:open\", (event) => {\n      instance.triggerEvent(\"opened\");\n    });\n\n    // Event : Closed\n    instance.data.picker.addEventListener(\"picker:close\", (event) => {\n      instance.triggerEvent(\"closed\");\n    });\n\n    // Event : Ready\n    instance.data.picker.addEventListener(\"data:ready\", (event) => {\n      instance.triggerEvent(\"ready\");\n      instance.publishState(\"ready\", true);\n      instance.data.picker.closeButton.classList.add(\n        \"pluginpicker_closebutton\"\n      );\n    });\n\n    // Event : Click (deprecated)\n    //instance.data.button.onclick = picker_open\n\n    //END FUNCTION INIT\n  }\n\n  // SEQUENCE\n\n  init_options();\n  if (document.readyState == \"complete\") {\n    init();\n  } else\n    window.addEventListener(\"load\", (event) => {\n      init();\n    });\n\n\n\n\n}\n"},"reset":{"fn":"function(instance, context) {\n\n\n\n}"}},"platform_type":"web"}}};
169window._bubble_page_load_data.plugins_size['1660145752149x220883483829731330_current'] = 14764;
170window.preloaded['plugin/third_party:1660145752149x220883483829731330_current:current'] = true;
171window['bubble_run_derived'] = window['bubble_run_derived'] || {}
172window['bubble_run_derived']['{"function_name":"PageByName","args":[]}
172'] = {"404":{"id":"AAU","_path":"%p3.AAX"},"reset_pw":{"id":"AAL","_path":"%p3.AAW"},"index":{"id":"bTGYf","_path":"%p3.bTGbC"},"reset_input":{"id":"bTGyq","_path":"%p3.bTGyu"},"colorisvic":{"id":"bTHEh","_path":"%p3.bTHEi"},"emoji":{"id":"bTHLR","_path":"%p3.bTHLS"},"waveform2":{"id":"bTHNn","_path":"%p3.bTHOR"},"waveform_dalestests":{"id":"bTHPV","_path":"%p3.bTHPz"},"dt_waveform_test_2":{"id":"bTJrB","_path":"%p3.bTJrC"},"dt_waveformv7_test":{"id":"bTKfD","_path":"%p3.bTKfE"},"alex_wave":{"id":"bTLnV","_path":"%p3.bTLnW"},"waveform":{"id":"bTMxf","_path":"%p3.bTNBb"},"group_to_image":{"id":"bTNPT","_path":"%p3.bTNRG"},"swipe":{"id":"bTOCr","_path":"%p3.bTOEF"},"dt_waveform_test":{"id":"bTHZz0","_path":"%p3.bTHaA0"},"alex_resetinput":{"id":"bTIsr3","_path":"%p3.bTIuY3"},"waveformtest":{"id":"bTJIz1","_path":"%p3.bTJJA1"},"dt_group_to_image_test":{"id":"bTJUD2","_path":"%p3.bTJVe2"},"wave_test":{"id":"bTJxr0","_path":"%p3.bTJxs0"},"teste_ch_wave":{"id":"bTKMU0","_path":"%p3.bTKQV0"},"rm_wave":{"id":"bTKwN0","_path":"%p3.bTKzt0"},"mr_grouptoimagetest":{"id":"bTLPh2","_path":"%p3.bTLRI2"},"advanced_code_editor":{"id":"bTLvx0","_path":"%p3.bTLvy0"},"cr-waveform-test":{"id":"bTMHH4","_path":"%p3.bTMLQ4"},"wavesurftest":{"id":"bTMMp2","_path":"%p3.bTMMq2"},"cr-wavetest":{"id":"bTMPd3","_path":"%p3.bTMQa3"},"emojipicker":{"id":"bTMQx2","_path":"%p3.bTMSA2"},"cr-reset-input":{"id":"bTMZZ0","_path":"%p3.bTMbR0"},"essential_phone":{"id":"bTMcB0","_path":"%p3.bTMdX0"},"wavetest":{"id":"bTMhd0","_path":"%p3.bTMhe0"},"ig_test":{"id":"bTMtf0","_path":"%p3.bTMxb0"}}
173window.preloaded['app/derived:{"function_name":"PageByName","args":[]}'] = true;
174window['bubble_run_derived']['{"function_name":"CustomByNameV2","args":[]}'] = {"Header (Zqbackend) [API]":{"id":"bTHdA","_path":"%ed.bTHdG","custom_element_platform":"web"}}
175window.preloaded['app/derived:{"function_name":"CustomByNameV2","args":[]}'] = true;
176window['bubble_run_derived']['{"function_name":"UserCalls","args":[]}'] = []
177window.preloaded['app/derived:{"function_name":"UserCalls","args":[]}'] = true;
178window['bubble_run_derived']['{"function_name":"OAuthProviders","args":[]}'] = []
179window.preloaded['app/derived:{"function_name":"OAuthProviders","args":[]}'] = true;
180window['bubble_run_derived']['{"function_name":"DefaultValues","args":[]}'] = {"audiofiles_dales":[{"name":"file_file","value":"file","display":"file","deleted":null},{"name":"file_peak_text","value":"text","display":"file_peak","deleted":null}],"dt_test":[{"name":"peak_file_text","value":"text","display":"peak file","deleted":null}],"emoji":[{"name":"data_text","value":"text","display":"data","deleted":null},{"name":"emoji_text","value":"text","display":"emoji","deleted":null},{"name":"image_image","value":"image","display":"image","deleted":null},{"name":"label_text","value":"text","display":"label","deleted":null},{"name":"tags_list_text","value":"list.text","display":"tags","deleted":null}],"group_to_image":[{"name":"name_text","value":"text","display":"name","deleted":null},{"name":"number_number","value":"number","display":"number","deleted":null}],"imagetest":[{"name":"list_image_list_image","value":"list.image","display":"list image","deleted":null}],"mp3":[{"name":"album_name_text","value":"text","display":"Album Name","deleted":null},{"name":"artist_text","value":"text","display":"Artist","deleted":null},{"name":"img_image","value":"image","display":"Img","deleted":null},{"name":"link_file","value":"file","display":"Link","deleted":null},{"name":"link_text","value":"text","display":"Link - deleted","deleted":true},{"name":"title_text","value":"text","display":"Title","deleted":null}],"newsong_waveform":[{"name":"link_to_song_text","value":"text","display":"Link to Song","deleted":null},{"name":"new_image_text","value":"text","display":"new Image","deleted":null}],"peaks_data":[{"name":"index_number","value":"number","display":"index","deleted":null},{"name":"peaks_text","value":"text","display":"Peaks","deleted":null}],"phone":[{"name":"nb_text","value":"text","display":"nb","deleted":null}],"random":[{"name":"value_text","value":"text","display":"Value","deleted":null}],"test_save_emoji":[{"name":"text_text","value":"text","display":"text","deleted":null}],"test_songs":[{"name":"peak_json_file_file","value":"file","display":"Peak JSON File","deleted":null},{"name":"song_album_text","value":"text","display":"Song Album","deleted":null},{"name":"song_artist_text","value":"text","display":"Song Artist","deleted":null},{"name":"song_artwork_image","value":"image","display":"Song Artwork","deleted":null},{"name":"song_file_file","value":"file","display":"Song File","deleted":null},{"name":"song_peak_text","value":"text","display":"Song Peak","deleted":null},{"name":"song_title_text","value":"text","display":"Song Title","deleted":null},{"name":"total_lenght_number","value":"number","display":"total lenght","deleted":null}],"testik":[{"name":"value_number","value":"number","display":"value","deleted":null}],"uploaded_file_registry":[{"name":"uploaded_file_registry_text","value":"text","display":"Uploaded_File_Registry","deleted":null}],"vocals":[{"name":"url_text","value":"text","display":"url","deleted":null}],"user":[],"device":[{"display":"Type","value":"text","name":"device_type"},{"display":"Push notification token","value":"text","name":"push_notification_token"}
180,{"display":"Current user","value":"user","name":"current_user"}]}
181window.preloaded['app/derived:{"function_name":"DefaultValues","args":[]}'] = true;
182
183    window._bubble_page_load_data.js_execution_timings.static_js_end_execution = Date.now();
184
185jQuery.migrateEnablePatches('self-closed-tags');

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.