Ta/dasena-web/public/assets/admin/vendors/js/tui-code-snippet.min.js

3 lines
23 KiB
JavaScript

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.util=e():(t.tui=t.tui||{},t.tui.util=e())}(this,function(){return r=[function(t,e,n){"use strict";var r={},o=n(1),i=o.extend;i(r,o),i(r,n(3)),i(r,n(2)),i(r,n(4)),i(r,n(5)),i(r,n(6)),i(r,n(7)),i(r,n(8)),i(r,n(9)),r.browser=n(10),r.popup=n(11),r.formatDate=n(12),r.defineClass=n(13),r.defineModule=n(14),r.defineNamespace=n(15),r.CustomEvents=n(16),r.Enum=n(17),r.ExMap=n(18),r.HashMap=n(20),r.Map=n(19),t.exports=r},function(t,e,n){"use strict";var u=n(2),s=n(3),r=0;function o(t,e){for(var n=arguments,r=n[0],o=1,i=n.length;o<i;o+=1){if(u.isUndefined(r)||u.isNull(r))return;r=r[n[o]]}return r}t.exports={extend:function(t,e){for(var n,r,o=Object.prototype.hasOwnProperty,i=1,u=arguments.length;i<u;i+=1)for(r in n=arguments[i])o.call(n,r)&&(t[r]=n[r]);return t},stamp:function(t){return t.__fe_id||(r+=1,t.__fe_id=r),t.__fe_id},hasStamp:function(t){return u.isExisty(o(t,"__fe_id"))},resetLastId:function(){r=0},keys:Object.prototype.keys||function(t){var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n},compareJSON:function(t){var e=arguments.length,n=1;if(!(e<1))for(;n<e;n+=1)if(!function t(e,n){var r=[];var o=[];if(isNaN(e)&&isNaN(n)&&u.isNumber(e)&&u.isNumber(n))return!0;if(e===n)return!0;if(u.isFunction(e)&&u.isFunction(n)||e instanceof Date&&n instanceof Date||e instanceof RegExp&&n instanceof RegExp||e instanceof String&&n instanceof String||e instanceof Number&&n instanceof Number)return e.toString()===n.toString();if(!(e instanceof Object&&n instanceof Object))return!1;if(e.isPrototypeOf(n)||n.isPrototypeOf(e)||e.constructor!==n.constructor||e.prototype!==n.prototype)return!1;if(-1<s.inArray(e,r)||-1<s.inArray(n,o))return!1;for(var i in n){if(n.hasOwnProperty(i)!==e.hasOwnProperty(i))return!1;if(typeof n[i]!=typeof e[i])return!1}for(i in e){if(n.hasOwnProperty(i)!==e.hasOwnProperty(i))return!1;if(typeof n[i]!=typeof e[i])return!1;if("object"==typeof e[i]||"function"==typeof e[i]){if(r.push(e),o.push(n),!t(e[i],n[i]))return!1;r.pop(),o.pop()}else if(e[i]!==n[i])return!1}return!0}(t,arguments[n]))return!1;return!0},pick:o}},function(t,e){"use strict";var n=Object.prototype.toString;function o(t){return!r(t)&&!i(t)}function r(t){return void 0===t}function i(t){return null===t}function u(t){return o(t)&&!1!==t}function s(t){return o(t)&&("[object Arguments]"===n.call(t)||!!t.callee)}function c(t){return t instanceof Array}function a(t){return t===Object(t)}function p(t){return t instanceof Function}function f(t){return"string"==typeof t||t instanceof String}function h(t){if(!o(t)||f(e=t)&&""===e)return!0;var e;if(c(t)||s(t))return 0===t.length;if(!a(t)||p(t))return!0;var n,r=t;for(n in r)if(r.hasOwnProperty(n))return!1;return!void 0}t.exports={isExisty:o,isUndefined:r,isNull:i,isTruthy:u,isFalsy:function(t){return!u(t)},isArguments:s,isArray:c,isArraySafe:function(t){return"[object Array]"===n.call(t)},isObject:a,isFunction:p,isFunctionSafe:function(t){return"[object Function]"===n.call(t)},isNumber:function(t){return"number"==typeof t||t instanceof Number},isNumberSafe:function(t){return"[object Number]"===n.call(t)},isDate:function(t){return t instanceof Date},isDateSafe:function(t){return"[object Date]"===n.call(t)},isString:f,isStringSafe:function(t){return"[object String]"===n.call(t)},isBoolean:function(t){return"boolean"==typeof t||t instanceof Boolean},isBooleanSafe:function(t){return"[object Boolean]"===n.call(t)},isHTMLNode:function(t){return"object"==typeof HTMLElement?t&&(t instanceof HTMLElement||!!t.nodeType):!(!t||!t.nodeType)},isHTMLTag:function(t){return"object"==typeof HTMLElement?t&&t instanceof HTMLElement:!(!t||!t.nodeType||1!==t.nodeType)},isEmpty:h,isNotEmpty:function(t){return!h(t)}}},function(t,e,n){"use strict";var r=n(4),i=n(2),o=Array.prototype.slice;t.exports={inArray:function(t,e,n){var r,o;if(n=n||0,i.isArray(e)){if(Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t,n);for(o=e.length,r=n;0<=n&&r<o;r+=1)if(e[r]===t)return r}return-1},range:function(t,e,n){var r,o=[];for(i.isUndefined(e)&&(e=t||0,t=0),e*=r=(n=n||1)<0?-1:1;t*r<e;t+=n)o.push(t);return o},zip:function(){var t=o.call(arguments),n=[];return r.forEach(t,function(t){r.forEach(t,function(t,e){n[e]||(n[e]=[]),n[e].push(t)})}),n}}},function(t,e,n){"use strict";var s=n(2),c=n(1);function r(t,e,n){var r=0,o=t.length;for(n=n||null;r<o&&!1!==e.call(n,t[r],r,t);r+=1);}function o(t,e,n){for(var r in n=n||null,t)if(t.hasOwnProperty(r)&&!1===e.call(n,t[r],r,t))break}function i(t,e,n){(s.isArray(t)?r:o)(t,e,n)}function u(t,e,n){var r=[];return n=n||null,i(t,function(){r.push(e.apply(n,arguments))}),r}t.exports={forEachOwnProperties:o,forEachArray:r,forEach:i,toArray:function(e){var n;try{n=Array.prototype.slice.call(e)}catch(t){n=[],r(e,function(t){n.push(t)})}return n},map:u,reduce:function(t,e,n){var r,o,i,u=0;for(n=n||null,i=s.isArray(t)?(o=t.length,t[u]):(o=(r=c.keys(t)).length,t[r[u+=1]]),u+=1;u<o;u+=1)i=e.call(n,i,t[r?r[u]:u]);return i},filter:function(t,e,n){var r,o;if(n=n||null,s.isObject(t)&&s.isFunction(e))return o=s.isArray(t)?(r=[],function(t,e){t.push(e[0])}):(r={},function(t,e){t[e[1]]=e[0]}),i(t,function(){e.apply(n,arguments)&&o(r,arguments)},n),r;throw new Error("wrong parameter")},pluck:function(t,e){return u(t,function(t){return t[e]})}}},function(t,e){"use strict";t.exports={bind:function(t,e){var n,r=Array.prototype.slice;return t.bind?t.bind.apply(t,r.call(arguments,1)):(n=r.call(arguments,2),function(){return t.apply(e,n.length?n.concat(r.call(arguments)):arguments)})}}},function(t,e){"use strict";function n(t){function e(){}return e.prototype=t,new e}t.exports={createObject:n,inherit:function(t,e){((e=n(e.prototype)).constructor=t).prototype=e}}},function(t,e,n){"use strict";var u=n(4),s=n(1);t.exports={decodeHTMLEntity:function(t){var e={"&quot;":'"',"&amp;":"&","&lt;":"<","&gt;":">","&#39;":"'","&nbsp;":" "};return t.replace(/&amp;|&lt;|&gt;|&quot;|&#39;|&nbsp;/g,function(t){return e[t]||t})},encodeHTMLEntity:function(t){var e={'"':"quot","&":"amp","<":"lt",">":"gt","'":"#39"};return t.replace(/[<>&"']/g,function(t){return e[t]?"&"+e[t]+";":t})},hasEncodableString:function(t){return/[<>&"']/.test(t)},getDuplicatedChar:function(t,e){for(var n,r=0,o=t.length,i={};r<o;r+=1)i[n=t.charAt(r)]=1;for(r=0,o=e.length;r<o;r+=1)i[n=e.charAt(r)]&&(i[n]+=1);return i=u.filter(i,function(t){return 1<t}),(i=s.keys(i).sort()).join("")}}},function(t,e){"use strict";var a={},p=Array.prototype.slice;a.timestamp=function(){return Number(new Date)},a.debounce=function(t,e){var n,r;return e=e||0,function(){r=p.call(arguments),window.clearTimeout(n),n=window.setTimeout(function(){t.apply(null,r)},e)}},a.throttle=function(e,t){function n(t){e.apply(null,t),r=null}var r,o,i,u,s=!0;function c(){u=p.call(arguments),s?(n(u),s=!1):(i=a.timestamp(),r=r||i,o(u),t<=i-r&&n(u))}return t=t||0,o=a.debounce(n,t),c.reset=function(){s=!0,r=null},c},t.exports=a},function(t,e,n){"use strict";var o=n(1),i=n(4),u=n(2),s=6048e5;function c(t,n){var e=i.map(o.keys(n),function(t,e){return(0===e?"":"&")+t+"="+n[t]}).join(""),r=document.createElement("img");return r.src=t+"?"+e,r.style.display="none",document.body.appendChild(r),document.body.removeChild(r),r}t.exports={imagePing:c,sendHostname:function(t,e){var n,r=location.hostname,o="TOAST UI "+t+" for "+r+": Statistics",i=window.localStorage.getItem(o);!u.isUndefined(window.tui)&&!1===window.tui.usageStatistics||i&&(i=i,n=(new Date).getTime(),!(s<n-i))||(window.localStorage.setItem(o,(new Date).getTime()),setTimeout(function(){"interactive"!==document.readyState&&"complete"!==document.readyState||c("https://www.google-analytics.com/collect",{v:1,t:"event",tid:e,cid:r,dp:r,dh:t,el:t,ec:"use"})},1e3))}}},function(t,e){"use strict";var n,r,o,i,u,s,c,a,p,f={chrome:!1,firefox:!1,safari:!1,msie:!1,edge:!1,others:!1,version:0};window&&window.navigator&&(o=window.navigator,i=o.appName.replace(/\s/g,"_"),u=o.userAgent,s=/MSIE\s([0-9]+[.0-9]*)/,c=/Trident.*rv:11\./,a=/Edge\/(\d+)\./,p={firefox:/Firefox\/(\d+)\./,chrome:/Chrome\/(\d+)\./,safari:/Version\/([\d.]+).*Safari\/(\d+)/},(o={Microsoft_Internet_Explorer:function(){var t=u.match(s);t?(f.msie=!0,f.version=parseFloat(t[1])):f.others=!0},Netscape:function(){var t=!1;if(c.exec(u))f.msie=!0,f.version=11,t=!0;else if(a.exec(u))f.edge=!0,f.version=u.match(a)[1],t=!0;else for(n in p)if(p.hasOwnProperty(n)&&(r=u.match(p[n]))&&1<r.length){f[n]=t=!0,f.version=parseFloat(r[1]||0);break}t||(f.others=!0)}})[i])&&o[i](),t.exports=f},function(t,e,n){"use strict";var s=n(4),i=n(2),u=n(5),c=n(10),a=n(1),p=0;function r(){this.openedPopup={},this.closeWithParentPopup={},this.postBridgeUrl=""}r.prototype.getPopupList=function(t){t=i.isExisty(t)?this.openedPopup[t]:this.openedPopup;return t},r.prototype.openPopup=function(t,e){var n,r,o;if((e=a.extend({popupName:"popup_"+p+"_"+Number(new Date),popupOptionStr:"",useReload:!0,closeWithParent:!0,method:"get",param:{}},e||{})).method=e.method.toUpperCase(),this.postBridgeUrl=e.postBridgeUrl||this.postBridgeUrl,o="POST"===e.method&&e.param&&c.msie&&11===c.version,!i.isExisty(t))throw new Error("Popup#open() need popup url.");p+=1,e.param&&("GET"===e.method?t=t+(/\?/.test(t)?"&":"?")+this._parameterize(e.param):"POST"!==e.method||o||(r=this.createForm(t,e.param,e.method,e.popupName),t="about:blank")),n=this.openedPopup[e.popupName],!i.isExisty(n)||n.closed?this.openedPopup[e.popupName]=n=this._open(o,e.param,t,e.popupName,e.popupOptionStr):(e.useReload&&n.location.replace(t),n.focus()),this.closeWithParentPopup[e.popupName]=e.closeWithParent,n&&!n.closed&&!i.isUndefined(n.closed)||alert("please enable popup windows for this website"),e.param&&"POST"===e.method&&!o&&(n&&r.submit(),r.parentNode)&&r.parentNode.removeChild(r),window.onunload=u.bind(this.closeAllPopup,this)},r.prototype.close=function(t,e){e=e||window;(t=!!i.isExisty(t)&&t)&&(window.onunload=null),e.closed||(e.opener=window.location.href,e.close())},r.prototype.closeAllPopup=function(t){var n=i.isExisty(t);s.forEachOwnProperties(this.openedPopup,function(t,e){(n&&this.closeWithParentPopup[e]||!n)&&this.close(!1,t)},this)},r.prototype.focus=function(t){this.getPopupList(t).focus()},r.prototype.parseQuery=function(){var e,n={},t=window.location.search.substr(1);return s.forEachArray(t.split("&"),function(t){e=t.split("="),n[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}),n},r.prototype.createForm=function(t,e,n,r,o){var i,u=document.createElement("form");return o=o||document.body,u.method=n||"POST",u.action=t||"",u.target=r||"",u.style.display="none",s.forEachOwnProperties(e,function(t,e){(i=document.createElement("input")).name=e,i.type="hidden",i.value=t,u.appendChild(i)}),o.appendChild(u),u},r.prototype._parameterize=function(t){var n=[];return s.forEachOwnProperties(t,function(t,e){n.push(encodeURIComponent(e)+"="+encodeURIComponent(t))}),n.join("&")},r.prototype._open=function(t,e,n,r,o){var i;return t?(i=window.open(this.postBridgeUrl,r,o),setTimeout(function(){i.redirect(n,e)},100)):i=window.open(n,r,o),i},t.exports=new r},function(t,e,n){"use strict";var c=n(2),a=n(1),p=/[\\]*YYYY|[\\]*YY|[\\]*MMMM|[\\]*MMM|[\\]*MM|[\\]*M|[\\]*DD|[\\]*D|[\\]*HH|[\\]*H|[\\]*A/gi,r=["Invalid month","January","February","March","April","May","June","July","August","September","October","November","December"],f=[0,31,28,31,30,31,30,31,31,30,31,30,31],h={M:function(t){return Number(t.month)},MM:function(t){t=t.month;return Number(t)<10?"0"+t:t},MMM:function(t){return r[Number(t.month)].substr(0,3)},MMMM:function(t){return r[Number(t.month)]},D:function(t){return Number(t.date)},d:function(t){return h.D(t)},DD:function(t){t=t.date;return Number(t)<10?"0"+t:t},dd:function(t){return h.DD(t)},YY:function(t){return Number(t.year)%100},yy:function(t){return h.YY(t)},YYYY:function(t){var e="20",t=t.year;return 69<t&&t<100&&(e="19"),Number(t)<100?e+String(t):t},yyyy:function(t){return h.YYYY(t)},A:function(t){return t.meridiem},a:function(t){return t.meridiem},hh:function(t){t=t.hour;return Number(t)<10?"0"+t:t},HH:function(t){return h.hh(t)},h:function(t){return String(Number(t.hour))},H:function(t){return h.h(t)},m:function(t){return String(Number(t.minute))},mm:function(t){t=t.minute;return Number(t)<10?"0"+t:t}};t.exports=function(t,e,n){var r,o,i,u=a.pick(n,"meridiemSet","AM")||"AM",n=a.pick(n,"meridiemSet","PM")||"PM",s=c.isDate(e)?{year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate(),hour:e.getHours(),minute:e.getMinutes()}:{year:e.year,month:e.month,date:e.date,hour:e.hour,minute:e.minute};return e=s.year,r=s.month,o=s.date,e=Number(e),r=Number(r),o=Number(o),(-1<e&&e<100||1969<e&&e<2070)&&(0<r&&r<13)&&(i=f[r],2!==r||e%4!=0||e%100==0&&e%400!=0||(i=29),0<o)&&o<=i&&(s.meridiem="",/([^\\]|^)[aA]\b/.test(t)&&(r=11<s.hour?n:u,12<s.hour&&(s.hour%=12),0===s.hour&&(s.hour=12),s.meridiem=r),t.replace(p,function(t){return-1<t.indexOf("\\")?t.replace(/\\/,""):h[t](s)||""}))}},function(t,e,n){"use strict";var r=n(6).inherit,o=n(1).extend;t.exports=function(t,e){var n;return e||(e=t,t=null),n=e.init||function(){},t&&r(n,t),e.hasOwnProperty("static")&&(o(n,e.static),delete e.static),o(n.prototype,e),n}},function(t,e,n){"use strict";var r=n(15),o=n(2),i="initialize";t.exports=function(t,e){return e=e||{},o.isFunction(e[i])&&e[i](),r(t,e)}},function(t,e,n){"use strict";var o=n(4),i=n(1);t.exports=function(t,e,n){var r;return(t=t.split(".")).unshift(window),r=o.reduce(t,function(t,e){return t[e]=t[e]||{},t[e]}),n?(n=t.pop(),r=i.pick.apply(null,t)[n]=e):i.extend(r,e),r}},function(t,e,n){"use strict";var u=n(4),s=n(2),r=n(1),c=/\s+/g;function o(){this.events=null,this.contexts=null}o.mixin=function(t){r.extend(t.prototype,o.prototype)},o.prototype._getHandlerItem=function(t,e){t={handler:t};return e&&(t.context=e),t},o.prototype._safeEvent=function(t){var e,n=(n=this.events)||(this.events={});return t&&((e=n[t])||(n[t]=e=[]),n=e),n},o.prototype._safeContext=function(){return this.contexts||(this.contexts=[])},o.prototype._indexOfContext=function(t){for(var e=this._safeContext(),n=0;e[n];){if(t===e[n][0])return n;n+=1}return-1},o.prototype._memorizeContext=function(t){var e,n;s.isExisty(t)&&(e=this._safeContext(),-1<(n=this._indexOfContext(t))?e[n][1]+=1:e.push([t,1]))},o.prototype._forgetContext=function(t){var e;s.isExisty(t)&&(e=this._safeContext(),-1<(t=this._indexOfContext(t)))&&(--e[t][1],e[t][1]<=0)&&e.splice(t,1)},o.prototype._bindEvent=function(t,e,n){t=this._safeEvent(t);this._memorizeContext(n),t.push(this._getHandlerItem(e,n))},o.prototype.on=function(t,e,n){var r=this;s.isString(t)?(t=t.split(c),u.forEach(t,function(t){r._bindEvent(t,e,n)})):s.isObject(t)&&(n=e,u.forEach(t,function(t,e){r.on(e,t,n)}))},o.prototype.once=function(e,n,r){var o=this;s.isObject(e)?(r=n,u.forEach(e,function(t,e){o.once(e,t,r)})):this.on(e,function t(){n.apply(r,arguments),o.off(e,t,r)},r)},o.prototype._spliceMatches=function(t,e){var n,r=0;if(s.isArray(t))for(n=t.length;r<n;r+=1)!0===e(t[r])&&(t.splice(r,1),--n,--r)},o.prototype._matchHandler=function(n){var r=this;return function(t){var e=n===t.handler;return e&&r._forgetContext(t.context),e}},o.prototype._matchContext=function(n){var r=this;return function(t){var e=n===t.context;return e&&r._forgetContext(t.context),e}},o.prototype._matchHandlerAndContext=function(r,o){var i=this;return function(t){var e=r===t.handler,n=o===t.context,e=e&&n;return e&&i._forgetContext(t.context),e}},o.prototype._offByEventName=function(t,e){var n=this,r=u.forEachArray,o=s.isFunction(e),i=n._matchHandler(e);t=t.split(c),r(t,function(t){var e=n._safeEvent(t);o?n._spliceMatches(e,i):(r(e,function(t){n._forgetContext(t.context)}),n.events[t]=[])})},o.prototype._offByHandler=function(t){var e=this,n=this._matchHandler(t);u.forEach(this._safeEvent(),function(t){e._spliceMatches(t,n)})},o.prototype._offByObject=function(t,e){var n,r=this;this._indexOfContext(t)<0?u.forEach(t,function(t,e){r.off(e,t)}):s.isString(e)?(n=this._matchContext(t),r._spliceMatches(this._safeEvent(e),n)):s.isFunction(e)?(n=this._matchHandlerAndContext(e,t),u.forEach(this._safeEvent(),function(t){r._spliceMatches(t,n)})):(n=this._matchContext(t),u.forEach(this._safeEvent(),function(t){r._spliceMatches(t,n)}))},o.prototype.off=function(t,e){s.isString(t)?this._offByEventName(t,e):arguments.length?s.isFunction(t)?this._offByHandler(t):s.isObject(t)&&this._offByObject(t,e):(this.events={},this.contexts=[])},o.prototype.fire=function(t){this.invoke.apply(this,arguments)},o.prototype.invoke=function(t){var e,n,r,o;if(this.hasListener(t))for(e=this._safeEvent(t),n=Array.prototype.slice.call(arguments,1),r=0;e[r];){if(!1===(o=e[r]).handler.apply(o.context,n))return!1;r+=1}return!0},o.prototype.hasListener=function(t){return 0<this.getListenerLength(t)},o.prototype.getListenerLength=function(t){return this._safeEvent(t).length},t.exports=o},function(t,e,n){"use strict";var i=n(4),r=n(2),o=function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}(),u=0;function s(t){t&&this.set.apply(this,arguments)}s.prototype.set=function(t){var e=this;r.isArray(t)||(t=i.toArray(arguments)),i.forEach(t,function(t){e._addItem(t)})},s.prototype.getName=function(n){var r,o=this;return i.forEach(this,function(t,e){if(o._isEnumItem(e)&&n===t)return r=e,!1}),r},s.prototype._addItem=function(t){var e;this.hasOwnProperty(t)||(e=this._makeEnumValue(),o?Object.defineProperty(this,t,{enumerable:!0,configurable:!1,writable:!1,value:e}):this[t]=e)},s.prototype._makeEnumValue=function(){var t=u;return u+=1,t},s.prototype._isEnumItem=function(t){return r.isNumber(this[t])},t.exports=s},function(t,e,n){"use strict";var r=n(4),o=n(19);function i(t){this._map=new o(t),this.size=this._map.size}r.forEachArray(["get","has","forEach","keys","values","entries"],function(t){i.prototype[t]=function(){return this._map[t].apply(this._map,arguments)}}),r.forEachArray(["delete","clear"],function(e){i.prototype[e]=function(){var t=this._map[e].apply(this._map,arguments);return this.size=this._map.size,t}}),i.prototype.set=function(){return this._map.set.apply(this._map,arguments),this.size=this._map.size,this},i.prototype.setObject=function(t){r.forEachOwnProperties(t,function(t,e){this.set(e,t)},this)},i.prototype.deleteByKeys=function(t){r.forEachArray(t,function(t){this.delete(t)},this)},i.prototype.merge=function(t){t.forEach(function(t,e){this.set(e,t)},this)},i.prototype.filter=function(n){var r=new i;return this.forEach(function(t,e){n(t,e)&&r.set(e,t)}),r},t.exports=i},function(t,e,n){"use strict";var r=n(4),o=n(2),i=n(3),u=n(10),s=n(5),c={},a={};function p(t,e){this._keys=t,this._valueGetter=e,this._length=this._keys.length,this._index=-1,this._done=!1}function f(t){this._valuesForString={},this._valuesForIndex={},this._keys=[],t&&this._setInitData(t),this.size=0}p.prototype.next=function(){for(var t={};this._index+=1,o.isUndefined(this._keys[this._index])&&this._index<this._length;);return this._index>=this._length?t.done=!0:(t.done=!1,t.value=this._valueGetter(this._keys[this._index],this._index)),t},f.prototype._setInitData=function(t){if(!o.isArray(t))throw new Error("Only Array is supported.");r.forEachArray(t,function(t){this.set(t[0],t[1])},this)},f.prototype._isNaN=function(t){return"number"==typeof t&&t!=t},f.prototype._getKeyIndex=function(t){var e,n=-1;return o.isString(t)?(e=this._valuesForString[t])&&(n=e.keyIndex):n=i.inArray(t,this._keys),n},f.prototype._getOriginKey=function(t){var e=t;return t===c?e=void 0:t===a&&(e=NaN),e},f.prototype._getUniqueKey=function(t){var e=t;return o.isUndefined(t)?e=c:this._isNaN(t)&&(e=a),e},f.prototype._getValueObject=function(t,e){return o.isString(t)?this._valuesForString[t]:0<=(e=o.isUndefined(e)?this._getKeyIndex(t):e)?this._valuesForIndex[e]:void 0},f.prototype._getOriginValue=function(t,e){return this._getValueObject(t,e).origin},f.prototype._getKeyValuePair=function(t,e){return[this._getOriginKey(t),this._getOriginValue(t,e)]},f.prototype._createValueObject=function(t,e){return{keyIndex:e,origin:t}},f.prototype.set=function(t,e){var n=this._getUniqueKey(t),r=this._getKeyIndex(n);return r<0&&(r=this._keys.push(n)-1,this.size+=1),n=this._createValueObject(e,r),o.isString(t)?this._valuesForString[t]=n:this._valuesForIndex[r]=n,this},f.prototype.get=function(t){t=this._getUniqueKey(t),t=this._getValueObject(t);return t&&t.origin},f.prototype.keys=function(){return new p(this._keys,s.bind(this._getOriginKey,this))},f.prototype.values=function(){return new p(this._keys,s.bind(this._getOriginValue,this))},f.prototype.entries=function(){return new p(this._keys,s.bind(this._getKeyValuePair,this))},f.prototype.has=function(t){return!!this._getValueObject(t)},f.prototype.delete=function(t){var e;o.isString(t)?this._valuesForString[t]&&(e=this._valuesForString[t].keyIndex,delete this._valuesForString[t]):0<=(e=this._getKeyIndex(t))&&delete this._valuesForIndex[e],0<=e&&(delete this._keys[e],--this.size)},f.prototype.forEach=function(e,n){n=n||this,r.forEachArray(this._keys,function(t){o.isUndefined(t)||e.call(n,this._getValueObject(t).origin,t,this)},this)},f.prototype.clear=function(){f.call(this)},window.Map&&(u.firefox&&37<=u.version||u.chrome&&42<=u.version)&&(f=window.Map),t.exports=f},function(t,e,n){"use strict";var i=n(4),r=n(2);function o(t){this.length=0,t&&this.setObject(t)}o.prototype.set=function(t,e){2===arguments.length?this.setKeyValue(t,e):this.setObject(t)},o.prototype.setKeyValue=function(t,e){this.has(t)||(this.length+=1),this[this.encodeKey(t)]=e},o.prototype.setObject=function(t){var n=this;i.forEachOwnProperties(t,function(t,e){n.setKeyValue(e,t)})},o.prototype.merge=function(t){var n=this;t.each(function(t,e){n.setKeyValue(e,t)})},o.prototype.encodeKey=function(t){return"å"+t},o.prototype.decodeKey=function(t){t=t.split("å");return t[t.length-1]},o.prototype.get=function(t){return this[this.encodeKey(t)]},o.prototype.has=function(t){return this.hasOwnProperty(this.encodeKey(t))},o.prototype.remove=function(t){return 1<arguments.length&&(t=i.toArray(arguments)),r.isArray(t)?this.removeByKeyArray(t):this.removeByKey(t)},o.prototype.removeByKey=function(t){var e=this.has(t)?this.get(t):null;return null!==e&&(delete this[this.encodeKey(t)],--this.length),e},o.prototype.removeByKeyArray=function(t){var e=[],n=this;return i.forEach(t,function(t){e.push(n.removeByKey(t))}),e},o.prototype.removeAll=function(){var n=this;this.each(function(t,e){n.remove(e)})},o.prototype.each=function(n){var r,o=this;i.forEachOwnProperties(this,function(t,e){if(!1===(r="å"===e.charAt(0)?n(t,o.decodeKey(e)):r))return r})},o.prototype.keys=function(){var n=[],r=this;return this.each(function(t,e){n.push(r.decodeKey(e))}),n},o.prototype.find=function(n){var r=[];return this.each(function(t,e){n(t,e)&&r.push(t)}),r},o.prototype.toArray=function(){var e=[];return this.each(function(t){e.push(t)}),e},t.exports=o}],o={},n.m=r,n.c=o,n.p="dist",n(0);function n(t){var e;return(o[t]||(e=o[t]={exports:{},id:t,loaded:!1},r[t].call(e.exports,e,e.exports,n),e.loaded=!0,e)).exports}var r,o});
//# sourceMappingURL=tui-code-snippet.min.js.map