(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else{if(typeof define==="function"&&define.amd){define([],b)}else{var a;if(typeof window!=="undefined"){a=window}else{if(typeof global!=="undefined"){a=global}else{if(typeof self!=="undefined"){a=self}else{a=this}}}a.vex=b()}}})(function(){var d,b,a;return(function c(f,k,h){function g(q,n){if(!k[q]){if(!f[q]){var m=typeof require=="function"&&require;if(!n&&m){return m(q,!0)}if(e){return e(q,!0)}var p=new Error("Cannot find module '"+q+"'");throw p.code="MODULE_NOT_FOUND",p}var i=k[q]={exports:{}};f[q][0].call(i.exports,function(l){var o=f[q][1][l];return g(o?o:l)},i,i.exports,c,f,k,h)}return k[q].exports}var e=typeof require=="function"&&require;for(var j=0;j
a';h=!j.getElementsByTagName("link").length;j=undefined}var i={legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"],_default:h?[1,"X
","
"]:[0,"",""]};i.td=i.th=[3,"","
"];i.option=i.optgroup=[1,'"];i.thead=i.tbody=i.colgroup=i.caption=i.tfoot=[1,"","
"];i.polyline=i.ellipse=i.polygon=i.circle=i.text=i.line=i.path=i.rect=i.g=[1,'',""];function k(q,t){if("string"!=typeof q){throw new TypeError("String expected")}if(!t){t=document}var o=/<([\w:]+)/.exec(q);if(!o){return t.createTextNode(q)}q=q.replace(/^\s+|\s+$/g,"");var v=o[1];if(v=="body"){var n=t.createElement("html");n.innerHTML=q;return n.removeChild(n.lastChild)}var l=i[v]||i._default;var p=l[0];var r=l[1];var u=l[2];var n=t.createElement("div");n.innerHTML=r+q+u;while(p--){n=n.lastChild}if(n.firstChild==n.lastChild){return n.removeChild(n.firstChild)}var s=t.createDocumentFragment();while(n.firstChild){s.appendChild(n.removeChild(n.firstChild))}return s}},{}],3:[function(g,h,f){function e(q,j){if(q===undefined||q===null){throw new TypeError("Cannot convert first argument to object")}var s=Object(q);for(var k=1;k
a';p=!r.getElementsByTagName("link").length;r=undefined}var q={legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"],_default:p?[1,"X
","
"]:[0,"",""]};q.td=q.th=[3,"","
"];q.option=q.optgroup=[1,'"];q.thead=q.tbody=q.colgroup=q.caption=q.tfoot=[1,"","
"];q.polyline=q.ellipse=q.polygon=q.circle=q.text=q.line=q.path=q.rect=q.g=[1,'',""];function s(x,A){if("string"!=typeof x){throw new TypeError("String expected")}if(!A){A=document}var v=/<([\w:]+)/.exec(x);if(!v){return A.createTextNode(x)}x=x.replace(/^\s+|\s+$/g,"");var C=v[1];if(C=="body"){var u=A.createElement("html");u.innerHTML=x;return u.removeChild(u.lastChild)}var t=q[C]||q._default;var w=t[0];var y=t[1];var B=t[2];var u=A.createElement("div");u.innerHTML=y+x+B;while(w--){u=u.lastChild}if(u.firstChild==u.lastChild){return u.removeChild(u.firstChild)}var z=A.createDocumentFragment();while(u.firstChild){z.appendChild(u.removeChild(u.firstChild))}return z}},{}],2:[function(o,m,p){var t=/^(?:submit|button|image|reset|file)$/i;var q=/^(?:input|select|textarea|keygen)/i;var v=/(\[[^\[\]]*\])/g;function w(z,L){if(typeof L!="object"){L={hash:!!L}}else{if(L.hash===undefined){L.hash=true}}var M=(L.hash)?{}:"";var I=L.serializer||((L.hash)?u:s);var x=z&&z.elements?z.elements:[];var H=Object.create(null);for(var E=0;E'+y._escapeHtml(B.label||D.label)+"",input:''};B=Object.assign(D,A,B);var E=B.callback;B.callback=function C(F){F=F[Object.keys(F)[0]];E(F)};return this.open(B)}};w.buttons={YES:{text:"OK",type:"submit",className:"vex-dialog-button-primary",click:function z(){this.value=true}},NO:{text:"Cancel",type:"button",className:"vex-dialog-button-secondary",click:function v(){this.value=false;this.close()}}};w.defaultOptions={callback:function(){},afterOpen:function(){},message:"",input:"",buttons:[w.buttons.YES,w.buttons.NO],showCloseButton:false,onSubmit:function x(A){A.preventDefault();if(this.options.input){this.value=r(this.form,{hash:true})}return this.close()},focusFirstInput:true};w.defaultAlertOptions={buttons:[w.buttons.YES]};w.defaultPromptOptions={label:"Prompt:",placeholder:"",value:""};w.defaultConfirmOptions={};return w};p.exports=s},{domify:1,"form-serialize":2}]},{},[3])(3)})}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{domify:2,"form-serialize":4}],6:[function(f,g,e){var h=f("./vex");h.registerPlugin(f("vex-dialog"));g.exports=h},{"./vex":7,"vex-dialog":5}],7:[function(k,f,y){k("classlist-polyfill");k("es6-object-assign").polyfill();var i=k("domify");var r=function r(z){if(typeof z!=="undefined"){var A=document.createElement("div");A.appendChild(document.createTextNode(z));return A.innerHTML}else{return""}};var h=function h(C,D){if(typeof D!=="string"||D.length===0){return}var A=D.split(" ");for(var z=0;z