@wg-npm/survey-service-api 0.1.272 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("axios"),require("util")):"function"==typeof define&&define.amd?define(["axios","util"],e):(t=t||self).SurveyServiceApiPlugin=e(t.Axios,t.util)}(this,(function(t,e){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */
16
- var r=function(){return(r=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=function(){},o=function(){},i="undefined"!=typeof Symbol&&Symbol,a="Function.prototype.bind called on incompatible ",p=Array.prototype.slice,u=Object.prototype.toString,c=Function.prototype.bind||function(t){var e=this;if("function"!=typeof e||"[object Function]"!==u.call(e))throw new TypeError(a+e);for(var r,n=p.call(arguments,1),o=function(){if(this instanceof r){var o=e.apply(this,n.concat(p.call(arguments)));return Object(o)===o?o:this}return e.apply(t,n.concat(p.call(arguments)))},i=Math.max(0,e.length-n.length),c=[],f=0;f<i;f++)c.push("$"+f);if(r=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(o),e.prototype){var s=function(){};s.prototype=e.prototype,r.prototype=new s,s.prototype=null}return r},f=c.call(Function.call,Object.prototype.hasOwnProperty),s=SyntaxError,l=Function,y=TypeError,d=function(t){try{return l('"use strict"; return ('+t+").constructor;")()}catch(t){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(t){h=null}var v=function(){throw new y},g=h?function(){try{return v}catch(t){try{return h(arguments,"callee").get}catch(t){return v}}}():v,m="function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}(),b=Object.getPrototypeOf||function(t){return t.__proto__},S={},A="undefined"==typeof Uint8Array?void 0:b(Uint8Array),j={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":m?b([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":S,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m?b(b([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m?b((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m?b((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m?b(""[Symbol.iterator]()):void 0,"%Symbol%":m?Symbol:void 0,"%SyntaxError%":s,"%ThrowTypeError%":g,"%TypedArray%":A,"%TypeError%":y,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},x={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},P=c.call(Function.call,Array.prototype.concat),O=c.call(Function.apply,Array.prototype.splice),w=c.call(Function.call,String.prototype.replace),R=c.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,I=function(t){var e=R(t,0,1),r=R(t,-1);if("%"===e&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return w(t,E,(function(t,e,r,o){n[n.length]=r?w(o,F,"$1"):e||t})),n},k=function(t,e){var r,n=t;if(f(x,n)&&(n="%"+(r=x[n])[0]+"%"),f(j,n)){var o=j[n];if(o===S&&(o=function t(e){var r;if("%AsyncFunction%"===e)r=d("async function () {}");else if("%GeneratorFunction%"===e)r=d("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=d("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=b(o.prototype))}return j[e]=r,r}(n)),void 0===o&&!e)throw new y("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new s("intrinsic "+t+" does not exist!")},M=function(t,e){if("string"!=typeof t||0===t.length)throw new y("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new y('"allowMissing" argument must be a boolean');var r=I(t),n=r.length>0?r[0]:"",o=k("%"+n+"%",e),i=o.name,a=o.value,p=!1,u=o.alias;u&&(n=u[0],O(r,P([0,1],u)));for(var c=1,l=!0;c<r.length;c+=1){var d=r[c],v=R(d,0,1),g=R(d,-1);if(('"'===v||"'"===v||"`"===v||'"'===g||"'"===g||"`"===g)&&v!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==d&&l||(p=!0),f(j,i="%"+(n+="."+d)+"%"))a=j[i];else if(null!=a){if(!(d in a)){if(!e)throw new y("base intrinsic for "+t+" exists, but the property is not available.");return}if(h&&c+1>=r.length){var m=h(a,d);a=(l=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[d]}else l=f(a,d),a=a[d];l&&!p&&(j[i]=a)}}return a};function _(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function U(t,e){return t(e={exports:{}},e.exports),e.exports}var B=U((function(t){var e=M("%Function.prototype.apply%"),r=M("%Function.prototype.call%"),n=M("%Reflect.apply%",!0)||c.call(r,e),o=M("%Object.getOwnPropertyDescriptor%",!0),i=M("%Object.defineProperty%",!0),a=M("%Math.max%");if(i)try{i({},"a",{value:1})}catch(t){i=null}t.exports=function(t){var e=n(c,r,arguments);if(o&&i){var p=o(e,"length");p.configurable&&i(e,"length",{value:1+a(0,t.length-(arguments.length-1))})}return e};var p=function(){return n(c,e,arguments)};i?i(t.exports,"apply",{value:p}):t.exports.apply=p})),D=(B.apply,B(M("String.prototype.indexOf"))),T=function(t,e){var r=M(t,!!e);return"function"==typeof r&&D(t,".prototype.")>-1?B(r):r},N=e.inspect,W="function"==typeof Map&&Map.prototype,C=Object.getOwnPropertyDescriptor&&W?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,L=W&&C&&"function"==typeof C.get?C.get:null,q=W&&Map.prototype.forEach,G="function"==typeof Set&&Set.prototype,Q=Object.getOwnPropertyDescriptor&&G?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$=G&&Q&&"function"==typeof Q.get?Q.get:null,z=G&&Set.prototype.forEach,V="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,H="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,J="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Z=Boolean.prototype.valueOf,Y=Object.prototype.toString,K=Function.prototype.toString,X=String.prototype.match,tt="function"==typeof BigInt?BigInt.prototype.valueOf:null,et=Object.getOwnPropertySymbols,rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,nt="function"==typeof Symbol&&"object"==typeof Symbol.iterator,ot=Object.prototype.propertyIsEnumerable,it=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),at=N.custom,pt=at&&yt(at)?at:null,ut="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null,ct=function t(e,r,n,o){var i=r||{};if(ht(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ht(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!ht(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ht(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return t(e.slice(0,r.maxStringLength),r)+o}return ft(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,mt),"single",r)}(e,i);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var p=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=p&&p>0&&"object"==typeof e)return lt(e)?"[Array]":"[Object]";var u=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(i,n);if(void 0===o)o=[];else if(gt(o,e)>=0)return"[Circular]";function c(e,r,a){if(r&&(o=o.slice()).push(r),a){var p={depth:i.depth};return ht(i,"quoteStyle")&&(p.quoteStyle=i.quoteStyle),t(e,p,n+1,o)}return t(e,i,n+1,o)}if("function"==typeof e){var f=function(t){if(t.name)return t.name;var e=X.call(K.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),s=xt(e,c);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(s.length>0?" { "+s.join(", ")+" }":"")}if(yt(e)){var l=nt?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):rt.call(e);return"object"!=typeof e||nt?l:bt(l)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var y="<"+String(e.nodeName).toLowerCase(),d=e.attributes||[],h=0;h<d.length;h++)y+=" "+d[h].name+"="+ft(st(d[h].value),"double",i);return y+=">",e.childNodes&&e.childNodes.length&&(y+="..."),y+="</"+String(e.nodeName).toLowerCase()+">"}if(lt(e)){if(0===e.length)return"[]";var v=xt(e,c);return u&&!function(t){for(var e=0;e<t.length;e++)if(gt(t[e],"\n")>=0)return!1;return!0}(v)?"["+jt(v,u)+"]":"[ "+v.join(", ")+" ]"}if(function(t){return!("[object Error]"!==vt(t)||ut&&"object"==typeof t&&ut in t)}(e)){var g=xt(e,c);return 0===g.length?"["+String(e)+"]":"{ ["+String(e)+"] "+g.join(", ")+" }"}if("object"==typeof e&&a){if(pt&&"function"==typeof e[pt])return e[pt]();if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!L||!t||"object"!=typeof t)return!1;try{L.call(t);try{$.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var m=[];return q.call(e,(function(t,r){m.push(c(r,e,!0)+" => "+c(t,e))})),At("Map",L.call(e),m,u)}if(function(t){if(!$||!t||"object"!=typeof t)return!1;try{$.call(t);try{L.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var b=[];return z.call(e,(function(t){b.push(c(t,e))})),At("Set",$.call(e),b,u)}if(function(t){if(!V||!t||"object"!=typeof t)return!1;try{V.call(t,V);try{H.call(t,H)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return St("WeakMap");if(function(t){if(!H||!t||"object"!=typeof t)return!1;try{H.call(t,H);try{V.call(t,V)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return St("WeakSet");if(function(t){if(!J||!t||"object"!=typeof t)return!1;try{return J.call(t),!0}catch(t){}return!1}(e))return St("WeakRef");if(function(t){return!("[object Number]"!==vt(t)||ut&&"object"==typeof t&&ut in t)}(e))return bt(c(Number(e)));if(function(t){if(!t||"object"!=typeof t||!tt)return!1;try{return tt.call(t),!0}catch(t){}return!1}(e))return bt(c(tt.call(e)));if(function(t){return!("[object Boolean]"!==vt(t)||ut&&"object"==typeof t&&ut in t)}(e))return bt(Z.call(e));if(function(t){return!("[object String]"!==vt(t)||ut&&"object"==typeof t&&ut in t)}(e))return bt(c(String(e)));if(!function(t){return!("[object Date]"!==vt(t)||ut&&"object"==typeof t&&ut in t)}(e)&&!function(t){return!("[object RegExp]"!==vt(t)||ut&&"object"==typeof t&&ut in t)}(e)){var S=xt(e,c),A=it?it(e)===Object.prototype:e instanceof Object||e.constructor===Object,j=e instanceof Object?"":"null prototype",x=!A&&ut&&Object(e)===e&&ut in e?vt(e).slice(8,-1):j?"Object":"",P=(A||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(x||j?"["+[].concat(x||[],j||[]).join(": ")+"] ":"");return 0===S.length?P+"{}":u?P+"{"+jt(S,u)+"}":P+"{ "+S.join(", ")+" }"}return String(e)};function ft(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function st(t){return String(t).replace(/"/g,"&quot;")}function lt(t){return!("[object Array]"!==vt(t)||ut&&"object"==typeof t&&ut in t)}function yt(t){if(nt)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!rt)return!1;try{return rt.call(t),!0}catch(t){}return!1}var dt=Object.prototype.hasOwnProperty||function(t){return t in this};function ht(t,e){return dt.call(t,e)}function vt(t){return Y.call(t)}function gt(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function mt(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function bt(t){return"Object("+t+")"}function St(t){return t+" { ? }"}function At(t,e,r,n){return t+" ("+e+") {"+(n?jt(r,n):r.join(", "))+"}"}function jt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+t.join(","+r)+"\n"+e.prev}function xt(t,e){var r=lt(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=ht(t,o)?e(t[o],t):""}var i,a="function"==typeof et?et(t):[];if(nt){i={};for(var p=0;p<a.length;p++)i["$"+a[p]]=a[p]}for(var u in t)ht(t,u)&&(r&&String(Number(u))===u&&u<t.length||nt&&i["$"+u]instanceof Symbol||(/[^\w$]/.test(u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof et)for(var c=0;c<a.length;c++)ot.call(t,a[c])&&n.push("["+e(a[c])+"]: "+e(t[a[c]],t));return n}var Pt=M("%TypeError%"),Ot=M("%WeakMap%",!0),wt=M("%Map%",!0),Rt=T("WeakMap.prototype.get",!0),Et=T("WeakMap.prototype.set",!0),Ft=T("WeakMap.prototype.has",!0),It=T("Map.prototype.get",!0),kt=T("Map.prototype.set",!0),Mt=T("Map.prototype.has",!0),_t=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},Ut=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new Pt("Side channel does not contain "+ct(t))},get:function(n){if(Ot&&n&&("object"==typeof n||"function"==typeof n)){if(t)return Rt(t,n)}else if(wt){if(e)return It(e,n)}else if(r)return function(t,e){var r=_t(t,e);return r&&r.value}(r,n)},has:function(n){if(Ot&&n&&("object"==typeof n||"function"==typeof n)){if(t)return Ft(t,n)}else if(wt){if(e)return Mt(e,n)}else if(r)return function(t,e){return!!_t(t,e)}(r,n);return!1},set:function(n,o){Ot&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new Ot),Et(t,n,o)):wt?(e||(e=new wt),kt(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=_t(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n},Bt=String.prototype.replace,Dt=/%20/g,Tt="RFC3986",Nt={default:Tt,formatters:{RFC1738:function(t){return Bt.call(t,Dt,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:Tt},Wt=Object.prototype.hasOwnProperty,Ct=Array.isArray,Lt=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),qt=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},Gt={arrayToObject:qt,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],a=Object.keys(i),p=0;p<a.length;++p){var u=a[p],c=i[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:u}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(Ct(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,n,o){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",p=0;p<i.length;++p){var u=i.charCodeAt(p);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===Nt.RFC1738&&(40===u||41===u)?a+=i.charAt(p):u<128?a+=Lt[u]:u<2048?a+=Lt[192|u>>6]+Lt[128|63&u]:u<55296||u>=57344?a+=Lt[224|u>>12]+Lt[128|u>>6&63]+Lt[128|63&u]:(p+=1,u=65536+((1023&u)<<10|1023&i.charCodeAt(p)),a+=Lt[240|u>>18]+Lt[128|u>>12&63]+Lt[128|u>>6&63]+Lt[128|63&u])}return a},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(Ct(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(Ct(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!Wt.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var o=e;return Ct(e)&&!Ct(r)&&(o=qt(e,n)),Ct(e)&&Ct(r)?(r.forEach((function(r,o){if(Wt.call(e,o)){var i=e[o];i&&"object"==typeof i&&r&&"object"==typeof r?e[o]=t(i,r,n):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var i=r[o];return Wt.call(e,o)?e[o]=t(e[o],i,n):e[o]=i,e}),o)}},Qt=Object.prototype.hasOwnProperty,$t={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},zt=Array.isArray,Vt=Array.prototype.push,Ht=function(t,e){Vt.apply(t,zt(e)?e:[e])},Jt=Date.prototype.toISOString,Zt=Nt.default,Yt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Gt.encode,encodeValuesOnly:!1,format:Zt,formatter:Nt.formatters[Zt],indices:!1,serializeDate:function(t){return Jt.call(t)},skipNulls:!1,strictNullHandling:!1},Kt=function t(e,r,n,o,i,a,p,u,c,f,s,l,y,d,h){var v,g=e;if(h.has(e))throw new RangeError("Cyclic object value");if("function"==typeof p?g=p(r,g):g instanceof Date?g=f(g):"comma"===n&&zt(g)&&(g=Gt.maybeMap(g,(function(t){return t instanceof Date?f(t):t}))),null===g){if(o)return a&&!y?a(r,Yt.encoder,d,"key",s):r;g=""}if("string"==typeof(v=g)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||Gt.isBuffer(g))return a?[l(y?r:a(r,Yt.encoder,d,"key",s))+"="+l(a(g,Yt.encoder,d,"value",s))]:[l(r)+"="+l(String(g))];var m,b=[];if(void 0===g)return b;if("comma"===n&&zt(g))m=[{value:g.length>0?g.join(",")||null:void 0}];else if(zt(p))m=p;else{var S=Object.keys(g);m=u?S.sort(u):S}for(var A=0;A<m.length;++A){var j=m[A],x="object"==typeof j&&void 0!==j.value?j.value:g[j];if(!i||null!==x){var P=zt(g)?"function"==typeof n?n(r,j):r:r+(c?"."+j:"["+j+"]");h.set(e,!0);var O=Ut();Ht(b,t(x,P,n,o,i,a,p,u,c,f,s,l,y,d,O))}}return b},Xt=(Object.prototype.hasOwnProperty,Array.isArray,function(t,e){var r,n=t,o=function(t){if(!t)return Yt;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||Yt.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Nt.default;if(void 0!==t.format){if(!Qt.call(Nt.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=Nt.formatters[r],o=Yt.filter;return("function"==typeof t.filter||zt(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:Yt.addQueryPrefix,allowDots:void 0===t.allowDots?Yt.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:Yt.charsetSentinel,delimiter:void 0===t.delimiter?Yt.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:Yt.encode,encoder:"function"==typeof t.encoder?t.encoder:Yt.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:Yt.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:Yt.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:Yt.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:Yt.strictNullHandling}}(e);"function"==typeof o.filter?n=(0,o.filter)("",n):zt(o.filter)&&(r=o.filter);var i,a=[];if("object"!=typeof n||null===n)return"";i=e&&e.arrayFormat in $t?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var p=$t[i];r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var u=Ut(),c=0;c<r.length;++c){var f=r[c];o.skipNulls&&null===n[f]||Ht(a,Kt(n[f],f,p,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,u))}var s=a.join(o.delimiter),l=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?l+="utf8=%26%2310003%3B&":l+="utf8=%E2%9C%93&"),s.length>0?l+s:""});function te(e,r){var n=e+"/"+r;return t.create({baseURL:n,headers:{Pragma:"no-cache"},paramsSerializer:function(t){return Xt(t,{arrayFormat:"repeat"})}})}var ee=U((function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.default=t.exports,t.exports.__esModule=!0}));_(ee);var re=U((function(t){t.exports=function(t){if(Array.isArray(t))return ee(t)},t.exports.default=t.exports,t.exports.__esModule=!0}));_(re);var ne=U((function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0}));_(ne);var oe=U((function(t){t.exports=function(t,e){if(t){if("string"==typeof t)return ee(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ee(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0}));_(oe);var ie=U((function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}));_(ie);var ae=_(U((function(t){t.exports=function(t){return re(t)||ne(t)||oe(t)||ie()},t.exports.default=t.exports,t.exports.__esModule=!0}))),pe=U((function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0}));_(pe);var ue=U((function(t){t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,p=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){p=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(p)throw o}}return i}},t.exports.default=t.exports,t.exports.__esModule=!0}));_(ue);var ce=U((function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}));_(ce);var fe=_(U((function(t){t.exports=function(t,e){return pe(t)||ue(t,e)||oe(t,e)||ce()},t.exports.default=t.exports,t.exports.__esModule=!0})));function se(t){return t.toLowerCase()}var le=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],ye=/[^A-Z0-9]+/gi;function de(t,e){void 0===e&&(e={});for(var r=e.splitRegexp,n=void 0===r?le:r,o=e.stripRegexp,i=void 0===o?ye:o,a=e.transform,p=void 0===a?se:a,u=e.delimiter,c=void 0===u?" ":u,f=he(he(t,n,"$1\0$2"),i,"\0"),s=0,l=f.length;"\0"===f.charAt(s);)s++;for(;"\0"===f.charAt(l-1);)l--;return f.slice(s,l).split("\0").map(p).join(c)}function he(t,e,r){return e instanceof RegExp?t.replace(e,r):e.reduce((function(t,e){return t.replace(e,r)}),t)}function ve(t){return function(t){return t.charAt(0).toUpperCase()+t.substr(1)}(t.toLowerCase())}function ge(t,e){return void 0===e&&(e={}),function(t,e){return void 0===e&&(e={}),de(t,r({delimiter:" ",transform:ve},e))}(t,r({delimiter:"-"},e))}function me(t,e){var r=t.charAt(0),n=t.substr(1).toLowerCase();return e>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}function be(t,e){return 0===e?t.toLowerCase():me(t,e)}var Se=_(U((function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}))),Ae=function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},je=function(t){return"undefined"!=typeof FormData&&t instanceof FormData},xe=function(t){return"object"===Se(t)&&null!==t&&"[object Object]"===Object.prototype.toString.call(t)},Pe=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(Array.isArray(e)||xe(e)||je(e)||Ae(e)))return e;if(je(e)&&!e.entries)return"ReactNative"===navigator.product?console.warn("Be careful that FormData cannot be transformed on React Native. If you intentionally implemented, ignore this kind of warning: https://facebook.github.io/react-native/docs/debugging.html"):console.warn("You must use polyfill of FormData.prototype.entries() on Internet Explorer or Safari: https://github.com/jimmywarting/FormData"),e;var o=Object.getPrototypeOf(e),i=n?e:o?new o.constructor:Object.create(null),a=!0,p=!1,u=void 0;try{for(var c,f=(o&&o.entries?o.entries.call(e):Object.entries(e))[Symbol.iterator]();!(a=(c=f.next()).done);a=!0){var s=fe(c.value,2),l=s[0],y=s[1];o&&o.append?o.append.call(i,l.replace(/[^[\]]+/g,(function(t){return r(t)})),t(y,r)):"__proto__"!==l&&(i[r("string"==typeof l?l:"".concat(l))]=t(y,r))}}catch(t){p=!0,u=t}finally{try{a||null==f.return||f.return()}finally{if(p)throw u}}return i},Oe=function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Pe(e,t,r)}},we=Oe((function(t,e){return void 0===e&&(e={}),function(t,e){return void 0===e&&(e={}),de(t,r({delimiter:"."},e))}(t,r({delimiter:"_"},e))})),Re=Oe((function(t,e){return void 0===e&&(e={}),function(t,e){return void 0===e&&(e={}),de(t,r({delimiter:"",transform:me},e))}(t,r({transform:be},e))})),Ee=Oe(ge),Fe=function(t){return t.params&&(t.params=we(t.params)),t},Ie=function(t,e){for(var r=0,n=Object.entries(e);r<n.length;r++){var o=fe(n[r],2),i=o[0],a=o[1];Ee(a,!0),["common","delete","get","head","post","put","patch"].includes(i)||(delete e[i],e[ge(i)]=a)}return we(t)},ke=function(t,e){return Re(e,!0),Re(t)},Me=function(){function t(t){var e;this.http=((e=te(t.baseUrl,t.version)).defaults.transformRequest=[Ie].concat(ae(e.defaults.transformRequest)),e.defaults.transformResponse=[].concat(ae(e.defaults.transformResponse),[ke]),e.interceptors.request.use(Fe),e),t.httpDecorator&&(this.http=t.httpDecorator(this.http)),this.exhttp=te("","")}return t.prototype.loadTemplate=function(t){return this.http.get("/templates/"+t).then((function(t){return t.data}))},t.prototype.loadTemplates=function(t){return this.http.get("/templates",{params:t}).then((function(t){return t.data}))},t.prototype.createTemplate=function(t){return this.http.post("/templates",t).then((function(t){return t.data}))},t.prototype.updateTemplate=function(t){return this.http.put("/templates",t).then((function(t){return t.data}))},t.prototype.deleteTemplate=function(t){return this.http.delete("/templates/"+t)},t.prototype.loadSurvey=function(t){return this.http.get("/surveys/"+t).then((function(t){return t.data}))},t.prototype.loadSurveys=function(t){return this.http.get("/surveys",{params:t}).then((function(t){return t.data}))},t.prototype.createSurvey=function(t){return this.http.post("/surveys",t).then((function(t){return t.data}))},t.prototype.updateSurvey=function(t){return this.http.put("/surveys",t).then((function(t){return t.data}))},t.prototype.deleteSurvey=function(t){return this.http.delete("/surveys/"+t)},t.prototype.createQuestion=function(t,e){return this.http.post("/templates/"+t+"/question",e).then((function(t){return t.data}))},t.prototype.createQuestions=function(t,e){return this.http.post("/templates/"+t+"/questions",e).then((function(t){return t.data}))},t.prototype.updateQuestion=function(t,e){return this.http.put("/templates/"+t+"/questions/"+e.id,e).then((function(t){return t.data}))},t.prototype.updateQuestionsOptions=function(t,e){return this.http.put("/surveys/"+t+"/questions/options",e).then((function(t){return t.data}))},t.prototype.moveQuestion=function(t,e,r){return Promise.resolve(this.http.put("/templates/"+t+"/questions/"+e+"/move",{index:r}))},t.prototype.deleteQuestion=function(t,e){return Promise.resolve(this.http.delete("/templates/"+t+"/questions/"+e))},t.prototype.loadResponse=function(t){return this.http.get("/responses/"+t).then((function(t){return t.data}))},t.prototype.dispatchResponse=function(t,e){return this.http.post("/surveys/"+t+"/responses",e).then((function(t){return t.data}))},t.prototype.updateResponse=function(t){return this.http.put("/responses/"+t.id,t).then((function(t){return t.data}))},t.prototype.loadMyPlans=function(t){return this.http.get("/plans/me",{params:t}).then((function(t){return t.data}))},t.prototype.loadPlans=function(t){return this.http.get("/plans",{params:t}).then((function(t){return t.data}))},t.prototype.loadPlanById=function(t,e){return this.http.get("/plan/"+t,{params:e}).then((function(t){return t.data}))},t.prototype.loadPlanWithFiltersById=function(t,e){return this.http.post("/plan/"+t,r({},e)).then((function(t){return t.data}))},t.prototype.loadPlanWithFiltersByIdAndTargetId=function(t,e,n){return this.http.post("/plan/"+t+"/targets/"+e,r({},n)).then((function(t){return t.data}))},t.prototype.createPlan=function(t){return this.http.post("/plans",t).then((function(t){return t.data}))},t.prototype.updatePlan=function(t){return this.http.put("/plans",t).then((function(t){return t.data}))},t.prototype.deletePlan=function(t){return this.http.delete("/plans/"+t)},t.prototype.dispatchResponses=function(t,e,r){return this.http.post("/surveys/"+t+"/respondents/"+e+"/responses",{targets:r})},t.prototype.loadResponses=function(t){return this.http.get("/responses",{params:t}).then((function(t){return t.data}))},t.prototype.loadResponsesPost=function(t){return this.http.post("/responses",r({},t)).then((function(t){return t.data}))},t.prototype.loadStatisticsByAll=function(t,e){return this.http.get("/statistics/"+t,{params:r(r({},e),{statisticsBy:"ALL"})}).then((function(t){return t.data}))},t.prototype.loadStatisticsBySurvey=function(t,e){return this.http.get("/statistics/"+t,{params:r(r({},e),{statisticsBy:"SURVEY"})}).then((function(t){return t.data}))},t.prototype.loadStatisticsByTargets=function(t,e){return this.http.get("/statistics/"+t,{params:r(r({},e),{statisticsBy:"TARGET"})}).then((function(t){return t.data}))},t.prototype.loadStatisticsWithFiltersByAll=function(t,e){return this.http.post("/statistics/"+t,r(r({},e),{statisticsBy:"ALL"})).then((function(t){return t.data}))},t.prototype.loadStatisticsWithFiltersBySurvey=function(t,e){return this.http.post("/statistics/"+t,r(r({},e),{statisticsBy:"SURVEY"})).then((function(t){return t.data}))},t.prototype.loadStatisticsWithFiltersByTargets=function(t,e){return this.http.post("/statistics/"+t,r(r({},e),{statisticsBy:"TARGET"})).then((function(t){return t.data}))},t.prototype.loadStatisticsBySurveyAndTarget=function(t){return this.http.post("/statistics/targets",t).then((function(t){return t.data}))},t.prototype.loadRespondents=function(t){return this.http.get("/respondents",{params:t}).then((function(t){return t.data}))},t.prototype.loadRespondentbyPlanAndTarget=function(t){return this.http.get("/respondents/target",{params:t}).then((function(t){return t.data}))},t.prototype.loadRespondentbyPlanAndTargetAndRespondentIds=function(t,e,r){return this.http.post("/respondents/target",{planId:t,targetId:e,respondentIds:r}).then((function(t){return t.data}))},t.prototype.get=function(t,e){return this.exhttp.get(t,{params:e}).then((function(t){return t.data}))},t.prototype.updatePlanStatistics=function(t){return this.http.put("/statistics",t).then((function(t){return t.data}))},t.prototype.exportPlanStatisticsRawData=function(t){return this.http.put("/statistics/exportRawData",t).then((function(t){return t.data}))},t}(),_e=function(){function t(t){this.asyncSurveyService=t}return t.prototype.loadSurvey=function(t){var e=new n;return e.id=t,e},t.prototype.createQuestion=function(t,e){return new o},t.prototype.updateQuestion=function(t,e){return new o},t.prototype.moveQuestion=function(t,e,r){},t.prototype.deleteQuestion=function(t,e){},t}();return function(){function t(){}return t.install=function(t,e){var r=new Me(e),n=new _e(r);t.prototype.$surveyService=r,t.prototype.$asyncSurveyService=r,t.prototype.$blockingSurveyService=n},t}()}));
package/src/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import _Vue from 'vue';
2
- import { SurveyServiceOptions } from "./survey-service";
3
- export * from './survey-service';
4
- export default class SurveyServiceApi {
5
- static install(Vue: typeof _Vue, options: SurveyServiceOptions): void;
6
- }
package/src/index.js DELETED
@@ -1,15 +0,0 @@
1
- import { AsyncSurveyServiceImpl, BlockingSurveyServiceImpl } from "./survey-service-impl";
2
- //todo install options
3
- // export class SurveyServiceApiOptions implements SurveyServiceOptions{
4
- //
5
- // }
6
- export default class SurveyServiceApiPlugin {
7
- static install(Vue, options) {
8
- const asyncSurveyService = new AsyncSurveyServiceImpl(options);
9
- const blockingSurveyService = new BlockingSurveyServiceImpl(asyncSurveyService);
10
- Vue.prototype.$surveyService = asyncSurveyService;
11
- Vue.prototype.$asyncSurveyService = asyncSurveyService;
12
- Vue.prototype.$blockingSurveyService = blockingSurveyService;
13
- }
14
- }
15
- //# sourceMappingURL=index.js.map
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,sBAAsB,EAAE,yBAAyB,EAAC,MAAM,uBAAuB,CAAA;AAIvF,sBAAsB;AACtB,wEAAwE;AACxE,EAAE;AACF,IAAI;AAEJ,MAAM,CAAC,OAAO,OAAO,sBAAsB;IACvC,MAAM,CAAC,OAAO,CAAC,GAAgB,EAAE,OAA6B;QAC1D,MAAM,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,OAAO,CAAC,CAAA;QAC9D,MAAM,qBAAqB,GAAG,IAAI,yBAAyB,CAAC,kBAAkB,CAAC,CAAA;QAC/E,GAAG,CAAC,SAAS,CAAC,cAAc,GAAG,kBAAkB,CAAA;QACjD,GAAG,CAAC,SAAS,CAAC,mBAAmB,GAAG,kBAAkB,CAAA;QACtD,GAAG,CAAC,SAAS,CAAC,sBAAsB,GAAG,qBAAqB,CAAA;IAChE,CAAC;CACJ"}