(()=>{function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var e=function(){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e)}var i,a,n;return i=e,(a=[{key:"init",value:function(){$(document).find(".tags").each((function(t,e){var i=new Tagify(e,{keepInvalidTags:void 0===$(e).data("keep-invalid-tags")||$(e).data("keep-invalid-tags"),enforceWhitelist:void 0!==$(e).data("enforce-whitelist")&&$(e).data("enforce-whitelist"),delimiters:void 0!==$(e).data("delimiters")?$(e).data("delimiters"):",",whitelist:e.value.trim().split(/\s*,\s*/),userInput:void 0===$(e).data("user-input")||$(e).data("user-input")});$(e).data("url")&&i.on("input",(function(t){i.settings.whitelist.length=0,i.loading(!0).dropdown.hide.call(i),$.ajax({type:"GET",url:$(e).data("url"),success:function(e){i.settings.whitelist=e,i.loading(!1).dropdown.show.call(i,t.detail.value)}})}))}))}}])&&t(i.prototype,a),n&&t(i,n),Object.defineProperty(i,"prototype",{writable:!1}),e}();$(document).ready((function(){(new e).init()}))})();